diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..88df879 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +end_of_line = lf +indent_style = space +indent_size = 4 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.env.example b/.env.example index 18ff42a..bf00486 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,3 @@ -PROXMOX_CLUSTER_URL="" +PROXMOX_URL="" PROXMOX_TOKEN_ID="" PROXMOX_TOKEN_SECRET="" diff --git a/.gitignore b/.gitignore index 921dd89..2c55bec 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,8 @@ bin/ obj/ -!.vscode/settings.json +!.vscode/launch.json +!.vscode/tasks.json .DS_Store .DS_Store .env diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..1dc3f29 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,9 @@ +docs/ + +.gitignore +*.sln +**.csproj +api/openapi.yaml +appveyor.yml +git_push.sh +README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 0000000..e436dbe --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,674 @@ +src/ProxmoxSharp/Api/ProxmoxGeneratedApi.cs +src/ProxmoxSharp/Client/ApiClient.cs +src/ProxmoxSharp/Client/ApiException.cs +src/ProxmoxSharp/Client/ApiResponse.cs +src/ProxmoxSharp/Client/ClientUtils.cs +src/ProxmoxSharp/Client/Configuration.cs +src/ProxmoxSharp/Client/ExceptionFactory.cs +src/ProxmoxSharp/Client/GlobalConfiguration.cs +src/ProxmoxSharp/Client/HttpMethod.cs +src/ProxmoxSharp/Client/IApiAccessor.cs +src/ProxmoxSharp/Client/IAsynchronousClient.cs +src/ProxmoxSharp/Client/IReadableConfiguration.cs +src/ProxmoxSharp/Client/ISynchronousClient.cs +src/ProxmoxSharp/Client/Multimap.cs +src/ProxmoxSharp/Client/OpenAPIDateConverter.cs +src/ProxmoxSharp/Client/RequestOptions.cs +src/ProxmoxSharp/Client/RetryConfiguration.cs +src/ProxmoxSharp/Model/AbstractOpenAPISchema.cs +src/ProxmoxSharp/Model/AddClusterFirewallGroupRuleRequest.cs +src/ProxmoxSharp/Model/AddClusterFirewallIPSetIPRequest.cs +src/ProxmoxSharp/Model/AddClusterFirewallRuleRequest.cs +src/ProxmoxSharp/Model/AddVMFirewallIPSetIPRequest.cs +src/ProxmoxSharp/Model/CloneVMRequest.cs +src/ProxmoxSharp/Model/CreateAccessDomainsRequest.cs +src/ProxmoxSharp/Model/CreateAccessDomainsSingleSync200Response.cs +src/ProxmoxSharp/Model/CreateAccessDomainsSingleSyncRequest.cs +src/ProxmoxSharp/Model/CreateAccessGroupsRequest.cs +src/ProxmoxSharp/Model/CreateAccessOpenidAuthurl200Response.cs +src/ProxmoxSharp/Model/CreateAccessOpenidAuthurlRequest.cs +src/ProxmoxSharp/Model/CreateAccessOpenidLoginRequest.cs +src/ProxmoxSharp/Model/CreateAccessRolesRequest.cs +src/ProxmoxSharp/Model/CreateAccessTfaSingle200Response.cs +src/ProxmoxSharp/Model/CreateAccessTfaSingle200ResponseData.cs +src/ProxmoxSharp/Model/CreateAccessTfaSingleRequest.cs +src/ProxmoxSharp/Model/CreateAccessTicket200Response.cs +src/ProxmoxSharp/Model/CreateAccessTicket200ResponseData.cs +src/ProxmoxSharp/Model/CreateAccessTicketRequest.cs +src/ProxmoxSharp/Model/CreateAccessUsersRequest.cs +src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingle200Response.cs +src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingle200ResponseData.cs +src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingleRequest.cs +src/ProxmoxSharp/Model/CreateAccessVncticketRequest.cs +src/ProxmoxSharp/Model/CreateClusterAcmeAccountRequest.cs +src/ProxmoxSharp/Model/CreateClusterAcmePluginsRequest.cs +src/ProxmoxSharp/Model/CreateClusterBackupRequest.cs +src/ProxmoxSharp/Model/CreateClusterBulkactionGuestMigrateRequest.cs +src/ProxmoxSharp/Model/CreateClusterBulkactionGuestShutdownRequest.cs +src/ProxmoxSharp/Model/CreateClusterBulkactionGuestStart200Response.cs +src/ProxmoxSharp/Model/CreateClusterBulkactionGuestStartRequest.cs +src/ProxmoxSharp/Model/CreateClusterBulkactionGuestSuspendRequest.cs +src/ProxmoxSharp/Model/CreateClusterConfigJoinRequest.cs +src/ProxmoxSharp/Model/CreateClusterConfigNodesSingle200Response.cs +src/ProxmoxSharp/Model/CreateClusterConfigNodesSingle200ResponseData.cs +src/ProxmoxSharp/Model/CreateClusterConfigNodesSingleRequest.cs +src/ProxmoxSharp/Model/CreateClusterConfigRequest.cs +src/ProxmoxSharp/Model/CreateClusterFirewallAliasesRequest.cs +src/ProxmoxSharp/Model/CreateClusterFirewallGroupRequest.cs +src/ProxmoxSharp/Model/CreateClusterFirewallIPSetRequest.cs +src/ProxmoxSharp/Model/CreateClusterHaGroupsRequest.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesRequest.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200Response.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200ResponseData.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200ResponseDataBlockingResourcesInner.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrateRequest.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200Response.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200ResponseData.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200ResponseDataBlockingResourcesInner.cs +src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocateRequest.cs +src/ProxmoxSharp/Model/CreateClusterHaRulesRequest.cs +src/ProxmoxSharp/Model/CreateClusterJobsRealmsyncSingleRequest.cs +src/ProxmoxSharp/Model/CreateClusterMappingDirRequest.cs +src/ProxmoxSharp/Model/CreateClusterMappingPciRequest.cs +src/ProxmoxSharp/Model/CreateClusterMappingUsbRequest.cs +src/ProxmoxSharp/Model/CreateClusterMetricsServerSingleRequest.cs +src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsGotifyRequest.cs +src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsSendmailRequest.cs +src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsSmtpRequest.cs +src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsWebhookRequest.cs +src/ProxmoxSharp/Model/CreateClusterNotificationsMatchersRequest.cs +src/ProxmoxSharp/Model/CreateClusterReplication200Response.cs +src/ProxmoxSharp/Model/CreateClusterReplicationRequest.cs +src/ProxmoxSharp/Model/CreateClusterSDNControllerRequest.cs +src/ProxmoxSharp/Model/CreateClusterSDNVnetRequest.cs +src/ProxmoxSharp/Model/CreateClusterSDNZoneRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnDnsRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnFabricsFabricRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnFabricsNodeSingleRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnIpamsRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnLockRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnRollbackRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleFirewallRulesRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleIpsRequest.cs +src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleSubnetsRequest.cs +src/ProxmoxSharp/Model/CreateNodeFirewallRuleRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleAplinfoRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleAptRepositoriesRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleAptUpdateRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephFsSingleRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephInitRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephMdsSingleRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephMonSingleRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephOsdRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephOsdSingleScrubRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephPoolRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephRestartRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephStartRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCephStopRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCertificatesAcmeCertificateRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleCertificatesCustom200Response.cs +src/ProxmoxSharp/Model/CreateNodesSingleCertificatesCustomRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleDisksDirectoryRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleDisksInitgptRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleDisksLvmRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleDisksLvmthinRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleDisksZfsRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleExecuteRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleHostsRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleCloneRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallAliasesRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallIpsetRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallIpsetSingleRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallRulesRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMigrateRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMovevolumeRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMtunnelRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleRemotemigrateRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSnapshotRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSpiceproxyRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusRebootRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusShutdownRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusStartRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusStopRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleVncproxyRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleMigrateallRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleNetworkRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgent200Response.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExec200Response.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExec200ResponseData.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExecRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentFilewriteRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentSetuserpasswordRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleDbusvmstateRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleFirewallAliasesRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMigrateRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMonitorRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMovedisk200Response.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMovediskRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMtunnelRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleRemotemigrateRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleSpiceproxy200Response.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleSpiceproxyRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleTemplateRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleTermproxyRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleVncproxyRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleSpiceshellRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleStartallRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleStatusRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleStopallRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContent200Response.cs +src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContentRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContentSingleRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleDownloadurlRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleOciregistrypullRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleUploadRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleSubscriptionRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleSuspendallRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleTermproxyRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleVncshellRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleVzdumpRequest.cs +src/ProxmoxSharp/Model/CreateNodesSingleWakeonlan200Response.cs +src/ProxmoxSharp/Model/CreatePoolRequest.cs +src/ProxmoxSharp/Model/CreateStorage200Response.cs +src/ProxmoxSharp/Model/CreateStorage200ResponseData.cs +src/ProxmoxSharp/Model/CreateStorage200ResponseDataConfig.cs +src/ProxmoxSharp/Model/CreateStorageRequest.cs +src/ProxmoxSharp/Model/CreateVMFirewallIPSetRequest.cs +src/ProxmoxSharp/Model/CreateVMFirewallRuleRequest.cs +src/ProxmoxSharp/Model/CreateVMRequest.cs +src/ProxmoxSharp/Model/CreateVMSnapshotRequest.cs +src/ProxmoxSharp/Model/GetAccessAcl200Response.cs +src/ProxmoxSharp/Model/GetAccessAcl200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetAccessDomains200Response.cs +src/ProxmoxSharp/Model/GetAccessDomains200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetAccessGroups200Response.cs +src/ProxmoxSharp/Model/GetAccessGroups200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetAccessGroupsSingle200Response.cs +src/ProxmoxSharp/Model/GetAccessGroupsSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetAccessPermissions200Response.cs +src/ProxmoxSharp/Model/GetAccessRoles200Response.cs +src/ProxmoxSharp/Model/GetAccessRoles200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetAccessRolesSingle200Response.cs +src/ProxmoxSharp/Model/GetAccessRolesSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetAccessTfa200Response.cs +src/ProxmoxSharp/Model/GetAccessTfa200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetAccessTfa200ResponseDataInnerEntriesInner.cs +src/ProxmoxSharp/Model/GetAccessTfaSingle200Response.cs +src/ProxmoxSharp/Model/GetAccessTfaSingleSingle200Response.cs +src/ProxmoxSharp/Model/GetAccessUsers200Response.cs +src/ProxmoxSharp/Model/GetAccessUsers200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetAccessUsers200ResponseDataInnerTokensInner.cs +src/ProxmoxSharp/Model/GetAccessUsersSingle200Response.cs +src/ProxmoxSharp/Model/GetAccessUsersSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetAccessUsersSingleTfa200Response.cs +src/ProxmoxSharp/Model/GetAccessUsersSingleTfa200ResponseData.cs +src/ProxmoxSharp/Model/GetAccessUsersSingleToken200Response.cs +src/ProxmoxSharp/Model/GetAccessUsersSingleTokenSingle200Response.cs +src/ProxmoxSharp/Model/GetAccessUsersSingleTokenSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetCluster200Response.cs +src/ProxmoxSharp/Model/GetClusterAcmeAccountSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterAcmeAccountSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterAcmeChallengeschema200Response.cs +src/ProxmoxSharp/Model/GetClusterAcmeChallengeschema200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterAcmeDirectories200Response.cs +src/ProxmoxSharp/Model/GetClusterAcmeDirectories200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterAcmeMeta200Response.cs +src/ProxmoxSharp/Model/GetClusterAcmeMeta200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterAcmePlugins200Response.cs +src/ProxmoxSharp/Model/GetClusterAcmePlugins200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterAcmePluginsSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterAcmeTos200Response.cs +src/ProxmoxSharp/Model/GetClusterBackup200Response.cs +src/ProxmoxSharp/Model/GetClusterBackup200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200Response.cs +src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner.cs +src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner.cs +src/ProxmoxSharp/Model/GetClusterBackupinfo200Response.cs +src/ProxmoxSharp/Model/GetClusterBackupinfo200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterBackupinfoNotbackedup200Response.cs +src/ProxmoxSharp/Model/GetClusterBackupinfoNotbackedup200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterCephFlags200Response.cs +src/ProxmoxSharp/Model/GetClusterCephFlags200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterCephFlagsSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200Response.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMds.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMdsId.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMgr.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMgrId.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMon.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMonId.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNode.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNodeNode.cs +src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNodeNodeVersion.cs +src/ProxmoxSharp/Model/GetClusterConfigApiversion200Response.cs +src/ProxmoxSharp/Model/GetClusterConfigJoin200Response.cs +src/ProxmoxSharp/Model/GetClusterConfigJoin200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterConfigJoin200ResponseDataNodelistInner.cs +src/ProxmoxSharp/Model/GetClusterConfigNodes200Response.cs +src/ProxmoxSharp/Model/GetClusterConfigNodes200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterFirewallAliases200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallAliases200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterFirewallGroupRule200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallGroupRules200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallGroupRules200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterFirewallGroups200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallGroups200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterFirewallIPSet200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallIPSet200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterFirewallIPSets200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallIPSets200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterFirewallMacros200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallMacros200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterFirewallOptions200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallOptions200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterFirewallRefs200Response.cs +src/ProxmoxSharp/Model/GetClusterFirewallRefs200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterHa200Response.cs +src/ProxmoxSharp/Model/GetClusterHa200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterHaGroups200Response.cs +src/ProxmoxSharp/Model/GetClusterHaGroups200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterHaResources200Response.cs +src/ProxmoxSharp/Model/GetClusterHaResources200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterHaResourcesSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterHaResourcesSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterHaRules200Response.cs +src/ProxmoxSharp/Model/GetClusterHaRules200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterHaRulesSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterHaRulesSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterHaStatusCurrent200Response.cs +src/ProxmoxSharp/Model/GetClusterHaStatusCurrent200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterJobsRealmsync200Response.cs +src/ProxmoxSharp/Model/GetClusterJobsRealmsync200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterJobsScheduleanalyze200Response.cs +src/ProxmoxSharp/Model/GetClusterJobsScheduleanalyze200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterMapping200Response.cs +src/ProxmoxSharp/Model/GetClusterMappingDir200Response.cs +src/ProxmoxSharp/Model/GetClusterMappingDir200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterMappingDir200ResponseDataInnerChecksInner.cs +src/ProxmoxSharp/Model/GetClusterMappingPci200Response.cs +src/ProxmoxSharp/Model/GetClusterMappingPci200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterMappingUsb200Response.cs +src/ProxmoxSharp/Model/GetClusterMappingUsb200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterMetricsExport200Response.cs +src/ProxmoxSharp/Model/GetClusterMetricsExport200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterMetricsExport200ResponseDataDataInner.cs +src/ProxmoxSharp/Model/GetClusterMetricsServer200Response.cs +src/ProxmoxSharp/Model/GetClusterMetricsServer200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterMetricsServerSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterNextid200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotify200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotify200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotifySingle200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotifySingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmail200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmail200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmailSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmailSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtp200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtp200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtpSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtpSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhook200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhook200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhookSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhookSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfields200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfields200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfieldvalues200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfieldvalues200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterNotificationsMatchers200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsMatchers200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterNotificationsMatchersSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsMatchersSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterNotificationsTargets200Response.cs +src/ProxmoxSharp/Model/GetClusterNotificationsTargets200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterReplication200Response.cs +src/ProxmoxSharp/Model/GetClusterReplication200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterReplicationSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterReplicationSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterResources200Response.cs +src/ProxmoxSharp/Model/GetClusterResources200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSDNControllers200Response.cs +src/ProxmoxSharp/Model/GetClusterSDNControllers200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSDNControllers200ResponseDataInnerPending.cs +src/ProxmoxSharp/Model/GetClusterSDNVnets200Response.cs +src/ProxmoxSharp/Model/GetClusterSDNVnets200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSDNVnets200ResponseDataInnerPending.cs +src/ProxmoxSharp/Model/GetClusterSDNZones200Response.cs +src/ProxmoxSharp/Model/GetClusterSDNZones200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSDNZones200ResponseDataInnerPending.cs +src/ProxmoxSharp/Model/GetClusterSdnDns200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnDns200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSdnFabrics200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnFabrics200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSdnFabricsAll200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnFabricsAll200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterSdnFabricsFabric200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnFabricsFabric200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSdnFabricsFabricSingle200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnFabricsNode200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnFabricsNode200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSdnIpams200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnIpams200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterSdnIpamsSingleStatus200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnVnetsSingleFirewallOptions200Response.cs +src/ProxmoxSharp/Model/GetClusterSdnVnetsSingleFirewallOptions200ResponseData.cs +src/ProxmoxSharp/Model/GetClusterStatus200Response.cs +src/ProxmoxSharp/Model/GetClusterStatus200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetClusterTasks200Response.cs +src/ProxmoxSharp/Model/GetClusterTasks200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetCurrentVMStatus200Response.cs +src/ProxmoxSharp/Model/GetCurrentVMStatus200ResponseData.cs +src/ProxmoxSharp/Model/GetNodeFirewallOptions200Response.cs +src/ProxmoxSharp/Model/GetNodeFirewallOptions200ResponseData.cs +src/ProxmoxSharp/Model/GetNodeSDNZoneContent200Response.cs +src/ProxmoxSharp/Model/GetNodeSDNZoneContent200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodeSDNZones200Response.cs +src/ProxmoxSharp/Model/GetNodeSDNZones200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodeTaskStatus200Response.cs +src/ProxmoxSharp/Model/GetNodeTaskStatus200ResponseData.cs +src/ProxmoxSharp/Model/GetNodeTasks200Response.cs +src/ProxmoxSharp/Model/GetNodeTasks200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodes200Response.cs +src/ProxmoxSharp/Model/GetNodes200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataErrorsInner.cs +src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInner.cs +src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner.cs +src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInnerOptionsInner.cs +src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataInfosInner.cs +src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataStandardReposInner.cs +src/ProxmoxSharp/Model/GetNodesSingleAptUpdate200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleAptUpdate200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleAptVersions200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleAptVersions200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpu200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpuflags200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpuflags200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMachines200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMigration200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMigration200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleCephCfgDb200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephCfgDb200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCephCfgValue200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephCmdsafety200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephCmdsafety200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleCephFs200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephFs200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCephMds200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephMds200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCephMgr200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephMgr200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCephMon200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephMon200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleLvinfo200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleLvinfo200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd.cs +src/ProxmoxSharp/Model/GetNodesSingleCephPool200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephPool200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCephPoolSingleStatus200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephPoolSingleStatus200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleCephRules200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCephRules200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleCertificatesInfo200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleCertificatesInfo200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleConfig200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleConfig200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksDirectory200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksDirectory200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksList200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksList200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseDataChildrenInner.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseDataChildrenInnerChildrenInner.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksLvmthin200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksLvmthin200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksSmart200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksSmart200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksZfs200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksZfs200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner.cs +src/ProxmoxSharp/Model/GetNodesSingleDns200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleDns200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleHardware200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleHardware200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleHardwarePci200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleHardwarePci200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleHardwarePciSingleMdev200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleHardwarePciSingleMdev200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleHardwareUsb200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleHardwareUsb200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleHosts200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleHosts200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleJournal200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxc200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxc200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleConfig200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleConfig200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleFeature200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleFeature200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSinglePending200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSinglePending200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleSnapshot200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleSnapshot200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleStatusCurrent200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleLxcSingleStatusCurrent200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleNetwork200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleNetwork200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleNetworkSingle200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleNetworkSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgent200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentExecstatus200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentExecstatus200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentFileread200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentFileread200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleCloudinit200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleCloudinit200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFeature200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFeature200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFirewallLog200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFirewallLog200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleMtunnelwebsocket200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleVncwebsocket200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQemuSingleVncwebsocket200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleQueryurlmetadata200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleQueryurlmetadata200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleScan200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleScan200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleScanCifs200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleScanCifs200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleScanIscsi200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleScanIscsi200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleScanLvm200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleScanLvm200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleScanLvmthin200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleScanLvmthin200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleScanNfs200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleScanNfs200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleScanPbs200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleScanPbs200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleScanZfs200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleScanZfs200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleInterfaces200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleInterfaces200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleNeighbors200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleNeighbors200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleRoutes200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleRoutes200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnVnetsSingleMacvrf200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnVnetsSingleMacvrf200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200ResponseDataInnerPortsInner.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleIpvrf200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleIpvrf200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleServices200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleServices200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleServicesSingleState200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStatus200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataBootInfo.cs +src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataCpuinfo.cs +src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataCurrentKernel.cs +src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataMemory.cs +src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataRootfs.cs +src/ProxmoxSharp/Model/GetNodesSingleStorage200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStorage200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleStorage200ResponseDataInnerFormats.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200ResponseDataInnerVerification.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContentSingle200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContentSingle200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreDownload200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreList200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreList200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSinglePrunebackups200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSinglePrunebackups200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleStatus200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleStorageSingleStatus200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleSubscription200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleSubscription200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleTime200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleTime200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleVersion200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleVersion200ResponseData.cs +src/ProxmoxSharp/Model/GetNodesSingleVzdumpDefaults200Response.cs +src/ProxmoxSharp/Model/GetNodesSingleVzdumpDefaults200ResponseData.cs +src/ProxmoxSharp/Model/GetPool200Response.cs +src/ProxmoxSharp/Model/GetPool200ResponseData.cs +src/ProxmoxSharp/Model/GetPools200Response.cs +src/ProxmoxSharp/Model/GetPools200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetPools200ResponseDataInnerMembersInner.cs +src/ProxmoxSharp/Model/GetStorage200Response.cs +src/ProxmoxSharp/Model/GetStorage200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetVMConfig200Response.cs +src/ProxmoxSharp/Model/GetVMConfig200ResponseData.cs +src/ProxmoxSharp/Model/GetVMConfigPending200Response.cs +src/ProxmoxSharp/Model/GetVMConfigPending200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetVMFirewallOptions200Response.cs +src/ProxmoxSharp/Model/GetVMFirewallOptions200ResponseData.cs +src/ProxmoxSharp/Model/GetVMRRD200Response.cs +src/ProxmoxSharp/Model/GetVMRRD200ResponseData.cs +src/ProxmoxSharp/Model/GetVMSnapshots200Response.cs +src/ProxmoxSharp/Model/GetVMSnapshots200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetVMs200Response.cs +src/ProxmoxSharp/Model/GetVMs200ResponseDataInner.cs +src/ProxmoxSharp/Model/GetVersion200Response.cs +src/ProxmoxSharp/Model/GetVersion200ResponseData.cs +src/ProxmoxSharp/Model/MigrateVM200Response.cs +src/ProxmoxSharp/Model/MigrateVM200ResponseData.cs +src/ProxmoxSharp/Model/MigrateVM200ResponseDataLocalDisksInner.cs +src/ProxmoxSharp/Model/MigrateVM200ResponseDataNotAllowedNodes.cs +src/ProxmoxSharp/Model/RebootVMRequest.cs +src/ProxmoxSharp/Model/ResetVMRequest.cs +src/ProxmoxSharp/Model/ResizeVMDiskRequest.cs +src/ProxmoxSharp/Model/ResumeVMRequest.cs +src/ProxmoxSharp/Model/RollbackVMSnapshotRequest.cs +src/ProxmoxSharp/Model/ShutdownVMRequest.cs +src/ProxmoxSharp/Model/StartVMRequest.cs +src/ProxmoxSharp/Model/StopVMRequest.cs +src/ProxmoxSharp/Model/SuspendVMRequest.cs +src/ProxmoxSharp/Model/UnlinkVMDiskImagesRequest.cs +src/ProxmoxSharp/Model/UpdateAccessAclRequest.cs +src/ProxmoxSharp/Model/UpdateAccessDomainsSingleRequest.cs +src/ProxmoxSharp/Model/UpdateAccessGroupsSingleRequest.cs +src/ProxmoxSharp/Model/UpdateAccessPasswordRequest.cs +src/ProxmoxSharp/Model/UpdateAccessRolesSingleRequest.cs +src/ProxmoxSharp/Model/UpdateAccessTfaSingleSingleRequest.cs +src/ProxmoxSharp/Model/UpdateAccessUsersSingleRequest.cs +src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingle200Response.cs +src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingle200ResponseData.cs +src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterAcmeAccountSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterAcmePluginsSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterBackupSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterCephFlagsRequest.cs +src/ProxmoxSharp/Model/UpdateClusterCephFlagsSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterFirewallAliasesSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterFirewallGroupRuleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterFirewallIPSetIPRequest.cs +src/ProxmoxSharp/Model/UpdateClusterFirewallOptionsRequest.cs +src/ProxmoxSharp/Model/UpdateClusterFirewallRuleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterHaGroupsSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterHaResourcesSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterHaRulesSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterJobsRealmsyncSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterMappingDirSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterMappingPciSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterMappingUsbSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterMetricsServerSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsGotifySingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsSendmailSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsSmtpSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsWebhookSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterNotificationsMatchersSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterOptionsRequest.cs +src/ProxmoxSharp/Model/UpdateClusterReplicationSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSDNControllerRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSDNRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSDNVnetRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSDNZoneRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSdnDnsSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSdnFabricsFabricSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSdnFabricsNodeSingleSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSdnIpamsSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleFirewallOptionsRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleIpsRequest.cs +src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleSubnetsSingleRequest.cs +src/ProxmoxSharp/Model/UpdateNodeFirewallOptionsRequest.cs +src/ProxmoxSharp/Model/UpdateNodeFirewallRuleRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleAptRepositoriesRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleCephPoolSingleRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleCertificatesAcmeCertificateRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleConfigRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleDisksWipediskRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleDnsRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleConfigRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallOptionsRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallRulesSingleRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleResizeRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleNetworkRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleNetworkSingleRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleQemuSingleSendkeyRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleStorageSingleContentSingleRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleSubscriptionRequest.cs +src/ProxmoxSharp/Model/UpdateNodesSingleTimeRequest.cs +src/ProxmoxSharp/Model/UpdatePoolRequest.cs +src/ProxmoxSharp/Model/UpdatePoolsRequest.cs +src/ProxmoxSharp/Model/UpdateStorageSingleRequest.cs +src/ProxmoxSharp/Model/UpdateVMConfigRequest.cs +src/ProxmoxSharp/Model/UpdateVMConfigSyncRequest.cs +src/ProxmoxSharp/Model/UpdateVMFirewallIPSetIPRequest.cs +src/ProxmoxSharp/Model/UpdateVMFirewallOptionsRequest.cs +src/ProxmoxSharp/Model/UpdateVMFirewallRuleRequest.cs +src/ProxmoxSharp/Model/UpdateVMSnapshotConfigRequest.cs diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..5f84a81 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.12.0 diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..61c9726 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C#: Debug", + "preLaunchTask": "build", + "type": "coreclr", + "request": "launch", + "program": "dotnet", + "args": ["${workspaceFolder}/src/ProxmoxSharp.Tests/bin/Debug/net8.0/ProxmoxSharp.Tests.dll"], + "cwd": "${workspaceFolder}", + "console": "internalConsole" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..01da329 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,12 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": ["build", "${workspaceFolder}"], + "problemMatcher": "$msCompile" + } + ] +} diff --git a/Directory.Packages.props b/Directory.Packages.props index d7cf64a..e95a987 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,7 +4,10 @@ + + + diff --git a/ProxmoxSharp.sln b/ProxmoxSharp.sln index 47cc563..c100cbe 100644 --- a/ProxmoxSharp.sln +++ b/ProxmoxSharp.sln @@ -8,17 +8,37 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Debug|x64.ActiveCfg = Debug|Any CPU + {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Debug|x64.Build.0 = Debug|Any CPU + {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Debug|x86.ActiveCfg = Debug|Any CPU + {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Debug|x86.Build.0 = Debug|Any CPU {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Release|Any CPU.ActiveCfg = Release|Any CPU {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Release|Any CPU.Build.0 = Release|Any CPU + {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Release|x64.ActiveCfg = Release|Any CPU + {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Release|x64.Build.0 = Release|Any CPU + {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Release|x86.ActiveCfg = Release|Any CPU + {A2756937-8D07-4164-9CB7-2C94E9FE0A08}.Release|x86.Build.0 = Release|Any CPU {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Debug|x64.ActiveCfg = Debug|Any CPU + {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Debug|x64.Build.0 = Debug|Any CPU + {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Debug|x86.ActiveCfg = Debug|Any CPU + {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Debug|x86.Build.0 = Debug|Any CPU {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Release|Any CPU.ActiveCfg = Release|Any CPU {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Release|Any CPU.Build.0 = Release|Any CPU + {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Release|x64.ActiveCfg = Release|Any CPU + {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Release|x64.Build.0 = Release|Any CPU + {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Release|x86.ActiveCfg = Release|Any CPU + {0A59E867-1A89-4E07-ABE7-E7DC2FEE9317}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/scripts/generate.ps1 b/scripts/generate.ps1 new file mode 100644 index 0000000..ffea1de --- /dev/null +++ b/scripts/generate.ps1 @@ -0,0 +1,13 @@ +#!/usr/bin/env pwsh + +$env:CSHARP_POST_PROCESS_FILE = "" + +java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` + -i ./vendor/spec.v2.yaml ` + -g csharp ` + -o . ` + --global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false ` + --additional-properties=packageName=ProxmoxSharp,library=restsharp,zeroBasedEnums=true,nullableReferenceTypes=true ` + --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=ProxmoxGenerated ` + --type-mappings Any=object ` + --skip-validate-spec diff --git a/src/ProxmoxSharp.Tests/Program.cs b/src/ProxmoxSharp.Tests/Program.cs index 1948990..b06166b 100644 --- a/src/ProxmoxSharp.Tests/Program.cs +++ b/src/ProxmoxSharp.Tests/Program.cs @@ -11,16 +11,19 @@ namespace ProxmoxSharp.Tests { DotEnv.Load(new DotEnvOptions(ignoreExceptions: true, envFilePaths: [".env", "../../.env"])); - var clusterUrl = Environment.GetEnvironmentVariable("PROXMOX_CLUSTER_URL"); - var tokenId = Environment.GetEnvironmentVariable("PROXMOX_TOKEN_ID"); - var tokenSecret = Environment.GetEnvironmentVariable("PROXMOX_TOKEN_SECRET"); - - var proxmox = new ProxmoxClient(clusterUrl, tokenId, tokenSecret); - - var nodes = await proxmox.ListVirtualMachinesAsync("broadwell"); + var proxmox = ProxmoxApi.FromEnv()!; + var nodes = (await proxmox.GetNodesAsync()).Data; + Console.WriteLine($"nodes:"); foreach (var node in nodes) { - Console.WriteLine($"- {node.Name}"); + Console.WriteLine($"- {node.Node}"); + } + + var vms = (await proxmox.GetVMsAsync(nodes[0].Node)).Data; + Console.WriteLine($"vms:"); + foreach (var vm in vms) + { + Console.WriteLine($"- {vm.Name}"); } } } diff --git a/src/ProxmoxSharp/Api/ProxmoxGeneratedApi.cs b/src/ProxmoxSharp/Api/ProxmoxGeneratedApi.cs new file mode 100644 index 0000000..07f6023 --- /dev/null +++ b/src/ProxmoxSharp/Api/ProxmoxGeneratedApi.cs @@ -0,0 +1,128996 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using ProxmoxSharp.Client; +using ProxmoxSharp.Model; + +namespace ProxmoxSharp.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IProxmoxGeneratedApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// addClusterFirewallGroupRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response AddClusterFirewallGroupRule(string group, AddClusterFirewallGroupRuleRequest? addClusterFirewallGroupRuleRequest = default(AddClusterFirewallGroupRuleRequest?), int operationIndex = 0); + + /// + /// addClusterFirewallGroupRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse AddClusterFirewallGroupRuleWithHttpInfo(string group, AddClusterFirewallGroupRuleRequest? addClusterFirewallGroupRuleRequest = default(AddClusterFirewallGroupRuleRequest?), int operationIndex = 0); + /// + /// addClusterFirewallIPSetIP + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response AddClusterFirewallIPSetIP(string name, AddClusterFirewallIPSetIPRequest? addClusterFirewallIPSetIPRequest = default(AddClusterFirewallIPSetIPRequest?), int operationIndex = 0); + + /// + /// addClusterFirewallIPSetIP + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse AddClusterFirewallIPSetIPWithHttpInfo(string name, AddClusterFirewallIPSetIPRequest? addClusterFirewallIPSetIPRequest = default(AddClusterFirewallIPSetIPRequest?), int operationIndex = 0); + /// + /// addClusterFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response AddClusterFirewallRule(AddClusterFirewallRuleRequest? addClusterFirewallRuleRequest = default(AddClusterFirewallRuleRequest?), int operationIndex = 0); + + /// + /// addClusterFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse AddClusterFirewallRuleWithHttpInfo(AddClusterFirewallRuleRequest? addClusterFirewallRuleRequest = default(AddClusterFirewallRuleRequest?), int operationIndex = 0); + /// + /// addVMFirewallIPSetIP + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response AddVMFirewallIPSetIP(string name, string node, int vmid, AddVMFirewallIPSetIPRequest? addVMFirewallIPSetIPRequest = default(AddVMFirewallIPSetIPRequest?), int operationIndex = 0); + + /// + /// addVMFirewallIPSetIP + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse AddVMFirewallIPSetIPWithHttpInfo(string name, string node, int vmid, AddVMFirewallIPSetIPRequest? addVMFirewallIPSetIPRequest = default(AddVMFirewallIPSetIPRequest?), int operationIndex = 0); + /// + /// cloneVM + /// + /// + /// Create a copy of virtual machine/template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CloneVM(string node, int vmid, CloneVMRequest? cloneVMRequest = default(CloneVMRequest?), int operationIndex = 0); + + /// + /// cloneVM + /// + /// + /// Create a copy of virtual machine/template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CloneVMWithHttpInfo(string node, int vmid, CloneVMRequest? cloneVMRequest = default(CloneVMRequest?), int operationIndex = 0); + /// + /// createAccessDomains + /// + /// + /// Add an authentication server. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateAccessDomains(CreateAccessDomainsRequest? createAccessDomainsRequest = default(CreateAccessDomainsRequest?), int operationIndex = 0); + + /// + /// createAccessDomains + /// + /// + /// Add an authentication server. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateAccessDomainsWithHttpInfo(CreateAccessDomainsRequest? createAccessDomainsRequest = default(CreateAccessDomainsRequest?), int operationIndex = 0); + /// + /// createAccessDomainsSingleSync + /// + /// + /// Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// CreateAccessDomainsSingleSync200Response + CreateAccessDomainsSingleSync200Response CreateAccessDomainsSingleSync(string realm, CreateAccessDomainsSingleSyncRequest? createAccessDomainsSingleSyncRequest = default(CreateAccessDomainsSingleSyncRequest?), int operationIndex = 0); + + /// + /// createAccessDomainsSingleSync + /// + /// + /// Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessDomainsSingleSync200Response + ApiResponse CreateAccessDomainsSingleSyncWithHttpInfo(string realm, CreateAccessDomainsSingleSyncRequest? createAccessDomainsSingleSyncRequest = default(CreateAccessDomainsSingleSyncRequest?), int operationIndex = 0); + /// + /// createAccessGroups + /// + /// + /// Create new group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateAccessGroups(CreateAccessGroupsRequest? createAccessGroupsRequest = default(CreateAccessGroupsRequest?), int operationIndex = 0); + + /// + /// createAccessGroups + /// + /// + /// Create new group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateAccessGroupsWithHttpInfo(CreateAccessGroupsRequest? createAccessGroupsRequest = default(CreateAccessGroupsRequest?), int operationIndex = 0); + /// + /// createAccessOpenidAuthurl + /// + /// + /// Get the OpenId Authorization Url for the specified realm. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateAccessOpenidAuthurl200Response + CreateAccessOpenidAuthurl200Response CreateAccessOpenidAuthurl(CreateAccessOpenidAuthurlRequest? createAccessOpenidAuthurlRequest = default(CreateAccessOpenidAuthurlRequest?), int operationIndex = 0); + + /// + /// createAccessOpenidAuthurl + /// + /// + /// Get the OpenId Authorization Url for the specified realm. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessOpenidAuthurl200Response + ApiResponse CreateAccessOpenidAuthurlWithHttpInfo(CreateAccessOpenidAuthurlRequest? createAccessOpenidAuthurlRequest = default(CreateAccessOpenidAuthurlRequest?), int operationIndex = 0); + /// + /// createAccessOpenidLogin + /// + /// + /// Verify OpenID authorization code and create a ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateAccessOpenidLogin(CreateAccessOpenidLoginRequest? createAccessOpenidLoginRequest = default(CreateAccessOpenidLoginRequest?), int operationIndex = 0); + + /// + /// createAccessOpenidLogin + /// + /// + /// Verify OpenID authorization code and create a ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateAccessOpenidLoginWithHttpInfo(CreateAccessOpenidLoginRequest? createAccessOpenidLoginRequest = default(CreateAccessOpenidLoginRequest?), int operationIndex = 0); + /// + /// createAccessRoles + /// + /// + /// Create new role. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateAccessRoles(CreateAccessRolesRequest? createAccessRolesRequest = default(CreateAccessRolesRequest?), int operationIndex = 0); + + /// + /// createAccessRoles + /// + /// + /// Create new role. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateAccessRolesWithHttpInfo(CreateAccessRolesRequest? createAccessRolesRequest = default(CreateAccessRolesRequest?), int operationIndex = 0); + /// + /// createAccessTfaSingle + /// + /// + /// Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// CreateAccessTfaSingle200Response + CreateAccessTfaSingle200Response CreateAccessTfaSingle(string userid, CreateAccessTfaSingleRequest? createAccessTfaSingleRequest = default(CreateAccessTfaSingleRequest?), int operationIndex = 0); + + /// + /// createAccessTfaSingle + /// + /// + /// Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessTfaSingle200Response + ApiResponse CreateAccessTfaSingleWithHttpInfo(string userid, CreateAccessTfaSingleRequest? createAccessTfaSingleRequest = default(CreateAccessTfaSingleRequest?), int operationIndex = 0); + /// + /// createAccessTicket + /// + /// + /// Create or verify authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateAccessTicket200Response + CreateAccessTicket200Response CreateAccessTicket(CreateAccessTicketRequest? createAccessTicketRequest = default(CreateAccessTicketRequest?), int operationIndex = 0); + + /// + /// createAccessTicket + /// + /// + /// Create or verify authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessTicket200Response + ApiResponse CreateAccessTicketWithHttpInfo(CreateAccessTicketRequest? createAccessTicketRequest = default(CreateAccessTicketRequest?), int operationIndex = 0); + /// + /// createAccessUsers + /// + /// + /// Create new user. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateAccessUsers(CreateAccessUsersRequest? createAccessUsersRequest = default(CreateAccessUsersRequest?), int operationIndex = 0); + + /// + /// createAccessUsers + /// + /// + /// Create new user. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateAccessUsersWithHttpInfo(CreateAccessUsersRequest? createAccessUsersRequest = default(CreateAccessUsersRequest?), int operationIndex = 0); + /// + /// createAccessUsersSingleTokenSingle + /// + /// + /// Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// CreateAccessUsersSingleTokenSingle200Response + CreateAccessUsersSingleTokenSingle200Response CreateAccessUsersSingleTokenSingle(string tokenid, string userid, CreateAccessUsersSingleTokenSingleRequest? createAccessUsersSingleTokenSingleRequest = default(CreateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0); + + /// + /// createAccessUsersSingleTokenSingle + /// + /// + /// Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessUsersSingleTokenSingle200Response + ApiResponse CreateAccessUsersSingleTokenSingleWithHttpInfo(string tokenid, string userid, CreateAccessUsersSingleTokenSingleRequest? createAccessUsersSingleTokenSingleRequest = default(CreateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0); + /// + /// createAccessVncticket + /// + /// + /// verify VNC authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateAccessVncticket(CreateAccessVncticketRequest? createAccessVncticketRequest = default(CreateAccessVncticketRequest?), int operationIndex = 0); + + /// + /// createAccessVncticket + /// + /// + /// verify VNC authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateAccessVncticketWithHttpInfo(CreateAccessVncticketRequest? createAccessVncticketRequest = default(CreateAccessVncticketRequest?), int operationIndex = 0); + /// + /// createClusterAcmeAccount + /// + /// + /// Register a new ACME account with CA. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterAcmeAccount(CreateClusterAcmeAccountRequest? createClusterAcmeAccountRequest = default(CreateClusterAcmeAccountRequest?), int operationIndex = 0); + + /// + /// createClusterAcmeAccount + /// + /// + /// Register a new ACME account with CA. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterAcmeAccountWithHttpInfo(CreateClusterAcmeAccountRequest? createClusterAcmeAccountRequest = default(CreateClusterAcmeAccountRequest?), int operationIndex = 0); + /// + /// createClusterAcmePlugins + /// + /// + /// Add ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterAcmePlugins(CreateClusterAcmePluginsRequest? createClusterAcmePluginsRequest = default(CreateClusterAcmePluginsRequest?), int operationIndex = 0); + + /// + /// createClusterAcmePlugins + /// + /// + /// Add ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterAcmePluginsWithHttpInfo(CreateClusterAcmePluginsRequest? createClusterAcmePluginsRequest = default(CreateClusterAcmePluginsRequest?), int operationIndex = 0); + /// + /// createClusterBackup + /// + /// + /// Create new vzdump backup job. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterBackup(CreateClusterBackupRequest? createClusterBackupRequest = default(CreateClusterBackupRequest?), int operationIndex = 0); + + /// + /// createClusterBackup + /// + /// + /// Create new vzdump backup job. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterBackupWithHttpInfo(CreateClusterBackupRequest? createClusterBackupRequest = default(CreateClusterBackupRequest?), int operationIndex = 0); + /// + /// createClusterBulkactionGuestMigrate + /// + /// + /// Bulk migrate all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterBulkactionGuestStart200Response + CreateClusterBulkactionGuestStart200Response CreateClusterBulkactionGuestMigrate(CreateClusterBulkactionGuestMigrateRequest? createClusterBulkactionGuestMigrateRequest = default(CreateClusterBulkactionGuestMigrateRequest?), int operationIndex = 0); + + /// + /// createClusterBulkactionGuestMigrate + /// + /// + /// Bulk migrate all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterBulkactionGuestStart200Response + ApiResponse CreateClusterBulkactionGuestMigrateWithHttpInfo(CreateClusterBulkactionGuestMigrateRequest? createClusterBulkactionGuestMigrateRequest = default(CreateClusterBulkactionGuestMigrateRequest?), int operationIndex = 0); + /// + /// createClusterBulkactionGuestShutdown + /// + /// + /// Bulk shutdown all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterBulkactionGuestStart200Response + CreateClusterBulkactionGuestStart200Response CreateClusterBulkactionGuestShutdown(CreateClusterBulkactionGuestShutdownRequest? createClusterBulkactionGuestShutdownRequest = default(CreateClusterBulkactionGuestShutdownRequest?), int operationIndex = 0); + + /// + /// createClusterBulkactionGuestShutdown + /// + /// + /// Bulk shutdown all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterBulkactionGuestStart200Response + ApiResponse CreateClusterBulkactionGuestShutdownWithHttpInfo(CreateClusterBulkactionGuestShutdownRequest? createClusterBulkactionGuestShutdownRequest = default(CreateClusterBulkactionGuestShutdownRequest?), int operationIndex = 0); + /// + /// createClusterBulkactionGuestStart + /// + /// + /// Bulk start or resume all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterBulkactionGuestStart200Response + CreateClusterBulkactionGuestStart200Response CreateClusterBulkactionGuestStart(CreateClusterBulkactionGuestStartRequest? createClusterBulkactionGuestStartRequest = default(CreateClusterBulkactionGuestStartRequest?), int operationIndex = 0); + + /// + /// createClusterBulkactionGuestStart + /// + /// + /// Bulk start or resume all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterBulkactionGuestStart200Response + ApiResponse CreateClusterBulkactionGuestStartWithHttpInfo(CreateClusterBulkactionGuestStartRequest? createClusterBulkactionGuestStartRequest = default(CreateClusterBulkactionGuestStartRequest?), int operationIndex = 0); + /// + /// createClusterBulkactionGuestSuspend + /// + /// + /// Bulk suspend all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterBulkactionGuestStart200Response + CreateClusterBulkactionGuestStart200Response CreateClusterBulkactionGuestSuspend(CreateClusterBulkactionGuestSuspendRequest? createClusterBulkactionGuestSuspendRequest = default(CreateClusterBulkactionGuestSuspendRequest?), int operationIndex = 0); + + /// + /// createClusterBulkactionGuestSuspend + /// + /// + /// Bulk suspend all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterBulkactionGuestStart200Response + ApiResponse CreateClusterBulkactionGuestSuspendWithHttpInfo(CreateClusterBulkactionGuestSuspendRequest? createClusterBulkactionGuestSuspendRequest = default(CreateClusterBulkactionGuestSuspendRequest?), int operationIndex = 0); + /// + /// createClusterConfig + /// + /// + /// Generate new cluster configuration. If no links given, default to local IP address as link0. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterConfig(CreateClusterConfigRequest? createClusterConfigRequest = default(CreateClusterConfigRequest?), int operationIndex = 0); + + /// + /// createClusterConfig + /// + /// + /// Generate new cluster configuration. If no links given, default to local IP address as link0. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterConfigWithHttpInfo(CreateClusterConfigRequest? createClusterConfigRequest = default(CreateClusterConfigRequest?), int operationIndex = 0); + /// + /// createClusterConfigJoin + /// + /// + /// Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterConfigJoin(CreateClusterConfigJoinRequest? createClusterConfigJoinRequest = default(CreateClusterConfigJoinRequest?), int operationIndex = 0); + + /// + /// createClusterConfigJoin + /// + /// + /// Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterConfigJoinWithHttpInfo(CreateClusterConfigJoinRequest? createClusterConfigJoinRequest = default(CreateClusterConfigJoinRequest?), int operationIndex = 0); + /// + /// createClusterConfigNodesSingle + /// + /// + /// Adds a node to the cluster configuration. This call is for internal use. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterConfigNodesSingle200Response + CreateClusterConfigNodesSingle200Response CreateClusterConfigNodesSingle(string node, CreateClusterConfigNodesSingleRequest? createClusterConfigNodesSingleRequest = default(CreateClusterConfigNodesSingleRequest?), int operationIndex = 0); + + /// + /// createClusterConfigNodesSingle + /// + /// + /// Adds a node to the cluster configuration. This call is for internal use. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterConfigNodesSingle200Response + ApiResponse CreateClusterConfigNodesSingleWithHttpInfo(string node, CreateClusterConfigNodesSingleRequest? createClusterConfigNodesSingleRequest = default(CreateClusterConfigNodesSingleRequest?), int operationIndex = 0); + /// + /// createClusterFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterFirewallAliases(CreateClusterFirewallAliasesRequest? createClusterFirewallAliasesRequest = default(CreateClusterFirewallAliasesRequest?), int operationIndex = 0); + + /// + /// createClusterFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterFirewallAliasesWithHttpInfo(CreateClusterFirewallAliasesRequest? createClusterFirewallAliasesRequest = default(CreateClusterFirewallAliasesRequest?), int operationIndex = 0); + /// + /// createClusterFirewallGroup + /// + /// + /// Create new security group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterFirewallGroup(CreateClusterFirewallGroupRequest? createClusterFirewallGroupRequest = default(CreateClusterFirewallGroupRequest?), int operationIndex = 0); + + /// + /// createClusterFirewallGroup + /// + /// + /// Create new security group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterFirewallGroupWithHttpInfo(CreateClusterFirewallGroupRequest? createClusterFirewallGroupRequest = default(CreateClusterFirewallGroupRequest?), int operationIndex = 0); + /// + /// createClusterFirewallIPSet + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterFirewallIPSet(CreateClusterFirewallIPSetRequest? createClusterFirewallIPSetRequest = default(CreateClusterFirewallIPSetRequest?), int operationIndex = 0); + + /// + /// createClusterFirewallIPSet + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterFirewallIPSetWithHttpInfo(CreateClusterFirewallIPSetRequest? createClusterFirewallIPSetRequest = default(CreateClusterFirewallIPSetRequest?), int operationIndex = 0); + /// + /// createClusterHaGroups + /// + /// + /// Create a new HA group. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterHaGroups(CreateClusterHaGroupsRequest? createClusterHaGroupsRequest = default(CreateClusterHaGroupsRequest?), int operationIndex = 0); + + /// + /// createClusterHaGroups + /// + /// + /// Create a new HA group. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterHaGroupsWithHttpInfo(CreateClusterHaGroupsRequest? createClusterHaGroupsRequest = default(CreateClusterHaGroupsRequest?), int operationIndex = 0); + /// + /// createClusterHaResources + /// + /// + /// Create a new HA resource. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterHaResources(CreateClusterHaResourcesRequest? createClusterHaResourcesRequest = default(CreateClusterHaResourcesRequest?), int operationIndex = 0); + + /// + /// createClusterHaResources + /// + /// + /// Create a new HA resource. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterHaResourcesWithHttpInfo(CreateClusterHaResourcesRequest? createClusterHaResourcesRequest = default(CreateClusterHaResourcesRequest?), int operationIndex = 0); + /// + /// createClusterHaResourcesSingleMigrate + /// + /// + /// Request resource migration (online) to another node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// CreateClusterHaResourcesSingleMigrate200Response + CreateClusterHaResourcesSingleMigrate200Response CreateClusterHaResourcesSingleMigrate(string sid, CreateClusterHaResourcesSingleMigrateRequest? createClusterHaResourcesSingleMigrateRequest = default(CreateClusterHaResourcesSingleMigrateRequest?), int operationIndex = 0); + + /// + /// createClusterHaResourcesSingleMigrate + /// + /// + /// Request resource migration (online) to another node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterHaResourcesSingleMigrate200Response + ApiResponse CreateClusterHaResourcesSingleMigrateWithHttpInfo(string sid, CreateClusterHaResourcesSingleMigrateRequest? createClusterHaResourcesSingleMigrateRequest = default(CreateClusterHaResourcesSingleMigrateRequest?), int operationIndex = 0); + /// + /// createClusterHaResourcesSingleRelocate + /// + /// + /// Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// CreateClusterHaResourcesSingleRelocate200Response + CreateClusterHaResourcesSingleRelocate200Response CreateClusterHaResourcesSingleRelocate(string sid, CreateClusterHaResourcesSingleRelocateRequest? createClusterHaResourcesSingleRelocateRequest = default(CreateClusterHaResourcesSingleRelocateRequest?), int operationIndex = 0); + + /// + /// createClusterHaResourcesSingleRelocate + /// + /// + /// Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterHaResourcesSingleRelocate200Response + ApiResponse CreateClusterHaResourcesSingleRelocateWithHttpInfo(string sid, CreateClusterHaResourcesSingleRelocateRequest? createClusterHaResourcesSingleRelocateRequest = default(CreateClusterHaResourcesSingleRelocateRequest?), int operationIndex = 0); + /// + /// createClusterHaRules + /// + /// + /// Create HA rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterHaRules(CreateClusterHaRulesRequest? createClusterHaRulesRequest = default(CreateClusterHaRulesRequest?), int operationIndex = 0); + + /// + /// createClusterHaRules + /// + /// + /// Create HA rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterHaRulesWithHttpInfo(CreateClusterHaRulesRequest? createClusterHaRulesRequest = default(CreateClusterHaRulesRequest?), int operationIndex = 0); + /// + /// createClusterJobsRealmsyncSingle + /// + /// + /// Create new realm-sync job. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterJobsRealmsyncSingle(string id, CreateClusterJobsRealmsyncSingleRequest? createClusterJobsRealmsyncSingleRequest = default(CreateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0); + + /// + /// createClusterJobsRealmsyncSingle + /// + /// + /// Create new realm-sync job. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterJobsRealmsyncSingleWithHttpInfo(string id, CreateClusterJobsRealmsyncSingleRequest? createClusterJobsRealmsyncSingleRequest = default(CreateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0); + /// + /// createClusterMappingDir + /// + /// + /// Create a new directory mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterMappingDir(CreateClusterMappingDirRequest? createClusterMappingDirRequest = default(CreateClusterMappingDirRequest?), int operationIndex = 0); + + /// + /// createClusterMappingDir + /// + /// + /// Create a new directory mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterMappingDirWithHttpInfo(CreateClusterMappingDirRequest? createClusterMappingDirRequest = default(CreateClusterMappingDirRequest?), int operationIndex = 0); + /// + /// createClusterMappingPci + /// + /// + /// Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterMappingPci(CreateClusterMappingPciRequest? createClusterMappingPciRequest = default(CreateClusterMappingPciRequest?), int operationIndex = 0); + + /// + /// createClusterMappingPci + /// + /// + /// Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterMappingPciWithHttpInfo(CreateClusterMappingPciRequest? createClusterMappingPciRequest = default(CreateClusterMappingPciRequest?), int operationIndex = 0); + /// + /// createClusterMappingUsb + /// + /// + /// Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterMappingUsb(CreateClusterMappingUsbRequest? createClusterMappingUsbRequest = default(CreateClusterMappingUsbRequest?), int operationIndex = 0); + + /// + /// createClusterMappingUsb + /// + /// + /// Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterMappingUsbWithHttpInfo(CreateClusterMappingUsbRequest? createClusterMappingUsbRequest = default(CreateClusterMappingUsbRequest?), int operationIndex = 0); + /// + /// createClusterMetricsServerSingle + /// + /// + /// Create a new external metric server config + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterMetricsServerSingle(string id, CreateClusterMetricsServerSingleRequest? createClusterMetricsServerSingleRequest = default(CreateClusterMetricsServerSingleRequest?), int operationIndex = 0); + + /// + /// createClusterMetricsServerSingle + /// + /// + /// Create a new external metric server config + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterMetricsServerSingleWithHttpInfo(string id, CreateClusterMetricsServerSingleRequest? createClusterMetricsServerSingleRequest = default(CreateClusterMetricsServerSingleRequest?), int operationIndex = 0); + /// + /// createClusterNotificationsEndpointsGotify + /// + /// + /// Create a new gotify endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterNotificationsEndpointsGotify(CreateClusterNotificationsEndpointsGotifyRequest? createClusterNotificationsEndpointsGotifyRequest = default(CreateClusterNotificationsEndpointsGotifyRequest?), int operationIndex = 0); + + /// + /// createClusterNotificationsEndpointsGotify + /// + /// + /// Create a new gotify endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterNotificationsEndpointsGotifyWithHttpInfo(CreateClusterNotificationsEndpointsGotifyRequest? createClusterNotificationsEndpointsGotifyRequest = default(CreateClusterNotificationsEndpointsGotifyRequest?), int operationIndex = 0); + /// + /// createClusterNotificationsEndpointsSendmail + /// + /// + /// Create a new sendmail endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterNotificationsEndpointsSendmail(CreateClusterNotificationsEndpointsSendmailRequest? createClusterNotificationsEndpointsSendmailRequest = default(CreateClusterNotificationsEndpointsSendmailRequest?), int operationIndex = 0); + + /// + /// createClusterNotificationsEndpointsSendmail + /// + /// + /// Create a new sendmail endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterNotificationsEndpointsSendmailWithHttpInfo(CreateClusterNotificationsEndpointsSendmailRequest? createClusterNotificationsEndpointsSendmailRequest = default(CreateClusterNotificationsEndpointsSendmailRequest?), int operationIndex = 0); + /// + /// createClusterNotificationsEndpointsSmtp + /// + /// + /// Create a new smtp endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterNotificationsEndpointsSmtp(CreateClusterNotificationsEndpointsSmtpRequest? createClusterNotificationsEndpointsSmtpRequest = default(CreateClusterNotificationsEndpointsSmtpRequest?), int operationIndex = 0); + + /// + /// createClusterNotificationsEndpointsSmtp + /// + /// + /// Create a new smtp endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterNotificationsEndpointsSmtpWithHttpInfo(CreateClusterNotificationsEndpointsSmtpRequest? createClusterNotificationsEndpointsSmtpRequest = default(CreateClusterNotificationsEndpointsSmtpRequest?), int operationIndex = 0); + /// + /// createClusterNotificationsEndpointsWebhook + /// + /// + /// Create a new webhook endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterNotificationsEndpointsWebhook(CreateClusterNotificationsEndpointsWebhookRequest? createClusterNotificationsEndpointsWebhookRequest = default(CreateClusterNotificationsEndpointsWebhookRequest?), int operationIndex = 0); + + /// + /// createClusterNotificationsEndpointsWebhook + /// + /// + /// Create a new webhook endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterNotificationsEndpointsWebhookWithHttpInfo(CreateClusterNotificationsEndpointsWebhookRequest? createClusterNotificationsEndpointsWebhookRequest = default(CreateClusterNotificationsEndpointsWebhookRequest?), int operationIndex = 0); + /// + /// createClusterNotificationsMatchers + /// + /// + /// Create a new matcher + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterNotificationsMatchers(CreateClusterNotificationsMatchersRequest? createClusterNotificationsMatchersRequest = default(CreateClusterNotificationsMatchersRequest?), int operationIndex = 0); + + /// + /// createClusterNotificationsMatchers + /// + /// + /// Create a new matcher + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterNotificationsMatchersWithHttpInfo(CreateClusterNotificationsMatchersRequest? createClusterNotificationsMatchersRequest = default(CreateClusterNotificationsMatchersRequest?), int operationIndex = 0); + /// + /// createClusterNotificationsTargetsSingleTest + /// + /// + /// Send a test notification to a provided target. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterNotificationsTargetsSingleTest(string name, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createClusterNotificationsTargetsSingleTest + /// + /// + /// Send a test notification to a provided target. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterNotificationsTargetsSingleTestWithHttpInfo(string name, Object? body = default(Object?), int operationIndex = 0); + /// + /// createClusterReplication + /// + /// + /// Create a new replication job + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterReplication(CreateClusterReplicationRequest? createClusterReplicationRequest = default(CreateClusterReplicationRequest?), int operationIndex = 0); + + /// + /// createClusterReplication + /// + /// + /// Create a new replication job + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterReplicationWithHttpInfo(CreateClusterReplicationRequest? createClusterReplicationRequest = default(CreateClusterReplicationRequest?), int operationIndex = 0); + /// + /// createClusterSDNController + /// + /// + /// Create a new sdn controller object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSDNController(CreateClusterSDNControllerRequest? createClusterSDNControllerRequest = default(CreateClusterSDNControllerRequest?), int operationIndex = 0); + + /// + /// createClusterSDNController + /// + /// + /// Create a new sdn controller object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSDNControllerWithHttpInfo(CreateClusterSDNControllerRequest? createClusterSDNControllerRequest = default(CreateClusterSDNControllerRequest?), int operationIndex = 0); + /// + /// createClusterSDNVnet + /// + /// + /// Create a new sdn vnet object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSDNVnet(CreateClusterSDNVnetRequest? createClusterSDNVnetRequest = default(CreateClusterSDNVnetRequest?), int operationIndex = 0); + + /// + /// createClusterSDNVnet + /// + /// + /// Create a new sdn vnet object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSDNVnetWithHttpInfo(CreateClusterSDNVnetRequest? createClusterSDNVnetRequest = default(CreateClusterSDNVnetRequest?), int operationIndex = 0); + /// + /// createClusterSDNZone + /// + /// + /// Create a new sdn zone object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSDNZone(CreateClusterSDNZoneRequest? createClusterSDNZoneRequest = default(CreateClusterSDNZoneRequest?), int operationIndex = 0); + + /// + /// createClusterSDNZone + /// + /// + /// Create a new sdn zone object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSDNZoneWithHttpInfo(CreateClusterSDNZoneRequest? createClusterSDNZoneRequest = default(CreateClusterSDNZoneRequest?), int operationIndex = 0); + /// + /// createClusterSdnDns + /// + /// + /// Create a new sdn dns object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnDns(CreateClusterSdnDnsRequest? createClusterSdnDnsRequest = default(CreateClusterSdnDnsRequest?), int operationIndex = 0); + + /// + /// createClusterSdnDns + /// + /// + /// Create a new sdn dns object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnDnsWithHttpInfo(CreateClusterSdnDnsRequest? createClusterSdnDnsRequest = default(CreateClusterSdnDnsRequest?), int operationIndex = 0); + /// + /// createClusterSdnFabricsFabric + /// + /// + /// Add a fabric + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnFabricsFabric(CreateClusterSdnFabricsFabricRequest? createClusterSdnFabricsFabricRequest = default(CreateClusterSdnFabricsFabricRequest?), int operationIndex = 0); + + /// + /// createClusterSdnFabricsFabric + /// + /// + /// Add a fabric + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnFabricsFabricWithHttpInfo(CreateClusterSdnFabricsFabricRequest? createClusterSdnFabricsFabricRequest = default(CreateClusterSdnFabricsFabricRequest?), int operationIndex = 0); + /// + /// createClusterSdnFabricsNodeSingle + /// + /// + /// Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnFabricsNodeSingle(string fabricId, CreateClusterSdnFabricsNodeSingleRequest? createClusterSdnFabricsNodeSingleRequest = default(CreateClusterSdnFabricsNodeSingleRequest?), int operationIndex = 0); + + /// + /// createClusterSdnFabricsNodeSingle + /// + /// + /// Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnFabricsNodeSingleWithHttpInfo(string fabricId, CreateClusterSdnFabricsNodeSingleRequest? createClusterSdnFabricsNodeSingleRequest = default(CreateClusterSdnFabricsNodeSingleRequest?), int operationIndex = 0); + /// + /// createClusterSdnIpams + /// + /// + /// Create a new sdn ipam object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnIpams(CreateClusterSdnIpamsRequest? createClusterSdnIpamsRequest = default(CreateClusterSdnIpamsRequest?), int operationIndex = 0); + + /// + /// createClusterSdnIpams + /// + /// + /// Create a new sdn ipam object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnIpamsWithHttpInfo(CreateClusterSdnIpamsRequest? createClusterSdnIpamsRequest = default(CreateClusterSdnIpamsRequest?), int operationIndex = 0); + /// + /// createClusterSdnLock + /// + /// + /// Acquire global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnLock(CreateClusterSdnLockRequest? createClusterSdnLockRequest = default(CreateClusterSdnLockRequest?), int operationIndex = 0); + + /// + /// createClusterSdnLock + /// + /// + /// Acquire global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnLockWithHttpInfo(CreateClusterSdnLockRequest? createClusterSdnLockRequest = default(CreateClusterSdnLockRequest?), int operationIndex = 0); + /// + /// createClusterSdnRollback + /// + /// + /// Rollback pending changes to SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnRollback(CreateClusterSdnRollbackRequest? createClusterSdnRollbackRequest = default(CreateClusterSdnRollbackRequest?), int operationIndex = 0); + + /// + /// createClusterSdnRollback + /// + /// + /// Rollback pending changes to SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnRollbackWithHttpInfo(CreateClusterSdnRollbackRequest? createClusterSdnRollbackRequest = default(CreateClusterSdnRollbackRequest?), int operationIndex = 0); + /// + /// createClusterSdnVnetsSingleFirewallRules + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnVnetsSingleFirewallRules(string vnet, CreateClusterSdnVnetsSingleFirewallRulesRequest? createClusterSdnVnetsSingleFirewallRulesRequest = default(CreateClusterSdnVnetsSingleFirewallRulesRequest?), int operationIndex = 0); + + /// + /// createClusterSdnVnetsSingleFirewallRules + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnVnetsSingleFirewallRulesWithHttpInfo(string vnet, CreateClusterSdnVnetsSingleFirewallRulesRequest? createClusterSdnVnetsSingleFirewallRulesRequest = default(CreateClusterSdnVnetsSingleFirewallRulesRequest?), int operationIndex = 0); + /// + /// createClusterSdnVnetsSingleIps + /// + /// + /// Create IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnVnetsSingleIps(string vnet, CreateClusterSdnVnetsSingleIpsRequest? createClusterSdnVnetsSingleIpsRequest = default(CreateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0); + + /// + /// createClusterSdnVnetsSingleIps + /// + /// + /// Create IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnVnetsSingleIpsWithHttpInfo(string vnet, CreateClusterSdnVnetsSingleIpsRequest? createClusterSdnVnetsSingleIpsRequest = default(CreateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0); + /// + /// createClusterSdnVnetsSingleSubnets + /// + /// + /// Create a new sdn subnet object. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateClusterSdnVnetsSingleSubnets(string vnet, CreateClusterSdnVnetsSingleSubnetsRequest? createClusterSdnVnetsSingleSubnetsRequest = default(CreateClusterSdnVnetsSingleSubnetsRequest?), int operationIndex = 0); + + /// + /// createClusterSdnVnetsSingleSubnets + /// + /// + /// Create a new sdn subnet object. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateClusterSdnVnetsSingleSubnetsWithHttpInfo(string vnet, CreateClusterSdnVnetsSingleSubnetsRequest? createClusterSdnVnetsSingleSubnetsRequest = default(CreateClusterSdnVnetsSingleSubnetsRequest?), int operationIndex = 0); + /// + /// createNodeFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodeFirewallRule(string node, CreateNodeFirewallRuleRequest? createNodeFirewallRuleRequest = default(CreateNodeFirewallRuleRequest?), int operationIndex = 0); + + /// + /// createNodeFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodeFirewallRuleWithHttpInfo(string node, CreateNodeFirewallRuleRequest? createNodeFirewallRuleRequest = default(CreateNodeFirewallRuleRequest?), int operationIndex = 0); + /// + /// createNodesSingleAplinfo + /// + /// + /// Download appliance templates. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleAplinfo(string node, CreateNodesSingleAplinfoRequest? createNodesSingleAplinfoRequest = default(CreateNodesSingleAplinfoRequest?), int operationIndex = 0); + + /// + /// createNodesSingleAplinfo + /// + /// + /// Download appliance templates. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleAplinfoWithHttpInfo(string node, CreateNodesSingleAplinfoRequest? createNodesSingleAplinfoRequest = default(CreateNodesSingleAplinfoRequest?), int operationIndex = 0); + /// + /// createNodesSingleAptRepositories + /// + /// + /// Change the properties of a repository. Currently only allows enabling/disabling. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleAptRepositories(string node, CreateNodesSingleAptRepositoriesRequest? createNodesSingleAptRepositoriesRequest = default(CreateNodesSingleAptRepositoriesRequest?), int operationIndex = 0); + + /// + /// createNodesSingleAptRepositories + /// + /// + /// Change the properties of a repository. Currently only allows enabling/disabling. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleAptRepositoriesWithHttpInfo(string node, CreateNodesSingleAptRepositoriesRequest? createNodesSingleAptRepositoriesRequest = default(CreateNodesSingleAptRepositoriesRequest?), int operationIndex = 0); + /// + /// createNodesSingleAptUpdate + /// + /// + /// This is used to resynchronize the package index files from their sources (apt-get update). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleAptUpdate(string node, CreateNodesSingleAptUpdateRequest? createNodesSingleAptUpdateRequest = default(CreateNodesSingleAptUpdateRequest?), int operationIndex = 0); + + /// + /// createNodesSingleAptUpdate + /// + /// + /// This is used to resynchronize the package index files from their sources (apt-get update). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleAptUpdateWithHttpInfo(string node, CreateNodesSingleAptUpdateRequest? createNodesSingleAptUpdateRequest = default(CreateNodesSingleAptUpdateRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephFsSingle + /// + /// + /// Create a Ceph filesystem + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephFsSingle(string name, string node, CreateNodesSingleCephFsSingleRequest? createNodesSingleCephFsSingleRequest = default(CreateNodesSingleCephFsSingleRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephFsSingle + /// + /// + /// Create a Ceph filesystem + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephFsSingleWithHttpInfo(string name, string node, CreateNodesSingleCephFsSingleRequest? createNodesSingleCephFsSingleRequest = default(CreateNodesSingleCephFsSingleRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephInit + /// + /// + /// Create initial ceph default configuration and setup symlinks. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephInit(string node, CreateNodesSingleCephInitRequest? createNodesSingleCephInitRequest = default(CreateNodesSingleCephInitRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephInit + /// + /// + /// Create initial ceph default configuration and setup symlinks. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephInitWithHttpInfo(string node, CreateNodesSingleCephInitRequest? createNodesSingleCephInitRequest = default(CreateNodesSingleCephInitRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephMdsSingle + /// + /// + /// Create Ceph Metadata Server (MDS) + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephMdsSingle(string name, string node, CreateNodesSingleCephMdsSingleRequest? createNodesSingleCephMdsSingleRequest = default(CreateNodesSingleCephMdsSingleRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephMdsSingle + /// + /// + /// Create Ceph Metadata Server (MDS) + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephMdsSingleWithHttpInfo(string name, string node, CreateNodesSingleCephMdsSingleRequest? createNodesSingleCephMdsSingleRequest = default(CreateNodesSingleCephMdsSingleRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephMgrSingle + /// + /// + /// Create Ceph Manager + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephMgrSingle(string id, string node, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleCephMgrSingle + /// + /// + /// Create Ceph Manager + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephMgrSingleWithHttpInfo(string id, string node, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleCephMonSingle + /// + /// + /// Create Ceph Monitor and Manager + /// + /// Thrown when fails to make API call + /// monid + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephMonSingle(string monid, string node, CreateNodesSingleCephMonSingleRequest? createNodesSingleCephMonSingleRequest = default(CreateNodesSingleCephMonSingleRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephMonSingle + /// + /// + /// Create Ceph Monitor and Manager + /// + /// Thrown when fails to make API call + /// monid + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephMonSingleWithHttpInfo(string monid, string node, CreateNodesSingleCephMonSingleRequest? createNodesSingleCephMonSingleRequest = default(CreateNodesSingleCephMonSingleRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephOsd + /// + /// + /// Create OSD + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephOsd(string node, CreateNodesSingleCephOsdRequest? createNodesSingleCephOsdRequest = default(CreateNodesSingleCephOsdRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephOsd + /// + /// + /// Create OSD + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephOsdWithHttpInfo(string node, CreateNodesSingleCephOsdRequest? createNodesSingleCephOsdRequest = default(CreateNodesSingleCephOsdRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephOsdSingleIn + /// + /// + /// ceph osd in + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephOsdSingleIn(string node, int osdid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleCephOsdSingleIn + /// + /// + /// ceph osd in + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephOsdSingleInWithHttpInfo(string node, int osdid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleCephOsdSingleOut + /// + /// + /// ceph osd out + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephOsdSingleOut(string node, int osdid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleCephOsdSingleOut + /// + /// + /// ceph osd out + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephOsdSingleOutWithHttpInfo(string node, int osdid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleCephOsdSingleScrub + /// + /// + /// Instruct the OSD to scrub. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephOsdSingleScrub(string node, int osdid, CreateNodesSingleCephOsdSingleScrubRequest? createNodesSingleCephOsdSingleScrubRequest = default(CreateNodesSingleCephOsdSingleScrubRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephOsdSingleScrub + /// + /// + /// Instruct the OSD to scrub. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephOsdSingleScrubWithHttpInfo(string node, int osdid, CreateNodesSingleCephOsdSingleScrubRequest? createNodesSingleCephOsdSingleScrubRequest = default(CreateNodesSingleCephOsdSingleScrubRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephPool + /// + /// + /// Create Ceph pool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephPool(string node, CreateNodesSingleCephPoolRequest? createNodesSingleCephPoolRequest = default(CreateNodesSingleCephPoolRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephPool + /// + /// + /// Create Ceph pool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephPoolWithHttpInfo(string node, CreateNodesSingleCephPoolRequest? createNodesSingleCephPoolRequest = default(CreateNodesSingleCephPoolRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephRestart + /// + /// + /// Restart ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephRestart(string node, CreateNodesSingleCephRestartRequest? createNodesSingleCephRestartRequest = default(CreateNodesSingleCephRestartRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephRestart + /// + /// + /// Restart ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephRestartWithHttpInfo(string node, CreateNodesSingleCephRestartRequest? createNodesSingleCephRestartRequest = default(CreateNodesSingleCephRestartRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephStart + /// + /// + /// Start ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephStart(string node, CreateNodesSingleCephStartRequest? createNodesSingleCephStartRequest = default(CreateNodesSingleCephStartRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephStart + /// + /// + /// Start ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephStartWithHttpInfo(string node, CreateNodesSingleCephStartRequest? createNodesSingleCephStartRequest = default(CreateNodesSingleCephStartRequest?), int operationIndex = 0); + /// + /// createNodesSingleCephStop + /// + /// + /// Stop ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCephStop(string node, CreateNodesSingleCephStopRequest? createNodesSingleCephStopRequest = default(CreateNodesSingleCephStopRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCephStop + /// + /// + /// Stop ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCephStopWithHttpInfo(string node, CreateNodesSingleCephStopRequest? createNodesSingleCephStopRequest = default(CreateNodesSingleCephStopRequest?), int operationIndex = 0); + /// + /// createNodesSingleCertificatesAcmeCertificate + /// + /// + /// Order a new certificate from ACME-compatible CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleCertificatesAcmeCertificate(string node, CreateNodesSingleCertificatesAcmeCertificateRequest? createNodesSingleCertificatesAcmeCertificateRequest = default(CreateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCertificatesAcmeCertificate + /// + /// + /// Order a new certificate from ACME-compatible CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleCertificatesAcmeCertificateWithHttpInfo(string node, CreateNodesSingleCertificatesAcmeCertificateRequest? createNodesSingleCertificatesAcmeCertificateRequest = default(CreateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0); + /// + /// createNodesSingleCertificatesCustom + /// + /// + /// Upload or update custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleCertificatesCustom200Response + CreateNodesSingleCertificatesCustom200Response CreateNodesSingleCertificatesCustom(string node, CreateNodesSingleCertificatesCustomRequest? createNodesSingleCertificatesCustomRequest = default(CreateNodesSingleCertificatesCustomRequest?), int operationIndex = 0); + + /// + /// createNodesSingleCertificatesCustom + /// + /// + /// Upload or update custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleCertificatesCustom200Response + ApiResponse CreateNodesSingleCertificatesCustomWithHttpInfo(string node, CreateNodesSingleCertificatesCustomRequest? createNodesSingleCertificatesCustomRequest = default(CreateNodesSingleCertificatesCustomRequest?), int operationIndex = 0); + /// + /// createNodesSingleDisksDirectory + /// + /// + /// Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleDisksDirectory(string node, CreateNodesSingleDisksDirectoryRequest? createNodesSingleDisksDirectoryRequest = default(CreateNodesSingleDisksDirectoryRequest?), int operationIndex = 0); + + /// + /// createNodesSingleDisksDirectory + /// + /// + /// Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleDisksDirectoryWithHttpInfo(string node, CreateNodesSingleDisksDirectoryRequest? createNodesSingleDisksDirectoryRequest = default(CreateNodesSingleDisksDirectoryRequest?), int operationIndex = 0); + /// + /// createNodesSingleDisksInitgpt + /// + /// + /// Initialize Disk with GPT + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleDisksInitgpt(string node, CreateNodesSingleDisksInitgptRequest? createNodesSingleDisksInitgptRequest = default(CreateNodesSingleDisksInitgptRequest?), int operationIndex = 0); + + /// + /// createNodesSingleDisksInitgpt + /// + /// + /// Initialize Disk with GPT + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleDisksInitgptWithHttpInfo(string node, CreateNodesSingleDisksInitgptRequest? createNodesSingleDisksInitgptRequest = default(CreateNodesSingleDisksInitgptRequest?), int operationIndex = 0); + /// + /// createNodesSingleDisksLvm + /// + /// + /// Create an LVM Volume Group + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleDisksLvm(string node, CreateNodesSingleDisksLvmRequest? createNodesSingleDisksLvmRequest = default(CreateNodesSingleDisksLvmRequest?), int operationIndex = 0); + + /// + /// createNodesSingleDisksLvm + /// + /// + /// Create an LVM Volume Group + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleDisksLvmWithHttpInfo(string node, CreateNodesSingleDisksLvmRequest? createNodesSingleDisksLvmRequest = default(CreateNodesSingleDisksLvmRequest?), int operationIndex = 0); + /// + /// createNodesSingleDisksLvmthin + /// + /// + /// Create an LVM thinpool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleDisksLvmthin(string node, CreateNodesSingleDisksLvmthinRequest? createNodesSingleDisksLvmthinRequest = default(CreateNodesSingleDisksLvmthinRequest?), int operationIndex = 0); + + /// + /// createNodesSingleDisksLvmthin + /// + /// + /// Create an LVM thinpool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleDisksLvmthinWithHttpInfo(string node, CreateNodesSingleDisksLvmthinRequest? createNodesSingleDisksLvmthinRequest = default(CreateNodesSingleDisksLvmthinRequest?), int operationIndex = 0); + /// + /// createNodesSingleDisksZfs + /// + /// + /// Create a ZFS pool. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleDisksZfs(string node, CreateNodesSingleDisksZfsRequest? createNodesSingleDisksZfsRequest = default(CreateNodesSingleDisksZfsRequest?), int operationIndex = 0); + + /// + /// createNodesSingleDisksZfs + /// + /// + /// Create a ZFS pool. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleDisksZfsWithHttpInfo(string node, CreateNodesSingleDisksZfsRequest? createNodesSingleDisksZfsRequest = default(CreateNodesSingleDisksZfsRequest?), int operationIndex = 0); + /// + /// createNodesSingleExecute + /// + /// + /// Execute multiple commands in order, root only. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response CreateNodesSingleExecute(string node, CreateNodesSingleExecuteRequest? createNodesSingleExecuteRequest = default(CreateNodesSingleExecuteRequest?), int operationIndex = 0); + + /// + /// createNodesSingleExecute + /// + /// + /// Execute multiple commands in order, root only. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse CreateNodesSingleExecuteWithHttpInfo(string node, CreateNodesSingleExecuteRequest? createNodesSingleExecuteRequest = default(CreateNodesSingleExecuteRequest?), int operationIndex = 0); + /// + /// createNodesSingleHosts + /// + /// + /// Write /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleHosts(string node, CreateNodesSingleHostsRequest? createNodesSingleHostsRequest = default(CreateNodesSingleHostsRequest?), int operationIndex = 0); + + /// + /// createNodesSingleHosts + /// + /// + /// Write /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleHostsWithHttpInfo(string node, CreateNodesSingleHostsRequest? createNodesSingleHostsRequest = default(CreateNodesSingleHostsRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxc + /// + /// + /// Create or restore a container. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxc(string node, CreateNodesSingleLxcRequest? createNodesSingleLxcRequest = default(CreateNodesSingleLxcRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxc + /// + /// + /// Create or restore a container. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcWithHttpInfo(string node, CreateNodesSingleLxcRequest? createNodesSingleLxcRequest = default(CreateNodesSingleLxcRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleClone + /// + /// + /// Create a container clone/copy + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleClone(string node, int vmid, CreateNodesSingleLxcSingleCloneRequest? createNodesSingleLxcSingleCloneRequest = default(CreateNodesSingleLxcSingleCloneRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleClone + /// + /// + /// Create a container clone/copy + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleCloneWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleCloneRequest? createNodesSingleLxcSingleCloneRequest = default(CreateNodesSingleLxcSingleCloneRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleFirewallAliases(string node, int vmid, CreateNodesSingleLxcSingleFirewallAliasesRequest? createNodesSingleLxcSingleFirewallAliasesRequest = default(CreateNodesSingleLxcSingleFirewallAliasesRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleFirewallAliasesWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleFirewallAliasesRequest? createNodesSingleLxcSingleFirewallAliasesRequest = default(CreateNodesSingleLxcSingleFirewallAliasesRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleFirewallIpset + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleFirewallIpset(string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetRequest? createNodesSingleLxcSingleFirewallIpsetRequest = default(CreateNodesSingleLxcSingleFirewallIpsetRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleFirewallIpset + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleFirewallIpsetWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetRequest? createNodesSingleLxcSingleFirewallIpsetRequest = default(CreateNodesSingleLxcSingleFirewallIpsetRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleFirewallIpsetSingle(string name, string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetSingleRequest? createNodesSingleLxcSingleFirewallIpsetSingleRequest = default(CreateNodesSingleLxcSingleFirewallIpsetSingleRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(string name, string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetSingleRequest? createNodesSingleLxcSingleFirewallIpsetSingleRequest = default(CreateNodesSingleLxcSingleFirewallIpsetSingleRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleFirewallRules + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleFirewallRules(string node, int vmid, CreateNodesSingleLxcSingleFirewallRulesRequest? createNodesSingleLxcSingleFirewallRulesRequest = default(CreateNodesSingleLxcSingleFirewallRulesRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleFirewallRules + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleFirewallRulesWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleFirewallRulesRequest? createNodesSingleLxcSingleFirewallRulesRequest = default(CreateNodesSingleLxcSingleFirewallRulesRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleMigrate + /// + /// + /// Migrate the container to another node. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleLxcSingleMigrate(string node, int vmid, CreateNodesSingleLxcSingleMigrateRequest? createNodesSingleLxcSingleMigrateRequest = default(CreateNodesSingleLxcSingleMigrateRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleMigrate + /// + /// + /// Migrate the container to another node. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateNodesSingleLxcSingleMigrateWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleMigrateRequest? createNodesSingleLxcSingleMigrateRequest = default(CreateNodesSingleLxcSingleMigrateRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleMovevolume + /// + /// + /// Move a rootfs-/mp-volume to a different storage or to a different container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleMovevolume(string node, int vmid, CreateNodesSingleLxcSingleMovevolumeRequest? createNodesSingleLxcSingleMovevolumeRequest = default(CreateNodesSingleLxcSingleMovevolumeRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleMovevolume + /// + /// + /// Move a rootfs-/mp-volume to a different storage or to a different container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleMovevolumeWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleMovevolumeRequest? createNodesSingleLxcSingleMovevolumeRequest = default(CreateNodesSingleLxcSingleMovevolumeRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleMtunnel + /// + /// + /// Migration tunnel endpoint - only for internal use by CT migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleMtunnel(string node, int vmid, CreateNodesSingleLxcSingleMtunnelRequest? createNodesSingleLxcSingleMtunnelRequest = default(CreateNodesSingleLxcSingleMtunnelRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleMtunnel + /// + /// + /// Migration tunnel endpoint - only for internal use by CT migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleMtunnelWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleMtunnelRequest? createNodesSingleLxcSingleMtunnelRequest = default(CreateNodesSingleLxcSingleMtunnelRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleRemotemigrate + /// + /// + /// Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleLxcSingleRemotemigrate(string node, int vmid, CreateNodesSingleLxcSingleRemotemigrateRequest? createNodesSingleLxcSingleRemotemigrateRequest = default(CreateNodesSingleLxcSingleRemotemigrateRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleRemotemigrate + /// + /// + /// Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateNodesSingleLxcSingleRemotemigrateWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleRemotemigrateRequest? createNodesSingleLxcSingleRemotemigrateRequest = default(CreateNodesSingleLxcSingleRemotemigrateRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleSnapshot + /// + /// + /// Snapshot a container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleLxcSingleSnapshot(string node, int vmid, CreateNodesSingleLxcSingleSnapshotRequest? createNodesSingleLxcSingleSnapshotRequest = default(CreateNodesSingleLxcSingleSnapshotRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleSnapshot + /// + /// + /// Snapshot a container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateNodesSingleLxcSingleSnapshotWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleSnapshotRequest? createNodesSingleLxcSingleSnapshotRequest = default(CreateNodesSingleLxcSingleSnapshotRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleSnapshotSingleRollback + /// + /// + /// Rollback LXC state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleLxcSingleSnapshotSingleRollback(string node, string snapname, int vmid, CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest? createNodesSingleLxcSingleSnapshotSingleRollbackRequest = default(CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleSnapshotSingleRollback + /// + /// + /// Rollback LXC state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateNodesSingleLxcSingleSnapshotSingleRollbackWithHttpInfo(string node, string snapname, int vmid, CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest? createNodesSingleLxcSingleSnapshotSingleRollbackRequest = default(CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleSpiceproxy + /// + /// + /// Returns a SPICE configuration to connect to the CT. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleSpiceproxy200Response + CreateNodesSingleQemuSingleSpiceproxy200Response CreateNodesSingleLxcSingleSpiceproxy(string node, int vmid, CreateNodesSingleLxcSingleSpiceproxyRequest? createNodesSingleLxcSingleSpiceproxyRequest = default(CreateNodesSingleLxcSingleSpiceproxyRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleSpiceproxy + /// + /// + /// Returns a SPICE configuration to connect to the CT. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleSpiceproxy200Response + ApiResponse CreateNodesSingleLxcSingleSpiceproxyWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleSpiceproxyRequest? createNodesSingleLxcSingleSpiceproxyRequest = default(CreateNodesSingleLxcSingleSpiceproxyRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleStatusReboot + /// + /// + /// Reboot the container by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusReboot(string node, int vmid, CreateNodesSingleLxcSingleStatusRebootRequest? createNodesSingleLxcSingleStatusRebootRequest = default(CreateNodesSingleLxcSingleStatusRebootRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleStatusReboot + /// + /// + /// Reboot the container by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleStatusRebootWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleStatusRebootRequest? createNodesSingleLxcSingleStatusRebootRequest = default(CreateNodesSingleLxcSingleStatusRebootRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleStatusResume + /// + /// + /// Resume the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusResume(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleStatusResume + /// + /// + /// Resume the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleStatusResumeWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleStatusShutdown + /// + /// + /// Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusShutdown(string node, int vmid, CreateNodesSingleLxcSingleStatusShutdownRequest? createNodesSingleLxcSingleStatusShutdownRequest = default(CreateNodesSingleLxcSingleStatusShutdownRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleStatusShutdown + /// + /// + /// Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleStatusShutdownWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleStatusShutdownRequest? createNodesSingleLxcSingleStatusShutdownRequest = default(CreateNodesSingleLxcSingleStatusShutdownRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleStatusStart + /// + /// + /// Start the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusStart(string node, int vmid, CreateNodesSingleLxcSingleStatusStartRequest? createNodesSingleLxcSingleStatusStartRequest = default(CreateNodesSingleLxcSingleStatusStartRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleStatusStart + /// + /// + /// Start the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleStatusStartWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleStatusStartRequest? createNodesSingleLxcSingleStatusStartRequest = default(CreateNodesSingleLxcSingleStatusStartRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleStatusStop + /// + /// + /// Stop the container. This will abruptly stop all processes running in the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusStop(string node, int vmid, CreateNodesSingleLxcSingleStatusStopRequest? createNodesSingleLxcSingleStatusStopRequest = default(CreateNodesSingleLxcSingleStatusStopRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleStatusStop + /// + /// + /// Stop the container. This will abruptly stop all processes running in the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleStatusStopWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleStatusStopRequest? createNodesSingleLxcSingleStatusStopRequest = default(CreateNodesSingleLxcSingleStatusStopRequest?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleStatusSuspend + /// + /// + /// Suspend the container. This is experimental. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusSuspend(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleStatusSuspend + /// + /// + /// Suspend the container. This is experimental. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleStatusSuspendWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleTemplate + /// + /// + /// Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleTemplate(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleTemplate + /// + /// + /// Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleTemplateWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleTermproxy + /// + /// + /// Creates a TCP proxy connection. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleTermproxy(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleTermproxy + /// + /// + /// Creates a TCP proxy connection. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleTermproxyWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleLxcSingleVncproxy + /// + /// + /// Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleLxcSingleVncproxy(string node, int vmid, CreateNodesSingleLxcSingleVncproxyRequest? createNodesSingleLxcSingleVncproxyRequest = default(CreateNodesSingleLxcSingleVncproxyRequest?), int operationIndex = 0); + + /// + /// createNodesSingleLxcSingleVncproxy + /// + /// + /// Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleLxcSingleVncproxyWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleVncproxyRequest? createNodesSingleLxcSingleVncproxyRequest = default(CreateNodesSingleLxcSingleVncproxyRequest?), int operationIndex = 0); + /// + /// createNodesSingleMigrateall + /// + /// + /// Migrate all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleMigrateall(string node, CreateNodesSingleMigrateallRequest? createNodesSingleMigrateallRequest = default(CreateNodesSingleMigrateallRequest?), int operationIndex = 0); + + /// + /// createNodesSingleMigrateall + /// + /// + /// Migrate all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleMigrateallWithHttpInfo(string node, CreateNodesSingleMigrateallRequest? createNodesSingleMigrateallRequest = default(CreateNodesSingleMigrateallRequest?), int operationIndex = 0); + /// + /// createNodesSingleNetwork + /// + /// + /// Create network device configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleNetwork(string node, CreateNodesSingleNetworkRequest? createNodesSingleNetworkRequest = default(CreateNodesSingleNetworkRequest?), int operationIndex = 0); + + /// + /// createNodesSingleNetwork + /// + /// + /// Create network device configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleNetworkWithHttpInfo(string node, CreateNodesSingleNetworkRequest? createNodesSingleNetworkRequest = default(CreateNodesSingleNetworkRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgent + /// + /// + /// Execute QEMU Guest Agent commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgent(string node, int vmid, CreateNodesSingleQemuSingleAgentRequest? createNodesSingleQemuSingleAgentRequest = default(CreateNodesSingleQemuSingleAgentRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgent + /// + /// + /// Execute QEMU Guest Agent commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleAgentRequest? createNodesSingleQemuSingleAgentRequest = default(CreateNodesSingleQemuSingleAgentRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentExec + /// + /// + /// Executes the given command in the vm via the guest-agent and returns an object with the pid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgentExec200Response + CreateNodesSingleQemuSingleAgentExec200Response CreateNodesSingleQemuSingleAgentExec(string node, int vmid, CreateNodesSingleQemuSingleAgentExecRequest? createNodesSingleQemuSingleAgentExecRequest = default(CreateNodesSingleQemuSingleAgentExecRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentExec + /// + /// + /// Executes the given command in the vm via the guest-agent and returns an object with the pid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgentExec200Response + ApiResponse CreateNodesSingleQemuSingleAgentExecWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleAgentExecRequest? createNodesSingleQemuSingleAgentExecRequest = default(CreateNodesSingleQemuSingleAgentExecRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentFilewrite + /// + /// + /// Writes the given file via guest agent. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleQemuSingleAgentFilewrite(string node, int vmid, CreateNodesSingleQemuSingleAgentFilewriteRequest? createNodesSingleQemuSingleAgentFilewriteRequest = default(CreateNodesSingleQemuSingleAgentFilewriteRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentFilewrite + /// + /// + /// Writes the given file via guest agent. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleQemuSingleAgentFilewriteWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleAgentFilewriteRequest? createNodesSingleQemuSingleAgentFilewriteRequest = default(CreateNodesSingleQemuSingleAgentFilewriteRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentFsfreezefreeze + /// + /// + /// Execute fsfreeze-freeze. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentFsfreezefreeze(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentFsfreezefreeze + /// + /// + /// Execute fsfreeze-freeze. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentFsfreezefreezeWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentFsfreezestatus + /// + /// + /// Execute fsfreeze-status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentFsfreezestatus(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentFsfreezestatus + /// + /// + /// Execute fsfreeze-status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentFsfreezestatusWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentFsfreezethaw + /// + /// + /// Execute fsfreeze-thaw. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentFsfreezethaw(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentFsfreezethaw + /// + /// + /// Execute fsfreeze-thaw. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentFsfreezethawWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentFstrim + /// + /// + /// Execute fstrim. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentFstrim(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentFstrim + /// + /// + /// Execute fstrim. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentFstrimWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentPing + /// + /// + /// Execute ping. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentPing(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentPing + /// + /// + /// Execute ping. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentPingWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentSetuserpassword + /// + /// + /// Sets the password for the given user to the given password + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentSetuserpassword(string node, int vmid, CreateNodesSingleQemuSingleAgentSetuserpasswordRequest? createNodesSingleQemuSingleAgentSetuserpasswordRequest = default(CreateNodesSingleQemuSingleAgentSetuserpasswordRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentSetuserpassword + /// + /// + /// Sets the password for the given user to the given password + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentSetuserpasswordWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleAgentSetuserpasswordRequest? createNodesSingleQemuSingleAgentSetuserpasswordRequest = default(CreateNodesSingleQemuSingleAgentSetuserpasswordRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentShutdown + /// + /// + /// Execute shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentShutdown(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentShutdown + /// + /// + /// Execute shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentShutdownWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentSuspenddisk + /// + /// + /// Execute suspend-disk. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentSuspenddisk(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentSuspenddisk + /// + /// + /// Execute suspend-disk. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentSuspenddiskWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentSuspendhybrid + /// + /// + /// Execute suspend-hybrid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentSuspendhybrid(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentSuspendhybrid + /// + /// + /// Execute suspend-hybrid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentSuspendhybridWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleAgentSuspendram + /// + /// + /// Execute suspend-ram. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentSuspendram(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleAgentSuspendram + /// + /// + /// Execute suspend-ram. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse CreateNodesSingleQemuSingleAgentSuspendramWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleDbusvmstate + /// + /// + /// Control the dbus-vmstate helper for a given running VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleQemuSingleDbusvmstate(string node, int vmid, CreateNodesSingleQemuSingleDbusvmstateRequest? createNodesSingleQemuSingleDbusvmstateRequest = default(CreateNodesSingleQemuSingleDbusvmstateRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleDbusvmstate + /// + /// + /// Control the dbus-vmstate helper for a given running VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleQemuSingleDbusvmstateWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleDbusvmstateRequest? createNodesSingleQemuSingleDbusvmstateRequest = default(CreateNodesSingleQemuSingleDbusvmstateRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleQemuSingleFirewallAliases(string node, int vmid, CreateNodesSingleQemuSingleFirewallAliasesRequest? createNodesSingleQemuSingleFirewallAliasesRequest = default(CreateNodesSingleQemuSingleFirewallAliasesRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleQemuSingleFirewallAliasesWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleFirewallAliasesRequest? createNodesSingleQemuSingleFirewallAliasesRequest = default(CreateNodesSingleQemuSingleFirewallAliasesRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleMigrate + /// + /// + /// Migrate virtual machine. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleQemuSingleMigrate(string node, int vmid, CreateNodesSingleQemuSingleMigrateRequest? createNodesSingleQemuSingleMigrateRequest = default(CreateNodesSingleQemuSingleMigrateRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleMigrate + /// + /// + /// Migrate virtual machine. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateNodesSingleQemuSingleMigrateWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleMigrateRequest? createNodesSingleQemuSingleMigrateRequest = default(CreateNodesSingleQemuSingleMigrateRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleMonitor + /// + /// + /// Execute QEMU monitor commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleQemuSingleMonitor(string node, int vmid, CreateNodesSingleQemuSingleMonitorRequest? createNodesSingleQemuSingleMonitorRequest = default(CreateNodesSingleQemuSingleMonitorRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleMonitor + /// + /// + /// Execute QEMU monitor commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleQemuSingleMonitorWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleMonitorRequest? createNodesSingleQemuSingleMonitorRequest = default(CreateNodesSingleQemuSingleMonitorRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleMovedisk + /// + /// + /// Move volume to different storage or to a different VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleQemuSingleMovedisk(string node, int vmid, CreateNodesSingleQemuSingleMovediskRequest? createNodesSingleQemuSingleMovediskRequest = default(CreateNodesSingleQemuSingleMovediskRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleMovedisk + /// + /// + /// Move volume to different storage or to a different VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateNodesSingleQemuSingleMovediskWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleMovediskRequest? createNodesSingleQemuSingleMovediskRequest = default(CreateNodesSingleQemuSingleMovediskRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleMtunnel + /// + /// + /// Migration tunnel endpoint - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleQemuSingleMtunnel(string node, int vmid, CreateNodesSingleQemuSingleMtunnelRequest? createNodesSingleQemuSingleMtunnelRequest = default(CreateNodesSingleQemuSingleMtunnelRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleMtunnel + /// + /// + /// Migration tunnel endpoint - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleQemuSingleMtunnelWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleMtunnelRequest? createNodesSingleQemuSingleMtunnelRequest = default(CreateNodesSingleQemuSingleMtunnelRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleRemotemigrate + /// + /// + /// Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleQemuSingleRemotemigrate(string node, int vmid, CreateNodesSingleQemuSingleRemotemigrateRequest? createNodesSingleQemuSingleRemotemigrateRequest = default(CreateNodesSingleQemuSingleRemotemigrateRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleRemotemigrate + /// + /// + /// Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateNodesSingleQemuSingleRemotemigrateWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleRemotemigrateRequest? createNodesSingleQemuSingleRemotemigrateRequest = default(CreateNodesSingleQemuSingleRemotemigrateRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleSpiceproxy + /// + /// + /// Returns a SPICE configuration to connect to the VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleSpiceproxy200Response + CreateNodesSingleQemuSingleSpiceproxy200Response CreateNodesSingleQemuSingleSpiceproxy(string node, int vmid, CreateNodesSingleQemuSingleSpiceproxyRequest? createNodesSingleQemuSingleSpiceproxyRequest = default(CreateNodesSingleQemuSingleSpiceproxyRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleSpiceproxy + /// + /// + /// Returns a SPICE configuration to connect to the VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleSpiceproxy200Response + ApiResponse CreateNodesSingleQemuSingleSpiceproxyWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleSpiceproxyRequest? createNodesSingleQemuSingleSpiceproxyRequest = default(CreateNodesSingleQemuSingleSpiceproxyRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleTemplate + /// + /// + /// Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleQemuSingleTemplate(string node, int vmid, CreateNodesSingleQemuSingleTemplateRequest? createNodesSingleQemuSingleTemplateRequest = default(CreateNodesSingleQemuSingleTemplateRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleTemplate + /// + /// + /// Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateNodesSingleQemuSingleTemplateWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleTemplateRequest? createNodesSingleQemuSingleTemplateRequest = default(CreateNodesSingleQemuSingleTemplateRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleTermproxy + /// + /// + /// Creates a TCP proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleQemuSingleTermproxy(string node, int vmid, CreateNodesSingleQemuSingleTermproxyRequest? createNodesSingleQemuSingleTermproxyRequest = default(CreateNodesSingleQemuSingleTermproxyRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleTermproxy + /// + /// + /// Creates a TCP proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleQemuSingleTermproxyWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleTermproxyRequest? createNodesSingleQemuSingleTermproxyRequest = default(CreateNodesSingleQemuSingleTermproxyRequest?), int operationIndex = 0); + /// + /// createNodesSingleQemuSingleVncproxy + /// + /// + /// Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleQemuSingleVncproxy(string node, int vmid, CreateNodesSingleQemuSingleVncproxyRequest? createNodesSingleQemuSingleVncproxyRequest = default(CreateNodesSingleQemuSingleVncproxyRequest?), int operationIndex = 0); + + /// + /// createNodesSingleQemuSingleVncproxy + /// + /// + /// Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleQemuSingleVncproxyWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleVncproxyRequest? createNodesSingleQemuSingleVncproxyRequest = default(CreateNodesSingleQemuSingleVncproxyRequest?), int operationIndex = 0); + /// + /// createNodesSingleReplicationSingleSchedulenow + /// + /// + /// Schedule replication job to start as soon as possible. + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleReplicationSingleSchedulenow(string id, string node, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleReplicationSingleSchedulenow + /// + /// + /// Schedule replication job to start as soon as possible. + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleReplicationSingleSchedulenowWithHttpInfo(string id, string node, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleServicesSingleReload + /// + /// + /// Reload service. Falls back to restart if service cannot be reloaded. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleServicesSingleReload(string node, string service, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleServicesSingleReload + /// + /// + /// Reload service. Falls back to restart if service cannot be reloaded. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleServicesSingleReloadWithHttpInfo(string node, string service, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleServicesSingleRestart + /// + /// + /// Hard restart service. Use reload if you want to reduce interruptions. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleServicesSingleRestart(string node, string service, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleServicesSingleRestart + /// + /// + /// Hard restart service. Use reload if you want to reduce interruptions. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleServicesSingleRestartWithHttpInfo(string node, string service, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleServicesSingleStart + /// + /// + /// Start service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleServicesSingleStart(string node, string service, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleServicesSingleStart + /// + /// + /// Start service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleServicesSingleStartWithHttpInfo(string node, string service, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleServicesSingleStop + /// + /// + /// Stop service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleServicesSingleStop(string node, string service, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleServicesSingleStop + /// + /// + /// Stop service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleServicesSingleStopWithHttpInfo(string node, string service, Object? body = default(Object?), int operationIndex = 0); + /// + /// createNodesSingleSpiceshell + /// + /// + /// Creates a SPICE shell. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleSpiceproxy200Response + CreateNodesSingleQemuSingleSpiceproxy200Response CreateNodesSingleSpiceshell(string node, CreateNodesSingleSpiceshellRequest? createNodesSingleSpiceshellRequest = default(CreateNodesSingleSpiceshellRequest?), int operationIndex = 0); + + /// + /// createNodesSingleSpiceshell + /// + /// + /// Creates a SPICE shell. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleSpiceproxy200Response + ApiResponse CreateNodesSingleSpiceshellWithHttpInfo(string node, CreateNodesSingleSpiceshellRequest? createNodesSingleSpiceshellRequest = default(CreateNodesSingleSpiceshellRequest?), int operationIndex = 0); + /// + /// createNodesSingleStartall + /// + /// + /// Start all VMs and containers located on this node (by default only those with onboot=1). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleStartall(string node, CreateNodesSingleStartallRequest? createNodesSingleStartallRequest = default(CreateNodesSingleStartallRequest?), int operationIndex = 0); + + /// + /// createNodesSingleStartall + /// + /// + /// Start all VMs and containers located on this node (by default only those with onboot=1). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleStartallWithHttpInfo(string node, CreateNodesSingleStartallRequest? createNodesSingleStartallRequest = default(CreateNodesSingleStartallRequest?), int operationIndex = 0); + /// + /// createNodesSingleStatus + /// + /// + /// Reboot or shutdown a node. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleStatus(string node, CreateNodesSingleStatusRequest? createNodesSingleStatusRequest = default(CreateNodesSingleStatusRequest?), int operationIndex = 0); + + /// + /// createNodesSingleStatus + /// + /// + /// Reboot or shutdown a node. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleStatusWithHttpInfo(string node, CreateNodesSingleStatusRequest? createNodesSingleStatusRequest = default(CreateNodesSingleStatusRequest?), int operationIndex = 0); + /// + /// createNodesSingleStopall + /// + /// + /// Stop all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleStopall(string node, CreateNodesSingleStopallRequest? createNodesSingleStopallRequest = default(CreateNodesSingleStopallRequest?), int operationIndex = 0); + + /// + /// createNodesSingleStopall + /// + /// + /// Stop all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleStopallWithHttpInfo(string node, CreateNodesSingleStopallRequest? createNodesSingleStopallRequest = default(CreateNodesSingleStopallRequest?), int operationIndex = 0); + /// + /// createNodesSingleStorageSingleContent + /// + /// + /// Allocate disk images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleStorageSingleContent200Response + CreateNodesSingleStorageSingleContent200Response CreateNodesSingleStorageSingleContent(string node, string storage, CreateNodesSingleStorageSingleContentRequest? createNodesSingleStorageSingleContentRequest = default(CreateNodesSingleStorageSingleContentRequest?), int operationIndex = 0); + + /// + /// createNodesSingleStorageSingleContent + /// + /// + /// Allocate disk images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleStorageSingleContent200Response + ApiResponse CreateNodesSingleStorageSingleContentWithHttpInfo(string node, string storage, CreateNodesSingleStorageSingleContentRequest? createNodesSingleStorageSingleContentRequest = default(CreateNodesSingleStorageSingleContentRequest?), int operationIndex = 0); + /// + /// createNodesSingleStorageSingleContentSingle + /// + /// + /// Copy a volume. This is experimental code - do not use. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleStorageSingleContentSingle(string node, string storage, string volume, CreateNodesSingleStorageSingleContentSingleRequest? createNodesSingleStorageSingleContentSingleRequest = default(CreateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0); + + /// + /// createNodesSingleStorageSingleContentSingle + /// + /// + /// Copy a volume. This is experimental code - do not use. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleStorageSingleContentSingleWithHttpInfo(string node, string storage, string volume, CreateNodesSingleStorageSingleContentSingleRequest? createNodesSingleStorageSingleContentSingleRequest = default(CreateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0); + /// + /// createNodesSingleStorageSingleDownloadurl + /// + /// + /// Download templates, ISO images, OVAs and VM images by using an URL. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleStorageSingleDownloadurl(string node, string storage, CreateNodesSingleStorageSingleDownloadurlRequest? createNodesSingleStorageSingleDownloadurlRequest = default(CreateNodesSingleStorageSingleDownloadurlRequest?), int operationIndex = 0); + + /// + /// createNodesSingleStorageSingleDownloadurl + /// + /// + /// Download templates, ISO images, OVAs and VM images by using an URL. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleStorageSingleDownloadurlWithHttpInfo(string node, string storage, CreateNodesSingleStorageSingleDownloadurlRequest? createNodesSingleStorageSingleDownloadurlRequest = default(CreateNodesSingleStorageSingleDownloadurlRequest?), int operationIndex = 0); + /// + /// createNodesSingleStorageSingleOciregistrypull + /// + /// + /// Pull an OCI image from a registry. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleStorageSingleOciregistrypull(string node, string storage, CreateNodesSingleStorageSingleOciregistrypullRequest? createNodesSingleStorageSingleOciregistrypullRequest = default(CreateNodesSingleStorageSingleOciregistrypullRequest?), int operationIndex = 0); + + /// + /// createNodesSingleStorageSingleOciregistrypull + /// + /// + /// Pull an OCI image from a registry. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleStorageSingleOciregistrypullWithHttpInfo(string node, string storage, CreateNodesSingleStorageSingleOciregistrypullRequest? createNodesSingleStorageSingleOciregistrypullRequest = default(CreateNodesSingleStorageSingleOciregistrypullRequest?), int operationIndex = 0); + /// + /// createNodesSingleStorageSingleUpload + /// + /// + /// Upload templates, ISO images, OVAs and VM images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleStorageSingleUpload(string node, string storage, CreateNodesSingleStorageSingleUploadRequest? createNodesSingleStorageSingleUploadRequest = default(CreateNodesSingleStorageSingleUploadRequest?), int operationIndex = 0); + + /// + /// createNodesSingleStorageSingleUpload + /// + /// + /// Upload templates, ISO images, OVAs and VM images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleStorageSingleUploadWithHttpInfo(string node, string storage, CreateNodesSingleStorageSingleUploadRequest? createNodesSingleStorageSingleUploadRequest = default(CreateNodesSingleStorageSingleUploadRequest?), int operationIndex = 0); + /// + /// createNodesSingleSubscription + /// + /// + /// Update subscription info. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleSubscription(string node, CreateNodesSingleSubscriptionRequest? createNodesSingleSubscriptionRequest = default(CreateNodesSingleSubscriptionRequest?), int operationIndex = 0); + + /// + /// createNodesSingleSubscription + /// + /// + /// Update subscription info. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleSubscriptionWithHttpInfo(string node, CreateNodesSingleSubscriptionRequest? createNodesSingleSubscriptionRequest = default(CreateNodesSingleSubscriptionRequest?), int operationIndex = 0); + /// + /// createNodesSingleSuspendall + /// + /// + /// Suspend all VMs. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleSuspendall(string node, CreateNodesSingleSuspendallRequest? createNodesSingleSuspendallRequest = default(CreateNodesSingleSuspendallRequest?), int operationIndex = 0); + + /// + /// createNodesSingleSuspendall + /// + /// + /// Suspend all VMs. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleSuspendallWithHttpInfo(string node, CreateNodesSingleSuspendallRequest? createNodesSingleSuspendallRequest = default(CreateNodesSingleSuspendallRequest?), int operationIndex = 0); + /// + /// createNodesSingleTermproxy + /// + /// + /// Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleTermproxy(string node, CreateNodesSingleTermproxyRequest? createNodesSingleTermproxyRequest = default(CreateNodesSingleTermproxyRequest?), int operationIndex = 0); + + /// + /// createNodesSingleTermproxy + /// + /// + /// Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleTermproxyWithHttpInfo(string node, CreateNodesSingleTermproxyRequest? createNodesSingleTermproxyRequest = default(CreateNodesSingleTermproxyRequest?), int operationIndex = 0); + /// + /// createNodesSingleVncshell + /// + /// + /// Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleVncshell(string node, CreateNodesSingleVncshellRequest? createNodesSingleVncshellRequest = default(CreateNodesSingleVncshellRequest?), int operationIndex = 0); + + /// + /// createNodesSingleVncshell + /// + /// + /// Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleVncshellWithHttpInfo(string node, CreateNodesSingleVncshellRequest? createNodesSingleVncshellRequest = default(CreateNodesSingleVncshellRequest?), int operationIndex = 0); + /// + /// createNodesSingleVzdump + /// + /// + /// Create backup. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateNodesSingleVzdump(string node, CreateNodesSingleVzdumpRequest? createNodesSingleVzdumpRequest = default(CreateNodesSingleVzdumpRequest?), int operationIndex = 0); + + /// + /// createNodesSingleVzdump + /// + /// + /// Create backup. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateNodesSingleVzdumpWithHttpInfo(string node, CreateNodesSingleVzdumpRequest? createNodesSingleVzdumpRequest = default(CreateNodesSingleVzdumpRequest?), int operationIndex = 0); + /// + /// createNodesSingleWakeonlan + /// + /// + /// Try to wake a node via 'wake on LAN' network packet. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleWakeonlan200Response + CreateNodesSingleWakeonlan200Response CreateNodesSingleWakeonlan(string node, Object? body = default(Object?), int operationIndex = 0); + + /// + /// createNodesSingleWakeonlan + /// + /// + /// Try to wake a node via 'wake on LAN' network packet. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleWakeonlan200Response + ApiResponse CreateNodesSingleWakeonlanWithHttpInfo(string node, Object? body = default(Object?), int operationIndex = 0); + /// + /// createPool + /// + /// + /// Create new pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreatePool(CreatePoolRequest? createPoolRequest = default(CreatePoolRequest?), int operationIndex = 0); + + /// + /// createPool + /// + /// + /// Create new pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreatePoolWithHttpInfo(CreatePoolRequest? createPoolRequest = default(CreatePoolRequest?), int operationIndex = 0); + /// + /// createStorage + /// + /// + /// Create a new storage. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateStorage200Response + CreateStorage200Response CreateStorage(CreateStorageRequest? createStorageRequest = default(CreateStorageRequest?), int operationIndex = 0); + + /// + /// createStorage + /// + /// + /// Create a new storage. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateStorage200Response + ApiResponse CreateStorageWithHttpInfo(CreateStorageRequest? createStorageRequest = default(CreateStorageRequest?), int operationIndex = 0); + /// + /// createVM + /// + /// + /// Create or restore a virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateVM(string node, CreateVMRequest? createVMRequest = default(CreateVMRequest?), int operationIndex = 0); + + /// + /// createVM + /// + /// + /// Create or restore a virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateVMWithHttpInfo(string node, CreateVMRequest? createVMRequest = default(CreateVMRequest?), int operationIndex = 0); + /// + /// createVMFirewallIPSet + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateVMFirewallIPSet(string node, int vmid, CreateVMFirewallIPSetRequest? createVMFirewallIPSetRequest = default(CreateVMFirewallIPSetRequest?), int operationIndex = 0); + + /// + /// createVMFirewallIPSet + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateVMFirewallIPSetWithHttpInfo(string node, int vmid, CreateVMFirewallIPSetRequest? createVMFirewallIPSetRequest = default(CreateVMFirewallIPSetRequest?), int operationIndex = 0); + /// + /// createVMFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response CreateVMFirewallRule(string node, int vmid, CreateVMFirewallRuleRequest? createVMFirewallRuleRequest = default(CreateVMFirewallRuleRequest?), int operationIndex = 0); + + /// + /// createVMFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse CreateVMFirewallRuleWithHttpInfo(string node, int vmid, CreateVMFirewallRuleRequest? createVMFirewallRuleRequest = default(CreateVMFirewallRuleRequest?), int operationIndex = 0); + /// + /// createVMSnapshot + /// + /// + /// Snapshot a VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response CreateVMSnapshot(string node, int vmid, CreateVMSnapshotRequest? createVMSnapshotRequest = default(CreateVMSnapshotRequest?), int operationIndex = 0); + + /// + /// createVMSnapshot + /// + /// + /// Snapshot a VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse CreateVMSnapshotWithHttpInfo(string node, int vmid, CreateVMSnapshotRequest? createVMSnapshotRequest = default(CreateVMSnapshotRequest?), int operationIndex = 0); + /// + /// deleteAccessDomainsSingle + /// + /// + /// Delete an authentication server. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteAccessDomainsSingle(string realm, int operationIndex = 0); + + /// + /// deleteAccessDomainsSingle + /// + /// + /// Delete an authentication server. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteAccessDomainsSingleWithHttpInfo(string realm, int operationIndex = 0); + /// + /// deleteAccessGroupsSingle + /// + /// + /// Delete group. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteAccessGroupsSingle(string groupid, int operationIndex = 0); + + /// + /// deleteAccessGroupsSingle + /// + /// + /// Delete group. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteAccessGroupsSingleWithHttpInfo(string groupid, int operationIndex = 0); + /// + /// deleteAccessRolesSingle + /// + /// + /// Delete role. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteAccessRolesSingle(string roleid, int operationIndex = 0); + + /// + /// deleteAccessRolesSingle + /// + /// + /// Delete role. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteAccessRolesSingleWithHttpInfo(string roleid, int operationIndex = 0); + /// + /// deleteAccessTfaSingleSingle + /// + /// + /// Delete a TFA entry by ID. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteAccessTfaSingleSingle(string id, string userid, int operationIndex = 0); + + /// + /// deleteAccessTfaSingleSingle + /// + /// + /// Delete a TFA entry by ID. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteAccessTfaSingleSingleWithHttpInfo(string id, string userid, int operationIndex = 0); + /// + /// deleteAccessUsersSingle + /// + /// + /// Delete user. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteAccessUsersSingle(string userid, int operationIndex = 0); + + /// + /// deleteAccessUsersSingle + /// + /// + /// Delete user. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteAccessUsersSingleWithHttpInfo(string userid, int operationIndex = 0); + /// + /// deleteAccessUsersSingleTokenSingle + /// + /// + /// Remove API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteAccessUsersSingleTokenSingle(string tokenid, string userid, int operationIndex = 0); + + /// + /// deleteAccessUsersSingleTokenSingle + /// + /// + /// Remove API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteAccessUsersSingleTokenSingleWithHttpInfo(string tokenid, string userid, int operationIndex = 0); + /// + /// deleteClusterAcmeAccountSingle + /// + /// + /// Deactivate existing ACME account at CA. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterAcmeAccountSingle(string name, int operationIndex = 0); + + /// + /// deleteClusterAcmeAccountSingle + /// + /// + /// Deactivate existing ACME account at CA. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterAcmeAccountSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// deleteClusterAcmePluginsSingle + /// + /// + /// Delete ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterAcmePluginsSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterAcmePluginsSingle + /// + /// + /// Delete ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterAcmePluginsSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterBackupSingle + /// + /// + /// Delete vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterBackupSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterBackupSingle + /// + /// + /// Delete vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterBackupSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterConfigNodesSingle + /// + /// + /// Removes a node from the cluster configuration. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterConfigNodesSingle(string node, int operationIndex = 0); + + /// + /// deleteClusterConfigNodesSingle + /// + /// + /// Removes a node from the cluster configuration. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterConfigNodesSingleWithHttpInfo(string node, int operationIndex = 0); + /// + /// deleteClusterFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterFirewallAliasesSingle(string name, int operationIndex = 0); + + /// + /// deleteClusterFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterFirewallAliasesSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// deleteClusterFirewallGroup + /// + /// + /// Delete security group. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterFirewallGroup(string group, int operationIndex = 0); + + /// + /// deleteClusterFirewallGroup + /// + /// + /// Delete security group. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterFirewallGroupWithHttpInfo(string group, int operationIndex = 0); + /// + /// deleteClusterFirewallIPSet + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterFirewallIPSet(string name, int operationIndex = 0); + + /// + /// deleteClusterFirewallIPSet + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterFirewallIPSetWithHttpInfo(string name, int operationIndex = 0); + /// + /// deleteClusterHaGroupsSingle + /// + /// + /// Delete ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterHaGroupsSingle(string group, int operationIndex = 0); + + /// + /// deleteClusterHaGroupsSingle + /// + /// + /// Delete ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterHaGroupsSingleWithHttpInfo(string group, int operationIndex = 0); + /// + /// deleteClusterHaResourcesSingle + /// + /// + /// Delete resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterHaResourcesSingle(string sid, int operationIndex = 0); + + /// + /// deleteClusterHaResourcesSingle + /// + /// + /// Delete resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterHaResourcesSingleWithHttpInfo(string sid, int operationIndex = 0); + /// + /// deleteClusterHaRulesSingle + /// + /// + /// Delete HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterHaRulesSingle(string rule, int operationIndex = 0); + + /// + /// deleteClusterHaRulesSingle + /// + /// + /// Delete HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterHaRulesSingleWithHttpInfo(string rule, int operationIndex = 0); + /// + /// deleteClusterJobsRealmsyncSingle + /// + /// + /// Delete realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterJobsRealmsyncSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterJobsRealmsyncSingle + /// + /// + /// Delete realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterJobsRealmsyncSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterMappingDirSingle + /// + /// + /// Remove directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterMappingDirSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterMappingDirSingle + /// + /// + /// Remove directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterMappingDirSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterMappingPciSingle + /// + /// + /// Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterMappingPciSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterMappingPciSingle + /// + /// + /// Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterMappingPciSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterMappingUsbSingle + /// + /// + /// Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterMappingUsbSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterMappingUsbSingle + /// + /// + /// Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterMappingUsbSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterMetricsServerSingle + /// + /// + /// Remove Metric server. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterMetricsServerSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterMetricsServerSingle + /// + /// + /// Remove Metric server. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterMetricsServerSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterNotificationsEndpointsGotifySingle + /// + /// + /// Remove gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterNotificationsEndpointsGotifySingle(string name, int operationIndex = 0); + + /// + /// deleteClusterNotificationsEndpointsGotifySingle + /// + /// + /// Remove gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterNotificationsEndpointsGotifySingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// deleteClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Remove sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterNotificationsEndpointsSendmailSingle(string name, int operationIndex = 0); + + /// + /// deleteClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Remove sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterNotificationsEndpointsSendmailSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// deleteClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Remove smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterNotificationsEndpointsSmtpSingle(string name, int operationIndex = 0); + + /// + /// deleteClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Remove smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterNotificationsEndpointsSmtpSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// deleteClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Remove webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterNotificationsEndpointsWebhookSingle(string name, int operationIndex = 0); + + /// + /// deleteClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Remove webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterNotificationsEndpointsWebhookSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// deleteClusterNotificationsMatchersSingle + /// + /// + /// Remove matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterNotificationsMatchersSingle(string name, int operationIndex = 0); + + /// + /// deleteClusterNotificationsMatchersSingle + /// + /// + /// Remove matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterNotificationsMatchersSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// deleteClusterReplicationSingle + /// + /// + /// Mark replication job for removal. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterReplicationSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterReplicationSingle + /// + /// + /// Mark replication job for removal. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterReplicationSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterSDNController + /// + /// + /// Delete sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSDNController(string controller, int operationIndex = 0); + + /// + /// deleteClusterSDNController + /// + /// + /// Delete sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSDNControllerWithHttpInfo(string controller, int operationIndex = 0); + /// + /// deleteClusterSDNVnet + /// + /// + /// Delete sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSDNVnet(string vnet, int operationIndex = 0); + + /// + /// deleteClusterSDNVnet + /// + /// + /// Delete sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSDNVnetWithHttpInfo(string vnet, int operationIndex = 0); + /// + /// deleteClusterSDNZone + /// + /// + /// Delete sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSDNZone(string zone, int operationIndex = 0); + + /// + /// deleteClusterSDNZone + /// + /// + /// Delete sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSDNZoneWithHttpInfo(string zone, int operationIndex = 0); + /// + /// deleteClusterSdnDnsSingle + /// + /// + /// Delete sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSdnDnsSingle(string dns, int operationIndex = 0); + + /// + /// deleteClusterSdnDnsSingle + /// + /// + /// Delete sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSdnDnsSingleWithHttpInfo(string dns, int operationIndex = 0); + /// + /// deleteClusterSdnFabricsFabricSingle + /// + /// + /// Add a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSdnFabricsFabricSingle(string id, int operationIndex = 0); + + /// + /// deleteClusterSdnFabricsFabricSingle + /// + /// + /// Add a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSdnFabricsFabricSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// deleteClusterSdnFabricsNodeSingleSingle + /// + /// + /// Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSdnFabricsNodeSingleSingle(string fabricId, string nodeId, int operationIndex = 0); + + /// + /// deleteClusterSdnFabricsNodeSingleSingle + /// + /// + /// Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSdnFabricsNodeSingleSingleWithHttpInfo(string fabricId, string nodeId, int operationIndex = 0); + /// + /// deleteClusterSdnIpamsSingle + /// + /// + /// Delete sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSdnIpamsSingle(string ipam, int operationIndex = 0); + + /// + /// deleteClusterSdnIpamsSingle + /// + /// + /// Delete sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSdnIpamsSingleWithHttpInfo(string ipam, int operationIndex = 0); + /// + /// deleteClusterSdnLock + /// + /// + /// Release global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSdnLock(int operationIndex = 0); + + /// + /// deleteClusterSdnLock + /// + /// + /// Release global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSdnLockWithHttpInfo(int operationIndex = 0); + /// + /// deleteClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSdnVnetsSingleFirewallRulesSingle(int pos, string vnet, int operationIndex = 0); + + /// + /// deleteClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(int pos, string vnet, int operationIndex = 0); + /// + /// deleteClusterSdnVnetsSingleIps + /// + /// + /// Delete IP Mappings in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSdnVnetsSingleIps(string vnet, int operationIndex = 0); + + /// + /// deleteClusterSdnVnetsSingleIps + /// + /// + /// Delete IP Mappings in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSdnVnetsSingleIpsWithHttpInfo(string vnet, int operationIndex = 0); + /// + /// deleteClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Delete sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteClusterSdnVnetsSingleSubnetsSingle(string subnet, string vnet, int operationIndex = 0); + + /// + /// deleteClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Delete sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(string subnet, string vnet, int operationIndex = 0); + /// + /// deleteNodeFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodeFirewallRule(string node, int pos, int operationIndex = 0); + + /// + /// deleteNodeFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodeFirewallRuleWithHttpInfo(string node, int pos, int operationIndex = 0); + /// + /// deleteNodesSingleCephMdsSingle + /// + /// + /// Destroy Ceph Metadata Server + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleCephMdsSingle(string name, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleCephMdsSingle + /// + /// + /// Destroy Ceph Metadata Server + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleCephMdsSingleWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// deleteNodesSingleCephMgrSingle + /// + /// + /// Destroy Ceph Manager. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleCephMgrSingle(string id, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleCephMgrSingle + /// + /// + /// Destroy Ceph Manager. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleCephMgrSingleWithHttpInfo(string id, string node, int operationIndex = 0); + /// + /// deleteNodesSingleCephMonSingle + /// + /// + /// Destroy Ceph Monitor and Manager. + /// + /// Thrown when fails to make API call + /// monid + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleCephMonSingle(string monid, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleCephMonSingle + /// + /// + /// Destroy Ceph Monitor and Manager. + /// + /// Thrown when fails to make API call + /// monid + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleCephMonSingleWithHttpInfo(string monid, string node, int operationIndex = 0); + /// + /// deleteNodesSingleCephOsdSingle + /// + /// + /// Destroy OSD + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleCephOsdSingle(string node, int osdid, int operationIndex = 0); + + /// + /// deleteNodesSingleCephOsdSingle + /// + /// + /// Destroy OSD + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleCephOsdSingleWithHttpInfo(string node, int osdid, int operationIndex = 0); + /// + /// deleteNodesSingleCephPoolSingle + /// + /// + /// Destroy pool + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleCephPoolSingle(string name, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleCephPoolSingle + /// + /// + /// Destroy pool + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleCephPoolSingleWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// deleteNodesSingleCertificatesAcmeCertificate + /// + /// + /// Revoke existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleCertificatesAcmeCertificate(string node, int operationIndex = 0); + + /// + /// deleteNodesSingleCertificatesAcmeCertificate + /// + /// + /// Revoke existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleCertificatesAcmeCertificateWithHttpInfo(string node, int operationIndex = 0); + /// + /// deleteNodesSingleCertificatesCustom + /// + /// + /// DELETE custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleCertificatesCustom(string node, int operationIndex = 0); + + /// + /// deleteNodesSingleCertificatesCustom + /// + /// + /// DELETE custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleCertificatesCustomWithHttpInfo(string node, int operationIndex = 0); + /// + /// deleteNodesSingleDisksDirectorySingle + /// + /// + /// Unmounts the storage and removes the mount unit. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleDisksDirectorySingle(string name, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleDisksDirectorySingle + /// + /// + /// Unmounts the storage and removes the mount unit. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleDisksDirectorySingleWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// deleteNodesSingleDisksLvmSingle + /// + /// + /// Remove an LVM Volume Group. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleDisksLvmSingle(string name, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleDisksLvmSingle + /// + /// + /// Remove an LVM Volume Group. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleDisksLvmSingleWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// deleteNodesSingleDisksLvmthinSingle + /// + /// + /// Remove an LVM thin pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleDisksLvmthinSingle(string name, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleDisksLvmthinSingle + /// + /// + /// Remove an LVM thin pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleDisksLvmthinSingleWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// deleteNodesSingleDisksZfsSingle + /// + /// + /// Destroy a ZFS pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleDisksZfsSingle(string name, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleDisksZfsSingle + /// + /// + /// Destroy a ZFS pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleDisksZfsSingleWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// deleteNodesSingleLxcSingle + /// + /// + /// Destroy the container (also delete all uses files). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleLxcSingle(string node, int vmid, int operationIndex = 0); + + /// + /// deleteNodesSingleLxcSingle + /// + /// + /// Destroy the container (also delete all uses files). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleLxcSingleWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// deleteNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleLxcSingleFirewallAliasesSingle(string name, string node, int vmid, int operationIndex = 0); + + /// + /// deleteNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0); + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleLxcSingleFirewallIpsetSingle(string name, string node, int vmid, int operationIndex = 0); + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0); + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle(string cidr, string name, string node, int vmid, int operationIndex = 0); + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(string cidr, string name, string node, int vmid, int operationIndex = 0); + /// + /// deleteNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleLxcSingleFirewallRulesSingle(string node, int pos, int vmid, int operationIndex = 0); + + /// + /// deleteNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(string node, int pos, int vmid, int operationIndex = 0); + /// + /// deleteNodesSingleLxcSingleSnapshotSingle + /// + /// + /// Delete a LXC snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response DeleteNodesSingleLxcSingleSnapshotSingle(string node, string snapname, int vmid, int operationIndex = 0); + + /// + /// deleteNodesSingleLxcSingleSnapshotSingle + /// + /// + /// Delete a LXC snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse DeleteNodesSingleLxcSingleSnapshotSingleWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0); + /// + /// deleteNodesSingleNetwork + /// + /// + /// Revert network configuration changes. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleNetwork(string node, int operationIndex = 0); + + /// + /// deleteNodesSingleNetwork + /// + /// + /// Revert network configuration changes. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleNetworkWithHttpInfo(string node, int operationIndex = 0); + /// + /// deleteNodesSingleNetworkSingle + /// + /// + /// Delete network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleNetworkSingle(string iface, string node, int operationIndex = 0); + + /// + /// deleteNodesSingleNetworkSingle + /// + /// + /// Delete network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleNetworkSingleWithHttpInfo(string iface, string node, int operationIndex = 0); + /// + /// deleteNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleQemuSingleFirewallAliasesSingle(string name, string node, int vmid, int operationIndex = 0); + + /// + /// deleteNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0); + /// + /// deleteNodesSingleStorageSingleContentSingle + /// + /// + /// Delete volume + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleStorageSingleContentSingle(string node, string storage, string volume, int operationIndex = 0); + + /// + /// deleteNodesSingleStorageSingleContentSingle + /// + /// + /// Delete volume + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleStorageSingleContentSingleWithHttpInfo(string node, string storage, string volume, int operationIndex = 0); + /// + /// deleteNodesSingleStorageSinglePrunebackups + /// + /// + /// Prune backups. Only those using the standard naming scheme are considered. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleStorageSinglePrunebackups(string node, string storage, int operationIndex = 0); + + /// + /// deleteNodesSingleStorageSinglePrunebackups + /// + /// + /// Prune backups. Only those using the standard naming scheme are considered. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleStorageSinglePrunebackupsWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// deleteNodesSingleSubscription + /// + /// + /// Delete subscription key of this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteNodesSingleSubscription(string node, int operationIndex = 0); + + /// + /// deleteNodesSingleSubscription + /// + /// + /// Delete subscription key of this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteNodesSingleSubscriptionWithHttpInfo(string node, int operationIndex = 0); + /// + /// deletePool + /// + /// + /// Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeletePool(string poolid, int operationIndex = 0); + + /// + /// deletePool + /// + /// + /// Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeletePoolWithHttpInfo(string poolid, int operationIndex = 0); + /// + /// deletePools + /// + /// + /// Delete pool. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeletePools(int operationIndex = 0); + + /// + /// deletePools + /// + /// + /// Delete pool. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeletePoolsWithHttpInfo(int operationIndex = 0); + /// + /// deleteStorageSingle + /// + /// + /// Delete storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteStorageSingle(string storage, int operationIndex = 0); + + /// + /// deleteStorageSingle + /// + /// + /// Delete storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteStorageSingleWithHttpInfo(string storage, int operationIndex = 0); + /// + /// deleteVM + /// + /// + /// Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteVM(string node, int vmid, int operationIndex = 0); + + /// + /// deleteVM + /// + /// + /// Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteVMWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// deleteVMFirewallIPSet + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteVMFirewallIPSet(string name, string node, int vmid, int operationIndex = 0); + + /// + /// deleteVMFirewallIPSet + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteVMFirewallIPSetWithHttpInfo(string name, string node, int vmid, int operationIndex = 0); + /// + /// deleteVMFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response DeleteVMFirewallRule(string node, int pos, int vmid, int operationIndex = 0); + + /// + /// deleteVMFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse DeleteVMFirewallRuleWithHttpInfo(string node, int pos, int vmid, int operationIndex = 0); + /// + /// deleteVMSnapshot + /// + /// + /// Delete a VM snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response DeleteVMSnapshot(string node, string snapname, int vmid, int operationIndex = 0); + + /// + /// deleteVMSnapshot + /// + /// + /// Delete a VM snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse DeleteVMSnapshotWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0); + /// + /// getAccess + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetAccess(int operationIndex = 0); + + /// + /// getAccess + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetAccessWithHttpInfo(int operationIndex = 0); + /// + /// getAccessAcl + /// + /// + /// Get Access Control List (ACLs). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessAcl200Response + GetAccessAcl200Response GetAccessAcl(int operationIndex = 0); + + /// + /// getAccessAcl + /// + /// + /// Get Access Control List (ACLs). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessAcl200Response + ApiResponse GetAccessAclWithHttpInfo(int operationIndex = 0); + /// + /// getAccessDomains + /// + /// + /// Authentication domain index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessDomains200Response + GetAccessDomains200Response GetAccessDomains(int operationIndex = 0); + + /// + /// getAccessDomains + /// + /// + /// Authentication domain index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessDomains200Response + ApiResponse GetAccessDomainsWithHttpInfo(int operationIndex = 0); + /// + /// getAccessDomainsSingle + /// + /// + /// Get auth server configuration. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetAccessDomainsSingle(string realm, int operationIndex = 0); + + /// + /// getAccessDomainsSingle + /// + /// + /// Get auth server configuration. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetAccessDomainsSingleWithHttpInfo(string realm, int operationIndex = 0); + /// + /// getAccessGroups + /// + /// + /// Group index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessGroups200Response + GetAccessGroups200Response GetAccessGroups(int operationIndex = 0); + + /// + /// getAccessGroups + /// + /// + /// Group index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessGroups200Response + ApiResponse GetAccessGroupsWithHttpInfo(int operationIndex = 0); + /// + /// getAccessGroupsSingle + /// + /// + /// Get group configuration. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// GetAccessGroupsSingle200Response + GetAccessGroupsSingle200Response GetAccessGroupsSingle(string groupid, int operationIndex = 0); + + /// + /// getAccessGroupsSingle + /// + /// + /// Get group configuration. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// ApiResponse of GetAccessGroupsSingle200Response + ApiResponse GetAccessGroupsSingleWithHttpInfo(string groupid, int operationIndex = 0); + /// + /// getAccessOpenid + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetAccessOpenid(int operationIndex = 0); + + /// + /// getAccessOpenid + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetAccessOpenidWithHttpInfo(int operationIndex = 0); + /// + /// getAccessPermissions + /// + /// + /// Retrieve effective permissions of given user/token. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessPermissions200Response + GetAccessPermissions200Response GetAccessPermissions(int operationIndex = 0); + + /// + /// getAccessPermissions + /// + /// + /// Retrieve effective permissions of given user/token. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessPermissions200Response + ApiResponse GetAccessPermissionsWithHttpInfo(int operationIndex = 0); + /// + /// getAccessRoles + /// + /// + /// Role index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessRoles200Response + GetAccessRoles200Response GetAccessRoles(int operationIndex = 0); + + /// + /// getAccessRoles + /// + /// + /// Role index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessRoles200Response + ApiResponse GetAccessRolesWithHttpInfo(int operationIndex = 0); + /// + /// getAccessRolesSingle + /// + /// + /// Get role configuration. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// GetAccessRolesSingle200Response + GetAccessRolesSingle200Response GetAccessRolesSingle(string roleid, int operationIndex = 0); + + /// + /// getAccessRolesSingle + /// + /// + /// Get role configuration. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// ApiResponse of GetAccessRolesSingle200Response + ApiResponse GetAccessRolesSingleWithHttpInfo(string roleid, int operationIndex = 0); + /// + /// getAccessTfa + /// + /// + /// List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessTfa200Response + GetAccessTfa200Response GetAccessTfa(int operationIndex = 0); + + /// + /// getAccessTfa + /// + /// + /// List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessTfa200Response + ApiResponse GetAccessTfaWithHttpInfo(int operationIndex = 0); + /// + /// getAccessTfaSingle + /// + /// + /// List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// GetAccessTfaSingle200Response + GetAccessTfaSingle200Response GetAccessTfaSingle(string userid, int operationIndex = 0); + + /// + /// getAccessTfaSingle + /// + /// + /// List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessTfaSingle200Response + ApiResponse GetAccessTfaSingleWithHttpInfo(string userid, int operationIndex = 0); + /// + /// getAccessTfaSingleSingle + /// + /// + /// Fetch a requested TFA entry if present. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// GetAccessTfaSingleSingle200Response + GetAccessTfaSingleSingle200Response GetAccessTfaSingleSingle(string id, string userid, int operationIndex = 0); + + /// + /// getAccessTfaSingleSingle + /// + /// + /// Fetch a requested TFA entry if present. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessTfaSingleSingle200Response + ApiResponse GetAccessTfaSingleSingleWithHttpInfo(string id, string userid, int operationIndex = 0); + /// + /// getAccessTicket + /// + /// + /// Dummy. Useful for formatters which want to provide a login page. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetAccessTicket(int operationIndex = 0); + + /// + /// getAccessTicket + /// + /// + /// Dummy. Useful for formatters which want to provide a login page. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetAccessTicketWithHttpInfo(int operationIndex = 0); + /// + /// getAccessUsers + /// + /// + /// User index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessUsers200Response + GetAccessUsers200Response GetAccessUsers(int operationIndex = 0); + + /// + /// getAccessUsers + /// + /// + /// User index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessUsers200Response + ApiResponse GetAccessUsersWithHttpInfo(int operationIndex = 0); + /// + /// getAccessUsersSingle + /// + /// + /// Get user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// GetAccessUsersSingle200Response + GetAccessUsersSingle200Response GetAccessUsersSingle(string userid, int operationIndex = 0); + + /// + /// getAccessUsersSingle + /// + /// + /// Get user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessUsersSingle200Response + ApiResponse GetAccessUsersSingleWithHttpInfo(string userid, int operationIndex = 0); + /// + /// getAccessUsersSingleTfa + /// + /// + /// Get user TFA types (Personal and Realm). + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// GetAccessUsersSingleTfa200Response + GetAccessUsersSingleTfa200Response GetAccessUsersSingleTfa(string userid, int operationIndex = 0); + + /// + /// getAccessUsersSingleTfa + /// + /// + /// Get user TFA types (Personal and Realm). + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessUsersSingleTfa200Response + ApiResponse GetAccessUsersSingleTfaWithHttpInfo(string userid, int operationIndex = 0); + /// + /// getAccessUsersSingleToken + /// + /// + /// Get user API tokens. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// GetAccessUsersSingleToken200Response + GetAccessUsersSingleToken200Response GetAccessUsersSingleToken(string userid, int operationIndex = 0); + + /// + /// getAccessUsersSingleToken + /// + /// + /// Get user API tokens. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessUsersSingleToken200Response + ApiResponse GetAccessUsersSingleTokenWithHttpInfo(string userid, int operationIndex = 0); + /// + /// getAccessUsersSingleTokenSingle + /// + /// + /// Get specific API token information. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// GetAccessUsersSingleTokenSingle200Response + GetAccessUsersSingleTokenSingle200Response GetAccessUsersSingleTokenSingle(string tokenid, string userid, int operationIndex = 0); + + /// + /// getAccessUsersSingleTokenSingle + /// + /// + /// Get specific API token information. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessUsersSingleTokenSingle200Response + ApiResponse GetAccessUsersSingleTokenSingleWithHttpInfo(string tokenid, string userid, int operationIndex = 0); + /// + /// getCluster + /// + /// + /// Cluster index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetCluster(int operationIndex = 0); + + /// + /// getCluster + /// + /// + /// Cluster index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterWithHttpInfo(int operationIndex = 0); + /// + /// getClusterAcme + /// + /// + /// ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterAcme(int operationIndex = 0); + + /// + /// getClusterAcme + /// + /// + /// ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterAcmeWithHttpInfo(int operationIndex = 0); + /// + /// getClusterAcmeAccount + /// + /// + /// ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterAcmeAccount(int operationIndex = 0); + + /// + /// getClusterAcmeAccount + /// + /// + /// ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterAcmeAccountWithHttpInfo(int operationIndex = 0); + /// + /// getClusterAcmeAccountSingle + /// + /// + /// Return existing ACME account information. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterAcmeAccountSingle200Response + GetClusterAcmeAccountSingle200Response GetClusterAcmeAccountSingle(string name, int operationIndex = 0); + + /// + /// getClusterAcmeAccountSingle + /// + /// + /// Return existing ACME account information. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeAccountSingle200Response + ApiResponse GetClusterAcmeAccountSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// getClusterAcmeChallengeschema + /// + /// + /// Get schema of ACME challenge types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmeChallengeschema200Response + GetClusterAcmeChallengeschema200Response GetClusterAcmeChallengeschema(int operationIndex = 0); + + /// + /// getClusterAcmeChallengeschema + /// + /// + /// Get schema of ACME challenge types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeChallengeschema200Response + ApiResponse GetClusterAcmeChallengeschemaWithHttpInfo(int operationIndex = 0); + /// + /// getClusterAcmeDirectories + /// + /// + /// Get named known ACME directory endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmeDirectories200Response + GetClusterAcmeDirectories200Response GetClusterAcmeDirectories(int operationIndex = 0); + + /// + /// getClusterAcmeDirectories + /// + /// + /// Get named known ACME directory endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeDirectories200Response + ApiResponse GetClusterAcmeDirectoriesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterAcmeMeta + /// + /// + /// Retrieve ACME Directory Meta Information + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmeMeta200Response + GetClusterAcmeMeta200Response GetClusterAcmeMeta(int operationIndex = 0); + + /// + /// getClusterAcmeMeta + /// + /// + /// Retrieve ACME Directory Meta Information + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeMeta200Response + ApiResponse GetClusterAcmeMetaWithHttpInfo(int operationIndex = 0); + /// + /// getClusterAcmePlugins + /// + /// + /// ACME plugin index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmePlugins200Response + GetClusterAcmePlugins200Response GetClusterAcmePlugins(int operationIndex = 0); + + /// + /// getClusterAcmePlugins + /// + /// + /// ACME plugin index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmePlugins200Response + ApiResponse GetClusterAcmePluginsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterAcmePluginsSingle + /// + /// + /// Get ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterAcmePluginsSingle200Response + GetClusterAcmePluginsSingle200Response GetClusterAcmePluginsSingle(string id, int operationIndex = 0); + + /// + /// getClusterAcmePluginsSingle + /// + /// + /// Get ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmePluginsSingle200Response + ApiResponse GetClusterAcmePluginsSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterAcmeTos + /// + /// + /// Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmeTos200Response + GetClusterAcmeTos200Response GetClusterAcmeTos(int operationIndex = 0); + + /// + /// getClusterAcmeTos + /// + /// + /// Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeTos200Response + ApiResponse GetClusterAcmeTosWithHttpInfo(int operationIndex = 0); + /// + /// getClusterBackup + /// + /// + /// List vzdump backup schedule. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterBackup200Response + GetClusterBackup200Response GetClusterBackup(int operationIndex = 0); + + /// + /// getClusterBackup + /// + /// + /// List vzdump backup schedule. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterBackup200Response + ApiResponse GetClusterBackupWithHttpInfo(int operationIndex = 0); + /// + /// getClusterBackupSingle + /// + /// + /// Read vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterBackupSingle(string id, int operationIndex = 0); + + /// + /// getClusterBackupSingle + /// + /// + /// Read vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterBackupSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterBackupSingleIncludedvolumes + /// + /// + /// Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterBackupSingleIncludedvolumes200Response + GetClusterBackupSingleIncludedvolumes200Response GetClusterBackupSingleIncludedvolumes(string id, int operationIndex = 0); + + /// + /// getClusterBackupSingleIncludedvolumes + /// + /// + /// Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterBackupSingleIncludedvolumes200Response + ApiResponse GetClusterBackupSingleIncludedvolumesWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterBackupinfo + /// + /// + /// Index for backup info related endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterBackupinfo200Response + GetClusterBackupinfo200Response GetClusterBackupinfo(int operationIndex = 0); + + /// + /// getClusterBackupinfo + /// + /// + /// Index for backup info related endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterBackupinfo200Response + ApiResponse GetClusterBackupinfoWithHttpInfo(int operationIndex = 0); + /// + /// getClusterBackupinfoNotbackedup + /// + /// + /// Shows all guests which are not covered by any backup job. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterBackupinfoNotbackedup200Response + GetClusterBackupinfoNotbackedup200Response GetClusterBackupinfoNotbackedup(int operationIndex = 0); + + /// + /// getClusterBackupinfoNotbackedup + /// + /// + /// Shows all guests which are not covered by any backup job. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterBackupinfoNotbackedup200Response + ApiResponse GetClusterBackupinfoNotbackedupWithHttpInfo(int operationIndex = 0); + /// + /// getClusterBulkaction + /// + /// + /// List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMapping200Response + GetClusterMapping200Response GetClusterBulkaction(int operationIndex = 0); + + /// + /// getClusterBulkaction + /// + /// + /// List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMapping200Response + ApiResponse GetClusterBulkactionWithHttpInfo(int operationIndex = 0); + /// + /// getClusterBulkactionGuest + /// + /// + /// Bulk action index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterBulkactionGuest(int operationIndex = 0); + + /// + /// getClusterBulkactionGuest + /// + /// + /// Bulk action index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterBulkactionGuestWithHttpInfo(int operationIndex = 0); + /// + /// getClusterCeph + /// + /// + /// Cluster ceph index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterCeph(int operationIndex = 0); + + /// + /// getClusterCeph + /// + /// + /// Cluster ceph index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterCephWithHttpInfo(int operationIndex = 0); + /// + /// getClusterCephFlags + /// + /// + /// get the status of all ceph flags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterCephFlags200Response + GetClusterCephFlags200Response GetClusterCephFlags(int operationIndex = 0); + + /// + /// getClusterCephFlags + /// + /// + /// get the status of all ceph flags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterCephFlags200Response + ApiResponse GetClusterCephFlagsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterCephFlagsSingle + /// + /// + /// Get the status of a specific ceph flag. + /// + /// Thrown when fails to make API call + /// flag + /// Index associated with the operation. + /// GetClusterCephFlagsSingle200Response + GetClusterCephFlagsSingle200Response GetClusterCephFlagsSingle(string flag, int operationIndex = 0); + + /// + /// getClusterCephFlagsSingle + /// + /// + /// Get the status of a specific ceph flag. + /// + /// Thrown when fails to make API call + /// flag + /// Index associated with the operation. + /// ApiResponse of GetClusterCephFlagsSingle200Response + ApiResponse GetClusterCephFlagsSingleWithHttpInfo(string flag, int operationIndex = 0); + /// + /// getClusterCephMetadata + /// + /// + /// Get ceph metadata. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterCephMetadata200Response + GetClusterCephMetadata200Response GetClusterCephMetadata(int operationIndex = 0); + + /// + /// getClusterCephMetadata + /// + /// + /// Get ceph metadata. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterCephMetadata200Response + ApiResponse GetClusterCephMetadataWithHttpInfo(int operationIndex = 0); + /// + /// getClusterCephStatus + /// + /// + /// Get ceph status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterCephStatus(int operationIndex = 0); + + /// + /// getClusterCephStatus + /// + /// + /// Get ceph status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterCephStatusWithHttpInfo(int operationIndex = 0); + /// + /// getClusterConfig + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterConfig(int operationIndex = 0); + + /// + /// getClusterConfig + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterConfigWithHttpInfo(int operationIndex = 0); + /// + /// getClusterConfigApiversion + /// + /// + /// Return the version of the cluster join API available on this node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterConfigApiversion200Response + GetClusterConfigApiversion200Response GetClusterConfigApiversion(int operationIndex = 0); + + /// + /// getClusterConfigApiversion + /// + /// + /// Return the version of the cluster join API available on this node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterConfigApiversion200Response + ApiResponse GetClusterConfigApiversionWithHttpInfo(int operationIndex = 0); + /// + /// getClusterConfigJoin + /// + /// + /// Get information needed to join this cluster over the connected node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterConfigJoin200Response + GetClusterConfigJoin200Response GetClusterConfigJoin(int operationIndex = 0); + + /// + /// getClusterConfigJoin + /// + /// + /// Get information needed to join this cluster over the connected node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterConfigJoin200Response + ApiResponse GetClusterConfigJoinWithHttpInfo(int operationIndex = 0); + /// + /// getClusterConfigNodes + /// + /// + /// Corosync node list. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterConfigNodes200Response + GetClusterConfigNodes200Response GetClusterConfigNodes(int operationIndex = 0); + + /// + /// getClusterConfigNodes + /// + /// + /// Corosync node list. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterConfigNodes200Response + ApiResponse GetClusterConfigNodesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterConfigQdevice + /// + /// + /// Get QDevice status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterConfigQdevice(int operationIndex = 0); + + /// + /// getClusterConfigQdevice + /// + /// + /// Get QDevice status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterConfigQdeviceWithHttpInfo(int operationIndex = 0); + /// + /// getClusterConfigTotem + /// + /// + /// Get corosync totem protocol settings. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterConfigTotem(int operationIndex = 0); + + /// + /// getClusterConfigTotem + /// + /// + /// Get corosync totem protocol settings. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterConfigTotemWithHttpInfo(int operationIndex = 0); + /// + /// getClusterFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterFirewall(int operationIndex = 0); + + /// + /// getClusterFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterFirewallWithHttpInfo(int operationIndex = 0); + /// + /// getClusterFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallAliases200Response + GetClusterFirewallAliases200Response GetClusterFirewallAliases(int operationIndex = 0); + + /// + /// getClusterFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallAliases200Response + ApiResponse GetClusterFirewallAliasesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterFirewallAliasesSingle(string name, int operationIndex = 0); + + /// + /// getClusterFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterFirewallAliasesSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// getClusterFirewallGroupRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + GetClusterFirewallGroupRule200Response GetClusterFirewallGroupRule(string group, int pos, int operationIndex = 0); + + /// + /// getClusterFirewallGroupRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + ApiResponse GetClusterFirewallGroupRuleWithHttpInfo(string group, int pos, int operationIndex = 0); + /// + /// getClusterFirewallGroupRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + GetClusterFirewallGroupRules200Response GetClusterFirewallGroupRules(string group, int operationIndex = 0); + + /// + /// getClusterFirewallGroupRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + ApiResponse GetClusterFirewallGroupRulesWithHttpInfo(string group, int operationIndex = 0); + /// + /// getClusterFirewallGroups + /// + /// + /// List security groups. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallGroups200Response + GetClusterFirewallGroups200Response GetClusterFirewallGroups(int operationIndex = 0); + + /// + /// getClusterFirewallGroups + /// + /// + /// List security groups. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroups200Response + ApiResponse GetClusterFirewallGroupsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterFirewallIPSet + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterFirewallIPSet200Response + GetClusterFirewallIPSet200Response GetClusterFirewallIPSet(string name, int operationIndex = 0); + + /// + /// getClusterFirewallIPSet + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSet200Response + ApiResponse GetClusterFirewallIPSetWithHttpInfo(string name, int operationIndex = 0); + /// + /// getClusterFirewallIPSetIP + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterFirewallIPSetIP(string cidr, string name, int operationIndex = 0); + + /// + /// getClusterFirewallIPSetIP + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterFirewallIPSetIPWithHttpInfo(string cidr, string name, int operationIndex = 0); + /// + /// getClusterFirewallIPSets + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallIPSets200Response + GetClusterFirewallIPSets200Response GetClusterFirewallIPSets(int operationIndex = 0); + + /// + /// getClusterFirewallIPSets + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSets200Response + ApiResponse GetClusterFirewallIPSetsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterFirewallMacros + /// + /// + /// List available macros + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallMacros200Response + GetClusterFirewallMacros200Response GetClusterFirewallMacros(int operationIndex = 0); + + /// + /// getClusterFirewallMacros + /// + /// + /// List available macros + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallMacros200Response + ApiResponse GetClusterFirewallMacrosWithHttpInfo(int operationIndex = 0); + /// + /// getClusterFirewallOptions + /// + /// + /// Get Firewall options. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallOptions200Response + GetClusterFirewallOptions200Response GetClusterFirewallOptions(int operationIndex = 0); + + /// + /// getClusterFirewallOptions + /// + /// + /// Get Firewall options. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallOptions200Response + ApiResponse GetClusterFirewallOptionsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallRefs200Response + GetClusterFirewallRefs200Response GetClusterFirewallRefs(int operationIndex = 0); + + /// + /// getClusterFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallRefs200Response + ApiResponse GetClusterFirewallRefsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + GetClusterFirewallGroupRule200Response GetClusterFirewallRule(int pos, int operationIndex = 0); + + /// + /// getClusterFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + ApiResponse GetClusterFirewallRuleWithHttpInfo(int pos, int operationIndex = 0); + /// + /// getClusterFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + GetClusterFirewallGroupRules200Response GetClusterFirewallRules(int operationIndex = 0); + + /// + /// getClusterFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + ApiResponse GetClusterFirewallRulesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterHa + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHa200Response + GetClusterHa200Response GetClusterHa(int operationIndex = 0); + + /// + /// getClusterHa + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHa200Response + ApiResponse GetClusterHaWithHttpInfo(int operationIndex = 0); + /// + /// getClusterHaGroups + /// + /// + /// Get HA groups. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHaGroups200Response + GetClusterHaGroups200Response GetClusterHaGroups(int operationIndex = 0); + + /// + /// getClusterHaGroups + /// + /// + /// Get HA groups. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHaGroups200Response + ApiResponse GetClusterHaGroupsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterHaGroupsSingle + /// + /// + /// Read ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetClusterHaGroupsSingle(string group, int operationIndex = 0); + + /// + /// getClusterHaGroupsSingle + /// + /// + /// Read ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetClusterHaGroupsSingleWithHttpInfo(string group, int operationIndex = 0); + /// + /// getClusterHaResources + /// + /// + /// List HA resources. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHaResources200Response + GetClusterHaResources200Response GetClusterHaResources(int operationIndex = 0); + + /// + /// getClusterHaResources + /// + /// + /// List HA resources. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHaResources200Response + ApiResponse GetClusterHaResourcesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterHaResourcesSingle + /// + /// + /// Read resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// GetClusterHaResourcesSingle200Response + GetClusterHaResourcesSingle200Response GetClusterHaResourcesSingle(string sid, int operationIndex = 0); + + /// + /// getClusterHaResourcesSingle + /// + /// + /// Read resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// ApiResponse of GetClusterHaResourcesSingle200Response + ApiResponse GetClusterHaResourcesSingleWithHttpInfo(string sid, int operationIndex = 0); + /// + /// getClusterHaRules + /// + /// + /// Get HA rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHaRules200Response + GetClusterHaRules200Response GetClusterHaRules(int operationIndex = 0); + + /// + /// getClusterHaRules + /// + /// + /// Get HA rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHaRules200Response + ApiResponse GetClusterHaRulesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterHaRulesSingle + /// + /// + /// Read HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// GetClusterHaRulesSingle200Response + GetClusterHaRulesSingle200Response GetClusterHaRulesSingle(string rule, int operationIndex = 0); + + /// + /// getClusterHaRulesSingle + /// + /// + /// Read HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// ApiResponse of GetClusterHaRulesSingle200Response + ApiResponse GetClusterHaRulesSingleWithHttpInfo(string rule, int operationIndex = 0); + /// + /// getClusterHaStatus + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterHaStatus(int operationIndex = 0); + + /// + /// getClusterHaStatus + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterHaStatusWithHttpInfo(int operationIndex = 0); + /// + /// getClusterHaStatusCurrent + /// + /// + /// Get HA manger status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHaStatusCurrent200Response + GetClusterHaStatusCurrent200Response GetClusterHaStatusCurrent(int operationIndex = 0); + + /// + /// getClusterHaStatusCurrent + /// + /// + /// Get HA manger status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHaStatusCurrent200Response + ApiResponse GetClusterHaStatusCurrentWithHttpInfo(int operationIndex = 0); + /// + /// getClusterHaStatusManagerstatus + /// + /// + /// Get full HA manger status, including LRM status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterHaStatusManagerstatus(int operationIndex = 0); + + /// + /// getClusterHaStatusManagerstatus + /// + /// + /// Get full HA manger status, including LRM status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterHaStatusManagerstatusWithHttpInfo(int operationIndex = 0); + /// + /// getClusterJobs + /// + /// + /// Index for jobs related endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterBackupinfo200Response + GetClusterBackupinfo200Response GetClusterJobs(int operationIndex = 0); + + /// + /// getClusterJobs + /// + /// + /// Index for jobs related endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterBackupinfo200Response + ApiResponse GetClusterJobsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterJobsRealmsync + /// + /// + /// List configured realm-sync-jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterJobsRealmsync200Response + GetClusterJobsRealmsync200Response GetClusterJobsRealmsync(int operationIndex = 0); + + /// + /// getClusterJobsRealmsync + /// + /// + /// List configured realm-sync-jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterJobsRealmsync200Response + ApiResponse GetClusterJobsRealmsyncWithHttpInfo(int operationIndex = 0); + /// + /// getClusterJobsRealmsyncSingle + /// + /// + /// Read realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterJobsRealmsyncSingle(string id, int operationIndex = 0); + + /// + /// getClusterJobsRealmsyncSingle + /// + /// + /// Read realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterJobsRealmsyncSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterJobsScheduleanalyze + /// + /// + /// Returns a list of future schedule runtimes. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterJobsScheduleanalyze200Response + GetClusterJobsScheduleanalyze200Response GetClusterJobsScheduleanalyze(int operationIndex = 0); + + /// + /// getClusterJobsScheduleanalyze + /// + /// + /// Returns a list of future schedule runtimes. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterJobsScheduleanalyze200Response + ApiResponse GetClusterJobsScheduleanalyzeWithHttpInfo(int operationIndex = 0); + /// + /// getClusterLog + /// + /// + /// Read cluster log + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterLog(int operationIndex = 0); + + /// + /// getClusterLog + /// + /// + /// Read cluster log + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterLogWithHttpInfo(int operationIndex = 0); + /// + /// getClusterMapping + /// + /// + /// List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMapping200Response + GetClusterMapping200Response GetClusterMapping(int operationIndex = 0); + + /// + /// getClusterMapping + /// + /// + /// List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMapping200Response + ApiResponse GetClusterMappingWithHttpInfo(int operationIndex = 0); + /// + /// getClusterMappingDir + /// + /// + /// List directory mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMappingDir200Response + GetClusterMappingDir200Response GetClusterMappingDir(int operationIndex = 0); + + /// + /// getClusterMappingDir + /// + /// + /// List directory mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMappingDir200Response + ApiResponse GetClusterMappingDirWithHttpInfo(int operationIndex = 0); + /// + /// getClusterMappingDirSingle + /// + /// + /// Get directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterMappingDirSingle(string id, int operationIndex = 0); + + /// + /// getClusterMappingDirSingle + /// + /// + /// Get directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterMappingDirSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterMappingPci + /// + /// + /// List PCI Hardware Mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMappingPci200Response + GetClusterMappingPci200Response GetClusterMappingPci(int operationIndex = 0); + + /// + /// getClusterMappingPci + /// + /// + /// List PCI Hardware Mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMappingPci200Response + ApiResponse GetClusterMappingPciWithHttpInfo(int operationIndex = 0); + /// + /// getClusterMappingPciSingle + /// + /// + /// Get PCI Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterMappingPciSingle(string id, int operationIndex = 0); + + /// + /// getClusterMappingPciSingle + /// + /// + /// Get PCI Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterMappingPciSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterMappingUsb + /// + /// + /// List USB Hardware Mappings + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMappingUsb200Response + GetClusterMappingUsb200Response GetClusterMappingUsb(int operationIndex = 0); + + /// + /// getClusterMappingUsb + /// + /// + /// List USB Hardware Mappings + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMappingUsb200Response + ApiResponse GetClusterMappingUsbWithHttpInfo(int operationIndex = 0); + /// + /// getClusterMappingUsbSingle + /// + /// + /// Get USB Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterMappingUsbSingle(string id, int operationIndex = 0); + + /// + /// getClusterMappingUsbSingle + /// + /// + /// Get USB Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterMappingUsbSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterMetrics + /// + /// + /// Metrics index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterMetrics(int operationIndex = 0); + + /// + /// getClusterMetrics + /// + /// + /// Metrics index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterMetricsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterMetricsExport + /// + /// + /// Retrieve metrics of the cluster. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsExport200Response + GetClusterMetricsExport200Response GetClusterMetricsExport(int operationIndex = 0); + + /// + /// getClusterMetricsExport + /// + /// + /// Retrieve metrics of the cluster. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsExport200Response + ApiResponse GetClusterMetricsExportWithHttpInfo(int operationIndex = 0); + /// + /// getClusterMetricsServer + /// + /// + /// List configured metric servers. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServer200Response + GetClusterMetricsServer200Response GetClusterMetricsServer(int operationIndex = 0); + + /// + /// getClusterMetricsServer + /// + /// + /// List configured metric servers. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServer200Response + ApiResponse GetClusterMetricsServerWithHttpInfo(int operationIndex = 0); + /// + /// getClusterMetricsServerSingle + /// + /// + /// Read metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterMetricsServerSingle(string id, int operationIndex = 0); + + /// + /// getClusterMetricsServerSingle + /// + /// + /// Read metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterMetricsServerSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterNextid + /// + /// + /// Get next free VMID. Pass a VMID to assert that its free (at time of check). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNextid200Response + GetClusterNextid200Response GetClusterNextid(int operationIndex = 0); + + /// + /// getClusterNextid + /// + /// + /// Get next free VMID. Pass a VMID to assert that its free (at time of check). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNextid200Response + ApiResponse GetClusterNextidWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotifications + /// + /// + /// Index for notification-related API endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterNotifications(int operationIndex = 0); + + /// + /// getClusterNotifications + /// + /// + /// Index for notification-related API endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterNotificationsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsEndpoints + /// + /// + /// Index for all available endpoint types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterNotificationsEndpoints(int operationIndex = 0); + + /// + /// getClusterNotificationsEndpoints + /// + /// + /// Index for all available endpoint types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterNotificationsEndpointsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsEndpointsGotify + /// + /// + /// Returns a list of all gotify endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsGotify200Response + GetClusterNotificationsEndpointsGotify200Response GetClusterNotificationsEndpointsGotify(int operationIndex = 0); + + /// + /// getClusterNotificationsEndpointsGotify + /// + /// + /// Returns a list of all gotify endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsGotify200Response + ApiResponse GetClusterNotificationsEndpointsGotifyWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsEndpointsGotifySingle + /// + /// + /// Return a specific gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsGotifySingle200Response + GetClusterNotificationsEndpointsGotifySingle200Response GetClusterNotificationsEndpointsGotifySingle(string name, int operationIndex = 0); + + /// + /// getClusterNotificationsEndpointsGotifySingle + /// + /// + /// Return a specific gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsGotifySingle200Response + ApiResponse GetClusterNotificationsEndpointsGotifySingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// getClusterNotificationsEndpointsSendmail + /// + /// + /// Returns a list of all sendmail endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsSendmail200Response + GetClusterNotificationsEndpointsSendmail200Response GetClusterNotificationsEndpointsSendmail(int operationIndex = 0); + + /// + /// getClusterNotificationsEndpointsSendmail + /// + /// + /// Returns a list of all sendmail endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsSendmail200Response + ApiResponse GetClusterNotificationsEndpointsSendmailWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Return a specific sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsSendmailSingle200Response + GetClusterNotificationsEndpointsSendmailSingle200Response GetClusterNotificationsEndpointsSendmailSingle(string name, int operationIndex = 0); + + /// + /// getClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Return a specific sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsSendmailSingle200Response + ApiResponse GetClusterNotificationsEndpointsSendmailSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// getClusterNotificationsEndpointsSmtp + /// + /// + /// Returns a list of all smtp endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsSmtp200Response + GetClusterNotificationsEndpointsSmtp200Response GetClusterNotificationsEndpointsSmtp(int operationIndex = 0); + + /// + /// getClusterNotificationsEndpointsSmtp + /// + /// + /// Returns a list of all smtp endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsSmtp200Response + ApiResponse GetClusterNotificationsEndpointsSmtpWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Return a specific smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsSmtpSingle200Response + GetClusterNotificationsEndpointsSmtpSingle200Response GetClusterNotificationsEndpointsSmtpSingle(string name, int operationIndex = 0); + + /// + /// getClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Return a specific smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsSmtpSingle200Response + ApiResponse GetClusterNotificationsEndpointsSmtpSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// getClusterNotificationsEndpointsWebhook + /// + /// + /// Returns a list of all webhook endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsWebhook200Response + GetClusterNotificationsEndpointsWebhook200Response GetClusterNotificationsEndpointsWebhook(int operationIndex = 0); + + /// + /// getClusterNotificationsEndpointsWebhook + /// + /// + /// Returns a list of all webhook endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsWebhook200Response + ApiResponse GetClusterNotificationsEndpointsWebhookWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Return a specific webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsWebhookSingle200Response + GetClusterNotificationsEndpointsWebhookSingle200Response GetClusterNotificationsEndpointsWebhookSingle(string name, int operationIndex = 0); + + /// + /// getClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Return a specific webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsWebhookSingle200Response + ApiResponse GetClusterNotificationsEndpointsWebhookSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// getClusterNotificationsMatcherfields + /// + /// + /// Returns known notification metadata fields + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsMatcherfields200Response + GetClusterNotificationsMatcherfields200Response GetClusterNotificationsMatcherfields(int operationIndex = 0); + + /// + /// getClusterNotificationsMatcherfields + /// + /// + /// Returns known notification metadata fields + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsMatcherfields200Response + ApiResponse GetClusterNotificationsMatcherfieldsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsMatcherfieldvalues + /// + /// + /// Returns known notification metadata fields and their known values + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsMatcherfieldvalues200Response + GetClusterNotificationsMatcherfieldvalues200Response GetClusterNotificationsMatcherfieldvalues(int operationIndex = 0); + + /// + /// getClusterNotificationsMatcherfieldvalues + /// + /// + /// Returns known notification metadata fields and their known values + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsMatcherfieldvalues200Response + ApiResponse GetClusterNotificationsMatcherfieldvaluesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsMatchers + /// + /// + /// Returns a list of all matchers + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsMatchers200Response + GetClusterNotificationsMatchers200Response GetClusterNotificationsMatchers(int operationIndex = 0); + + /// + /// getClusterNotificationsMatchers + /// + /// + /// Returns a list of all matchers + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsMatchers200Response + ApiResponse GetClusterNotificationsMatchersWithHttpInfo(int operationIndex = 0); + /// + /// getClusterNotificationsMatchersSingle + /// + /// + /// Return a specific matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsMatchersSingle200Response + GetClusterNotificationsMatchersSingle200Response GetClusterNotificationsMatchersSingle(string name, int operationIndex = 0); + + /// + /// getClusterNotificationsMatchersSingle + /// + /// + /// Return a specific matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsMatchersSingle200Response + ApiResponse GetClusterNotificationsMatchersSingleWithHttpInfo(string name, int operationIndex = 0); + /// + /// getClusterNotificationsTargets + /// + /// + /// Returns a list of all entities that can be used as notification targets. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsTargets200Response + GetClusterNotificationsTargets200Response GetClusterNotificationsTargets(int operationIndex = 0); + + /// + /// getClusterNotificationsTargets + /// + /// + /// Returns a list of all entities that can be used as notification targets. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsTargets200Response + ApiResponse GetClusterNotificationsTargetsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterOptions + /// + /// + /// Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterOptions(int operationIndex = 0); + + /// + /// getClusterOptions + /// + /// + /// Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterOptionsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterReplication + /// + /// + /// List replication jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterReplication200Response + GetClusterReplication200Response GetClusterReplication(int operationIndex = 0); + + /// + /// getClusterReplication + /// + /// + /// List replication jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterReplication200Response + ApiResponse GetClusterReplicationWithHttpInfo(int operationIndex = 0); + /// + /// getClusterReplicationSingle + /// + /// + /// Read replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterReplicationSingle200Response + GetClusterReplicationSingle200Response GetClusterReplicationSingle(string id, int operationIndex = 0); + + /// + /// getClusterReplicationSingle + /// + /// + /// Read replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterReplicationSingle200Response + ApiResponse GetClusterReplicationSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterResources + /// + /// + /// Resources index (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterResources200Response + GetClusterResources200Response GetClusterResources(int operationIndex = 0); + + /// + /// getClusterResources + /// + /// + /// Resources index (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterResources200Response + ApiResponse GetClusterResourcesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSDN + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHa200Response + GetClusterHa200Response GetClusterSDN(int operationIndex = 0); + + /// + /// getClusterSDN + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHa200Response + ApiResponse GetClusterSDNWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSDNController + /// + /// + /// Read sdn controller configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetClusterSDNController(string controller, int operationIndex = 0); + + /// + /// getClusterSDNController + /// + /// + /// Read sdn controller configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetClusterSDNControllerWithHttpInfo(string controller, int operationIndex = 0); + /// + /// getClusterSDNControllers + /// + /// + /// SDN controllers index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSDNControllers200Response + GetClusterSDNControllers200Response GetClusterSDNControllers(int operationIndex = 0); + + /// + /// getClusterSDNControllers + /// + /// + /// SDN controllers index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSDNControllers200Response + ApiResponse GetClusterSDNControllersWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSDNVnet + /// + /// + /// Read sdn vnet configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetClusterSDNVnet(string vnet, int operationIndex = 0); + + /// + /// getClusterSDNVnet + /// + /// + /// Read sdn vnet configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetClusterSDNVnetWithHttpInfo(string vnet, int operationIndex = 0); + /// + /// getClusterSDNVnets + /// + /// + /// SDN vnets index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSDNVnets200Response + GetClusterSDNVnets200Response GetClusterSDNVnets(int operationIndex = 0); + + /// + /// getClusterSDNVnets + /// + /// + /// SDN vnets index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSDNVnets200Response + ApiResponse GetClusterSDNVnetsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSDNZone + /// + /// + /// Read sdn zone configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetClusterSDNZone(string zone, int operationIndex = 0); + + /// + /// getClusterSDNZone + /// + /// + /// Read sdn zone configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetClusterSDNZoneWithHttpInfo(string zone, int operationIndex = 0); + /// + /// getClusterSDNZones + /// + /// + /// SDN zones index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSDNZones200Response + GetClusterSDNZones200Response GetClusterSDNZones(int operationIndex = 0); + + /// + /// getClusterSDNZones + /// + /// + /// SDN zones index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSDNZones200Response + ApiResponse GetClusterSDNZonesWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSdnDns + /// + /// + /// SDN dns index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnDns200Response + GetClusterSdnDns200Response GetClusterSdnDns(int operationIndex = 0); + + /// + /// getClusterSdnDns + /// + /// + /// SDN dns index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnDns200Response + ApiResponse GetClusterSdnDnsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSdnDnsSingle + /// + /// + /// Read sdn dns configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterSdnDnsSingle(string dns, int operationIndex = 0); + + /// + /// getClusterSdnDnsSingle + /// + /// + /// Read sdn dns configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterSdnDnsSingleWithHttpInfo(string dns, int operationIndex = 0); + /// + /// getClusterSdnFabrics + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetClusterSdnFabrics(int operationIndex = 0); + + /// + /// getClusterSdnFabrics + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetClusterSdnFabricsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSdnFabricsAll + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabricsAll200Response + GetClusterSdnFabricsAll200Response GetClusterSdnFabricsAll(int operationIndex = 0); + + /// + /// getClusterSdnFabricsAll + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsAll200Response + ApiResponse GetClusterSdnFabricsAllWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSdnFabricsFabric + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabricsFabric200Response + GetClusterSdnFabricsFabric200Response GetClusterSdnFabricsFabric(int operationIndex = 0); + + /// + /// getClusterSdnFabricsFabric + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsFabric200Response + ApiResponse GetClusterSdnFabricsFabricWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSdnFabricsFabricSingle + /// + /// + /// Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterSdnFabricsFabricSingle200Response + GetClusterSdnFabricsFabricSingle200Response GetClusterSdnFabricsFabricSingle(string id, int operationIndex = 0); + + /// + /// getClusterSdnFabricsFabricSingle + /// + /// + /// Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsFabricSingle200Response + ApiResponse GetClusterSdnFabricsFabricSingleWithHttpInfo(string id, int operationIndex = 0); + /// + /// getClusterSdnFabricsNode + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabricsNode200Response + GetClusterSdnFabricsNode200Response GetClusterSdnFabricsNode(int operationIndex = 0); + + /// + /// getClusterSdnFabricsNode + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsNode200Response + ApiResponse GetClusterSdnFabricsNodeWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSdnFabricsNodeSingle + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// fabric_id + /// Index associated with the operation. + /// GetClusterSdnFabricsNode200Response + GetClusterSdnFabricsNode200Response GetClusterSdnFabricsNodeSingle(string fabricId, int operationIndex = 0); + + /// + /// getClusterSdnFabricsNodeSingle + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// fabric_id + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsNode200Response + ApiResponse GetClusterSdnFabricsNodeSingleWithHttpInfo(string fabricId, int operationIndex = 0); + /// + /// getClusterSdnFabricsNodeSingleSingle + /// + /// + /// Get a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetClusterSdnFabricsNodeSingleSingle(string fabricId, string nodeId, int operationIndex = 0); + + /// + /// getClusterSdnFabricsNodeSingleSingle + /// + /// + /// Get a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetClusterSdnFabricsNodeSingleSingleWithHttpInfo(string fabricId, string nodeId, int operationIndex = 0); + /// + /// getClusterSdnIpams + /// + /// + /// SDN ipams index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnIpams200Response + GetClusterSdnIpams200Response GetClusterSdnIpams(int operationIndex = 0); + + /// + /// getClusterSdnIpams + /// + /// + /// SDN ipams index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnIpams200Response + ApiResponse GetClusterSdnIpamsWithHttpInfo(int operationIndex = 0); + /// + /// getClusterSdnIpamsSingle + /// + /// + /// Read sdn ipam configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterSdnIpamsSingle(string ipam, int operationIndex = 0); + + /// + /// getClusterSdnIpamsSingle + /// + /// + /// Read sdn ipam configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterSdnIpamsSingleWithHttpInfo(string ipam, int operationIndex = 0); + /// + /// getClusterSdnIpamsSingleStatus + /// + /// + /// List PVE IPAM Entries + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// GetClusterSdnIpamsSingleStatus200Response + GetClusterSdnIpamsSingleStatus200Response GetClusterSdnIpamsSingleStatus(string ipam, int operationIndex = 0); + + /// + /// getClusterSdnIpamsSingleStatus + /// + /// + /// List PVE IPAM Entries + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnIpamsSingleStatus200Response + ApiResponse GetClusterSdnIpamsSingleStatusWithHttpInfo(string ipam, int operationIndex = 0); + /// + /// getClusterSdnVnetsSingleFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterSdnVnetsSingleFirewall(string vnet, int operationIndex = 0); + + /// + /// getClusterSdnVnetsSingleFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterSdnVnetsSingleFirewallWithHttpInfo(string vnet, int operationIndex = 0); + /// + /// getClusterSdnVnetsSingleFirewallOptions + /// + /// + /// Get vnet firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// GetClusterSdnVnetsSingleFirewallOptions200Response + GetClusterSdnVnetsSingleFirewallOptions200Response GetClusterSdnVnetsSingleFirewallOptions(string vnet, int operationIndex = 0); + + /// + /// getClusterSdnVnetsSingleFirewallOptions + /// + /// + /// Get vnet firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnVnetsSingleFirewallOptions200Response + ApiResponse GetClusterSdnVnetsSingleFirewallOptionsWithHttpInfo(string vnet, int operationIndex = 0); + /// + /// getClusterSdnVnetsSingleFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + GetClusterFirewallGroupRules200Response GetClusterSdnVnetsSingleFirewallRules(string vnet, int operationIndex = 0); + + /// + /// getClusterSdnVnetsSingleFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + ApiResponse GetClusterSdnVnetsSingleFirewallRulesWithHttpInfo(string vnet, int operationIndex = 0); + /// + /// getClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + GetClusterFirewallGroupRule200Response GetClusterSdnVnetsSingleFirewallRulesSingle(int pos, string vnet, int operationIndex = 0); + + /// + /// getClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + ApiResponse GetClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(int pos, string vnet, int operationIndex = 0); + /// + /// getClusterSdnVnetsSingleSubnets + /// + /// + /// SDN subnets index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetClusterSdnVnetsSingleSubnets(string vnet, int operationIndex = 0); + + /// + /// getClusterSdnVnetsSingleSubnets + /// + /// + /// SDN subnets index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetClusterSdnVnetsSingleSubnetsWithHttpInfo(string vnet, int operationIndex = 0); + /// + /// getClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Read sdn subnet configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetClusterSdnVnetsSingleSubnetsSingle(string subnet, string vnet, int operationIndex = 0); + + /// + /// getClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Read sdn subnet configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(string subnet, string vnet, int operationIndex = 0); + /// + /// getClusterStatus + /// + /// + /// Get cluster status information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterStatus200Response + GetClusterStatus200Response GetClusterStatus(int operationIndex = 0); + + /// + /// getClusterStatus + /// + /// + /// Get cluster status information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterStatus200Response + ApiResponse GetClusterStatusWithHttpInfo(int operationIndex = 0); + /// + /// getClusterTasks + /// + /// + /// List recent tasks (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterTasks200Response + GetClusterTasks200Response GetClusterTasks(int operationIndex = 0); + + /// + /// getClusterTasks + /// + /// + /// List recent tasks (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterTasks200Response + ApiResponse GetClusterTasksWithHttpInfo(int operationIndex = 0); + /// + /// getCurrentVMStatus + /// + /// + /// Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCurrentVMStatus200Response + GetCurrentVMStatus200Response GetCurrentVMStatus(string node, int vmid, int operationIndex = 0); + + /// + /// getCurrentVMStatus + /// + /// + /// Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCurrentVMStatus200Response + ApiResponse GetCurrentVMStatusWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNode + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNode(string node, int operationIndex = 0); + + /// + /// getNode + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodeWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodeFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodeFirewall(string node, int operationIndex = 0); + + /// + /// getNodeFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodeFirewallWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodeFirewallOptions + /// + /// + /// Get host firewall options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodeFirewallOptions200Response + GetNodeFirewallOptions200Response GetNodeFirewallOptions(string node, int operationIndex = 0); + + /// + /// getNodeFirewallOptions + /// + /// + /// Get host firewall options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodeFirewallOptions200Response + ApiResponse GetNodeFirewallOptionsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodeFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + GetClusterFirewallGroupRule200Response GetNodeFirewallRule(string node, int pos, int operationIndex = 0); + + /// + /// getNodeFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + ApiResponse GetNodeFirewallRuleWithHttpInfo(string node, int pos, int operationIndex = 0); + /// + /// getNodeFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + GetClusterFirewallGroupRules200Response GetNodeFirewallRules(string node, int operationIndex = 0); + + /// + /// getNodeFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + ApiResponse GetNodeFirewallRulesWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodeRRD + /// + /// + /// Read node RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetVMRRD200Response + GetVMRRD200Response GetNodeRRD(string node, int operationIndex = 0); + + /// + /// getNodeRRD + /// + /// + /// Read node RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetVMRRD200Response + ApiResponse GetNodeRRDWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodeRRDData + /// + /// + /// Read node RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodeRRDData(string node, int operationIndex = 0); + + /// + /// getNodeRRDData + /// + /// + /// Read node RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodeRRDDataWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodeSDN + /// + /// + /// SDN index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodeSDN(string node, int operationIndex = 0); + + /// + /// getNodeSDN + /// + /// + /// SDN index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodeSDNWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodeSDNZone + /// + /// + /// Directory index for SDN zone status. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetNodeSDNZone(string node, string zone, int operationIndex = 0); + + /// + /// getNodeSDNZone + /// + /// + /// Directory index for SDN zone status. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetNodeSDNZoneWithHttpInfo(string node, string zone, int operationIndex = 0); + /// + /// getNodeSDNZoneContent + /// + /// + /// List zone content. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// GetNodeSDNZoneContent200Response + GetNodeSDNZoneContent200Response GetNodeSDNZoneContent(string node, string zone, int operationIndex = 0); + + /// + /// getNodeSDNZoneContent + /// + /// + /// List zone content. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// ApiResponse of GetNodeSDNZoneContent200Response + ApiResponse GetNodeSDNZoneContentWithHttpInfo(string node, string zone, int operationIndex = 0); + /// + /// getNodeSDNZones + /// + /// + /// Get status for all zones. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodeSDNZones200Response + GetNodeSDNZones200Response GetNodeSDNZones(string node, int operationIndex = 0); + + /// + /// getNodeSDNZones + /// + /// + /// Get status for all zones. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodeSDNZones200Response + ApiResponse GetNodeSDNZonesWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodeTask + /// + /// + /// getNodeTask + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodeTask(string node, string upid, int operationIndex = 0); + + /// + /// getNodeTask + /// + /// + /// getNodeTask + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodeTaskWithHttpInfo(string node, string upid, int operationIndex = 0); + /// + /// getNodeTaskLog + /// + /// + /// Read task log. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + GetNodesSingleQemuSingleFirewallLog200Response GetNodeTaskLog(string node, string upid, int operationIndex = 0); + + /// + /// getNodeTaskLog + /// + /// + /// Read task log. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + ApiResponse GetNodeTaskLogWithHttpInfo(string node, string upid, int operationIndex = 0); + /// + /// getNodeTaskStatus + /// + /// + /// Read task status. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// GetNodeTaskStatus200Response + GetNodeTaskStatus200Response GetNodeTaskStatus(string node, string upid, int operationIndex = 0); + + /// + /// getNodeTaskStatus + /// + /// + /// Read task status. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// ApiResponse of GetNodeTaskStatus200Response + ApiResponse GetNodeTaskStatusWithHttpInfo(string node, string upid, int operationIndex = 0); + /// + /// getNodeTasks + /// + /// + /// Read task list for one node (finished tasks). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodeTasks200Response + GetNodeTasks200Response GetNodeTasks(string node, int operationIndex = 0); + + /// + /// getNodeTasks + /// + /// + /// Read task list for one node (finished tasks). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodeTasks200Response + ApiResponse GetNodeTasksWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodes + /// + /// + /// Cluster node index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetNodes200Response + GetNodes200Response GetNodes(int operationIndex = 0); + + /// + /// getNodes + /// + /// + /// Cluster node index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetNodes200Response + ApiResponse GetNodesWithHttpInfo(int operationIndex = 0); + /// + /// getNodesSingleAplinfo + /// + /// + /// Get list of appliances. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleAplinfo(string node, int operationIndex = 0); + + /// + /// getNodesSingleAplinfo + /// + /// + /// Get list of appliances. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleAplinfoWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleApt + /// + /// + /// Directory index for apt (Advanced Package Tool). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterHa200Response + GetClusterHa200Response GetNodesSingleApt(string node, int operationIndex = 0); + + /// + /// getNodesSingleApt + /// + /// + /// Directory index for apt (Advanced Package Tool). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterHa200Response + ApiResponse GetNodesSingleAptWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleAptChangelog + /// + /// + /// Get package changelogs. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetNodesSingleAptChangelog(string node, int operationIndex = 0); + + /// + /// getNodesSingleAptChangelog + /// + /// + /// Get package changelogs. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetNodesSingleAptChangelogWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleAptRepositories + /// + /// + /// Get APT repository information. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleAptRepositories200Response + GetNodesSingleAptRepositories200Response GetNodesSingleAptRepositories(string node, int operationIndex = 0); + + /// + /// getNodesSingleAptRepositories + /// + /// + /// Get APT repository information. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleAptRepositories200Response + ApiResponse GetNodesSingleAptRepositoriesWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleAptUpdate + /// + /// + /// List available updates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleAptUpdate200Response + GetNodesSingleAptUpdate200Response GetNodesSingleAptUpdate(string node, int operationIndex = 0); + + /// + /// getNodesSingleAptUpdate + /// + /// + /// List available updates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleAptUpdate200Response + ApiResponse GetNodesSingleAptUpdateWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleAptVersions + /// + /// + /// Get package information for important Proxmox packages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleAptVersions200Response + GetNodesSingleAptVersions200Response GetNodesSingleAptVersions(string node, int operationIndex = 0); + + /// + /// getNodesSingleAptVersions + /// + /// + /// Get package information for important Proxmox packages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleAptVersions200Response + ApiResponse GetNodesSingleAptVersionsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCapabilities + /// + /// + /// Node capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleCapabilities(string node, int operationIndex = 0); + + /// + /// getNodesSingleCapabilities + /// + /// + /// Node capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleCapabilitiesWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCapabilitiesQemu + /// + /// + /// QEMU capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleCapabilitiesQemu(string node, int operationIndex = 0); + + /// + /// getNodesSingleCapabilitiesQemu + /// + /// + /// QEMU capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleCapabilitiesQemuWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCapabilitiesQemuCpu + /// + /// + /// List all custom and default CPU models. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCapabilitiesQemuCpu200Response + GetNodesSingleCapabilitiesQemuCpu200Response GetNodesSingleCapabilitiesQemuCpu(string node, int operationIndex = 0); + + /// + /// getNodesSingleCapabilitiesQemuCpu + /// + /// + /// List all custom and default CPU models. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCapabilitiesQemuCpu200Response + ApiResponse GetNodesSingleCapabilitiesQemuCpuWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCapabilitiesQemuCpuflags + /// + /// + /// List of available VM-specific CPU flags. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCapabilitiesQemuCpuflags200Response + GetNodesSingleCapabilitiesQemuCpuflags200Response GetNodesSingleCapabilitiesQemuCpuflags(string node, int operationIndex = 0); + + /// + /// getNodesSingleCapabilitiesQemuCpuflags + /// + /// + /// List of available VM-specific CPU flags. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCapabilitiesQemuCpuflags200Response + ApiResponse GetNodesSingleCapabilitiesQemuCpuflagsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCapabilitiesQemuMachines + /// + /// + /// Get available QEMU/KVM machine types. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCapabilitiesQemuMachines200Response + GetNodesSingleCapabilitiesQemuMachines200Response GetNodesSingleCapabilitiesQemuMachines(string node, int operationIndex = 0); + + /// + /// getNodesSingleCapabilitiesQemuMachines + /// + /// + /// Get available QEMU/KVM machine types. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCapabilitiesQemuMachines200Response + ApiResponse GetNodesSingleCapabilitiesQemuMachinesWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCapabilitiesQemuMigration + /// + /// + /// Get node-specific QEMU migration capabilities of the node. Requires the 'Sys.Audit' permission on '/nodes/<node>'. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCapabilitiesQemuMigration200Response + GetNodesSingleCapabilitiesQemuMigration200Response GetNodesSingleCapabilitiesQemuMigration(string node, int operationIndex = 0); + + /// + /// getNodesSingleCapabilitiesQemuMigration + /// + /// + /// Get node-specific QEMU migration capabilities of the node. Requires the 'Sys.Audit' permission on '/nodes/<node>'. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCapabilitiesQemuMigration200Response + ApiResponse GetNodesSingleCapabilitiesQemuMigrationWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCeph + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleCeph(string node, int operationIndex = 0); + + /// + /// getNodesSingleCeph + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleCephWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephCfg + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleCephCfg(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephCfg + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleCephCfgWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephCfgDb + /// + /// + /// Get the Ceph configuration database. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephCfgDb200Response + GetNodesSingleCephCfgDb200Response GetNodesSingleCephCfgDb(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephCfgDb + /// + /// + /// Get the Ceph configuration database. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephCfgDb200Response + ApiResponse GetNodesSingleCephCfgDbWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephCfgRaw + /// + /// + /// Get the Ceph configuration file. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetNodesSingleCephCfgRaw(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephCfgRaw + /// + /// + /// Get the Ceph configuration file. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetNodesSingleCephCfgRawWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephCfgValue + /// + /// + /// Get configured values from either the config file or config DB. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephCfgValue200Response + GetNodesSingleCephCfgValue200Response GetNodesSingleCephCfgValue(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephCfgValue + /// + /// + /// Get configured values from either the config file or config DB. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephCfgValue200Response + ApiResponse GetNodesSingleCephCfgValueWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephCmdsafety + /// + /// + /// Heuristical check if it is safe to perform an action. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephCmdsafety200Response + GetNodesSingleCephCmdsafety200Response GetNodesSingleCephCmdsafety(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephCmdsafety + /// + /// + /// Heuristical check if it is safe to perform an action. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephCmdsafety200Response + ApiResponse GetNodesSingleCephCmdsafetyWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephCrush + /// + /// + /// Get OSD crush map + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetNodesSingleCephCrush(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephCrush + /// + /// + /// Get OSD crush map + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetNodesSingleCephCrushWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephFs + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephFs200Response + GetNodesSingleCephFs200Response GetNodesSingleCephFs(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephFs + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephFs200Response + ApiResponse GetNodesSingleCephFsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephLog + /// + /// + /// Read ceph log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleCephLog(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephLog + /// + /// + /// Read ceph log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + ApiResponse GetNodesSingleCephLogWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephMds + /// + /// + /// MDS directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephMds200Response + GetNodesSingleCephMds200Response GetNodesSingleCephMds(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephMds + /// + /// + /// MDS directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephMds200Response + ApiResponse GetNodesSingleCephMdsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephMgr + /// + /// + /// MGR directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephMgr200Response + GetNodesSingleCephMgr200Response GetNodesSingleCephMgr(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephMgr + /// + /// + /// MGR directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephMgr200Response + ApiResponse GetNodesSingleCephMgrWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephMon + /// + /// + /// Get Ceph monitor list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephMon200Response + GetNodesSingleCephMon200Response GetNodesSingleCephMon(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephMon + /// + /// + /// Get Ceph monitor list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephMon200Response + ApiResponse GetNodesSingleCephMonWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephOsd + /// + /// + /// Get Ceph osd list/tree. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetNodesSingleCephOsd(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephOsd + /// + /// + /// Get Ceph osd list/tree. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetNodesSingleCephOsdWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephOsdSingle + /// + /// + /// OSD index. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleCephOsdSingle(string node, int osdid, int operationIndex = 0); + + /// + /// getNodesSingleCephOsdSingle + /// + /// + /// OSD index. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleCephOsdSingleWithHttpInfo(string node, int osdid, int operationIndex = 0); + /// + /// getNodesSingleCephOsdSingleLvinfo + /// + /// + /// Get OSD volume details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// GetNodesSingleCephOsdSingleLvinfo200Response + GetNodesSingleCephOsdSingleLvinfo200Response GetNodesSingleCephOsdSingleLvinfo(string node, int osdid, int operationIndex = 0); + + /// + /// getNodesSingleCephOsdSingleLvinfo + /// + /// + /// Get OSD volume details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephOsdSingleLvinfo200Response + ApiResponse GetNodesSingleCephOsdSingleLvinfoWithHttpInfo(string node, int osdid, int operationIndex = 0); + /// + /// getNodesSingleCephOsdSingleMetadata + /// + /// + /// Get OSD details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// GetNodesSingleCephOsdSingleMetadata200Response + GetNodesSingleCephOsdSingleMetadata200Response GetNodesSingleCephOsdSingleMetadata(string node, int osdid, int operationIndex = 0); + + /// + /// getNodesSingleCephOsdSingleMetadata + /// + /// + /// Get OSD details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephOsdSingleMetadata200Response + ApiResponse GetNodesSingleCephOsdSingleMetadataWithHttpInfo(string node, int osdid, int operationIndex = 0); + /// + /// getNodesSingleCephPool + /// + /// + /// List all pools and their settings (which are settable by the POST/PUT endpoints). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephPool200Response + GetNodesSingleCephPool200Response GetNodesSingleCephPool(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephPool + /// + /// + /// List all pools and their settings (which are settable by the POST/PUT endpoints). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephPool200Response + ApiResponse GetNodesSingleCephPoolWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephPoolSingle + /// + /// + /// Pool index. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleCephPoolSingle(string name, string node, int operationIndex = 0); + + /// + /// getNodesSingleCephPoolSingle + /// + /// + /// Pool index. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleCephPoolSingleWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// getNodesSingleCephPoolSingleStatus + /// + /// + /// Show the current pool status. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// GetNodesSingleCephPoolSingleStatus200Response + GetNodesSingleCephPoolSingleStatus200Response GetNodesSingleCephPoolSingleStatus(string name, string node, int operationIndex = 0); + + /// + /// getNodesSingleCephPoolSingleStatus + /// + /// + /// Show the current pool status. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephPoolSingleStatus200Response + ApiResponse GetNodesSingleCephPoolSingleStatusWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// getNodesSingleCephRules + /// + /// + /// List ceph rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephRules200Response + GetNodesSingleCephRules200Response GetNodesSingleCephRules(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephRules + /// + /// + /// List ceph rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephRules200Response + ApiResponse GetNodesSingleCephRulesWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCephStatus + /// + /// + /// Get ceph status. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetNodesSingleCephStatus(string node, int operationIndex = 0); + + /// + /// getNodesSingleCephStatus + /// + /// + /// Get ceph status. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetNodesSingleCephStatusWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCertificates + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleCertificates(string node, int operationIndex = 0); + + /// + /// getNodesSingleCertificates + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleCertificatesWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCertificatesAcme + /// + /// + /// ACME index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleCertificatesAcme(string node, int operationIndex = 0); + + /// + /// getNodesSingleCertificatesAcme + /// + /// + /// ACME index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleCertificatesAcmeWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleCertificatesInfo + /// + /// + /// Get information about node's certificates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCertificatesInfo200Response + GetNodesSingleCertificatesInfo200Response GetNodesSingleCertificatesInfo(string node, int operationIndex = 0); + + /// + /// getNodesSingleCertificatesInfo + /// + /// + /// Get information about node's certificates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCertificatesInfo200Response + ApiResponse GetNodesSingleCertificatesInfoWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleConfig + /// + /// + /// Get node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleConfig200Response + GetNodesSingleConfig200Response GetNodesSingleConfig(string node, int operationIndex = 0); + + /// + /// getNodesSingleConfig + /// + /// + /// Get node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleConfig200Response + ApiResponse GetNodesSingleConfigWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleDisks + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleDisks(string node, int operationIndex = 0); + + /// + /// getNodesSingleDisks + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleDisksWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleDisksDirectory + /// + /// + /// PVE Managed Directory storages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksDirectory200Response + GetNodesSingleDisksDirectory200Response GetNodesSingleDisksDirectory(string node, int operationIndex = 0); + + /// + /// getNodesSingleDisksDirectory + /// + /// + /// PVE Managed Directory storages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksDirectory200Response + ApiResponse GetNodesSingleDisksDirectoryWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleDisksList + /// + /// + /// List local disks. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksList200Response + GetNodesSingleDisksList200Response GetNodesSingleDisksList(string node, int operationIndex = 0); + + /// + /// getNodesSingleDisksList + /// + /// + /// List local disks. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksList200Response + ApiResponse GetNodesSingleDisksListWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleDisksLvm + /// + /// + /// List LVM Volume Groups + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksLvm200Response + GetNodesSingleDisksLvm200Response GetNodesSingleDisksLvm(string node, int operationIndex = 0); + + /// + /// getNodesSingleDisksLvm + /// + /// + /// List LVM Volume Groups + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksLvm200Response + ApiResponse GetNodesSingleDisksLvmWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleDisksLvmthin + /// + /// + /// List LVM thinpools + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksLvmthin200Response + GetNodesSingleDisksLvmthin200Response GetNodesSingleDisksLvmthin(string node, int operationIndex = 0); + + /// + /// getNodesSingleDisksLvmthin + /// + /// + /// List LVM thinpools + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksLvmthin200Response + ApiResponse GetNodesSingleDisksLvmthinWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleDisksSmart + /// + /// + /// Get SMART Health of a disk. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksSmart200Response + GetNodesSingleDisksSmart200Response GetNodesSingleDisksSmart(string node, int operationIndex = 0); + + /// + /// getNodesSingleDisksSmart + /// + /// + /// Get SMART Health of a disk. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksSmart200Response + ApiResponse GetNodesSingleDisksSmartWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleDisksZfs + /// + /// + /// List Zpools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksZfs200Response + GetNodesSingleDisksZfs200Response GetNodesSingleDisksZfs(string node, int operationIndex = 0); + + /// + /// getNodesSingleDisksZfs + /// + /// + /// List Zpools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksZfs200Response + ApiResponse GetNodesSingleDisksZfsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleDisksZfsSingle + /// + /// + /// Get details about a zpool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksZfsSingle200Response + GetNodesSingleDisksZfsSingle200Response GetNodesSingleDisksZfsSingle(string name, string node, int operationIndex = 0); + + /// + /// getNodesSingleDisksZfsSingle + /// + /// + /// Get details about a zpool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksZfsSingle200Response + ApiResponse GetNodesSingleDisksZfsSingleWithHttpInfo(string name, string node, int operationIndex = 0); + /// + /// getNodesSingleDns + /// + /// + /// Read DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDns200Response + GetNodesSingleDns200Response GetNodesSingleDns(string node, int operationIndex = 0); + + /// + /// getNodesSingleDns + /// + /// + /// Read DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDns200Response + ApiResponse GetNodesSingleDnsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleFirewallLog(string node, int operationIndex = 0); + + /// + /// getNodesSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + ApiResponse GetNodesSingleFirewallLogWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleHardware + /// + /// + /// Index of hardware types + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleHardware200Response + GetNodesSingleHardware200Response GetNodesSingleHardware(string node, int operationIndex = 0); + + /// + /// getNodesSingleHardware + /// + /// + /// Index of hardware types + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHardware200Response + ApiResponse GetNodesSingleHardwareWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleHardwarePci + /// + /// + /// List local PCI devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleHardwarePci200Response + GetNodesSingleHardwarePci200Response GetNodesSingleHardwarePci(string node, int operationIndex = 0); + + /// + /// getNodesSingleHardwarePci + /// + /// + /// List local PCI devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHardwarePci200Response + ApiResponse GetNodesSingleHardwarePciWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleHardwarePciSingle + /// + /// + /// Index of available pci methods + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// GetNodesSingleScan200Response + GetNodesSingleScan200Response GetNodesSingleHardwarePciSingle(string node, string pciIdOrMapping, int operationIndex = 0); + + /// + /// getNodesSingleHardwarePciSingle + /// + /// + /// Index of available pci methods + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScan200Response + ApiResponse GetNodesSingleHardwarePciSingleWithHttpInfo(string node, string pciIdOrMapping, int operationIndex = 0); + /// + /// getNodesSingleHardwarePciSingleMdev + /// + /// + /// List mediated device types for given PCI device. + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// GetNodesSingleHardwarePciSingleMdev200Response + GetNodesSingleHardwarePciSingleMdev200Response GetNodesSingleHardwarePciSingleMdev(string node, string pciIdOrMapping, int operationIndex = 0); + + /// + /// getNodesSingleHardwarePciSingleMdev + /// + /// + /// List mediated device types for given PCI device. + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHardwarePciSingleMdev200Response + ApiResponse GetNodesSingleHardwarePciSingleMdevWithHttpInfo(string node, string pciIdOrMapping, int operationIndex = 0); + /// + /// getNodesSingleHardwareUsb + /// + /// + /// List local USB devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleHardwareUsb200Response + GetNodesSingleHardwareUsb200Response GetNodesSingleHardwareUsb(string node, int operationIndex = 0); + + /// + /// getNodesSingleHardwareUsb + /// + /// + /// List local USB devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHardwareUsb200Response + ApiResponse GetNodesSingleHardwareUsbWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleHosts + /// + /// + /// Get the content of /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleHosts200Response + GetNodesSingleHosts200Response GetNodesSingleHosts(string node, int operationIndex = 0); + + /// + /// getNodesSingleHosts + /// + /// + /// Get the content of /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHosts200Response + ApiResponse GetNodesSingleHostsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleJournal + /// + /// + /// Read Journal + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleJournal200Response + GetNodesSingleJournal200Response GetNodesSingleJournal(string node, int operationIndex = 0); + + /// + /// getNodesSingleJournal + /// + /// + /// Read Journal + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleJournal200Response + ApiResponse GetNodesSingleJournalWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleLxc + /// + /// + /// LXC container index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleLxc200Response + GetNodesSingleLxc200Response GetNodesSingleLxc(string node, int operationIndex = 0); + + /// + /// getNodesSingleLxc + /// + /// + /// LXC container index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxc200Response + ApiResponse GetNodesSingleLxcWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleLxcSingle + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetNodesSingleLxcSingle(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingle + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetNodesSingleLxcSingleWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleConfig + /// + /// + /// Get container configuration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleConfig200Response + GetNodesSingleLxcSingleConfig200Response GetNodesSingleLxcSingleConfig(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleConfig + /// + /// + /// Get container configuration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleConfig200Response + ApiResponse GetNodesSingleLxcSingleConfigWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFeature + /// + /// + /// Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleFeature200Response + GetNodesSingleLxcSingleFeature200Response GetNodesSingleLxcSingleFeature(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFeature + /// + /// + /// Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleFeature200Response + ApiResponse GetNodesSingleLxcSingleFeatureWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleLxcSingleFirewall(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleLxcSingleFirewallWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallAliases200Response + GetClusterFirewallAliases200Response GetNodesSingleLxcSingleFirewallAliases(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallAliases200Response + ApiResponse GetNodesSingleLxcSingleFirewallAliasesWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetNodesSingleLxcSingleFirewallAliasesSingle(string name, string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallIpset + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallIPSets200Response + GetClusterFirewallIPSets200Response GetNodesSingleLxcSingleFirewallIpset(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallIpset + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSets200Response + ApiResponse GetNodesSingleLxcSingleFirewallIpsetWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallIPSet200Response + GetClusterFirewallIPSet200Response GetNodesSingleLxcSingleFirewallIpsetSingle(string name, string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSet200Response + ApiResponse GetNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetNodesSingleLxcSingleFirewallIpsetSingleSingle(string cidr, string name, string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(string cidr, string name, string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleLxcSingleFirewallLog(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + ApiResponse GetNodesSingleLxcSingleFirewallLogWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallOptions + /// + /// + /// Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMFirewallOptions200Response + GetVMFirewallOptions200Response GetNodesSingleLxcSingleFirewallOptions(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallOptions + /// + /// + /// Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMFirewallOptions200Response + ApiResponse GetNodesSingleLxcSingleFirewallOptionsWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallRefs200Response + GetClusterFirewallRefs200Response GetNodesSingleLxcSingleFirewallRefs(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallRefs200Response + ApiResponse GetNodesSingleLxcSingleFirewallRefsWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + GetClusterFirewallGroupRules200Response GetNodesSingleLxcSingleFirewallRules(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + ApiResponse GetNodesSingleLxcSingleFirewallRulesWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + GetClusterFirewallGroupRule200Response GetNodesSingleLxcSingleFirewallRulesSingle(string node, int pos, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + ApiResponse GetNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(string node, int pos, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleInterfaces + /// + /// + /// Get IP addresses of the specified container interface. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleInterfaces200Response + GetNodesSingleLxcSingleInterfaces200Response GetNodesSingleLxcSingleInterfaces(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleInterfaces + /// + /// + /// Get IP addresses of the specified container interface. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleInterfaces200Response + ApiResponse GetNodesSingleLxcSingleInterfacesWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleMigrate + /// + /// + /// Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleMigrate200Response + GetNodesSingleLxcSingleMigrate200Response GetNodesSingleLxcSingleMigrate(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleMigrate + /// + /// + /// Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleMigrate200Response + ApiResponse GetNodesSingleLxcSingleMigrateWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleMtunnelwebsocket + /// + /// + /// Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleMtunnelwebsocket200Response + GetNodesSingleQemuSingleMtunnelwebsocket200Response GetNodesSingleLxcSingleMtunnelwebsocket(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleMtunnelwebsocket + /// + /// + /// Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleMtunnelwebsocket200Response + ApiResponse GetNodesSingleLxcSingleMtunnelwebsocketWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSinglePending + /// + /// + /// Get container configuration, including pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSinglePending200Response + GetNodesSingleLxcSinglePending200Response GetNodesSingleLxcSinglePending(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSinglePending + /// + /// + /// Get container configuration, including pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSinglePending200Response + ApiResponse GetNodesSingleLxcSinglePendingWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleRrd + /// + /// + /// Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMRRD200Response + GetVMRRD200Response GetNodesSingleLxcSingleRrd(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleRrd + /// + /// + /// Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMRRD200Response + ApiResponse GetNodesSingleLxcSingleRrdWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleRrddata + /// + /// + /// Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleLxcSingleRrddata(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleRrddata + /// + /// + /// Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleLxcSingleRrddataWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleSnapshot + /// + /// + /// List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleSnapshot200Response + GetNodesSingleLxcSingleSnapshot200Response GetNodesSingleLxcSingleSnapshot(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleSnapshot + /// + /// + /// List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleSnapshot200Response + ApiResponse GetNodesSingleLxcSingleSnapshotWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleSnapshotSingle + /// + /// + /// getNodesSingleLxcSingleSnapshotSingle + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleLxcSingleSnapshotSingle(string node, string snapname, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleSnapshotSingle + /// + /// + /// getNodesSingleLxcSingleSnapshotSingle + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleLxcSingleSnapshotSingleWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleSnapshotSingleConfig + /// + /// + /// Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetNodesSingleLxcSingleSnapshotSingleConfig(string node, string snapname, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleSnapshotSingleConfig + /// + /// + /// Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleStatus + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetNodesSingleLxcSingleStatus(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleStatus + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetNodesSingleLxcSingleStatusWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleStatusCurrent + /// + /// + /// Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleStatusCurrent200Response + GetNodesSingleLxcSingleStatusCurrent200Response GetNodesSingleLxcSingleStatusCurrent(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleStatusCurrent + /// + /// + /// Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleStatusCurrent200Response + ApiResponse GetNodesSingleLxcSingleStatusCurrentWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleLxcSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleVncwebsocket200Response + GetNodesSingleQemuSingleVncwebsocket200Response GetNodesSingleLxcSingleVncwebsocket(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleLxcSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleVncwebsocket200Response + ApiResponse GetNodesSingleLxcSingleVncwebsocketWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleNetstat + /// + /// + /// Read tap/vm network device interface counters + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleNetstat(string node, int operationIndex = 0); + + /// + /// getNodesSingleNetstat + /// + /// + /// Read tap/vm network device interface counters + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleNetstatWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleNetwork + /// + /// + /// List available networks + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleNetwork200Response + GetNodesSingleNetwork200Response GetNodesSingleNetwork(string node, int operationIndex = 0); + + /// + /// getNodesSingleNetwork + /// + /// + /// List available networks + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleNetwork200Response + ApiResponse GetNodesSingleNetworkWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleNetworkSingle + /// + /// + /// Read network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// GetNodesSingleNetworkSingle200Response + GetNodesSingleNetworkSingle200Response GetNodesSingleNetworkSingle(string iface, string node, int operationIndex = 0); + + /// + /// getNodesSingleNetworkSingle + /// + /// + /// Read network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleNetworkSingle200Response + ApiResponse GetNodesSingleNetworkSingleWithHttpInfo(string iface, string node, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgent + /// + /// + /// QEMU Guest Agent command index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleAgent200Response + GetNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgent(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgent + /// + /// + /// QEMU Guest Agent command index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentExecstatus + /// + /// + /// Gets the status of the given pid started by the guest-agent + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleAgentExecstatus200Response + GetNodesSingleQemuSingleAgentExecstatus200Response GetNodesSingleQemuSingleAgentExecstatus(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentExecstatus + /// + /// + /// Gets the status of the given pid started by the guest-agent + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleAgentExecstatus200Response + ApiResponse GetNodesSingleQemuSingleAgentExecstatusWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentFileread + /// + /// + /// Reads the given file via guest agent. Is limited to 16777216 bytes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleAgentFileread200Response + GetNodesSingleQemuSingleAgentFileread200Response GetNodesSingleQemuSingleAgentFileread(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentFileread + /// + /// + /// Reads the given file via guest agent. Is limited to 16777216 bytes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleAgentFileread200Response + ApiResponse GetNodesSingleQemuSingleAgentFilereadWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGetfsinfo + /// + /// + /// Execute get-fsinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetfsinfo(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGetfsinfo + /// + /// + /// Execute get-fsinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGetfsinfoWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGethostname + /// + /// + /// Execute get-host-name. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGethostname(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGethostname + /// + /// + /// Execute get-host-name. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGethostnameWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGetmemoryblockinfo + /// + /// + /// Execute get-memory-block-info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetmemoryblockinfo(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblockinfo + /// + /// + /// Execute get-memory-block-info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGetmemoryblockinfoWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGetmemoryblocks + /// + /// + /// Execute get-memory-blocks. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetmemoryblocks(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblocks + /// + /// + /// Execute get-memory-blocks. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGetmemoryblocksWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGetosinfo + /// + /// + /// Execute get-osinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetosinfo(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGetosinfo + /// + /// + /// Execute get-osinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGetosinfoWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGettime + /// + /// + /// Execute get-time. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGettime(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGettime + /// + /// + /// Execute get-time. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGettimeWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGettimezone + /// + /// + /// Execute get-timezone. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGettimezone(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGettimezone + /// + /// + /// Execute get-timezone. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGettimezoneWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGetusers + /// + /// + /// Execute get-users. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetusers(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGetusers + /// + /// + /// Execute get-users. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGetusersWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentGetvcpus + /// + /// + /// Execute get-vcpus. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetvcpus(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentGetvcpus + /// + /// + /// Execute get-vcpus. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentGetvcpusWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentInfo + /// + /// + /// Execute info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentInfo(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentInfo + /// + /// + /// Execute info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentInfoWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleAgentNetworkgetinterfaces + /// + /// + /// Execute network-get-interfaces. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentNetworkgetinterfaces(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleAgentNetworkgetinterfaces + /// + /// + /// Execute network-get-interfaces. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + ApiResponse GetNodesSingleQemuSingleAgentNetworkgetinterfacesWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleCloudinit + /// + /// + /// Get the cloudinit configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleCloudinit200Response + GetNodesSingleQemuSingleCloudinit200Response GetNodesSingleQemuSingleCloudinit(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleCloudinit + /// + /// + /// Get the cloudinit configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleCloudinit200Response + ApiResponse GetNodesSingleQemuSingleCloudinitWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleCloudinitDump + /// + /// + /// Get automatically generated cloudinit config. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetNodesSingleQemuSingleCloudinitDump(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleCloudinitDump + /// + /// + /// Get automatically generated cloudinit config. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetNodesSingleQemuSingleCloudinitDumpWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleFeature + /// + /// + /// Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFeature200Response + GetNodesSingleQemuSingleFeature200Response GetNodesSingleQemuSingleFeature(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleFeature + /// + /// + /// Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFeature200Response + ApiResponse GetNodesSingleQemuSingleFeatureWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallAliases200Response + GetClusterFirewallAliases200Response GetNodesSingleQemuSingleFirewallAliases(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallAliases200Response + ApiResponse GetNodesSingleQemuSingleFirewallAliasesWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetNodesSingleQemuSingleFirewallAliasesSingle(string name, string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleQemuSingleFirewallLog(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + ApiResponse GetNodesSingleQemuSingleFirewallLogWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallRefs200Response + GetClusterFirewallRefs200Response GetNodesSingleQemuSingleFirewallRefs(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallRefs200Response + ApiResponse GetNodesSingleQemuSingleFirewallRefsWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleMtunnelwebsocket + /// + /// + /// Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleMtunnelwebsocket200Response + GetNodesSingleQemuSingleMtunnelwebsocket200Response GetNodesSingleQemuSingleMtunnelwebsocket(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleMtunnelwebsocket + /// + /// + /// Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleMtunnelwebsocket200Response + ApiResponse GetNodesSingleQemuSingleMtunnelwebsocketWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQemuSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleVncwebsocket200Response + GetNodesSingleQemuSingleVncwebsocket200Response GetNodesSingleQemuSingleVncwebsocket(string node, int vmid, int operationIndex = 0); + + /// + /// getNodesSingleQemuSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleVncwebsocket200Response + ApiResponse GetNodesSingleQemuSingleVncwebsocketWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getNodesSingleQueryocirepotags + /// + /// + /// List all tags for an OCI repository reference. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleJournal200Response + GetNodesSingleJournal200Response GetNodesSingleQueryocirepotags(string node, int operationIndex = 0); + + /// + /// getNodesSingleQueryocirepotags + /// + /// + /// List all tags for an OCI repository reference. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleJournal200Response + ApiResponse GetNodesSingleQueryocirepotagsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleQueryurlmetadata + /// + /// + /// Query metadata of an URL: file size, file name and mime type. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQueryurlmetadata200Response + GetNodesSingleQueryurlmetadata200Response GetNodesSingleQueryurlmetadata(string node, int operationIndex = 0); + + /// + /// getNodesSingleQueryurlmetadata + /// + /// + /// Query metadata of an URL: file size, file name and mime type. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQueryurlmetadata200Response + ApiResponse GetNodesSingleQueryurlmetadataWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleReplication + /// + /// + /// List status of all replication jobs on this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterHa200Response + GetClusterHa200Response GetNodesSingleReplication(string node, int operationIndex = 0); + + /// + /// getNodesSingleReplication + /// + /// + /// List status of all replication jobs on this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterHa200Response + ApiResponse GetNodesSingleReplicationWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleReplicationSingle + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleReplicationSingle(string id, string node, int operationIndex = 0); + + /// + /// getNodesSingleReplicationSingle + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleReplicationSingleWithHttpInfo(string id, string node, int operationIndex = 0); + /// + /// getNodesSingleReplicationSingleLog + /// + /// + /// Read replication job log. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleReplicationSingleLog(string id, string node, int operationIndex = 0); + + /// + /// getNodesSingleReplicationSingleLog + /// + /// + /// Read replication job log. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + ApiResponse GetNodesSingleReplicationSingleLogWithHttpInfo(string id, string node, int operationIndex = 0); + /// + /// getNodesSingleReplicationSingleStatus + /// + /// + /// Get replication job status. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetNodesSingleReplicationSingleStatus(string id, string node, int operationIndex = 0); + + /// + /// getNodesSingleReplicationSingleStatus + /// + /// + /// Get replication job status. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetNodesSingleReplicationSingleStatusWithHttpInfo(string id, string node, int operationIndex = 0); + /// + /// getNodesSingleReport + /// + /// + /// Gather various systems information about a node + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetNodesSingleReport(string node, int operationIndex = 0); + + /// + /// getNodesSingleReport + /// + /// + /// Gather various systems information about a node + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetNodesSingleReportWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleScan + /// + /// + /// Index of available scan methods + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScan200Response + GetNodesSingleScan200Response GetNodesSingleScan(string node, int operationIndex = 0); + + /// + /// getNodesSingleScan + /// + /// + /// Index of available scan methods + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScan200Response + ApiResponse GetNodesSingleScanWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleScanCifs + /// + /// + /// Scan remote CIFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanCifs200Response + GetNodesSingleScanCifs200Response GetNodesSingleScanCifs(string node, int operationIndex = 0); + + /// + /// getNodesSingleScanCifs + /// + /// + /// Scan remote CIFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanCifs200Response + ApiResponse GetNodesSingleScanCifsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleScanIscsi + /// + /// + /// Scan remote iSCSI server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanIscsi200Response + GetNodesSingleScanIscsi200Response GetNodesSingleScanIscsi(string node, int operationIndex = 0); + + /// + /// getNodesSingleScanIscsi + /// + /// + /// Scan remote iSCSI server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanIscsi200Response + ApiResponse GetNodesSingleScanIscsiWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleScanLvm + /// + /// + /// List local LVM volume groups. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanLvm200Response + GetNodesSingleScanLvm200Response GetNodesSingleScanLvm(string node, int operationIndex = 0); + + /// + /// getNodesSingleScanLvm + /// + /// + /// List local LVM volume groups. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanLvm200Response + ApiResponse GetNodesSingleScanLvmWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleScanLvmthin + /// + /// + /// List local LVM Thin Pools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanLvmthin200Response + GetNodesSingleScanLvmthin200Response GetNodesSingleScanLvmthin(string node, int operationIndex = 0); + + /// + /// getNodesSingleScanLvmthin + /// + /// + /// List local LVM Thin Pools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanLvmthin200Response + ApiResponse GetNodesSingleScanLvmthinWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleScanNfs + /// + /// + /// Scan remote NFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanNfs200Response + GetNodesSingleScanNfs200Response GetNodesSingleScanNfs(string node, int operationIndex = 0); + + /// + /// getNodesSingleScanNfs + /// + /// + /// Scan remote NFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanNfs200Response + ApiResponse GetNodesSingleScanNfsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleScanPbs + /// + /// + /// Scan remote Proxmox Backup Server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanPbs200Response + GetNodesSingleScanPbs200Response GetNodesSingleScanPbs(string node, int operationIndex = 0); + + /// + /// getNodesSingleScanPbs + /// + /// + /// Scan remote Proxmox Backup Server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanPbs200Response + ApiResponse GetNodesSingleScanPbsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleScanZfs + /// + /// + /// Scan zfs pool list on local node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanZfs200Response + GetNodesSingleScanZfs200Response GetNodesSingleScanZfs(string node, int operationIndex = 0); + + /// + /// getNodesSingleScanZfs + /// + /// + /// Scan zfs pool list on local node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanZfs200Response + ApiResponse GetNodesSingleScanZfsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleSdnFabricsSingle + /// + /// + /// Directory index for SDN fabric status. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetNodesSingleSdnFabricsSingle(string fabric, string node, int operationIndex = 0); + + /// + /// getNodesSingleSdnFabricsSingle + /// + /// + /// Directory index for SDN fabric status. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetNodesSingleSdnFabricsSingleWithHttpInfo(string fabric, string node, int operationIndex = 0); + /// + /// getNodesSingleSdnFabricsSingleInterfaces + /// + /// + /// Get all interfaces for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// GetNodesSingleSdnFabricsSingleInterfaces200Response + GetNodesSingleSdnFabricsSingleInterfaces200Response GetNodesSingleSdnFabricsSingleInterfaces(string fabric, string node, int operationIndex = 0); + + /// + /// getNodesSingleSdnFabricsSingleInterfaces + /// + /// + /// Get all interfaces for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnFabricsSingleInterfaces200Response + ApiResponse GetNodesSingleSdnFabricsSingleInterfacesWithHttpInfo(string fabric, string node, int operationIndex = 0); + /// + /// getNodesSingleSdnFabricsSingleNeighbors + /// + /// + /// Get all neighbors for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// GetNodesSingleSdnFabricsSingleNeighbors200Response + GetNodesSingleSdnFabricsSingleNeighbors200Response GetNodesSingleSdnFabricsSingleNeighbors(string fabric, string node, int operationIndex = 0); + + /// + /// getNodesSingleSdnFabricsSingleNeighbors + /// + /// + /// Get all neighbors for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnFabricsSingleNeighbors200Response + ApiResponse GetNodesSingleSdnFabricsSingleNeighborsWithHttpInfo(string fabric, string node, int operationIndex = 0); + /// + /// getNodesSingleSdnFabricsSingleRoutes + /// + /// + /// Get all routes for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// GetNodesSingleSdnFabricsSingleRoutes200Response + GetNodesSingleSdnFabricsSingleRoutes200Response GetNodesSingleSdnFabricsSingleRoutes(string fabric, string node, int operationIndex = 0); + + /// + /// getNodesSingleSdnFabricsSingleRoutes + /// + /// + /// Get all routes for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnFabricsSingleRoutes200Response + ApiResponse GetNodesSingleSdnFabricsSingleRoutesWithHttpInfo(string fabric, string node, int operationIndex = 0); + /// + /// getNodesSingleSdnVnetsSingle + /// + /// + /// getNodesSingleSdnVnetsSingle + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetNodesSingleSdnVnetsSingle(string node, string vnet, int operationIndex = 0); + + /// + /// getNodesSingleSdnVnetsSingle + /// + /// + /// getNodesSingleSdnVnetsSingle + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetNodesSingleSdnVnetsSingleWithHttpInfo(string node, string vnet, int operationIndex = 0); + /// + /// getNodesSingleSdnVnetsSingleMacvrf + /// + /// + /// Get the MAC VRF for a VNet in an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// GetNodesSingleSdnVnetsSingleMacvrf200Response + GetNodesSingleSdnVnetsSingleMacvrf200Response GetNodesSingleSdnVnetsSingleMacvrf(string node, string vnet, int operationIndex = 0); + + /// + /// getNodesSingleSdnVnetsSingleMacvrf + /// + /// + /// Get the MAC VRF for a VNet in an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnVnetsSingleMacvrf200Response + ApiResponse GetNodesSingleSdnVnetsSingleMacvrfWithHttpInfo(string node, string vnet, int operationIndex = 0); + /// + /// getNodesSingleSdnZonesSingleBridges + /// + /// + /// Get a list of all bridges (vnets) that are part of a zone, as well as the ports that are members of that bridge. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// GetNodesSingleSdnZonesSingleBridges200Response + GetNodesSingleSdnZonesSingleBridges200Response GetNodesSingleSdnZonesSingleBridges(string node, string zone, int operationIndex = 0); + + /// + /// getNodesSingleSdnZonesSingleBridges + /// + /// + /// Get a list of all bridges (vnets) that are part of a zone, as well as the ports that are members of that bridge. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnZonesSingleBridges200Response + ApiResponse GetNodesSingleSdnZonesSingleBridgesWithHttpInfo(string node, string zone, int operationIndex = 0); + /// + /// getNodesSingleSdnZonesSingleIpvrf + /// + /// + /// Get the IP VRF of an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// GetNodesSingleSdnZonesSingleIpvrf200Response + GetNodesSingleSdnZonesSingleIpvrf200Response GetNodesSingleSdnZonesSingleIpvrf(string node, string zone, int operationIndex = 0); + + /// + /// getNodesSingleSdnZonesSingleIpvrf + /// + /// + /// Get the IP VRF of an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnZonesSingleIpvrf200Response + ApiResponse GetNodesSingleSdnZonesSingleIpvrfWithHttpInfo(string node, string zone, int operationIndex = 0); + /// + /// getNodesSingleServices + /// + /// + /// Service list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleServices200Response + GetNodesSingleServices200Response GetNodesSingleServices(string node, int operationIndex = 0); + + /// + /// getNodesSingleServices + /// + /// + /// Service list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleServices200Response + ApiResponse GetNodesSingleServicesWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleServicesSingle + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetNodesSingleServicesSingle(string node, string service, int operationIndex = 0); + + /// + /// getNodesSingleServicesSingle + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetNodesSingleServicesSingleWithHttpInfo(string node, string service, int operationIndex = 0); + /// + /// getNodesSingleServicesSingleState + /// + /// + /// Read service properties + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// GetNodesSingleServicesSingleState200Response + GetNodesSingleServicesSingleState200Response GetNodesSingleServicesSingleState(string node, string service, int operationIndex = 0); + + /// + /// getNodesSingleServicesSingleState + /// + /// + /// Read service properties + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleServicesSingleState200Response + ApiResponse GetNodesSingleServicesSingleStateWithHttpInfo(string node, string service, int operationIndex = 0); + /// + /// getNodesSingleStatus + /// + /// + /// Read node status + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleStatus200Response + GetNodesSingleStatus200Response GetNodesSingleStatus(string node, int operationIndex = 0); + + /// + /// getNodesSingleStatus + /// + /// + /// Read node status + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStatus200Response + ApiResponse GetNodesSingleStatusWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleStorage + /// + /// + /// Get status for all datastores. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleStorage200Response + GetNodesSingleStorage200Response GetNodesSingleStorage(string node, int operationIndex = 0); + + /// + /// getNodesSingleStorage + /// + /// + /// Get status for all datastores. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorage200Response + ApiResponse GetNodesSingleStorageWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleStorageSingle + /// + /// + /// getNodesSingleStorageSingle + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetNodesSingleStorageSingle(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingle + /// + /// + /// getNodesSingleStorageSingle + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetNodesSingleStorageSingleWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleStorageSingleContent + /// + /// + /// List storage content. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleContent200Response + GetNodesSingleStorageSingleContent200Response GetNodesSingleStorageSingleContent(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingleContent + /// + /// + /// List storage content. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleContent200Response + ApiResponse GetNodesSingleStorageSingleContentWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleStorageSingleContentSingle + /// + /// + /// Get volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// GetNodesSingleStorageSingleContentSingle200Response + GetNodesSingleStorageSingleContentSingle200Response GetNodesSingleStorageSingleContentSingle(string node, string storage, string volume, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingleContentSingle + /// + /// + /// Get volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleContentSingle200Response + ApiResponse GetNodesSingleStorageSingleContentSingleWithHttpInfo(string node, string storage, string volume, int operationIndex = 0); + /// + /// getNodesSingleStorageSingleFilerestoreDownload + /// + /// + /// Extract a file or directory (as zip archive) from a PBS backup. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleFilerestoreDownload200Response + GetNodesSingleStorageSingleFilerestoreDownload200Response GetNodesSingleStorageSingleFilerestoreDownload(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingleFilerestoreDownload + /// + /// + /// Extract a file or directory (as zip archive) from a PBS backup. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleFilerestoreDownload200Response + ApiResponse GetNodesSingleStorageSingleFilerestoreDownloadWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleStorageSingleFilerestoreList + /// + /// + /// List files and directories for single file restore under the given path. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleFilerestoreList200Response + GetNodesSingleStorageSingleFilerestoreList200Response GetNodesSingleStorageSingleFilerestoreList(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingleFilerestoreList + /// + /// + /// List files and directories for single file restore under the given path. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleFilerestoreList200Response + ApiResponse GetNodesSingleStorageSingleFilerestoreListWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleStorageSingleImportmetadata + /// + /// + /// Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleImportmetadata200Response + GetNodesSingleStorageSingleImportmetadata200Response GetNodesSingleStorageSingleImportmetadata(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingleImportmetadata + /// + /// + /// Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleImportmetadata200Response + ApiResponse GetNodesSingleStorageSingleImportmetadataWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleStorageSinglePrunebackups + /// + /// + /// Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSinglePrunebackups200Response + GetNodesSingleStorageSinglePrunebackups200Response GetNodesSingleStorageSinglePrunebackups(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSinglePrunebackups + /// + /// + /// Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSinglePrunebackups200Response + ApiResponse GetNodesSingleStorageSinglePrunebackupsWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleStorageSingleRrd + /// + /// + /// Read storage RRD statistics (returns PNG). + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetVMRRD200Response + GetVMRRD200Response GetNodesSingleStorageSingleRrd(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingleRrd + /// + /// + /// Read storage RRD statistics (returns PNG). + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetVMRRD200Response + ApiResponse GetNodesSingleStorageSingleRrdWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleStorageSingleRrddata + /// + /// + /// Read storage RRD statistics. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetNodesSingleStorageSingleRrddata(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingleRrddata + /// + /// + /// Read storage RRD statistics. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetNodesSingleStorageSingleRrddataWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleStorageSingleStatus + /// + /// + /// Read storage status. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleStatus200Response + GetNodesSingleStorageSingleStatus200Response GetNodesSingleStorageSingleStatus(string node, string storage, int operationIndex = 0); + + /// + /// getNodesSingleStorageSingleStatus + /// + /// + /// Read storage status. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleStatus200Response + ApiResponse GetNodesSingleStorageSingleStatusWithHttpInfo(string node, string storage, int operationIndex = 0); + /// + /// getNodesSingleSubscription + /// + /// + /// Read subscription info. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleSubscription200Response + GetNodesSingleSubscription200Response GetNodesSingleSubscription(string node, int operationIndex = 0); + + /// + /// getNodesSingleSubscription + /// + /// + /// Read subscription info. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSubscription200Response + ApiResponse GetNodesSingleSubscriptionWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleSyslog + /// + /// + /// Read system log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleSyslog(string node, int operationIndex = 0); + + /// + /// getNodesSingleSyslog + /// + /// + /// Read system log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + ApiResponse GetNodesSingleSyslogWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleTime + /// + /// + /// Read server time and time zone settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleTime200Response + GetNodesSingleTime200Response GetNodesSingleTime(string node, int operationIndex = 0); + + /// + /// getNodesSingleTime + /// + /// + /// Read server time and time zone settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleTime200Response + ApiResponse GetNodesSingleTimeWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleVersion + /// + /// + /// API version details + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleVersion200Response + GetNodesSingleVersion200Response GetNodesSingleVersion(string node, int operationIndex = 0); + + /// + /// getNodesSingleVersion + /// + /// + /// API version details + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleVersion200Response + ApiResponse GetNodesSingleVersionWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleVncwebsocket200Response + GetNodesSingleQemuSingleVncwebsocket200Response GetNodesSingleVncwebsocket(string node, int operationIndex = 0); + + /// + /// getNodesSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleVncwebsocket200Response + ApiResponse GetNodesSingleVncwebsocketWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleVzdumpDefaults + /// + /// + /// Get the currently configured vzdump defaults. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleVzdumpDefaults200Response + GetNodesSingleVzdumpDefaults200Response GetNodesSingleVzdumpDefaults(string node, int operationIndex = 0); + + /// + /// getNodesSingleVzdumpDefaults + /// + /// + /// Get the currently configured vzdump defaults. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleVzdumpDefaults200Response + ApiResponse GetNodesSingleVzdumpDefaultsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getNodesSingleVzdumpExtractconfig + /// + /// + /// Extract configuration from vzdump backup archive. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response GetNodesSingleVzdumpExtractconfig(string node, int operationIndex = 0); + + /// + /// getNodesSingleVzdumpExtractconfig + /// + /// + /// Extract configuration from vzdump backup archive. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse GetNodesSingleVzdumpExtractconfigWithHttpInfo(string node, int operationIndex = 0); + /// + /// getPool + /// + /// + /// Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// GetPool200Response + GetPool200Response GetPool(string poolid, int operationIndex = 0); + + /// + /// getPool + /// + /// + /// Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// ApiResponse of GetPool200Response + ApiResponse GetPoolWithHttpInfo(string poolid, int operationIndex = 0); + /// + /// getPools + /// + /// + /// List pools or get pool configuration. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetPools200Response + GetPools200Response GetPools(int operationIndex = 0); + + /// + /// getPools + /// + /// + /// List pools or get pool configuration. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetPools200Response + ApiResponse GetPoolsWithHttpInfo(int operationIndex = 0); + /// + /// getStorage + /// + /// + /// Storage index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetStorage200Response + GetStorage200Response GetStorage(int operationIndex = 0); + + /// + /// getStorage + /// + /// + /// Storage index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetStorage200Response + ApiResponse GetStorageWithHttpInfo(int operationIndex = 0); + /// + /// getStorageSingle + /// + /// + /// Read storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetStorageSingle(string storage, int operationIndex = 0); + + /// + /// getStorageSingle + /// + /// + /// Read storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetStorageSingleWithHttpInfo(string storage, int operationIndex = 0); + /// + /// getVM + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetVM(string node, int vmid, int operationIndex = 0); + + /// + /// getVM + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetVMWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMConfig + /// + /// + /// Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMConfig200Response + GetVMConfig200Response GetVMConfig(string node, int vmid, int operationIndex = 0); + + /// + /// getVMConfig + /// + /// + /// Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMConfig200Response + ApiResponse GetVMConfigWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMConfigPending + /// + /// + /// Get the virtual machine configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMConfigPending200Response + GetVMConfigPending200Response GetVMConfigPending(string node, int vmid, int operationIndex = 0); + + /// + /// getVMConfigPending + /// + /// + /// Get the virtual machine configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMConfigPending200Response + ApiResponse GetVMConfigPendingWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetVMFirewall(string node, int vmid, int operationIndex = 0); + + /// + /// getVMFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetVMFirewallWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMFirewallIPSet + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallIPSet200Response + GetClusterFirewallIPSet200Response GetVMFirewallIPSet(string name, string node, int vmid, int operationIndex = 0); + + /// + /// getVMFirewallIPSet + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSet200Response + ApiResponse GetVMFirewallIPSetWithHttpInfo(string name, string node, int vmid, int operationIndex = 0); + /// + /// getVMFirewallIPSetIP + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetVMFirewallIPSetIP(string cidr, string name, string node, int vmid, int operationIndex = 0); + + /// + /// getVMFirewallIPSetIP + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetVMFirewallIPSetIPWithHttpInfo(string cidr, string name, string node, int vmid, int operationIndex = 0); + /// + /// getVMFirewallIPSets + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallIPSets200Response + GetClusterFirewallIPSets200Response GetVMFirewallIPSets(string node, int vmid, int operationIndex = 0); + + /// + /// getVMFirewallIPSets + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSets200Response + ApiResponse GetVMFirewallIPSetsWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMFirewallOptions + /// + /// + /// Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMFirewallOptions200Response + GetVMFirewallOptions200Response GetVMFirewallOptions(string node, int vmid, int operationIndex = 0); + + /// + /// getVMFirewallOptions + /// + /// + /// Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMFirewallOptions200Response + ApiResponse GetVMFirewallOptionsWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + GetClusterFirewallGroupRule200Response GetVMFirewallRule(string node, int pos, int vmid, int operationIndex = 0); + + /// + /// getVMFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + ApiResponse GetVMFirewallRuleWithHttpInfo(string node, int pos, int vmid, int operationIndex = 0); + /// + /// getVMFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + GetClusterFirewallGroupRules200Response GetVMFirewallRules(string node, int vmid, int operationIndex = 0); + + /// + /// getVMFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + ApiResponse GetVMFirewallRulesWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMRRD + /// + /// + /// Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMRRD200Response + GetVMRRD200Response GetVMRRD(string node, int vmid, int operationIndex = 0); + + /// + /// getVMRRD + /// + /// + /// Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMRRD200Response + ApiResponse GetVMRRDWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMRRDData + /// + /// + /// Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetVMRRDData(string node, int vmid, int operationIndex = 0); + + /// + /// getVMRRDData + /// + /// + /// Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetVMRRDDataWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMSnapshot + /// + /// + /// getVMSnapshot + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + GetCluster200Response GetVMSnapshot(string node, string snapname, int vmid, int operationIndex = 0); + + /// + /// getVMSnapshot + /// + /// + /// getVMSnapshot + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + ApiResponse GetVMSnapshotWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0); + /// + /// getVMSnapshotConfig + /// + /// + /// Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + GetClusterMetricsServerSingle200Response GetVMSnapshotConfig(string node, string snapname, int vmid, int operationIndex = 0); + + /// + /// getVMSnapshotConfig + /// + /// + /// Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + ApiResponse GetVMSnapshotConfigWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0); + /// + /// getVMSnapshots + /// + /// + /// List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMSnapshots200Response + GetVMSnapshots200Response GetVMSnapshots(string node, int vmid, int operationIndex = 0); + + /// + /// getVMSnapshots + /// + /// + /// List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMSnapshots200Response + ApiResponse GetVMSnapshotsWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMStatus + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + GetClusterSdnFabrics200Response GetVMStatus(string node, int vmid, int operationIndex = 0); + + /// + /// getVMStatus + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + ApiResponse GetVMStatusWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// getVMs + /// + /// + /// Virtual machine index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetVMs200Response + GetVMs200Response GetVMs(string node, int operationIndex = 0); + + /// + /// getVMs + /// + /// + /// Virtual machine index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetVMs200Response + ApiResponse GetVMsWithHttpInfo(string node, int operationIndex = 0); + /// + /// getVersion + /// + /// + /// API version details, including some parts of the global datacenter config. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetVersion200Response + GetVersion200Response GetVersion(int operationIndex = 0); + + /// + /// getVersion + /// + /// + /// API version details, including some parts of the global datacenter config. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetVersion200Response + ApiResponse GetVersionWithHttpInfo(int operationIndex = 0); + /// + /// migrateVM + /// + /// + /// Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// MigrateVM200Response + MigrateVM200Response MigrateVM(string node, int vmid, int operationIndex = 0); + + /// + /// migrateVM + /// + /// + /// Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of MigrateVM200Response + ApiResponse MigrateVMWithHttpInfo(string node, int vmid, int operationIndex = 0); + /// + /// rebootVM + /// + /// + /// Reboot the VM by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response RebootVM(string node, int vmid, RebootVMRequest? rebootVMRequest = default(RebootVMRequest?), int operationIndex = 0); + + /// + /// rebootVM + /// + /// + /// Reboot the VM by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse RebootVMWithHttpInfo(string node, int vmid, RebootVMRequest? rebootVMRequest = default(RebootVMRequest?), int operationIndex = 0); + /// + /// removeClusterFirewallGroupRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response RemoveClusterFirewallGroupRule(string group, int pos, int operationIndex = 0); + + /// + /// removeClusterFirewallGroupRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse RemoveClusterFirewallGroupRuleWithHttpInfo(string group, int pos, int operationIndex = 0); + /// + /// removeClusterFirewallIPSetIP + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response RemoveClusterFirewallIPSetIP(string cidr, string name, int operationIndex = 0); + + /// + /// removeClusterFirewallIPSetIP + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse RemoveClusterFirewallIPSetIPWithHttpInfo(string cidr, string name, int operationIndex = 0); + /// + /// removeClusterFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response RemoveClusterFirewallRule(int pos, int operationIndex = 0); + + /// + /// removeClusterFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse RemoveClusterFirewallRuleWithHttpInfo(int pos, int operationIndex = 0); + /// + /// removeVMFirewallIPSetIP + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response RemoveVMFirewallIPSetIP(string cidr, string name, string node, int vmid, int operationIndex = 0); + + /// + /// removeVMFirewallIPSetIP + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse RemoveVMFirewallIPSetIPWithHttpInfo(string cidr, string name, string node, int vmid, int operationIndex = 0); + /// + /// resetVM + /// + /// + /// Reset virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response ResetVM(string node, int vmid, ResetVMRequest? resetVMRequest = default(ResetVMRequest?), int operationIndex = 0); + + /// + /// resetVM + /// + /// + /// Reset virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse ResetVMWithHttpInfo(string node, int vmid, ResetVMRequest? resetVMRequest = default(ResetVMRequest?), int operationIndex = 0); + /// + /// resizeVMDisk + /// + /// + /// Extend volume size. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response ResizeVMDisk(string node, int vmid, ResizeVMDiskRequest? resizeVMDiskRequest = default(ResizeVMDiskRequest?), int operationIndex = 0); + + /// + /// resizeVMDisk + /// + /// + /// Extend volume size. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse ResizeVMDiskWithHttpInfo(string node, int vmid, ResizeVMDiskRequest? resizeVMDiskRequest = default(ResizeVMDiskRequest?), int operationIndex = 0); + /// + /// resumeVM + /// + /// + /// Resume virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response ResumeVM(string node, int vmid, ResumeVMRequest? resumeVMRequest = default(ResumeVMRequest?), int operationIndex = 0); + + /// + /// resumeVM + /// + /// + /// Resume virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse ResumeVMWithHttpInfo(string node, int vmid, ResumeVMRequest? resumeVMRequest = default(ResumeVMRequest?), int operationIndex = 0); + /// + /// rollbackVMSnapshot + /// + /// + /// Rollback VM state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response RollbackVMSnapshot(string node, string snapname, int vmid, RollbackVMSnapshotRequest? rollbackVMSnapshotRequest = default(RollbackVMSnapshotRequest?), int operationIndex = 0); + + /// + /// rollbackVMSnapshot + /// + /// + /// Rollback VM state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse RollbackVMSnapshotWithHttpInfo(string node, string snapname, int vmid, RollbackVMSnapshotRequest? rollbackVMSnapshotRequest = default(RollbackVMSnapshotRequest?), int operationIndex = 0); + /// + /// shutdownVM + /// + /// + /// Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response ShutdownVM(string node, int vmid, ShutdownVMRequest? shutdownVMRequest = default(ShutdownVMRequest?), int operationIndex = 0); + + /// + /// shutdownVM + /// + /// + /// Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse ShutdownVMWithHttpInfo(string node, int vmid, ShutdownVMRequest? shutdownVMRequest = default(ShutdownVMRequest?), int operationIndex = 0); + /// + /// startVM + /// + /// + /// Start virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response StartVM(string node, int vmid, StartVMRequest? startVMRequest = default(StartVMRequest?), int operationIndex = 0); + + /// + /// startVM + /// + /// + /// Start virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse StartVMWithHttpInfo(string node, int vmid, StartVMRequest? startVMRequest = default(StartVMRequest?), int operationIndex = 0); + /// + /// stopNodeTask + /// + /// + /// Stop a task. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response StopNodeTask(string node, string upid, int operationIndex = 0); + + /// + /// stopNodeTask + /// + /// + /// Stop a task. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse StopNodeTaskWithHttpInfo(string node, string upid, int operationIndex = 0); + /// + /// stopVM + /// + /// + /// Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response StopVM(string node, int vmid, StopVMRequest? stopVMRequest = default(StopVMRequest?), int operationIndex = 0); + + /// + /// stopVM + /// + /// + /// Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse StopVMWithHttpInfo(string node, int vmid, StopVMRequest? stopVMRequest = default(StopVMRequest?), int operationIndex = 0); + /// + /// suspendVM + /// + /// + /// Suspend virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response SuspendVM(string node, int vmid, SuspendVMRequest? suspendVMRequest = default(SuspendVMRequest?), int operationIndex = 0); + + /// + /// suspendVM + /// + /// + /// Suspend virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse SuspendVMWithHttpInfo(string node, int vmid, SuspendVMRequest? suspendVMRequest = default(SuspendVMRequest?), int operationIndex = 0); + /// + /// unlinkVMDiskImages + /// + /// + /// Unlink/delete disk images. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UnlinkVMDiskImages(string node, int vmid, UnlinkVMDiskImagesRequest? unlinkVMDiskImagesRequest = default(UnlinkVMDiskImagesRequest?), int operationIndex = 0); + + /// + /// unlinkVMDiskImages + /// + /// + /// Unlink/delete disk images. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UnlinkVMDiskImagesWithHttpInfo(string node, int vmid, UnlinkVMDiskImagesRequest? unlinkVMDiskImagesRequest = default(UnlinkVMDiskImagesRequest?), int operationIndex = 0); + /// + /// updateAccessAcl + /// + /// + /// Update Access Control List (add or remove permissions). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateAccessAcl(UpdateAccessAclRequest? updateAccessAclRequest = default(UpdateAccessAclRequest?), int operationIndex = 0); + + /// + /// updateAccessAcl + /// + /// + /// Update Access Control List (add or remove permissions). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateAccessAclWithHttpInfo(UpdateAccessAclRequest? updateAccessAclRequest = default(UpdateAccessAclRequest?), int operationIndex = 0); + /// + /// updateAccessDomainsSingle + /// + /// + /// Update authentication server settings. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateAccessDomainsSingle(string realm, UpdateAccessDomainsSingleRequest? updateAccessDomainsSingleRequest = default(UpdateAccessDomainsSingleRequest?), int operationIndex = 0); + + /// + /// updateAccessDomainsSingle + /// + /// + /// Update authentication server settings. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateAccessDomainsSingleWithHttpInfo(string realm, UpdateAccessDomainsSingleRequest? updateAccessDomainsSingleRequest = default(UpdateAccessDomainsSingleRequest?), int operationIndex = 0); + /// + /// updateAccessGroupsSingle + /// + /// + /// Update group data. + /// + /// Thrown when fails to make API call + /// groupid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateAccessGroupsSingle(string groupid, UpdateAccessGroupsSingleRequest? updateAccessGroupsSingleRequest = default(UpdateAccessGroupsSingleRequest?), int operationIndex = 0); + + /// + /// updateAccessGroupsSingle + /// + /// + /// Update group data. + /// + /// Thrown when fails to make API call + /// groupid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateAccessGroupsSingleWithHttpInfo(string groupid, UpdateAccessGroupsSingleRequest? updateAccessGroupsSingleRequest = default(UpdateAccessGroupsSingleRequest?), int operationIndex = 0); + /// + /// updateAccessPassword + /// + /// + /// Change user password. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateAccessPassword(UpdateAccessPasswordRequest? updateAccessPasswordRequest = default(UpdateAccessPasswordRequest?), int operationIndex = 0); + + /// + /// updateAccessPassword + /// + /// + /// Change user password. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateAccessPasswordWithHttpInfo(UpdateAccessPasswordRequest? updateAccessPasswordRequest = default(UpdateAccessPasswordRequest?), int operationIndex = 0); + /// + /// updateAccessRolesSingle + /// + /// + /// Update an existing role. + /// + /// Thrown when fails to make API call + /// roleid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateAccessRolesSingle(string roleid, UpdateAccessRolesSingleRequest? updateAccessRolesSingleRequest = default(UpdateAccessRolesSingleRequest?), int operationIndex = 0); + + /// + /// updateAccessRolesSingle + /// + /// + /// Update an existing role. + /// + /// Thrown when fails to make API call + /// roleid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateAccessRolesSingleWithHttpInfo(string roleid, UpdateAccessRolesSingleRequest? updateAccessRolesSingleRequest = default(UpdateAccessRolesSingleRequest?), int operationIndex = 0); + /// + /// updateAccessTfaSingleSingle + /// + /// + /// Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateAccessTfaSingleSingle(string id, string userid, UpdateAccessTfaSingleSingleRequest? updateAccessTfaSingleSingleRequest = default(UpdateAccessTfaSingleSingleRequest?), int operationIndex = 0); + + /// + /// updateAccessTfaSingleSingle + /// + /// + /// Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateAccessTfaSingleSingleWithHttpInfo(string id, string userid, UpdateAccessTfaSingleSingleRequest? updateAccessTfaSingleSingleRequest = default(UpdateAccessTfaSingleSingleRequest?), int operationIndex = 0); + /// + /// updateAccessUsersSingle + /// + /// + /// Update user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateAccessUsersSingle(string userid, UpdateAccessUsersSingleRequest? updateAccessUsersSingleRequest = default(UpdateAccessUsersSingleRequest?), int operationIndex = 0); + + /// + /// updateAccessUsersSingle + /// + /// + /// Update user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateAccessUsersSingleWithHttpInfo(string userid, UpdateAccessUsersSingleRequest? updateAccessUsersSingleRequest = default(UpdateAccessUsersSingleRequest?), int operationIndex = 0); + /// + /// updateAccessUsersSingleTokenSingle + /// + /// + /// Update API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// UpdateAccessUsersSingleTokenSingle200Response + UpdateAccessUsersSingleTokenSingle200Response UpdateAccessUsersSingleTokenSingle(string tokenid, string userid, UpdateAccessUsersSingleTokenSingleRequest? updateAccessUsersSingleTokenSingleRequest = default(UpdateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0); + + /// + /// updateAccessUsersSingleTokenSingle + /// + /// + /// Update API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of UpdateAccessUsersSingleTokenSingle200Response + ApiResponse UpdateAccessUsersSingleTokenSingleWithHttpInfo(string tokenid, string userid, UpdateAccessUsersSingleTokenSingleRequest? updateAccessUsersSingleTokenSingleRequest = default(UpdateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0); + /// + /// updateAccessUsersSingleUnlocktfa + /// + /// + /// Unlock a user's TFA authentication. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// GetClusterCephFlagsSingle200Response + GetClusterCephFlagsSingle200Response UpdateAccessUsersSingleUnlocktfa(string userid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// updateAccessUsersSingleUnlocktfa + /// + /// + /// Unlock a user's TFA authentication. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of GetClusterCephFlagsSingle200Response + ApiResponse UpdateAccessUsersSingleUnlocktfaWithHttpInfo(string userid, Object? body = default(Object?), int operationIndex = 0); + /// + /// updateClusterAcmeAccountSingle + /// + /// + /// Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterAcmeAccountSingle(string name, UpdateClusterAcmeAccountSingleRequest? updateClusterAcmeAccountSingleRequest = default(UpdateClusterAcmeAccountSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterAcmeAccountSingle + /// + /// + /// Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterAcmeAccountSingleWithHttpInfo(string name, UpdateClusterAcmeAccountSingleRequest? updateClusterAcmeAccountSingleRequest = default(UpdateClusterAcmeAccountSingleRequest?), int operationIndex = 0); + /// + /// updateClusterAcmePluginsSingle + /// + /// + /// Update ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterAcmePluginsSingle(string id, UpdateClusterAcmePluginsSingleRequest? updateClusterAcmePluginsSingleRequest = default(UpdateClusterAcmePluginsSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterAcmePluginsSingle + /// + /// + /// Update ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterAcmePluginsSingleWithHttpInfo(string id, UpdateClusterAcmePluginsSingleRequest? updateClusterAcmePluginsSingleRequest = default(UpdateClusterAcmePluginsSingleRequest?), int operationIndex = 0); + /// + /// updateClusterBackupSingle + /// + /// + /// Update vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterBackupSingle(string id, UpdateClusterBackupSingleRequest? updateClusterBackupSingleRequest = default(UpdateClusterBackupSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterBackupSingle + /// + /// + /// Update vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterBackupSingleWithHttpInfo(string id, UpdateClusterBackupSingleRequest? updateClusterBackupSingleRequest = default(UpdateClusterBackupSingleRequest?), int operationIndex = 0); + /// + /// updateClusterCephFlags + /// + /// + /// Set/Unset multiple ceph flags at once. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterCephFlags(UpdateClusterCephFlagsRequest? updateClusterCephFlagsRequest = default(UpdateClusterCephFlagsRequest?), int operationIndex = 0); + + /// + /// updateClusterCephFlags + /// + /// + /// Set/Unset multiple ceph flags at once. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterCephFlagsWithHttpInfo(UpdateClusterCephFlagsRequest? updateClusterCephFlagsRequest = default(UpdateClusterCephFlagsRequest?), int operationIndex = 0); + /// + /// updateClusterCephFlagsSingle + /// + /// + /// Set or clear (unset) a specific ceph flag + /// + /// Thrown when fails to make API call + /// flag + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterCephFlagsSingle(string flag, UpdateClusterCephFlagsSingleRequest? updateClusterCephFlagsSingleRequest = default(UpdateClusterCephFlagsSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterCephFlagsSingle + /// + /// + /// Set or clear (unset) a specific ceph flag + /// + /// Thrown when fails to make API call + /// flag + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterCephFlagsSingleWithHttpInfo(string flag, UpdateClusterCephFlagsSingleRequest? updateClusterCephFlagsSingleRequest = default(UpdateClusterCephFlagsSingleRequest?), int operationIndex = 0); + /// + /// updateClusterFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterFirewallAliasesSingle(string name, UpdateClusterFirewallAliasesSingleRequest? updateClusterFirewallAliasesSingleRequest = default(UpdateClusterFirewallAliasesSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterFirewallAliasesSingleWithHttpInfo(string name, UpdateClusterFirewallAliasesSingleRequest? updateClusterFirewallAliasesSingleRequest = default(UpdateClusterFirewallAliasesSingleRequest?), int operationIndex = 0); + /// + /// updateClusterFirewallGroupRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterFirewallGroupRule(string group, int pos, UpdateClusterFirewallGroupRuleRequest? updateClusterFirewallGroupRuleRequest = default(UpdateClusterFirewallGroupRuleRequest?), int operationIndex = 0); + + /// + /// updateClusterFirewallGroupRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterFirewallGroupRuleWithHttpInfo(string group, int pos, UpdateClusterFirewallGroupRuleRequest? updateClusterFirewallGroupRuleRequest = default(UpdateClusterFirewallGroupRuleRequest?), int operationIndex = 0); + /// + /// updateClusterFirewallIPSetIP + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterFirewallIPSetIP(string cidr, string name, UpdateClusterFirewallIPSetIPRequest? updateClusterFirewallIPSetIPRequest = default(UpdateClusterFirewallIPSetIPRequest?), int operationIndex = 0); + + /// + /// updateClusterFirewallIPSetIP + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterFirewallIPSetIPWithHttpInfo(string cidr, string name, UpdateClusterFirewallIPSetIPRequest? updateClusterFirewallIPSetIPRequest = default(UpdateClusterFirewallIPSetIPRequest?), int operationIndex = 0); + /// + /// updateClusterFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterFirewallOptions(UpdateClusterFirewallOptionsRequest? updateClusterFirewallOptionsRequest = default(UpdateClusterFirewallOptionsRequest?), int operationIndex = 0); + + /// + /// updateClusterFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterFirewallOptionsWithHttpInfo(UpdateClusterFirewallOptionsRequest? updateClusterFirewallOptionsRequest = default(UpdateClusterFirewallOptionsRequest?), int operationIndex = 0); + /// + /// updateClusterFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterFirewallRule(int pos, UpdateClusterFirewallRuleRequest? updateClusterFirewallRuleRequest = default(UpdateClusterFirewallRuleRequest?), int operationIndex = 0); + + /// + /// updateClusterFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterFirewallRuleWithHttpInfo(int pos, UpdateClusterFirewallRuleRequest? updateClusterFirewallRuleRequest = default(UpdateClusterFirewallRuleRequest?), int operationIndex = 0); + /// + /// updateClusterHaGroupsSingle + /// + /// + /// Update ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterHaGroupsSingle(string group, UpdateClusterHaGroupsSingleRequest? updateClusterHaGroupsSingleRequest = default(UpdateClusterHaGroupsSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterHaGroupsSingle + /// + /// + /// Update ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterHaGroupsSingleWithHttpInfo(string group, UpdateClusterHaGroupsSingleRequest? updateClusterHaGroupsSingleRequest = default(UpdateClusterHaGroupsSingleRequest?), int operationIndex = 0); + /// + /// updateClusterHaResourcesSingle + /// + /// + /// Update resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterHaResourcesSingle(string sid, UpdateClusterHaResourcesSingleRequest? updateClusterHaResourcesSingleRequest = default(UpdateClusterHaResourcesSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterHaResourcesSingle + /// + /// + /// Update resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterHaResourcesSingleWithHttpInfo(string sid, UpdateClusterHaResourcesSingleRequest? updateClusterHaResourcesSingleRequest = default(UpdateClusterHaResourcesSingleRequest?), int operationIndex = 0); + /// + /// updateClusterHaRulesSingle + /// + /// + /// Update HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterHaRulesSingle(string rule, UpdateClusterHaRulesSingleRequest? updateClusterHaRulesSingleRequest = default(UpdateClusterHaRulesSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterHaRulesSingle + /// + /// + /// Update HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterHaRulesSingleWithHttpInfo(string rule, UpdateClusterHaRulesSingleRequest? updateClusterHaRulesSingleRequest = default(UpdateClusterHaRulesSingleRequest?), int operationIndex = 0); + /// + /// updateClusterJobsRealmsyncSingle + /// + /// + /// Update realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterJobsRealmsyncSingle(string id, UpdateClusterJobsRealmsyncSingleRequest? updateClusterJobsRealmsyncSingleRequest = default(UpdateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterJobsRealmsyncSingle + /// + /// + /// Update realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterJobsRealmsyncSingleWithHttpInfo(string id, UpdateClusterJobsRealmsyncSingleRequest? updateClusterJobsRealmsyncSingleRequest = default(UpdateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0); + /// + /// updateClusterMappingDirSingle + /// + /// + /// Update a directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterMappingDirSingle(string id, UpdateClusterMappingDirSingleRequest? updateClusterMappingDirSingleRequest = default(UpdateClusterMappingDirSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterMappingDirSingle + /// + /// + /// Update a directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterMappingDirSingleWithHttpInfo(string id, UpdateClusterMappingDirSingleRequest? updateClusterMappingDirSingleRequest = default(UpdateClusterMappingDirSingleRequest?), int operationIndex = 0); + /// + /// updateClusterMappingPciSingle + /// + /// + /// Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterMappingPciSingle(string id, UpdateClusterMappingPciSingleRequest? updateClusterMappingPciSingleRequest = default(UpdateClusterMappingPciSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterMappingPciSingle + /// + /// + /// Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterMappingPciSingleWithHttpInfo(string id, UpdateClusterMappingPciSingleRequest? updateClusterMappingPciSingleRequest = default(UpdateClusterMappingPciSingleRequest?), int operationIndex = 0); + /// + /// updateClusterMappingUsbSingle + /// + /// + /// Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterMappingUsbSingle(string id, UpdateClusterMappingUsbSingleRequest? updateClusterMappingUsbSingleRequest = default(UpdateClusterMappingUsbSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterMappingUsbSingle + /// + /// + /// Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterMappingUsbSingleWithHttpInfo(string id, UpdateClusterMappingUsbSingleRequest? updateClusterMappingUsbSingleRequest = default(UpdateClusterMappingUsbSingleRequest?), int operationIndex = 0); + /// + /// updateClusterMetricsServerSingle + /// + /// + /// Update metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterMetricsServerSingle(string id, UpdateClusterMetricsServerSingleRequest? updateClusterMetricsServerSingleRequest = default(UpdateClusterMetricsServerSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterMetricsServerSingle + /// + /// + /// Update metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterMetricsServerSingleWithHttpInfo(string id, UpdateClusterMetricsServerSingleRequest? updateClusterMetricsServerSingleRequest = default(UpdateClusterMetricsServerSingleRequest?), int operationIndex = 0); + /// + /// updateClusterNotificationsEndpointsGotifySingle + /// + /// + /// Update existing gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterNotificationsEndpointsGotifySingle(string name, UpdateClusterNotificationsEndpointsGotifySingleRequest? updateClusterNotificationsEndpointsGotifySingleRequest = default(UpdateClusterNotificationsEndpointsGotifySingleRequest?), int operationIndex = 0); + + /// + /// updateClusterNotificationsEndpointsGotifySingle + /// + /// + /// Update existing gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterNotificationsEndpointsGotifySingleWithHttpInfo(string name, UpdateClusterNotificationsEndpointsGotifySingleRequest? updateClusterNotificationsEndpointsGotifySingleRequest = default(UpdateClusterNotificationsEndpointsGotifySingleRequest?), int operationIndex = 0); + /// + /// updateClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Update existing sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterNotificationsEndpointsSendmailSingle(string name, UpdateClusterNotificationsEndpointsSendmailSingleRequest? updateClusterNotificationsEndpointsSendmailSingleRequest = default(UpdateClusterNotificationsEndpointsSendmailSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Update existing sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterNotificationsEndpointsSendmailSingleWithHttpInfo(string name, UpdateClusterNotificationsEndpointsSendmailSingleRequest? updateClusterNotificationsEndpointsSendmailSingleRequest = default(UpdateClusterNotificationsEndpointsSendmailSingleRequest?), int operationIndex = 0); + /// + /// updateClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Update existing smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterNotificationsEndpointsSmtpSingle(string name, UpdateClusterNotificationsEndpointsSmtpSingleRequest? updateClusterNotificationsEndpointsSmtpSingleRequest = default(UpdateClusterNotificationsEndpointsSmtpSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Update existing smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterNotificationsEndpointsSmtpSingleWithHttpInfo(string name, UpdateClusterNotificationsEndpointsSmtpSingleRequest? updateClusterNotificationsEndpointsSmtpSingleRequest = default(UpdateClusterNotificationsEndpointsSmtpSingleRequest?), int operationIndex = 0); + /// + /// updateClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Update existing webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterNotificationsEndpointsWebhookSingle(string name, UpdateClusterNotificationsEndpointsWebhookSingleRequest? updateClusterNotificationsEndpointsWebhookSingleRequest = default(UpdateClusterNotificationsEndpointsWebhookSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Update existing webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterNotificationsEndpointsWebhookSingleWithHttpInfo(string name, UpdateClusterNotificationsEndpointsWebhookSingleRequest? updateClusterNotificationsEndpointsWebhookSingleRequest = default(UpdateClusterNotificationsEndpointsWebhookSingleRequest?), int operationIndex = 0); + /// + /// updateClusterNotificationsMatchersSingle + /// + /// + /// Update existing matcher + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterNotificationsMatchersSingle(string name, UpdateClusterNotificationsMatchersSingleRequest? updateClusterNotificationsMatchersSingleRequest = default(UpdateClusterNotificationsMatchersSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterNotificationsMatchersSingle + /// + /// + /// Update existing matcher + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterNotificationsMatchersSingleWithHttpInfo(string name, UpdateClusterNotificationsMatchersSingleRequest? updateClusterNotificationsMatchersSingleRequest = default(UpdateClusterNotificationsMatchersSingleRequest?), int operationIndex = 0); + /// + /// updateClusterOptions + /// + /// + /// Set datacenter options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterOptions(UpdateClusterOptionsRequest? updateClusterOptionsRequest = default(UpdateClusterOptionsRequest?), int operationIndex = 0); + + /// + /// updateClusterOptions + /// + /// + /// Set datacenter options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterOptionsWithHttpInfo(UpdateClusterOptionsRequest? updateClusterOptionsRequest = default(UpdateClusterOptionsRequest?), int operationIndex = 0); + /// + /// updateClusterReplicationSingle + /// + /// + /// Update replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterReplicationSingle(string id, UpdateClusterReplicationSingleRequest? updateClusterReplicationSingleRequest = default(UpdateClusterReplicationSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterReplicationSingle + /// + /// + /// Update replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterReplicationSingleWithHttpInfo(string id, UpdateClusterReplicationSingleRequest? updateClusterReplicationSingleRequest = default(UpdateClusterReplicationSingleRequest?), int operationIndex = 0); + /// + /// updateClusterSDN + /// + /// + /// Apply sdn controller changes && reload. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSDN(UpdateClusterSDNRequest? updateClusterSDNRequest = default(UpdateClusterSDNRequest?), int operationIndex = 0); + + /// + /// updateClusterSDN + /// + /// + /// Apply sdn controller changes && reload. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSDNWithHttpInfo(UpdateClusterSDNRequest? updateClusterSDNRequest = default(UpdateClusterSDNRequest?), int operationIndex = 0); + /// + /// updateClusterSDNController + /// + /// + /// Update sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSDNController(string controller, UpdateClusterSDNControllerRequest? updateClusterSDNControllerRequest = default(UpdateClusterSDNControllerRequest?), int operationIndex = 0); + + /// + /// updateClusterSDNController + /// + /// + /// Update sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSDNControllerWithHttpInfo(string controller, UpdateClusterSDNControllerRequest? updateClusterSDNControllerRequest = default(UpdateClusterSDNControllerRequest?), int operationIndex = 0); + /// + /// updateClusterSDNVnet + /// + /// + /// Update sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSDNVnet(string vnet, UpdateClusterSDNVnetRequest? updateClusterSDNVnetRequest = default(UpdateClusterSDNVnetRequest?), int operationIndex = 0); + + /// + /// updateClusterSDNVnet + /// + /// + /// Update sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSDNVnetWithHttpInfo(string vnet, UpdateClusterSDNVnetRequest? updateClusterSDNVnetRequest = default(UpdateClusterSDNVnetRequest?), int operationIndex = 0); + /// + /// updateClusterSDNZone + /// + /// + /// Update sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSDNZone(string zone, UpdateClusterSDNZoneRequest? updateClusterSDNZoneRequest = default(UpdateClusterSDNZoneRequest?), int operationIndex = 0); + + /// + /// updateClusterSDNZone + /// + /// + /// Update sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSDNZoneWithHttpInfo(string zone, UpdateClusterSDNZoneRequest? updateClusterSDNZoneRequest = default(UpdateClusterSDNZoneRequest?), int operationIndex = 0); + /// + /// updateClusterSdnDnsSingle + /// + /// + /// Update sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSdnDnsSingle(string dns, UpdateClusterSdnDnsSingleRequest? updateClusterSdnDnsSingleRequest = default(UpdateClusterSdnDnsSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterSdnDnsSingle + /// + /// + /// Update sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSdnDnsSingleWithHttpInfo(string dns, UpdateClusterSdnDnsSingleRequest? updateClusterSdnDnsSingleRequest = default(UpdateClusterSdnDnsSingleRequest?), int operationIndex = 0); + /// + /// updateClusterSdnFabricsFabricSingle + /// + /// + /// Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSdnFabricsFabricSingle(string id, UpdateClusterSdnFabricsFabricSingleRequest? updateClusterSdnFabricsFabricSingleRequest = default(UpdateClusterSdnFabricsFabricSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterSdnFabricsFabricSingle + /// + /// + /// Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSdnFabricsFabricSingleWithHttpInfo(string id, UpdateClusterSdnFabricsFabricSingleRequest? updateClusterSdnFabricsFabricSingleRequest = default(UpdateClusterSdnFabricsFabricSingleRequest?), int operationIndex = 0); + /// + /// updateClusterSdnFabricsNodeSingleSingle + /// + /// + /// Update a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSdnFabricsNodeSingleSingle(string fabricId, string nodeId, UpdateClusterSdnFabricsNodeSingleSingleRequest? updateClusterSdnFabricsNodeSingleSingleRequest = default(UpdateClusterSdnFabricsNodeSingleSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterSdnFabricsNodeSingleSingle + /// + /// + /// Update a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSdnFabricsNodeSingleSingleWithHttpInfo(string fabricId, string nodeId, UpdateClusterSdnFabricsNodeSingleSingleRequest? updateClusterSdnFabricsNodeSingleSingleRequest = default(UpdateClusterSdnFabricsNodeSingleSingleRequest?), int operationIndex = 0); + /// + /// updateClusterSdnIpamsSingle + /// + /// + /// Update sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSdnIpamsSingle(string ipam, UpdateClusterSdnIpamsSingleRequest? updateClusterSdnIpamsSingleRequest = default(UpdateClusterSdnIpamsSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterSdnIpamsSingle + /// + /// + /// Update sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSdnIpamsSingleWithHttpInfo(string ipam, UpdateClusterSdnIpamsSingleRequest? updateClusterSdnIpamsSingleRequest = default(UpdateClusterSdnIpamsSingleRequest?), int operationIndex = 0); + /// + /// updateClusterSdnVnetsSingleFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSdnVnetsSingleFirewallOptions(string vnet, UpdateClusterSdnVnetsSingleFirewallOptionsRequest? updateClusterSdnVnetsSingleFirewallOptionsRequest = default(UpdateClusterSdnVnetsSingleFirewallOptionsRequest?), int operationIndex = 0); + + /// + /// updateClusterSdnVnetsSingleFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSdnVnetsSingleFirewallOptionsWithHttpInfo(string vnet, UpdateClusterSdnVnetsSingleFirewallOptionsRequest? updateClusterSdnVnetsSingleFirewallOptionsRequest = default(UpdateClusterSdnVnetsSingleFirewallOptionsRequest?), int operationIndex = 0); + /// + /// updateClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSdnVnetsSingleFirewallRulesSingle(int pos, string vnet, UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest? updateClusterSdnVnetsSingleFirewallRulesSingleRequest = default(UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(int pos, string vnet, UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest? updateClusterSdnVnetsSingleFirewallRulesSingleRequest = default(UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest?), int operationIndex = 0); + /// + /// updateClusterSdnVnetsSingleIps + /// + /// + /// Update IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSdnVnetsSingleIps(string vnet, UpdateClusterSdnVnetsSingleIpsRequest? updateClusterSdnVnetsSingleIpsRequest = default(UpdateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0); + + /// + /// updateClusterSdnVnetsSingleIps + /// + /// + /// Update IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSdnVnetsSingleIpsWithHttpInfo(string vnet, UpdateClusterSdnVnetsSingleIpsRequest? updateClusterSdnVnetsSingleIpsRequest = default(UpdateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0); + /// + /// updateClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Update sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateClusterSdnVnetsSingleSubnetsSingle(string subnet, string vnet, UpdateClusterSdnVnetsSingleSubnetsSingleRequest? updateClusterSdnVnetsSingleSubnetsSingleRequest = default(UpdateClusterSdnVnetsSingleSubnetsSingleRequest?), int operationIndex = 0); + + /// + /// updateClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Update sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(string subnet, string vnet, UpdateClusterSdnVnetsSingleSubnetsSingleRequest? updateClusterSdnVnetsSingleSubnetsSingleRequest = default(UpdateClusterSdnVnetsSingleSubnetsSingleRequest?), int operationIndex = 0); + /// + /// updateNodeFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodeFirewallOptions(string node, UpdateNodeFirewallOptionsRequest? updateNodeFirewallOptionsRequest = default(UpdateNodeFirewallOptionsRequest?), int operationIndex = 0); + + /// + /// updateNodeFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodeFirewallOptionsWithHttpInfo(string node, UpdateNodeFirewallOptionsRequest? updateNodeFirewallOptionsRequest = default(UpdateNodeFirewallOptionsRequest?), int operationIndex = 0); + /// + /// updateNodeFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodeFirewallRule(string node, int pos, UpdateNodeFirewallRuleRequest? updateNodeFirewallRuleRequest = default(UpdateNodeFirewallRuleRequest?), int operationIndex = 0); + + /// + /// updateNodeFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodeFirewallRuleWithHttpInfo(string node, int pos, UpdateNodeFirewallRuleRequest? updateNodeFirewallRuleRequest = default(UpdateNodeFirewallRuleRequest?), int operationIndex = 0); + /// + /// updateNodesSingleAptRepositories + /// + /// + /// Add a standard repository to the configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleAptRepositories(string node, UpdateNodesSingleAptRepositoriesRequest? updateNodesSingleAptRepositoriesRequest = default(UpdateNodesSingleAptRepositoriesRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleAptRepositories + /// + /// + /// Add a standard repository to the configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleAptRepositoriesWithHttpInfo(string node, UpdateNodesSingleAptRepositoriesRequest? updateNodesSingleAptRepositoriesRequest = default(UpdateNodesSingleAptRepositoriesRequest?), int operationIndex = 0); + /// + /// updateNodesSingleCephPoolSingle + /// + /// + /// Change POOL settings + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleCephPoolSingle(string name, string node, UpdateNodesSingleCephPoolSingleRequest? updateNodesSingleCephPoolSingleRequest = default(UpdateNodesSingleCephPoolSingleRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleCephPoolSingle + /// + /// + /// Change POOL settings + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleCephPoolSingleWithHttpInfo(string name, string node, UpdateNodesSingleCephPoolSingleRequest? updateNodesSingleCephPoolSingleRequest = default(UpdateNodesSingleCephPoolSingleRequest?), int operationIndex = 0); + /// + /// updateNodesSingleCertificatesAcmeCertificate + /// + /// + /// Renew existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleCertificatesAcmeCertificate(string node, UpdateNodesSingleCertificatesAcmeCertificateRequest? updateNodesSingleCertificatesAcmeCertificateRequest = default(UpdateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleCertificatesAcmeCertificate + /// + /// + /// Renew existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleCertificatesAcmeCertificateWithHttpInfo(string node, UpdateNodesSingleCertificatesAcmeCertificateRequest? updateNodesSingleCertificatesAcmeCertificateRequest = default(UpdateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0); + /// + /// updateNodesSingleConfig + /// + /// + /// Set node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleConfig(string node, UpdateNodesSingleConfigRequest? updateNodesSingleConfigRequest = default(UpdateNodesSingleConfigRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleConfig + /// + /// + /// Set node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleConfigWithHttpInfo(string node, UpdateNodesSingleConfigRequest? updateNodesSingleConfigRequest = default(UpdateNodesSingleConfigRequest?), int operationIndex = 0); + /// + /// updateNodesSingleDisksWipedisk + /// + /// + /// Wipe a disk or partition. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleDisksWipedisk(string node, UpdateNodesSingleDisksWipediskRequest? updateNodesSingleDisksWipediskRequest = default(UpdateNodesSingleDisksWipediskRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleDisksWipedisk + /// + /// + /// Wipe a disk or partition. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleDisksWipediskWithHttpInfo(string node, UpdateNodesSingleDisksWipediskRequest? updateNodesSingleDisksWipediskRequest = default(UpdateNodesSingleDisksWipediskRequest?), int operationIndex = 0); + /// + /// updateNodesSingleDns + /// + /// + /// Write DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleDns(string node, UpdateNodesSingleDnsRequest? updateNodesSingleDnsRequest = default(UpdateNodesSingleDnsRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleDns + /// + /// + /// Write DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleDnsWithHttpInfo(string node, UpdateNodesSingleDnsRequest? updateNodesSingleDnsRequest = default(UpdateNodesSingleDnsRequest?), int operationIndex = 0); + /// + /// updateNodesSingleLxcSingleConfig + /// + /// + /// Set container options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleLxcSingleConfig(string node, int vmid, UpdateNodesSingleLxcSingleConfigRequest? updateNodesSingleLxcSingleConfigRequest = default(UpdateNodesSingleLxcSingleConfigRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleLxcSingleConfig + /// + /// + /// Set container options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleLxcSingleConfigWithHttpInfo(string node, int vmid, UpdateNodesSingleLxcSingleConfigRequest? updateNodesSingleLxcSingleConfigRequest = default(UpdateNodesSingleLxcSingleConfigRequest?), int operationIndex = 0); + /// + /// updateNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleLxcSingleFirewallAliasesSingle(string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest? updateNodesSingleLxcSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest? updateNodesSingleLxcSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest?), int operationIndex = 0); + /// + /// updateNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle(string cidr, string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest? updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest = default(UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(string cidr, string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest? updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest = default(UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest?), int operationIndex = 0); + /// + /// updateNodesSingleLxcSingleFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleLxcSingleFirewallOptions(string node, int vmid, UpdateNodesSingleLxcSingleFirewallOptionsRequest? updateNodesSingleLxcSingleFirewallOptionsRequest = default(UpdateNodesSingleLxcSingleFirewallOptionsRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleLxcSingleFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleLxcSingleFirewallOptionsWithHttpInfo(string node, int vmid, UpdateNodesSingleLxcSingleFirewallOptionsRequest? updateNodesSingleLxcSingleFirewallOptionsRequest = default(UpdateNodesSingleLxcSingleFirewallOptionsRequest?), int operationIndex = 0); + /// + /// updateNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleLxcSingleFirewallRulesSingle(string node, int pos, int vmid, UpdateNodesSingleLxcSingleFirewallRulesSingleRequest? updateNodesSingleLxcSingleFirewallRulesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallRulesSingleRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(string node, int pos, int vmid, UpdateNodesSingleLxcSingleFirewallRulesSingleRequest? updateNodesSingleLxcSingleFirewallRulesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallRulesSingleRequest?), int operationIndex = 0); + /// + /// updateNodesSingleLxcSingleResize + /// + /// + /// Resize a container mount point. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + CreateNodesSingleQemuSingleMovedisk200Response UpdateNodesSingleLxcSingleResize(string node, int vmid, UpdateNodesSingleLxcSingleResizeRequest? updateNodesSingleLxcSingleResizeRequest = default(UpdateNodesSingleLxcSingleResizeRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleLxcSingleResize + /// + /// + /// Resize a container mount point. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + ApiResponse UpdateNodesSingleLxcSingleResizeWithHttpInfo(string node, int vmid, UpdateNodesSingleLxcSingleResizeRequest? updateNodesSingleLxcSingleResizeRequest = default(UpdateNodesSingleLxcSingleResizeRequest?), int operationIndex = 0); + /// + /// updateNodesSingleLxcSingleSnapshotSingleConfig + /// + /// + /// Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleLxcSingleSnapshotSingleConfig(string node, string snapname, int vmid, UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest? updateNodesSingleLxcSingleSnapshotSingleConfigRequest = default(UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleLxcSingleSnapshotSingleConfig + /// + /// + /// Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfo(string node, string snapname, int vmid, UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest? updateNodesSingleLxcSingleSnapshotSingleConfigRequest = default(UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest?), int operationIndex = 0); + /// + /// updateNodesSingleNetwork + /// + /// + /// Reload network configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleNetwork(string node, UpdateNodesSingleNetworkRequest? updateNodesSingleNetworkRequest = default(UpdateNodesSingleNetworkRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleNetwork + /// + /// + /// Reload network configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleNetworkWithHttpInfo(string node, UpdateNodesSingleNetworkRequest? updateNodesSingleNetworkRequest = default(UpdateNodesSingleNetworkRequest?), int operationIndex = 0); + /// + /// updateNodesSingleNetworkSingle + /// + /// + /// Update network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleNetworkSingle(string iface, string node, UpdateNodesSingleNetworkSingleRequest? updateNodesSingleNetworkSingleRequest = default(UpdateNodesSingleNetworkSingleRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleNetworkSingle + /// + /// + /// Update network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleNetworkSingleWithHttpInfo(string iface, string node, UpdateNodesSingleNetworkSingleRequest? updateNodesSingleNetworkSingleRequest = default(UpdateNodesSingleNetworkSingleRequest?), int operationIndex = 0); + /// + /// updateNodesSingleQemuSingleCloudinit + /// + /// + /// Regenerate and change cloudinit config drive. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleQemuSingleCloudinit(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + + /// + /// updateNodesSingleQemuSingleCloudinit + /// + /// + /// Regenerate and change cloudinit config drive. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleQemuSingleCloudinitWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0); + /// + /// updateNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleQemuSingleFirewallAliasesSingle(string name, string node, int vmid, UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest? updateNodesSingleQemuSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest? updateNodesSingleQemuSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest?), int operationIndex = 0); + /// + /// updateNodesSingleQemuSingleSendkey + /// + /// + /// Send key event to virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleQemuSingleSendkey(string node, int vmid, UpdateNodesSingleQemuSingleSendkeyRequest? updateNodesSingleQemuSingleSendkeyRequest = default(UpdateNodesSingleQemuSingleSendkeyRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleQemuSingleSendkey + /// + /// + /// Send key event to virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleQemuSingleSendkeyWithHttpInfo(string node, int vmid, UpdateNodesSingleQemuSingleSendkeyRequest? updateNodesSingleQemuSingleSendkeyRequest = default(UpdateNodesSingleQemuSingleSendkeyRequest?), int operationIndex = 0); + /// + /// updateNodesSingleStorageSingleContentSingle + /// + /// + /// Update volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleStorageSingleContentSingle(string node, string storage, string volume, UpdateNodesSingleStorageSingleContentSingleRequest? updateNodesSingleStorageSingleContentSingleRequest = default(UpdateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleStorageSingleContentSingle + /// + /// + /// Update volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleStorageSingleContentSingleWithHttpInfo(string node, string storage, string volume, UpdateNodesSingleStorageSingleContentSingleRequest? updateNodesSingleStorageSingleContentSingleRequest = default(UpdateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0); + /// + /// updateNodesSingleSubscription + /// + /// + /// Set subscription key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleSubscription(string node, UpdateNodesSingleSubscriptionRequest? updateNodesSingleSubscriptionRequest = default(UpdateNodesSingleSubscriptionRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleSubscription + /// + /// + /// Set subscription key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleSubscriptionWithHttpInfo(string node, UpdateNodesSingleSubscriptionRequest? updateNodesSingleSubscriptionRequest = default(UpdateNodesSingleSubscriptionRequest?), int operationIndex = 0); + /// + /// updateNodesSingleTime + /// + /// + /// Set time zone. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateNodesSingleTime(string node, UpdateNodesSingleTimeRequest? updateNodesSingleTimeRequest = default(UpdateNodesSingleTimeRequest?), int operationIndex = 0); + + /// + /// updateNodesSingleTime + /// + /// + /// Set time zone. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateNodesSingleTimeWithHttpInfo(string node, UpdateNodesSingleTimeRequest? updateNodesSingleTimeRequest = default(UpdateNodesSingleTimeRequest?), int operationIndex = 0); + /// + /// updatePool + /// + /// + /// Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). + /// + /// Thrown when fails to make API call + /// poolid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdatePool(string poolid, UpdatePoolRequest? updatePoolRequest = default(UpdatePoolRequest?), int operationIndex = 0); + + /// + /// updatePool + /// + /// + /// Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). + /// + /// Thrown when fails to make API call + /// poolid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdatePoolWithHttpInfo(string poolid, UpdatePoolRequest? updatePoolRequest = default(UpdatePoolRequest?), int operationIndex = 0); + /// + /// updatePools + /// + /// + /// Update pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdatePools(UpdatePoolsRequest? updatePoolsRequest = default(UpdatePoolsRequest?), int operationIndex = 0); + + /// + /// updatePools + /// + /// + /// Update pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdatePoolsWithHttpInfo(UpdatePoolsRequest? updatePoolsRequest = default(UpdatePoolsRequest?), int operationIndex = 0); + /// + /// updateStorageSingle + /// + /// + /// Update storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateStorage200Response + CreateStorage200Response UpdateStorageSingle(string storage, UpdateStorageSingleRequest? updateStorageSingleRequest = default(UpdateStorageSingleRequest?), int operationIndex = 0); + + /// + /// updateStorageSingle + /// + /// + /// Update storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateStorage200Response + ApiResponse UpdateStorageSingleWithHttpInfo(string storage, UpdateStorageSingleRequest? updateStorageSingleRequest = default(UpdateStorageSingleRequest?), int operationIndex = 0); + /// + /// updateVMConfig + /// + /// + /// Set virtual machine options (asynchronous API). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateVMConfig(string node, int vmid, UpdateVMConfigRequest? updateVMConfigRequest = default(UpdateVMConfigRequest?), int operationIndex = 0); + + /// + /// updateVMConfig + /// + /// + /// Set virtual machine options (asynchronous API). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateVMConfigWithHttpInfo(string node, int vmid, UpdateVMConfigRequest? updateVMConfigRequest = default(UpdateVMConfigRequest?), int operationIndex = 0); + /// + /// updateVMConfigSync + /// + /// + /// Set virtual machine options (synchronous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateVMConfigSync(string node, int vmid, UpdateVMConfigSyncRequest? updateVMConfigSyncRequest = default(UpdateVMConfigSyncRequest?), int operationIndex = 0); + + /// + /// updateVMConfigSync + /// + /// + /// Set virtual machine options (synchronous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateVMConfigSyncWithHttpInfo(string node, int vmid, UpdateVMConfigSyncRequest? updateVMConfigSyncRequest = default(UpdateVMConfigSyncRequest?), int operationIndex = 0); + /// + /// updateVMFirewallIPSetIP + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateVMFirewallIPSetIP(string cidr, string name, string node, int vmid, UpdateVMFirewallIPSetIPRequest? updateVMFirewallIPSetIPRequest = default(UpdateVMFirewallIPSetIPRequest?), int operationIndex = 0); + + /// + /// updateVMFirewallIPSetIP + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateVMFirewallIPSetIPWithHttpInfo(string cidr, string name, string node, int vmid, UpdateVMFirewallIPSetIPRequest? updateVMFirewallIPSetIPRequest = default(UpdateVMFirewallIPSetIPRequest?), int operationIndex = 0); + /// + /// updateVMFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateVMFirewallOptions(string node, int vmid, UpdateVMFirewallOptionsRequest? updateVMFirewallOptionsRequest = default(UpdateVMFirewallOptionsRequest?), int operationIndex = 0); + + /// + /// updateVMFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateVMFirewallOptionsWithHttpInfo(string node, int vmid, UpdateVMFirewallOptionsRequest? updateVMFirewallOptionsRequest = default(UpdateVMFirewallOptionsRequest?), int operationIndex = 0); + /// + /// updateVMFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateVMFirewallRule(string node, int pos, int vmid, UpdateVMFirewallRuleRequest? updateVMFirewallRuleRequest = default(UpdateVMFirewallRuleRequest?), int operationIndex = 0); + + /// + /// updateVMFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateVMFirewallRuleWithHttpInfo(string node, int pos, int vmid, UpdateVMFirewallRuleRequest? updateVMFirewallRuleRequest = default(UpdateVMFirewallRuleRequest?), int operationIndex = 0); + /// + /// updateVMSnapshotConfig + /// + /// + /// Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + CreateClusterReplication200Response UpdateVMSnapshotConfig(string node, string snapname, int vmid, UpdateVMSnapshotConfigRequest? updateVMSnapshotConfigRequest = default(UpdateVMSnapshotConfigRequest?), int operationIndex = 0); + + /// + /// updateVMSnapshotConfig + /// + /// + /// Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + ApiResponse UpdateVMSnapshotConfigWithHttpInfo(string node, string snapname, int vmid, UpdateVMSnapshotConfigRequest? updateVMSnapshotConfigRequest = default(UpdateVMSnapshotConfigRequest?), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IProxmoxGeneratedApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// addClusterFirewallGroupRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task AddClusterFirewallGroupRuleAsync(string group, AddClusterFirewallGroupRuleRequest? addClusterFirewallGroupRuleRequest = default(AddClusterFirewallGroupRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// addClusterFirewallGroupRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> AddClusterFirewallGroupRuleWithHttpInfoAsync(string group, AddClusterFirewallGroupRuleRequest? addClusterFirewallGroupRuleRequest = default(AddClusterFirewallGroupRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// addClusterFirewallIPSetIP + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task AddClusterFirewallIPSetIPAsync(string name, AddClusterFirewallIPSetIPRequest? addClusterFirewallIPSetIPRequest = default(AddClusterFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// addClusterFirewallIPSetIP + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> AddClusterFirewallIPSetIPWithHttpInfoAsync(string name, AddClusterFirewallIPSetIPRequest? addClusterFirewallIPSetIPRequest = default(AddClusterFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// addClusterFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task AddClusterFirewallRuleAsync(AddClusterFirewallRuleRequest? addClusterFirewallRuleRequest = default(AddClusterFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// addClusterFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> AddClusterFirewallRuleWithHttpInfoAsync(AddClusterFirewallRuleRequest? addClusterFirewallRuleRequest = default(AddClusterFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// addVMFirewallIPSetIP + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task AddVMFirewallIPSetIPAsync(string name, string node, int vmid, AddVMFirewallIPSetIPRequest? addVMFirewallIPSetIPRequest = default(AddVMFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// addVMFirewallIPSetIP + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> AddVMFirewallIPSetIPWithHttpInfoAsync(string name, string node, int vmid, AddVMFirewallIPSetIPRequest? addVMFirewallIPSetIPRequest = default(AddVMFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// cloneVM + /// + /// + /// Create a copy of virtual machine/template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CloneVMAsync(string node, int vmid, CloneVMRequest? cloneVMRequest = default(CloneVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// cloneVM + /// + /// + /// Create a copy of virtual machine/template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CloneVMWithHttpInfoAsync(string node, int vmid, CloneVMRequest? cloneVMRequest = default(CloneVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessDomains + /// + /// + /// Add an authentication server. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateAccessDomainsAsync(CreateAccessDomainsRequest? createAccessDomainsRequest = default(CreateAccessDomainsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessDomains + /// + /// + /// Add an authentication server. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateAccessDomainsWithHttpInfoAsync(CreateAccessDomainsRequest? createAccessDomainsRequest = default(CreateAccessDomainsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessDomainsSingleSync + /// + /// + /// Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessDomainsSingleSync200Response + System.Threading.Tasks.Task CreateAccessDomainsSingleSyncAsync(string realm, CreateAccessDomainsSingleSyncRequest? createAccessDomainsSingleSyncRequest = default(CreateAccessDomainsSingleSyncRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessDomainsSingleSync + /// + /// + /// Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessDomainsSingleSync200Response) + System.Threading.Tasks.Task> CreateAccessDomainsSingleSyncWithHttpInfoAsync(string realm, CreateAccessDomainsSingleSyncRequest? createAccessDomainsSingleSyncRequest = default(CreateAccessDomainsSingleSyncRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessGroups + /// + /// + /// Create new group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateAccessGroupsAsync(CreateAccessGroupsRequest? createAccessGroupsRequest = default(CreateAccessGroupsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessGroups + /// + /// + /// Create new group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateAccessGroupsWithHttpInfoAsync(CreateAccessGroupsRequest? createAccessGroupsRequest = default(CreateAccessGroupsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessOpenidAuthurl + /// + /// + /// Get the OpenId Authorization Url for the specified realm. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessOpenidAuthurl200Response + System.Threading.Tasks.Task CreateAccessOpenidAuthurlAsync(CreateAccessOpenidAuthurlRequest? createAccessOpenidAuthurlRequest = default(CreateAccessOpenidAuthurlRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessOpenidAuthurl + /// + /// + /// Get the OpenId Authorization Url for the specified realm. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessOpenidAuthurl200Response) + System.Threading.Tasks.Task> CreateAccessOpenidAuthurlWithHttpInfoAsync(CreateAccessOpenidAuthurlRequest? createAccessOpenidAuthurlRequest = default(CreateAccessOpenidAuthurlRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessOpenidLogin + /// + /// + /// Verify OpenID authorization code and create a ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateAccessOpenidLoginAsync(CreateAccessOpenidLoginRequest? createAccessOpenidLoginRequest = default(CreateAccessOpenidLoginRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessOpenidLogin + /// + /// + /// Verify OpenID authorization code and create a ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateAccessOpenidLoginWithHttpInfoAsync(CreateAccessOpenidLoginRequest? createAccessOpenidLoginRequest = default(CreateAccessOpenidLoginRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessRoles + /// + /// + /// Create new role. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateAccessRolesAsync(CreateAccessRolesRequest? createAccessRolesRequest = default(CreateAccessRolesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessRoles + /// + /// + /// Create new role. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateAccessRolesWithHttpInfoAsync(CreateAccessRolesRequest? createAccessRolesRequest = default(CreateAccessRolesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessTfaSingle + /// + /// + /// Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessTfaSingle200Response + System.Threading.Tasks.Task CreateAccessTfaSingleAsync(string userid, CreateAccessTfaSingleRequest? createAccessTfaSingleRequest = default(CreateAccessTfaSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessTfaSingle + /// + /// + /// Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessTfaSingle200Response) + System.Threading.Tasks.Task> CreateAccessTfaSingleWithHttpInfoAsync(string userid, CreateAccessTfaSingleRequest? createAccessTfaSingleRequest = default(CreateAccessTfaSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessTicket + /// + /// + /// Create or verify authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessTicket200Response + System.Threading.Tasks.Task CreateAccessTicketAsync(CreateAccessTicketRequest? createAccessTicketRequest = default(CreateAccessTicketRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessTicket + /// + /// + /// Create or verify authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessTicket200Response) + System.Threading.Tasks.Task> CreateAccessTicketWithHttpInfoAsync(CreateAccessTicketRequest? createAccessTicketRequest = default(CreateAccessTicketRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessUsers + /// + /// + /// Create new user. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateAccessUsersAsync(CreateAccessUsersRequest? createAccessUsersRequest = default(CreateAccessUsersRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessUsers + /// + /// + /// Create new user. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateAccessUsersWithHttpInfoAsync(CreateAccessUsersRequest? createAccessUsersRequest = default(CreateAccessUsersRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessUsersSingleTokenSingle + /// + /// + /// Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessUsersSingleTokenSingle200Response + System.Threading.Tasks.Task CreateAccessUsersSingleTokenSingleAsync(string tokenid, string userid, CreateAccessUsersSingleTokenSingleRequest? createAccessUsersSingleTokenSingleRequest = default(CreateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessUsersSingleTokenSingle + /// + /// + /// Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessUsersSingleTokenSingle200Response) + System.Threading.Tasks.Task> CreateAccessUsersSingleTokenSingleWithHttpInfoAsync(string tokenid, string userid, CreateAccessUsersSingleTokenSingleRequest? createAccessUsersSingleTokenSingleRequest = default(CreateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createAccessVncticket + /// + /// + /// verify VNC authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateAccessVncticketAsync(CreateAccessVncticketRequest? createAccessVncticketRequest = default(CreateAccessVncticketRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createAccessVncticket + /// + /// + /// verify VNC authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateAccessVncticketWithHttpInfoAsync(CreateAccessVncticketRequest? createAccessVncticketRequest = default(CreateAccessVncticketRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterAcmeAccount + /// + /// + /// Register a new ACME account with CA. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterAcmeAccountAsync(CreateClusterAcmeAccountRequest? createClusterAcmeAccountRequest = default(CreateClusterAcmeAccountRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterAcmeAccount + /// + /// + /// Register a new ACME account with CA. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterAcmeAccountWithHttpInfoAsync(CreateClusterAcmeAccountRequest? createClusterAcmeAccountRequest = default(CreateClusterAcmeAccountRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterAcmePlugins + /// + /// + /// Add ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterAcmePluginsAsync(CreateClusterAcmePluginsRequest? createClusterAcmePluginsRequest = default(CreateClusterAcmePluginsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterAcmePlugins + /// + /// + /// Add ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterAcmePluginsWithHttpInfoAsync(CreateClusterAcmePluginsRequest? createClusterAcmePluginsRequest = default(CreateClusterAcmePluginsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterBackup + /// + /// + /// Create new vzdump backup job. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterBackupAsync(CreateClusterBackupRequest? createClusterBackupRequest = default(CreateClusterBackupRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterBackup + /// + /// + /// Create new vzdump backup job. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterBackupWithHttpInfoAsync(CreateClusterBackupRequest? createClusterBackupRequest = default(CreateClusterBackupRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterBulkactionGuestMigrate + /// + /// + /// Bulk migrate all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterBulkactionGuestStart200Response + System.Threading.Tasks.Task CreateClusterBulkactionGuestMigrateAsync(CreateClusterBulkactionGuestMigrateRequest? createClusterBulkactionGuestMigrateRequest = default(CreateClusterBulkactionGuestMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterBulkactionGuestMigrate + /// + /// + /// Bulk migrate all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterBulkactionGuestStart200Response) + System.Threading.Tasks.Task> CreateClusterBulkactionGuestMigrateWithHttpInfoAsync(CreateClusterBulkactionGuestMigrateRequest? createClusterBulkactionGuestMigrateRequest = default(CreateClusterBulkactionGuestMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterBulkactionGuestShutdown + /// + /// + /// Bulk shutdown all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterBulkactionGuestStart200Response + System.Threading.Tasks.Task CreateClusterBulkactionGuestShutdownAsync(CreateClusterBulkactionGuestShutdownRequest? createClusterBulkactionGuestShutdownRequest = default(CreateClusterBulkactionGuestShutdownRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterBulkactionGuestShutdown + /// + /// + /// Bulk shutdown all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterBulkactionGuestStart200Response) + System.Threading.Tasks.Task> CreateClusterBulkactionGuestShutdownWithHttpInfoAsync(CreateClusterBulkactionGuestShutdownRequest? createClusterBulkactionGuestShutdownRequest = default(CreateClusterBulkactionGuestShutdownRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterBulkactionGuestStart + /// + /// + /// Bulk start or resume all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterBulkactionGuestStart200Response + System.Threading.Tasks.Task CreateClusterBulkactionGuestStartAsync(CreateClusterBulkactionGuestStartRequest? createClusterBulkactionGuestStartRequest = default(CreateClusterBulkactionGuestStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterBulkactionGuestStart + /// + /// + /// Bulk start or resume all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterBulkactionGuestStart200Response) + System.Threading.Tasks.Task> CreateClusterBulkactionGuestStartWithHttpInfoAsync(CreateClusterBulkactionGuestStartRequest? createClusterBulkactionGuestStartRequest = default(CreateClusterBulkactionGuestStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterBulkactionGuestSuspend + /// + /// + /// Bulk suspend all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterBulkactionGuestStart200Response + System.Threading.Tasks.Task CreateClusterBulkactionGuestSuspendAsync(CreateClusterBulkactionGuestSuspendRequest? createClusterBulkactionGuestSuspendRequest = default(CreateClusterBulkactionGuestSuspendRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterBulkactionGuestSuspend + /// + /// + /// Bulk suspend all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterBulkactionGuestStart200Response) + System.Threading.Tasks.Task> CreateClusterBulkactionGuestSuspendWithHttpInfoAsync(CreateClusterBulkactionGuestSuspendRequest? createClusterBulkactionGuestSuspendRequest = default(CreateClusterBulkactionGuestSuspendRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterConfig + /// + /// + /// Generate new cluster configuration. If no links given, default to local IP address as link0. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterConfigAsync(CreateClusterConfigRequest? createClusterConfigRequest = default(CreateClusterConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterConfig + /// + /// + /// Generate new cluster configuration. If no links given, default to local IP address as link0. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterConfigWithHttpInfoAsync(CreateClusterConfigRequest? createClusterConfigRequest = default(CreateClusterConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterConfigJoin + /// + /// + /// Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterConfigJoinAsync(CreateClusterConfigJoinRequest? createClusterConfigJoinRequest = default(CreateClusterConfigJoinRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterConfigJoin + /// + /// + /// Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterConfigJoinWithHttpInfoAsync(CreateClusterConfigJoinRequest? createClusterConfigJoinRequest = default(CreateClusterConfigJoinRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterConfigNodesSingle + /// + /// + /// Adds a node to the cluster configuration. This call is for internal use. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterConfigNodesSingle200Response + System.Threading.Tasks.Task CreateClusterConfigNodesSingleAsync(string node, CreateClusterConfigNodesSingleRequest? createClusterConfigNodesSingleRequest = default(CreateClusterConfigNodesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterConfigNodesSingle + /// + /// + /// Adds a node to the cluster configuration. This call is for internal use. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterConfigNodesSingle200Response) + System.Threading.Tasks.Task> CreateClusterConfigNodesSingleWithHttpInfoAsync(string node, CreateClusterConfigNodesSingleRequest? createClusterConfigNodesSingleRequest = default(CreateClusterConfigNodesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterFirewallAliasesAsync(CreateClusterFirewallAliasesRequest? createClusterFirewallAliasesRequest = default(CreateClusterFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterFirewallAliasesWithHttpInfoAsync(CreateClusterFirewallAliasesRequest? createClusterFirewallAliasesRequest = default(CreateClusterFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterFirewallGroup + /// + /// + /// Create new security group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterFirewallGroupAsync(CreateClusterFirewallGroupRequest? createClusterFirewallGroupRequest = default(CreateClusterFirewallGroupRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterFirewallGroup + /// + /// + /// Create new security group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterFirewallGroupWithHttpInfoAsync(CreateClusterFirewallGroupRequest? createClusterFirewallGroupRequest = default(CreateClusterFirewallGroupRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterFirewallIPSet + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterFirewallIPSetAsync(CreateClusterFirewallIPSetRequest? createClusterFirewallIPSetRequest = default(CreateClusterFirewallIPSetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterFirewallIPSet + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterFirewallIPSetWithHttpInfoAsync(CreateClusterFirewallIPSetRequest? createClusterFirewallIPSetRequest = default(CreateClusterFirewallIPSetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterHaGroups + /// + /// + /// Create a new HA group. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterHaGroupsAsync(CreateClusterHaGroupsRequest? createClusterHaGroupsRequest = default(CreateClusterHaGroupsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterHaGroups + /// + /// + /// Create a new HA group. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterHaGroupsWithHttpInfoAsync(CreateClusterHaGroupsRequest? createClusterHaGroupsRequest = default(CreateClusterHaGroupsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterHaResources + /// + /// + /// Create a new HA resource. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterHaResourcesAsync(CreateClusterHaResourcesRequest? createClusterHaResourcesRequest = default(CreateClusterHaResourcesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterHaResources + /// + /// + /// Create a new HA resource. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterHaResourcesWithHttpInfoAsync(CreateClusterHaResourcesRequest? createClusterHaResourcesRequest = default(CreateClusterHaResourcesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterHaResourcesSingleMigrate + /// + /// + /// Request resource migration (online) to another node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterHaResourcesSingleMigrate200Response + System.Threading.Tasks.Task CreateClusterHaResourcesSingleMigrateAsync(string sid, CreateClusterHaResourcesSingleMigrateRequest? createClusterHaResourcesSingleMigrateRequest = default(CreateClusterHaResourcesSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterHaResourcesSingleMigrate + /// + /// + /// Request resource migration (online) to another node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterHaResourcesSingleMigrate200Response) + System.Threading.Tasks.Task> CreateClusterHaResourcesSingleMigrateWithHttpInfoAsync(string sid, CreateClusterHaResourcesSingleMigrateRequest? createClusterHaResourcesSingleMigrateRequest = default(CreateClusterHaResourcesSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterHaResourcesSingleRelocate + /// + /// + /// Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterHaResourcesSingleRelocate200Response + System.Threading.Tasks.Task CreateClusterHaResourcesSingleRelocateAsync(string sid, CreateClusterHaResourcesSingleRelocateRequest? createClusterHaResourcesSingleRelocateRequest = default(CreateClusterHaResourcesSingleRelocateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterHaResourcesSingleRelocate + /// + /// + /// Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterHaResourcesSingleRelocate200Response) + System.Threading.Tasks.Task> CreateClusterHaResourcesSingleRelocateWithHttpInfoAsync(string sid, CreateClusterHaResourcesSingleRelocateRequest? createClusterHaResourcesSingleRelocateRequest = default(CreateClusterHaResourcesSingleRelocateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterHaRules + /// + /// + /// Create HA rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterHaRulesAsync(CreateClusterHaRulesRequest? createClusterHaRulesRequest = default(CreateClusterHaRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterHaRules + /// + /// + /// Create HA rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterHaRulesWithHttpInfoAsync(CreateClusterHaRulesRequest? createClusterHaRulesRequest = default(CreateClusterHaRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterJobsRealmsyncSingle + /// + /// + /// Create new realm-sync job. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterJobsRealmsyncSingleAsync(string id, CreateClusterJobsRealmsyncSingleRequest? createClusterJobsRealmsyncSingleRequest = default(CreateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterJobsRealmsyncSingle + /// + /// + /// Create new realm-sync job. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterJobsRealmsyncSingleWithHttpInfoAsync(string id, CreateClusterJobsRealmsyncSingleRequest? createClusterJobsRealmsyncSingleRequest = default(CreateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterMappingDir + /// + /// + /// Create a new directory mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterMappingDirAsync(CreateClusterMappingDirRequest? createClusterMappingDirRequest = default(CreateClusterMappingDirRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterMappingDir + /// + /// + /// Create a new directory mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterMappingDirWithHttpInfoAsync(CreateClusterMappingDirRequest? createClusterMappingDirRequest = default(CreateClusterMappingDirRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterMappingPci + /// + /// + /// Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterMappingPciAsync(CreateClusterMappingPciRequest? createClusterMappingPciRequest = default(CreateClusterMappingPciRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterMappingPci + /// + /// + /// Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterMappingPciWithHttpInfoAsync(CreateClusterMappingPciRequest? createClusterMappingPciRequest = default(CreateClusterMappingPciRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterMappingUsb + /// + /// + /// Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterMappingUsbAsync(CreateClusterMappingUsbRequest? createClusterMappingUsbRequest = default(CreateClusterMappingUsbRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterMappingUsb + /// + /// + /// Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterMappingUsbWithHttpInfoAsync(CreateClusterMappingUsbRequest? createClusterMappingUsbRequest = default(CreateClusterMappingUsbRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterMetricsServerSingle + /// + /// + /// Create a new external metric server config + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterMetricsServerSingleAsync(string id, CreateClusterMetricsServerSingleRequest? createClusterMetricsServerSingleRequest = default(CreateClusterMetricsServerSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterMetricsServerSingle + /// + /// + /// Create a new external metric server config + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterMetricsServerSingleWithHttpInfoAsync(string id, CreateClusterMetricsServerSingleRequest? createClusterMetricsServerSingleRequest = default(CreateClusterMetricsServerSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterNotificationsEndpointsGotify + /// + /// + /// Create a new gotify endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterNotificationsEndpointsGotifyAsync(CreateClusterNotificationsEndpointsGotifyRequest? createClusterNotificationsEndpointsGotifyRequest = default(CreateClusterNotificationsEndpointsGotifyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterNotificationsEndpointsGotify + /// + /// + /// Create a new gotify endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterNotificationsEndpointsGotifyWithHttpInfoAsync(CreateClusterNotificationsEndpointsGotifyRequest? createClusterNotificationsEndpointsGotifyRequest = default(CreateClusterNotificationsEndpointsGotifyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterNotificationsEndpointsSendmail + /// + /// + /// Create a new sendmail endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterNotificationsEndpointsSendmailAsync(CreateClusterNotificationsEndpointsSendmailRequest? createClusterNotificationsEndpointsSendmailRequest = default(CreateClusterNotificationsEndpointsSendmailRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterNotificationsEndpointsSendmail + /// + /// + /// Create a new sendmail endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterNotificationsEndpointsSendmailWithHttpInfoAsync(CreateClusterNotificationsEndpointsSendmailRequest? createClusterNotificationsEndpointsSendmailRequest = default(CreateClusterNotificationsEndpointsSendmailRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterNotificationsEndpointsSmtp + /// + /// + /// Create a new smtp endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterNotificationsEndpointsSmtpAsync(CreateClusterNotificationsEndpointsSmtpRequest? createClusterNotificationsEndpointsSmtpRequest = default(CreateClusterNotificationsEndpointsSmtpRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterNotificationsEndpointsSmtp + /// + /// + /// Create a new smtp endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterNotificationsEndpointsSmtpWithHttpInfoAsync(CreateClusterNotificationsEndpointsSmtpRequest? createClusterNotificationsEndpointsSmtpRequest = default(CreateClusterNotificationsEndpointsSmtpRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterNotificationsEndpointsWebhook + /// + /// + /// Create a new webhook endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterNotificationsEndpointsWebhookAsync(CreateClusterNotificationsEndpointsWebhookRequest? createClusterNotificationsEndpointsWebhookRequest = default(CreateClusterNotificationsEndpointsWebhookRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterNotificationsEndpointsWebhook + /// + /// + /// Create a new webhook endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterNotificationsEndpointsWebhookWithHttpInfoAsync(CreateClusterNotificationsEndpointsWebhookRequest? createClusterNotificationsEndpointsWebhookRequest = default(CreateClusterNotificationsEndpointsWebhookRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterNotificationsMatchers + /// + /// + /// Create a new matcher + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterNotificationsMatchersAsync(CreateClusterNotificationsMatchersRequest? createClusterNotificationsMatchersRequest = default(CreateClusterNotificationsMatchersRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterNotificationsMatchers + /// + /// + /// Create a new matcher + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterNotificationsMatchersWithHttpInfoAsync(CreateClusterNotificationsMatchersRequest? createClusterNotificationsMatchersRequest = default(CreateClusterNotificationsMatchersRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterNotificationsTargetsSingleTest + /// + /// + /// Send a test notification to a provided target. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterNotificationsTargetsSingleTestAsync(string name, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterNotificationsTargetsSingleTest + /// + /// + /// Send a test notification to a provided target. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterNotificationsTargetsSingleTestWithHttpInfoAsync(string name, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterReplication + /// + /// + /// Create a new replication job + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterReplicationAsync(CreateClusterReplicationRequest? createClusterReplicationRequest = default(CreateClusterReplicationRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterReplication + /// + /// + /// Create a new replication job + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterReplicationWithHttpInfoAsync(CreateClusterReplicationRequest? createClusterReplicationRequest = default(CreateClusterReplicationRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSDNController + /// + /// + /// Create a new sdn controller object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSDNControllerAsync(CreateClusterSDNControllerRequest? createClusterSDNControllerRequest = default(CreateClusterSDNControllerRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSDNController + /// + /// + /// Create a new sdn controller object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSDNControllerWithHttpInfoAsync(CreateClusterSDNControllerRequest? createClusterSDNControllerRequest = default(CreateClusterSDNControllerRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSDNVnet + /// + /// + /// Create a new sdn vnet object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSDNVnetAsync(CreateClusterSDNVnetRequest? createClusterSDNVnetRequest = default(CreateClusterSDNVnetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSDNVnet + /// + /// + /// Create a new sdn vnet object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSDNVnetWithHttpInfoAsync(CreateClusterSDNVnetRequest? createClusterSDNVnetRequest = default(CreateClusterSDNVnetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSDNZone + /// + /// + /// Create a new sdn zone object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSDNZoneAsync(CreateClusterSDNZoneRequest? createClusterSDNZoneRequest = default(CreateClusterSDNZoneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSDNZone + /// + /// + /// Create a new sdn zone object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSDNZoneWithHttpInfoAsync(CreateClusterSDNZoneRequest? createClusterSDNZoneRequest = default(CreateClusterSDNZoneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnDns + /// + /// + /// Create a new sdn dns object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnDnsAsync(CreateClusterSdnDnsRequest? createClusterSdnDnsRequest = default(CreateClusterSdnDnsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnDns + /// + /// + /// Create a new sdn dns object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnDnsWithHttpInfoAsync(CreateClusterSdnDnsRequest? createClusterSdnDnsRequest = default(CreateClusterSdnDnsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnFabricsFabric + /// + /// + /// Add a fabric + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnFabricsFabricAsync(CreateClusterSdnFabricsFabricRequest? createClusterSdnFabricsFabricRequest = default(CreateClusterSdnFabricsFabricRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnFabricsFabric + /// + /// + /// Add a fabric + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnFabricsFabricWithHttpInfoAsync(CreateClusterSdnFabricsFabricRequest? createClusterSdnFabricsFabricRequest = default(CreateClusterSdnFabricsFabricRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnFabricsNodeSingle + /// + /// + /// Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnFabricsNodeSingleAsync(string fabricId, CreateClusterSdnFabricsNodeSingleRequest? createClusterSdnFabricsNodeSingleRequest = default(CreateClusterSdnFabricsNodeSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnFabricsNodeSingle + /// + /// + /// Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnFabricsNodeSingleWithHttpInfoAsync(string fabricId, CreateClusterSdnFabricsNodeSingleRequest? createClusterSdnFabricsNodeSingleRequest = default(CreateClusterSdnFabricsNodeSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnIpams + /// + /// + /// Create a new sdn ipam object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnIpamsAsync(CreateClusterSdnIpamsRequest? createClusterSdnIpamsRequest = default(CreateClusterSdnIpamsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnIpams + /// + /// + /// Create a new sdn ipam object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnIpamsWithHttpInfoAsync(CreateClusterSdnIpamsRequest? createClusterSdnIpamsRequest = default(CreateClusterSdnIpamsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnLock + /// + /// + /// Acquire global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnLockAsync(CreateClusterSdnLockRequest? createClusterSdnLockRequest = default(CreateClusterSdnLockRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnLock + /// + /// + /// Acquire global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnLockWithHttpInfoAsync(CreateClusterSdnLockRequest? createClusterSdnLockRequest = default(CreateClusterSdnLockRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnRollback + /// + /// + /// Rollback pending changes to SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnRollbackAsync(CreateClusterSdnRollbackRequest? createClusterSdnRollbackRequest = default(CreateClusterSdnRollbackRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnRollback + /// + /// + /// Rollback pending changes to SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnRollbackWithHttpInfoAsync(CreateClusterSdnRollbackRequest? createClusterSdnRollbackRequest = default(CreateClusterSdnRollbackRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnVnetsSingleFirewallRules + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnVnetsSingleFirewallRulesAsync(string vnet, CreateClusterSdnVnetsSingleFirewallRulesRequest? createClusterSdnVnetsSingleFirewallRulesRequest = default(CreateClusterSdnVnetsSingleFirewallRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnVnetsSingleFirewallRules + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnVnetsSingleFirewallRulesWithHttpInfoAsync(string vnet, CreateClusterSdnVnetsSingleFirewallRulesRequest? createClusterSdnVnetsSingleFirewallRulesRequest = default(CreateClusterSdnVnetsSingleFirewallRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnVnetsSingleIps + /// + /// + /// Create IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnVnetsSingleIpsAsync(string vnet, CreateClusterSdnVnetsSingleIpsRequest? createClusterSdnVnetsSingleIpsRequest = default(CreateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnVnetsSingleIps + /// + /// + /// Create IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnVnetsSingleIpsWithHttpInfoAsync(string vnet, CreateClusterSdnVnetsSingleIpsRequest? createClusterSdnVnetsSingleIpsRequest = default(CreateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createClusterSdnVnetsSingleSubnets + /// + /// + /// Create a new sdn subnet object. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateClusterSdnVnetsSingleSubnetsAsync(string vnet, CreateClusterSdnVnetsSingleSubnetsRequest? createClusterSdnVnetsSingleSubnetsRequest = default(CreateClusterSdnVnetsSingleSubnetsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createClusterSdnVnetsSingleSubnets + /// + /// + /// Create a new sdn subnet object. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateClusterSdnVnetsSingleSubnetsWithHttpInfoAsync(string vnet, CreateClusterSdnVnetsSingleSubnetsRequest? createClusterSdnVnetsSingleSubnetsRequest = default(CreateClusterSdnVnetsSingleSubnetsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodeFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodeFirewallRuleAsync(string node, CreateNodeFirewallRuleRequest? createNodeFirewallRuleRequest = default(CreateNodeFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodeFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodeFirewallRuleWithHttpInfoAsync(string node, CreateNodeFirewallRuleRequest? createNodeFirewallRuleRequest = default(CreateNodeFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleAplinfo + /// + /// + /// Download appliance templates. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleAplinfoAsync(string node, CreateNodesSingleAplinfoRequest? createNodesSingleAplinfoRequest = default(CreateNodesSingleAplinfoRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleAplinfo + /// + /// + /// Download appliance templates. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleAplinfoWithHttpInfoAsync(string node, CreateNodesSingleAplinfoRequest? createNodesSingleAplinfoRequest = default(CreateNodesSingleAplinfoRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleAptRepositories + /// + /// + /// Change the properties of a repository. Currently only allows enabling/disabling. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleAptRepositoriesAsync(string node, CreateNodesSingleAptRepositoriesRequest? createNodesSingleAptRepositoriesRequest = default(CreateNodesSingleAptRepositoriesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleAptRepositories + /// + /// + /// Change the properties of a repository. Currently only allows enabling/disabling. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleAptRepositoriesWithHttpInfoAsync(string node, CreateNodesSingleAptRepositoriesRequest? createNodesSingleAptRepositoriesRequest = default(CreateNodesSingleAptRepositoriesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleAptUpdate + /// + /// + /// This is used to resynchronize the package index files from their sources (apt-get update). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleAptUpdateAsync(string node, CreateNodesSingleAptUpdateRequest? createNodesSingleAptUpdateRequest = default(CreateNodesSingleAptUpdateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleAptUpdate + /// + /// + /// This is used to resynchronize the package index files from their sources (apt-get update). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleAptUpdateWithHttpInfoAsync(string node, CreateNodesSingleAptUpdateRequest? createNodesSingleAptUpdateRequest = default(CreateNodesSingleAptUpdateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephFsSingle + /// + /// + /// Create a Ceph filesystem + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephFsSingleAsync(string name, string node, CreateNodesSingleCephFsSingleRequest? createNodesSingleCephFsSingleRequest = default(CreateNodesSingleCephFsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephFsSingle + /// + /// + /// Create a Ceph filesystem + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephFsSingleWithHttpInfoAsync(string name, string node, CreateNodesSingleCephFsSingleRequest? createNodesSingleCephFsSingleRequest = default(CreateNodesSingleCephFsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephInit + /// + /// + /// Create initial ceph default configuration and setup symlinks. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephInitAsync(string node, CreateNodesSingleCephInitRequest? createNodesSingleCephInitRequest = default(CreateNodesSingleCephInitRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephInit + /// + /// + /// Create initial ceph default configuration and setup symlinks. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephInitWithHttpInfoAsync(string node, CreateNodesSingleCephInitRequest? createNodesSingleCephInitRequest = default(CreateNodesSingleCephInitRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephMdsSingle + /// + /// + /// Create Ceph Metadata Server (MDS) + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephMdsSingleAsync(string name, string node, CreateNodesSingleCephMdsSingleRequest? createNodesSingleCephMdsSingleRequest = default(CreateNodesSingleCephMdsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephMdsSingle + /// + /// + /// Create Ceph Metadata Server (MDS) + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephMdsSingleWithHttpInfoAsync(string name, string node, CreateNodesSingleCephMdsSingleRequest? createNodesSingleCephMdsSingleRequest = default(CreateNodesSingleCephMdsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephMgrSingle + /// + /// + /// Create Ceph Manager + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephMgrSingleAsync(string id, string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephMgrSingle + /// + /// + /// Create Ceph Manager + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephMgrSingleWithHttpInfoAsync(string id, string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephMonSingle + /// + /// + /// Create Ceph Monitor and Manager + /// + /// Thrown when fails to make API call + /// monid + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephMonSingleAsync(string monid, string node, CreateNodesSingleCephMonSingleRequest? createNodesSingleCephMonSingleRequest = default(CreateNodesSingleCephMonSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephMonSingle + /// + /// + /// Create Ceph Monitor and Manager + /// + /// Thrown when fails to make API call + /// monid + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephMonSingleWithHttpInfoAsync(string monid, string node, CreateNodesSingleCephMonSingleRequest? createNodesSingleCephMonSingleRequest = default(CreateNodesSingleCephMonSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephOsd + /// + /// + /// Create OSD + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephOsdAsync(string node, CreateNodesSingleCephOsdRequest? createNodesSingleCephOsdRequest = default(CreateNodesSingleCephOsdRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephOsd + /// + /// + /// Create OSD + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephOsdWithHttpInfoAsync(string node, CreateNodesSingleCephOsdRequest? createNodesSingleCephOsdRequest = default(CreateNodesSingleCephOsdRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephOsdSingleIn + /// + /// + /// ceph osd in + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephOsdSingleInAsync(string node, int osdid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephOsdSingleIn + /// + /// + /// ceph osd in + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephOsdSingleInWithHttpInfoAsync(string node, int osdid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephOsdSingleOut + /// + /// + /// ceph osd out + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephOsdSingleOutAsync(string node, int osdid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephOsdSingleOut + /// + /// + /// ceph osd out + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephOsdSingleOutWithHttpInfoAsync(string node, int osdid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephOsdSingleScrub + /// + /// + /// Instruct the OSD to scrub. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephOsdSingleScrubAsync(string node, int osdid, CreateNodesSingleCephOsdSingleScrubRequest? createNodesSingleCephOsdSingleScrubRequest = default(CreateNodesSingleCephOsdSingleScrubRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephOsdSingleScrub + /// + /// + /// Instruct the OSD to scrub. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephOsdSingleScrubWithHttpInfoAsync(string node, int osdid, CreateNodesSingleCephOsdSingleScrubRequest? createNodesSingleCephOsdSingleScrubRequest = default(CreateNodesSingleCephOsdSingleScrubRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephPool + /// + /// + /// Create Ceph pool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephPoolAsync(string node, CreateNodesSingleCephPoolRequest? createNodesSingleCephPoolRequest = default(CreateNodesSingleCephPoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephPool + /// + /// + /// Create Ceph pool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephPoolWithHttpInfoAsync(string node, CreateNodesSingleCephPoolRequest? createNodesSingleCephPoolRequest = default(CreateNodesSingleCephPoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephRestart + /// + /// + /// Restart ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephRestartAsync(string node, CreateNodesSingleCephRestartRequest? createNodesSingleCephRestartRequest = default(CreateNodesSingleCephRestartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephRestart + /// + /// + /// Restart ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephRestartWithHttpInfoAsync(string node, CreateNodesSingleCephRestartRequest? createNodesSingleCephRestartRequest = default(CreateNodesSingleCephRestartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephStart + /// + /// + /// Start ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephStartAsync(string node, CreateNodesSingleCephStartRequest? createNodesSingleCephStartRequest = default(CreateNodesSingleCephStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephStart + /// + /// + /// Start ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephStartWithHttpInfoAsync(string node, CreateNodesSingleCephStartRequest? createNodesSingleCephStartRequest = default(CreateNodesSingleCephStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCephStop + /// + /// + /// Stop ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCephStopAsync(string node, CreateNodesSingleCephStopRequest? createNodesSingleCephStopRequest = default(CreateNodesSingleCephStopRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCephStop + /// + /// + /// Stop ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCephStopWithHttpInfoAsync(string node, CreateNodesSingleCephStopRequest? createNodesSingleCephStopRequest = default(CreateNodesSingleCephStopRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCertificatesAcmeCertificate + /// + /// + /// Order a new certificate from ACME-compatible CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleCertificatesAcmeCertificateAsync(string node, CreateNodesSingleCertificatesAcmeCertificateRequest? createNodesSingleCertificatesAcmeCertificateRequest = default(CreateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCertificatesAcmeCertificate + /// + /// + /// Order a new certificate from ACME-compatible CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(string node, CreateNodesSingleCertificatesAcmeCertificateRequest? createNodesSingleCertificatesAcmeCertificateRequest = default(CreateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleCertificatesCustom + /// + /// + /// Upload or update custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleCertificatesCustom200Response + System.Threading.Tasks.Task CreateNodesSingleCertificatesCustomAsync(string node, CreateNodesSingleCertificatesCustomRequest? createNodesSingleCertificatesCustomRequest = default(CreateNodesSingleCertificatesCustomRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleCertificatesCustom + /// + /// + /// Upload or update custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleCertificatesCustom200Response) + System.Threading.Tasks.Task> CreateNodesSingleCertificatesCustomWithHttpInfoAsync(string node, CreateNodesSingleCertificatesCustomRequest? createNodesSingleCertificatesCustomRequest = default(CreateNodesSingleCertificatesCustomRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleDisksDirectory + /// + /// + /// Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleDisksDirectoryAsync(string node, CreateNodesSingleDisksDirectoryRequest? createNodesSingleDisksDirectoryRequest = default(CreateNodesSingleDisksDirectoryRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleDisksDirectory + /// + /// + /// Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleDisksDirectoryWithHttpInfoAsync(string node, CreateNodesSingleDisksDirectoryRequest? createNodesSingleDisksDirectoryRequest = default(CreateNodesSingleDisksDirectoryRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleDisksInitgpt + /// + /// + /// Initialize Disk with GPT + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleDisksInitgptAsync(string node, CreateNodesSingleDisksInitgptRequest? createNodesSingleDisksInitgptRequest = default(CreateNodesSingleDisksInitgptRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleDisksInitgpt + /// + /// + /// Initialize Disk with GPT + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleDisksInitgptWithHttpInfoAsync(string node, CreateNodesSingleDisksInitgptRequest? createNodesSingleDisksInitgptRequest = default(CreateNodesSingleDisksInitgptRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleDisksLvm + /// + /// + /// Create an LVM Volume Group + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleDisksLvmAsync(string node, CreateNodesSingleDisksLvmRequest? createNodesSingleDisksLvmRequest = default(CreateNodesSingleDisksLvmRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleDisksLvm + /// + /// + /// Create an LVM Volume Group + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleDisksLvmWithHttpInfoAsync(string node, CreateNodesSingleDisksLvmRequest? createNodesSingleDisksLvmRequest = default(CreateNodesSingleDisksLvmRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleDisksLvmthin + /// + /// + /// Create an LVM thinpool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleDisksLvmthinAsync(string node, CreateNodesSingleDisksLvmthinRequest? createNodesSingleDisksLvmthinRequest = default(CreateNodesSingleDisksLvmthinRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleDisksLvmthin + /// + /// + /// Create an LVM thinpool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleDisksLvmthinWithHttpInfoAsync(string node, CreateNodesSingleDisksLvmthinRequest? createNodesSingleDisksLvmthinRequest = default(CreateNodesSingleDisksLvmthinRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleDisksZfs + /// + /// + /// Create a ZFS pool. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleDisksZfsAsync(string node, CreateNodesSingleDisksZfsRequest? createNodesSingleDisksZfsRequest = default(CreateNodesSingleDisksZfsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleDisksZfs + /// + /// + /// Create a ZFS pool. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleDisksZfsWithHttpInfoAsync(string node, CreateNodesSingleDisksZfsRequest? createNodesSingleDisksZfsRequest = default(CreateNodesSingleDisksZfsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleExecute + /// + /// + /// Execute multiple commands in order, root only. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task CreateNodesSingleExecuteAsync(string node, CreateNodesSingleExecuteRequest? createNodesSingleExecuteRequest = default(CreateNodesSingleExecuteRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleExecute + /// + /// + /// Execute multiple commands in order, root only. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> CreateNodesSingleExecuteWithHttpInfoAsync(string node, CreateNodesSingleExecuteRequest? createNodesSingleExecuteRequest = default(CreateNodesSingleExecuteRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleHosts + /// + /// + /// Write /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleHostsAsync(string node, CreateNodesSingleHostsRequest? createNodesSingleHostsRequest = default(CreateNodesSingleHostsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleHosts + /// + /// + /// Write /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleHostsWithHttpInfoAsync(string node, CreateNodesSingleHostsRequest? createNodesSingleHostsRequest = default(CreateNodesSingleHostsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxc + /// + /// + /// Create or restore a container. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcAsync(string node, CreateNodesSingleLxcRequest? createNodesSingleLxcRequest = default(CreateNodesSingleLxcRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxc + /// + /// + /// Create or restore a container. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcWithHttpInfoAsync(string node, CreateNodesSingleLxcRequest? createNodesSingleLxcRequest = default(CreateNodesSingleLxcRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleClone + /// + /// + /// Create a container clone/copy + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleCloneAsync(string node, int vmid, CreateNodesSingleLxcSingleCloneRequest? createNodesSingleLxcSingleCloneRequest = default(CreateNodesSingleLxcSingleCloneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleClone + /// + /// + /// Create a container clone/copy + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleCloneWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleCloneRequest? createNodesSingleLxcSingleCloneRequest = default(CreateNodesSingleLxcSingleCloneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleFirewallAliasesAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallAliasesRequest? createNodesSingleLxcSingleFirewallAliasesRequest = default(CreateNodesSingleLxcSingleFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleFirewallAliasesWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallAliasesRequest? createNodesSingleLxcSingleFirewallAliasesRequest = default(CreateNodesSingleLxcSingleFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleFirewallIpset + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleFirewallIpsetAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetRequest? createNodesSingleLxcSingleFirewallIpsetRequest = default(CreateNodesSingleLxcSingleFirewallIpsetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleFirewallIpset + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleFirewallIpsetWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetRequest? createNodesSingleLxcSingleFirewallIpsetRequest = default(CreateNodesSingleLxcSingleFirewallIpsetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleFirewallIpsetSingleAsync(string name, string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetSingleRequest? createNodesSingleLxcSingleFirewallIpsetSingleRequest = default(CreateNodesSingleLxcSingleFirewallIpsetSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(string name, string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetSingleRequest? createNodesSingleLxcSingleFirewallIpsetSingleRequest = default(CreateNodesSingleLxcSingleFirewallIpsetSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleFirewallRules + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleFirewallRulesAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallRulesRequest? createNodesSingleLxcSingleFirewallRulesRequest = default(CreateNodesSingleLxcSingleFirewallRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleFirewallRules + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleFirewallRulesWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallRulesRequest? createNodesSingleLxcSingleFirewallRulesRequest = default(CreateNodesSingleLxcSingleFirewallRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleMigrate + /// + /// + /// Migrate the container to another node. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleMigrateAsync(string node, int vmid, CreateNodesSingleLxcSingleMigrateRequest? createNodesSingleLxcSingleMigrateRequest = default(CreateNodesSingleLxcSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleMigrate + /// + /// + /// Migrate the container to another node. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleMigrateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleMigrateRequest? createNodesSingleLxcSingleMigrateRequest = default(CreateNodesSingleLxcSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleMovevolume + /// + /// + /// Move a rootfs-/mp-volume to a different storage or to a different container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleMovevolumeAsync(string node, int vmid, CreateNodesSingleLxcSingleMovevolumeRequest? createNodesSingleLxcSingleMovevolumeRequest = default(CreateNodesSingleLxcSingleMovevolumeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleMovevolume + /// + /// + /// Move a rootfs-/mp-volume to a different storage or to a different container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleMovevolumeWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleMovevolumeRequest? createNodesSingleLxcSingleMovevolumeRequest = default(CreateNodesSingleLxcSingleMovevolumeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleMtunnel + /// + /// + /// Migration tunnel endpoint - only for internal use by CT migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleMtunnelAsync(string node, int vmid, CreateNodesSingleLxcSingleMtunnelRequest? createNodesSingleLxcSingleMtunnelRequest = default(CreateNodesSingleLxcSingleMtunnelRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleMtunnel + /// + /// + /// Migration tunnel endpoint - only for internal use by CT migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleMtunnelWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleMtunnelRequest? createNodesSingleLxcSingleMtunnelRequest = default(CreateNodesSingleLxcSingleMtunnelRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleRemotemigrate + /// + /// + /// Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleRemotemigrateAsync(string node, int vmid, CreateNodesSingleLxcSingleRemotemigrateRequest? createNodesSingleLxcSingleRemotemigrateRequest = default(CreateNodesSingleLxcSingleRemotemigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleRemotemigrate + /// + /// + /// Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleRemotemigrateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleRemotemigrateRequest? createNodesSingleLxcSingleRemotemigrateRequest = default(CreateNodesSingleLxcSingleRemotemigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleSnapshot + /// + /// + /// Snapshot a container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleSnapshotAsync(string node, int vmid, CreateNodesSingleLxcSingleSnapshotRequest? createNodesSingleLxcSingleSnapshotRequest = default(CreateNodesSingleLxcSingleSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleSnapshot + /// + /// + /// Snapshot a container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleSnapshotWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleSnapshotRequest? createNodesSingleLxcSingleSnapshotRequest = default(CreateNodesSingleLxcSingleSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleSnapshotSingleRollback + /// + /// + /// Rollback LXC state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleSnapshotSingleRollbackAsync(string node, string snapname, int vmid, CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest? createNodesSingleLxcSingleSnapshotSingleRollbackRequest = default(CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleSnapshotSingleRollback + /// + /// + /// Rollback LXC state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleSnapshotSingleRollbackWithHttpInfoAsync(string node, string snapname, int vmid, CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest? createNodesSingleLxcSingleSnapshotSingleRollbackRequest = default(CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleSpiceproxy + /// + /// + /// Returns a SPICE configuration to connect to the CT. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleSpiceproxy200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleSpiceproxyAsync(string node, int vmid, CreateNodesSingleLxcSingleSpiceproxyRequest? createNodesSingleLxcSingleSpiceproxyRequest = default(CreateNodesSingleLxcSingleSpiceproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleSpiceproxy + /// + /// + /// Returns a SPICE configuration to connect to the CT. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleSpiceproxy200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleSpiceproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleSpiceproxyRequest? createNodesSingleLxcSingleSpiceproxyRequest = default(CreateNodesSingleLxcSingleSpiceproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleStatusReboot + /// + /// + /// Reboot the container by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusRebootAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusRebootRequest? createNodesSingleLxcSingleStatusRebootRequest = default(CreateNodesSingleLxcSingleStatusRebootRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleStatusReboot + /// + /// + /// Reboot the container by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusRebootWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusRebootRequest? createNodesSingleLxcSingleStatusRebootRequest = default(CreateNodesSingleLxcSingleStatusRebootRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleStatusResume + /// + /// + /// Resume the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusResumeAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleStatusResume + /// + /// + /// Resume the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusResumeWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleStatusShutdown + /// + /// + /// Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusShutdownAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusShutdownRequest? createNodesSingleLxcSingleStatusShutdownRequest = default(CreateNodesSingleLxcSingleStatusShutdownRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleStatusShutdown + /// + /// + /// Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusShutdownWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusShutdownRequest? createNodesSingleLxcSingleStatusShutdownRequest = default(CreateNodesSingleLxcSingleStatusShutdownRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleStatusStart + /// + /// + /// Start the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusStartAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusStartRequest? createNodesSingleLxcSingleStatusStartRequest = default(CreateNodesSingleLxcSingleStatusStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleStatusStart + /// + /// + /// Start the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusStartWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusStartRequest? createNodesSingleLxcSingleStatusStartRequest = default(CreateNodesSingleLxcSingleStatusStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleStatusStop + /// + /// + /// Stop the container. This will abruptly stop all processes running in the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusStopAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusStopRequest? createNodesSingleLxcSingleStatusStopRequest = default(CreateNodesSingleLxcSingleStatusStopRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleStatusStop + /// + /// + /// Stop the container. This will abruptly stop all processes running in the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusStopWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusStopRequest? createNodesSingleLxcSingleStatusStopRequest = default(CreateNodesSingleLxcSingleStatusStopRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleStatusSuspend + /// + /// + /// Suspend the container. This is experimental. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusSuspendAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleStatusSuspend + /// + /// + /// Suspend the container. This is experimental. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusSuspendWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleTemplate + /// + /// + /// Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleTemplateAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleTemplate + /// + /// + /// Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleTemplateWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleTermproxy + /// + /// + /// Creates a TCP proxy connection. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleTermproxyAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleTermproxy + /// + /// + /// Creates a TCP proxy connection. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleTermproxyWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleLxcSingleVncproxy + /// + /// + /// Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleLxcSingleVncproxyAsync(string node, int vmid, CreateNodesSingleLxcSingleVncproxyRequest? createNodesSingleLxcSingleVncproxyRequest = default(CreateNodesSingleLxcSingleVncproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleLxcSingleVncproxy + /// + /// + /// Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleLxcSingleVncproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleVncproxyRequest? createNodesSingleLxcSingleVncproxyRequest = default(CreateNodesSingleLxcSingleVncproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleMigrateall + /// + /// + /// Migrate all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleMigrateallAsync(string node, CreateNodesSingleMigrateallRequest? createNodesSingleMigrateallRequest = default(CreateNodesSingleMigrateallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleMigrateall + /// + /// + /// Migrate all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleMigrateallWithHttpInfoAsync(string node, CreateNodesSingleMigrateallRequest? createNodesSingleMigrateallRequest = default(CreateNodesSingleMigrateallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleNetwork + /// + /// + /// Create network device configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleNetworkAsync(string node, CreateNodesSingleNetworkRequest? createNodesSingleNetworkRequest = default(CreateNodesSingleNetworkRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleNetwork + /// + /// + /// Create network device configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleNetworkWithHttpInfoAsync(string node, CreateNodesSingleNetworkRequest? createNodesSingleNetworkRequest = default(CreateNodesSingleNetworkRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgent + /// + /// + /// Execute QEMU Guest Agent commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentRequest? createNodesSingleQemuSingleAgentRequest = default(CreateNodesSingleQemuSingleAgentRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgent + /// + /// + /// Execute QEMU Guest Agent commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentRequest? createNodesSingleQemuSingleAgentRequest = default(CreateNodesSingleQemuSingleAgentRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentExec + /// + /// + /// Executes the given command in the vm via the guest-agent and returns an object with the pid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgentExec200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentExecAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentExecRequest? createNodesSingleQemuSingleAgentExecRequest = default(CreateNodesSingleQemuSingleAgentExecRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentExec + /// + /// + /// Executes the given command in the vm via the guest-agent and returns an object with the pid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgentExec200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentExecWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentExecRequest? createNodesSingleQemuSingleAgentExecRequest = default(CreateNodesSingleQemuSingleAgentExecRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentFilewrite + /// + /// + /// Writes the given file via guest agent. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFilewriteAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentFilewriteRequest? createNodesSingleQemuSingleAgentFilewriteRequest = default(CreateNodesSingleQemuSingleAgentFilewriteRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentFilewrite + /// + /// + /// Writes the given file via guest agent. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFilewriteWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentFilewriteRequest? createNodesSingleQemuSingleAgentFilewriteRequest = default(CreateNodesSingleQemuSingleAgentFilewriteRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentFsfreezefreeze + /// + /// + /// Execute fsfreeze-freeze. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFsfreezefreezeAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentFsfreezefreeze + /// + /// + /// Execute fsfreeze-freeze. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFsfreezefreezeWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentFsfreezestatus + /// + /// + /// Execute fsfreeze-status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFsfreezestatusAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentFsfreezestatus + /// + /// + /// Execute fsfreeze-status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFsfreezestatusWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentFsfreezethaw + /// + /// + /// Execute fsfreeze-thaw. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFsfreezethawAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentFsfreezethaw + /// + /// + /// Execute fsfreeze-thaw. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFsfreezethawWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentFstrim + /// + /// + /// Execute fstrim. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFstrimAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentFstrim + /// + /// + /// Execute fstrim. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFstrimWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentPing + /// + /// + /// Execute ping. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentPingAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentPing + /// + /// + /// Execute ping. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentPingWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentSetuserpassword + /// + /// + /// Sets the password for the given user to the given password + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentSetuserpasswordAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentSetuserpasswordRequest? createNodesSingleQemuSingleAgentSetuserpasswordRequest = default(CreateNodesSingleQemuSingleAgentSetuserpasswordRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentSetuserpassword + /// + /// + /// Sets the password for the given user to the given password + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentSetuserpasswordWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentSetuserpasswordRequest? createNodesSingleQemuSingleAgentSetuserpasswordRequest = default(CreateNodesSingleQemuSingleAgentSetuserpasswordRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentShutdown + /// + /// + /// Execute shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentShutdownAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentShutdown + /// + /// + /// Execute shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentShutdownWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentSuspenddisk + /// + /// + /// Execute suspend-disk. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentSuspenddiskAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentSuspenddisk + /// + /// + /// Execute suspend-disk. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentSuspenddiskWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentSuspendhybrid + /// + /// + /// Execute suspend-hybrid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentSuspendhybridAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentSuspendhybrid + /// + /// + /// Execute suspend-hybrid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentSuspendhybridWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleAgentSuspendram + /// + /// + /// Execute suspend-ram. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentSuspendramAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleAgentSuspendram + /// + /// + /// Execute suspend-ram. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentSuspendramWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleDbusvmstate + /// + /// + /// Control the dbus-vmstate helper for a given running VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleDbusvmstateAsync(string node, int vmid, CreateNodesSingleQemuSingleDbusvmstateRequest? createNodesSingleQemuSingleDbusvmstateRequest = default(CreateNodesSingleQemuSingleDbusvmstateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleDbusvmstate + /// + /// + /// Control the dbus-vmstate helper for a given running VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleDbusvmstateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleDbusvmstateRequest? createNodesSingleQemuSingleDbusvmstateRequest = default(CreateNodesSingleQemuSingleDbusvmstateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleFirewallAliasesAsync(string node, int vmid, CreateNodesSingleQemuSingleFirewallAliasesRequest? createNodesSingleQemuSingleFirewallAliasesRequest = default(CreateNodesSingleQemuSingleFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleFirewallAliases + /// + /// + /// Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleFirewallAliasesWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleFirewallAliasesRequest? createNodesSingleQemuSingleFirewallAliasesRequest = default(CreateNodesSingleQemuSingleFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleMigrate + /// + /// + /// Migrate virtual machine. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleMigrateAsync(string node, int vmid, CreateNodesSingleQemuSingleMigrateRequest? createNodesSingleQemuSingleMigrateRequest = default(CreateNodesSingleQemuSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleMigrate + /// + /// + /// Migrate virtual machine. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleMigrateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleMigrateRequest? createNodesSingleQemuSingleMigrateRequest = default(CreateNodesSingleQemuSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleMonitor + /// + /// + /// Execute QEMU monitor commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleMonitorAsync(string node, int vmid, CreateNodesSingleQemuSingleMonitorRequest? createNodesSingleQemuSingleMonitorRequest = default(CreateNodesSingleQemuSingleMonitorRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleMonitor + /// + /// + /// Execute QEMU monitor commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleMonitorWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleMonitorRequest? createNodesSingleQemuSingleMonitorRequest = default(CreateNodesSingleQemuSingleMonitorRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleMovedisk + /// + /// + /// Move volume to different storage or to a different VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleMovediskAsync(string node, int vmid, CreateNodesSingleQemuSingleMovediskRequest? createNodesSingleQemuSingleMovediskRequest = default(CreateNodesSingleQemuSingleMovediskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleMovedisk + /// + /// + /// Move volume to different storage or to a different VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleMovediskWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleMovediskRequest? createNodesSingleQemuSingleMovediskRequest = default(CreateNodesSingleQemuSingleMovediskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleMtunnel + /// + /// + /// Migration tunnel endpoint - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleMtunnelAsync(string node, int vmid, CreateNodesSingleQemuSingleMtunnelRequest? createNodesSingleQemuSingleMtunnelRequest = default(CreateNodesSingleQemuSingleMtunnelRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleMtunnel + /// + /// + /// Migration tunnel endpoint - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleMtunnelWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleMtunnelRequest? createNodesSingleQemuSingleMtunnelRequest = default(CreateNodesSingleQemuSingleMtunnelRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleRemotemigrate + /// + /// + /// Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleRemotemigrateAsync(string node, int vmid, CreateNodesSingleQemuSingleRemotemigrateRequest? createNodesSingleQemuSingleRemotemigrateRequest = default(CreateNodesSingleQemuSingleRemotemigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleRemotemigrate + /// + /// + /// Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleRemotemigrateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleRemotemigrateRequest? createNodesSingleQemuSingleRemotemigrateRequest = default(CreateNodesSingleQemuSingleRemotemigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleSpiceproxy + /// + /// + /// Returns a SPICE configuration to connect to the VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleSpiceproxy200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleSpiceproxyAsync(string node, int vmid, CreateNodesSingleQemuSingleSpiceproxyRequest? createNodesSingleQemuSingleSpiceproxyRequest = default(CreateNodesSingleQemuSingleSpiceproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleSpiceproxy + /// + /// + /// Returns a SPICE configuration to connect to the VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleSpiceproxy200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleSpiceproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleSpiceproxyRequest? createNodesSingleQemuSingleSpiceproxyRequest = default(CreateNodesSingleQemuSingleSpiceproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleTemplate + /// + /// + /// Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleTemplateAsync(string node, int vmid, CreateNodesSingleQemuSingleTemplateRequest? createNodesSingleQemuSingleTemplateRequest = default(CreateNodesSingleQemuSingleTemplateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleTemplate + /// + /// + /// Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleTemplateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleTemplateRequest? createNodesSingleQemuSingleTemplateRequest = default(CreateNodesSingleQemuSingleTemplateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleTermproxy + /// + /// + /// Creates a TCP proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleTermproxyAsync(string node, int vmid, CreateNodesSingleQemuSingleTermproxyRequest? createNodesSingleQemuSingleTermproxyRequest = default(CreateNodesSingleQemuSingleTermproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleTermproxy + /// + /// + /// Creates a TCP proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleTermproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleTermproxyRequest? createNodesSingleQemuSingleTermproxyRequest = default(CreateNodesSingleQemuSingleTermproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleQemuSingleVncproxy + /// + /// + /// Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleQemuSingleVncproxyAsync(string node, int vmid, CreateNodesSingleQemuSingleVncproxyRequest? createNodesSingleQemuSingleVncproxyRequest = default(CreateNodesSingleQemuSingleVncproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleQemuSingleVncproxy + /// + /// + /// Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleQemuSingleVncproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleVncproxyRequest? createNodesSingleQemuSingleVncproxyRequest = default(CreateNodesSingleQemuSingleVncproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleReplicationSingleSchedulenow + /// + /// + /// Schedule replication job to start as soon as possible. + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleReplicationSingleSchedulenowAsync(string id, string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleReplicationSingleSchedulenow + /// + /// + /// Schedule replication job to start as soon as possible. + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleReplicationSingleSchedulenowWithHttpInfoAsync(string id, string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleServicesSingleReload + /// + /// + /// Reload service. Falls back to restart if service cannot be reloaded. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleServicesSingleReloadAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleServicesSingleReload + /// + /// + /// Reload service. Falls back to restart if service cannot be reloaded. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleServicesSingleReloadWithHttpInfoAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleServicesSingleRestart + /// + /// + /// Hard restart service. Use reload if you want to reduce interruptions. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleServicesSingleRestartAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleServicesSingleRestart + /// + /// + /// Hard restart service. Use reload if you want to reduce interruptions. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleServicesSingleRestartWithHttpInfoAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleServicesSingleStart + /// + /// + /// Start service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleServicesSingleStartAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleServicesSingleStart + /// + /// + /// Start service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleServicesSingleStartWithHttpInfoAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleServicesSingleStop + /// + /// + /// Stop service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleServicesSingleStopAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleServicesSingleStop + /// + /// + /// Stop service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleServicesSingleStopWithHttpInfoAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleSpiceshell + /// + /// + /// Creates a SPICE shell. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleSpiceproxy200Response + System.Threading.Tasks.Task CreateNodesSingleSpiceshellAsync(string node, CreateNodesSingleSpiceshellRequest? createNodesSingleSpiceshellRequest = default(CreateNodesSingleSpiceshellRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleSpiceshell + /// + /// + /// Creates a SPICE shell. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleSpiceproxy200Response) + System.Threading.Tasks.Task> CreateNodesSingleSpiceshellWithHttpInfoAsync(string node, CreateNodesSingleSpiceshellRequest? createNodesSingleSpiceshellRequest = default(CreateNodesSingleSpiceshellRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleStartall + /// + /// + /// Start all VMs and containers located on this node (by default only those with onboot=1). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleStartallAsync(string node, CreateNodesSingleStartallRequest? createNodesSingleStartallRequest = default(CreateNodesSingleStartallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleStartall + /// + /// + /// Start all VMs and containers located on this node (by default only those with onboot=1). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleStartallWithHttpInfoAsync(string node, CreateNodesSingleStartallRequest? createNodesSingleStartallRequest = default(CreateNodesSingleStartallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleStatus + /// + /// + /// Reboot or shutdown a node. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleStatusAsync(string node, CreateNodesSingleStatusRequest? createNodesSingleStatusRequest = default(CreateNodesSingleStatusRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleStatus + /// + /// + /// Reboot or shutdown a node. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleStatusWithHttpInfoAsync(string node, CreateNodesSingleStatusRequest? createNodesSingleStatusRequest = default(CreateNodesSingleStatusRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleStopall + /// + /// + /// Stop all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleStopallAsync(string node, CreateNodesSingleStopallRequest? createNodesSingleStopallRequest = default(CreateNodesSingleStopallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleStopall + /// + /// + /// Stop all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleStopallWithHttpInfoAsync(string node, CreateNodesSingleStopallRequest? createNodesSingleStopallRequest = default(CreateNodesSingleStopallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleStorageSingleContent + /// + /// + /// Allocate disk images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleStorageSingleContent200Response + System.Threading.Tasks.Task CreateNodesSingleStorageSingleContentAsync(string node, string storage, CreateNodesSingleStorageSingleContentRequest? createNodesSingleStorageSingleContentRequest = default(CreateNodesSingleStorageSingleContentRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleStorageSingleContent + /// + /// + /// Allocate disk images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleStorageSingleContent200Response) + System.Threading.Tasks.Task> CreateNodesSingleStorageSingleContentWithHttpInfoAsync(string node, string storage, CreateNodesSingleStorageSingleContentRequest? createNodesSingleStorageSingleContentRequest = default(CreateNodesSingleStorageSingleContentRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleStorageSingleContentSingle + /// + /// + /// Copy a volume. This is experimental code - do not use. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleStorageSingleContentSingleAsync(string node, string storage, string volume, CreateNodesSingleStorageSingleContentSingleRequest? createNodesSingleStorageSingleContentSingleRequest = default(CreateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleStorageSingleContentSingle + /// + /// + /// Copy a volume. This is experimental code - do not use. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleStorageSingleContentSingleWithHttpInfoAsync(string node, string storage, string volume, CreateNodesSingleStorageSingleContentSingleRequest? createNodesSingleStorageSingleContentSingleRequest = default(CreateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleStorageSingleDownloadurl + /// + /// + /// Download templates, ISO images, OVAs and VM images by using an URL. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleStorageSingleDownloadurlAsync(string node, string storage, CreateNodesSingleStorageSingleDownloadurlRequest? createNodesSingleStorageSingleDownloadurlRequest = default(CreateNodesSingleStorageSingleDownloadurlRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleStorageSingleDownloadurl + /// + /// + /// Download templates, ISO images, OVAs and VM images by using an URL. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleStorageSingleDownloadurlWithHttpInfoAsync(string node, string storage, CreateNodesSingleStorageSingleDownloadurlRequest? createNodesSingleStorageSingleDownloadurlRequest = default(CreateNodesSingleStorageSingleDownloadurlRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleStorageSingleOciregistrypull + /// + /// + /// Pull an OCI image from a registry. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleStorageSingleOciregistrypullAsync(string node, string storage, CreateNodesSingleStorageSingleOciregistrypullRequest? createNodesSingleStorageSingleOciregistrypullRequest = default(CreateNodesSingleStorageSingleOciregistrypullRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleStorageSingleOciregistrypull + /// + /// + /// Pull an OCI image from a registry. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleStorageSingleOciregistrypullWithHttpInfoAsync(string node, string storage, CreateNodesSingleStorageSingleOciregistrypullRequest? createNodesSingleStorageSingleOciregistrypullRequest = default(CreateNodesSingleStorageSingleOciregistrypullRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleStorageSingleUpload + /// + /// + /// Upload templates, ISO images, OVAs and VM images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleStorageSingleUploadAsync(string node, string storage, CreateNodesSingleStorageSingleUploadRequest? createNodesSingleStorageSingleUploadRequest = default(CreateNodesSingleStorageSingleUploadRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleStorageSingleUpload + /// + /// + /// Upload templates, ISO images, OVAs and VM images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleStorageSingleUploadWithHttpInfoAsync(string node, string storage, CreateNodesSingleStorageSingleUploadRequest? createNodesSingleStorageSingleUploadRequest = default(CreateNodesSingleStorageSingleUploadRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleSubscription + /// + /// + /// Update subscription info. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleSubscriptionAsync(string node, CreateNodesSingleSubscriptionRequest? createNodesSingleSubscriptionRequest = default(CreateNodesSingleSubscriptionRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleSubscription + /// + /// + /// Update subscription info. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleSubscriptionWithHttpInfoAsync(string node, CreateNodesSingleSubscriptionRequest? createNodesSingleSubscriptionRequest = default(CreateNodesSingleSubscriptionRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleSuspendall + /// + /// + /// Suspend all VMs. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleSuspendallAsync(string node, CreateNodesSingleSuspendallRequest? createNodesSingleSuspendallRequest = default(CreateNodesSingleSuspendallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleSuspendall + /// + /// + /// Suspend all VMs. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleSuspendallWithHttpInfoAsync(string node, CreateNodesSingleSuspendallRequest? createNodesSingleSuspendallRequest = default(CreateNodesSingleSuspendallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleTermproxy + /// + /// + /// Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleTermproxyAsync(string node, CreateNodesSingleTermproxyRequest? createNodesSingleTermproxyRequest = default(CreateNodesSingleTermproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleTermproxy + /// + /// + /// Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleTermproxyWithHttpInfoAsync(string node, CreateNodesSingleTermproxyRequest? createNodesSingleTermproxyRequest = default(CreateNodesSingleTermproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleVncshell + /// + /// + /// Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleVncshellAsync(string node, CreateNodesSingleVncshellRequest? createNodesSingleVncshellRequest = default(CreateNodesSingleVncshellRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleVncshell + /// + /// + /// Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleVncshellWithHttpInfoAsync(string node, CreateNodesSingleVncshellRequest? createNodesSingleVncshellRequest = default(CreateNodesSingleVncshellRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleVzdump + /// + /// + /// Create backup. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateNodesSingleVzdumpAsync(string node, CreateNodesSingleVzdumpRequest? createNodesSingleVzdumpRequest = default(CreateNodesSingleVzdumpRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleVzdump + /// + /// + /// Create backup. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateNodesSingleVzdumpWithHttpInfoAsync(string node, CreateNodesSingleVzdumpRequest? createNodesSingleVzdumpRequest = default(CreateNodesSingleVzdumpRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createNodesSingleWakeonlan + /// + /// + /// Try to wake a node via 'wake on LAN' network packet. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleWakeonlan200Response + System.Threading.Tasks.Task CreateNodesSingleWakeonlanAsync(string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createNodesSingleWakeonlan + /// + /// + /// Try to wake a node via 'wake on LAN' network packet. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleWakeonlan200Response) + System.Threading.Tasks.Task> CreateNodesSingleWakeonlanWithHttpInfoAsync(string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createPool + /// + /// + /// Create new pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreatePoolAsync(CreatePoolRequest? createPoolRequest = default(CreatePoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createPool + /// + /// + /// Create new pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreatePoolWithHttpInfoAsync(CreatePoolRequest? createPoolRequest = default(CreatePoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createStorage + /// + /// + /// Create a new storage. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateStorage200Response + System.Threading.Tasks.Task CreateStorageAsync(CreateStorageRequest? createStorageRequest = default(CreateStorageRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createStorage + /// + /// + /// Create a new storage. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateStorage200Response) + System.Threading.Tasks.Task> CreateStorageWithHttpInfoAsync(CreateStorageRequest? createStorageRequest = default(CreateStorageRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createVM + /// + /// + /// Create or restore a virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateVMAsync(string node, CreateVMRequest? createVMRequest = default(CreateVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createVM + /// + /// + /// Create or restore a virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateVMWithHttpInfoAsync(string node, CreateVMRequest? createVMRequest = default(CreateVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createVMFirewallIPSet + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateVMFirewallIPSetAsync(string node, int vmid, CreateVMFirewallIPSetRequest? createVMFirewallIPSetRequest = default(CreateVMFirewallIPSetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createVMFirewallIPSet + /// + /// + /// Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateVMFirewallIPSetWithHttpInfoAsync(string node, int vmid, CreateVMFirewallIPSetRequest? createVMFirewallIPSetRequest = default(CreateVMFirewallIPSetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createVMFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task CreateVMFirewallRuleAsync(string node, int vmid, CreateVMFirewallRuleRequest? createVMFirewallRuleRequest = default(CreateVMFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createVMFirewallRule + /// + /// + /// Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> CreateVMFirewallRuleWithHttpInfoAsync(string node, int vmid, CreateVMFirewallRuleRequest? createVMFirewallRuleRequest = default(CreateVMFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// createVMSnapshot + /// + /// + /// Snapshot a VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task CreateVMSnapshotAsync(string node, int vmid, CreateVMSnapshotRequest? createVMSnapshotRequest = default(CreateVMSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// createVMSnapshot + /// + /// + /// Snapshot a VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> CreateVMSnapshotWithHttpInfoAsync(string node, int vmid, CreateVMSnapshotRequest? createVMSnapshotRequest = default(CreateVMSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteAccessDomainsSingle + /// + /// + /// Delete an authentication server. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteAccessDomainsSingleAsync(string realm, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteAccessDomainsSingle + /// + /// + /// Delete an authentication server. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteAccessDomainsSingleWithHttpInfoAsync(string realm, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteAccessGroupsSingle + /// + /// + /// Delete group. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteAccessGroupsSingleAsync(string groupid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteAccessGroupsSingle + /// + /// + /// Delete group. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteAccessGroupsSingleWithHttpInfoAsync(string groupid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteAccessRolesSingle + /// + /// + /// Delete role. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteAccessRolesSingleAsync(string roleid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteAccessRolesSingle + /// + /// + /// Delete role. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteAccessRolesSingleWithHttpInfoAsync(string roleid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteAccessTfaSingleSingle + /// + /// + /// Delete a TFA entry by ID. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteAccessTfaSingleSingleAsync(string id, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteAccessTfaSingleSingle + /// + /// + /// Delete a TFA entry by ID. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteAccessTfaSingleSingleWithHttpInfoAsync(string id, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteAccessUsersSingle + /// + /// + /// Delete user. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteAccessUsersSingleAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteAccessUsersSingle + /// + /// + /// Delete user. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteAccessUsersSingleWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteAccessUsersSingleTokenSingle + /// + /// + /// Remove API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteAccessUsersSingleTokenSingleAsync(string tokenid, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteAccessUsersSingleTokenSingle + /// + /// + /// Remove API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteAccessUsersSingleTokenSingleWithHttpInfoAsync(string tokenid, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterAcmeAccountSingle + /// + /// + /// Deactivate existing ACME account at CA. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterAcmeAccountSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterAcmeAccountSingle + /// + /// + /// Deactivate existing ACME account at CA. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterAcmeAccountSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterAcmePluginsSingle + /// + /// + /// Delete ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterAcmePluginsSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterAcmePluginsSingle + /// + /// + /// Delete ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterAcmePluginsSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterBackupSingle + /// + /// + /// Delete vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterBackupSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterBackupSingle + /// + /// + /// Delete vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterBackupSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterConfigNodesSingle + /// + /// + /// Removes a node from the cluster configuration. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterConfigNodesSingleAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterConfigNodesSingle + /// + /// + /// Removes a node from the cluster configuration. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterConfigNodesSingleWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterFirewallAliasesSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterFirewallAliasesSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterFirewallGroup + /// + /// + /// Delete security group. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterFirewallGroupAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterFirewallGroup + /// + /// + /// Delete security group. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterFirewallGroupWithHttpInfoAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterFirewallIPSet + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterFirewallIPSetAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterFirewallIPSet + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterFirewallIPSetWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterHaGroupsSingle + /// + /// + /// Delete ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterHaGroupsSingleAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterHaGroupsSingle + /// + /// + /// Delete ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterHaGroupsSingleWithHttpInfoAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterHaResourcesSingle + /// + /// + /// Delete resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterHaResourcesSingleAsync(string sid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterHaResourcesSingle + /// + /// + /// Delete resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterHaResourcesSingleWithHttpInfoAsync(string sid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterHaRulesSingle + /// + /// + /// Delete HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterHaRulesSingleAsync(string rule, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterHaRulesSingle + /// + /// + /// Delete HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterHaRulesSingleWithHttpInfoAsync(string rule, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterJobsRealmsyncSingle + /// + /// + /// Delete realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterJobsRealmsyncSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterJobsRealmsyncSingle + /// + /// + /// Delete realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterJobsRealmsyncSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterMappingDirSingle + /// + /// + /// Remove directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterMappingDirSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterMappingDirSingle + /// + /// + /// Remove directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterMappingDirSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterMappingPciSingle + /// + /// + /// Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterMappingPciSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterMappingPciSingle + /// + /// + /// Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterMappingPciSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterMappingUsbSingle + /// + /// + /// Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterMappingUsbSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterMappingUsbSingle + /// + /// + /// Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterMappingUsbSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterMetricsServerSingle + /// + /// + /// Remove Metric server. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterMetricsServerSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterMetricsServerSingle + /// + /// + /// Remove Metric server. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterMetricsServerSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterNotificationsEndpointsGotifySingle + /// + /// + /// Remove gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterNotificationsEndpointsGotifySingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterNotificationsEndpointsGotifySingle + /// + /// + /// Remove gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Remove sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterNotificationsEndpointsSendmailSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Remove sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Remove smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterNotificationsEndpointsSmtpSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Remove smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Remove webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterNotificationsEndpointsWebhookSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Remove webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterNotificationsMatchersSingle + /// + /// + /// Remove matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterNotificationsMatchersSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterNotificationsMatchersSingle + /// + /// + /// Remove matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterNotificationsMatchersSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterReplicationSingle + /// + /// + /// Mark replication job for removal. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterReplicationSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterReplicationSingle + /// + /// + /// Mark replication job for removal. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterReplicationSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSDNController + /// + /// + /// Delete sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSDNControllerAsync(string controller, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSDNController + /// + /// + /// Delete sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSDNControllerWithHttpInfoAsync(string controller, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSDNVnet + /// + /// + /// Delete sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSDNVnetAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSDNVnet + /// + /// + /// Delete sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSDNVnetWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSDNZone + /// + /// + /// Delete sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSDNZoneAsync(string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSDNZone + /// + /// + /// Delete sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSDNZoneWithHttpInfoAsync(string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSdnDnsSingle + /// + /// + /// Delete sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSdnDnsSingleAsync(string dns, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSdnDnsSingle + /// + /// + /// Delete sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSdnDnsSingleWithHttpInfoAsync(string dns, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSdnFabricsFabricSingle + /// + /// + /// Add a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSdnFabricsFabricSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSdnFabricsFabricSingle + /// + /// + /// Add a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSdnFabricsFabricSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSdnFabricsNodeSingleSingle + /// + /// + /// Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSdnFabricsNodeSingleSingleAsync(string fabricId, string nodeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSdnFabricsNodeSingleSingle + /// + /// + /// Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(string fabricId, string nodeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSdnIpamsSingle + /// + /// + /// Delete sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSdnIpamsSingleAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSdnIpamsSingle + /// + /// + /// Delete sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSdnIpamsSingleWithHttpInfoAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSdnLock + /// + /// + /// Release global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSdnLockAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSdnLock + /// + /// + /// Release global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSdnLockWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSdnVnetsSingleFirewallRulesSingleAsync(int pos, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(int pos, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSdnVnetsSingleIps + /// + /// + /// Delete IP Mappings in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSdnVnetsSingleIpsAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSdnVnetsSingleIps + /// + /// + /// Delete IP Mappings in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSdnVnetsSingleIpsWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Delete sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteClusterSdnVnetsSingleSubnetsSingleAsync(string subnet, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Delete sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(string subnet, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodeFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodeFirewallRuleAsync(string node, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodeFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodeFirewallRuleWithHttpInfoAsync(string node, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleCephMdsSingle + /// + /// + /// Destroy Ceph Metadata Server + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleCephMdsSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleCephMdsSingle + /// + /// + /// Destroy Ceph Metadata Server + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleCephMdsSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleCephMgrSingle + /// + /// + /// Destroy Ceph Manager. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleCephMgrSingleAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleCephMgrSingle + /// + /// + /// Destroy Ceph Manager. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleCephMgrSingleWithHttpInfoAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleCephMonSingle + /// + /// + /// Destroy Ceph Monitor and Manager. + /// + /// Thrown when fails to make API call + /// monid + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleCephMonSingleAsync(string monid, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleCephMonSingle + /// + /// + /// Destroy Ceph Monitor and Manager. + /// + /// Thrown when fails to make API call + /// monid + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleCephMonSingleWithHttpInfoAsync(string monid, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleCephOsdSingle + /// + /// + /// Destroy OSD + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleCephOsdSingleAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleCephOsdSingle + /// + /// + /// Destroy OSD + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleCephOsdSingleWithHttpInfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleCephPoolSingle + /// + /// + /// Destroy pool + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleCephPoolSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleCephPoolSingle + /// + /// + /// Destroy pool + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleCephPoolSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleCertificatesAcmeCertificate + /// + /// + /// Revoke existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleCertificatesAcmeCertificateAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleCertificatesAcmeCertificate + /// + /// + /// Revoke existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleCertificatesCustom + /// + /// + /// DELETE custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleCertificatesCustomAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleCertificatesCustom + /// + /// + /// DELETE custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleCertificatesCustomWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleDisksDirectorySingle + /// + /// + /// Unmounts the storage and removes the mount unit. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleDisksDirectorySingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleDisksDirectorySingle + /// + /// + /// Unmounts the storage and removes the mount unit. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleDisksDirectorySingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleDisksLvmSingle + /// + /// + /// Remove an LVM Volume Group. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleDisksLvmSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleDisksLvmSingle + /// + /// + /// Remove an LVM Volume Group. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleDisksLvmSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleDisksLvmthinSingle + /// + /// + /// Remove an LVM thin pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleDisksLvmthinSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleDisksLvmthinSingle + /// + /// + /// Remove an LVM thin pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleDisksLvmthinSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleDisksZfsSingle + /// + /// + /// Destroy a ZFS pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleDisksZfsSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleDisksZfsSingle + /// + /// + /// Destroy a ZFS pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleDisksZfsSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleLxcSingle + /// + /// + /// Destroy the container (also delete all uses files). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleLxcSingleAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleLxcSingle + /// + /// + /// Destroy the container (also delete all uses files). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleLxcSingleFirewallAliasesSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleLxcSingleFirewallIpsetSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleLxcSingleFirewallRulesSingleAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleLxcSingleSnapshotSingle + /// + /// + /// Delete a LXC snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task DeleteNodesSingleLxcSingleSnapshotSingleAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleLxcSingleSnapshotSingle + /// + /// + /// Delete a LXC snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleSnapshotSingleWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleNetwork + /// + /// + /// Revert network configuration changes. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleNetworkAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleNetwork + /// + /// + /// Revert network configuration changes. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleNetworkWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleNetworkSingle + /// + /// + /// Delete network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleNetworkSingleAsync(string iface, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleNetworkSingle + /// + /// + /// Delete network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleNetworkSingleWithHttpInfoAsync(string iface, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleQemuSingleFirewallAliasesSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleStorageSingleContentSingle + /// + /// + /// Delete volume + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleStorageSingleContentSingleAsync(string node, string storage, string volume, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleStorageSingleContentSingle + /// + /// + /// Delete volume + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleStorageSingleContentSingleWithHttpInfoAsync(string node, string storage, string volume, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleStorageSinglePrunebackups + /// + /// + /// Prune backups. Only those using the standard naming scheme are considered. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleStorageSinglePrunebackupsAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleStorageSinglePrunebackups + /// + /// + /// Prune backups. Only those using the standard naming scheme are considered. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleStorageSinglePrunebackupsWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteNodesSingleSubscription + /// + /// + /// Delete subscription key of this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteNodesSingleSubscriptionAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteNodesSingleSubscription + /// + /// + /// Delete subscription key of this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteNodesSingleSubscriptionWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deletePool + /// + /// + /// Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeletePoolAsync(string poolid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deletePool + /// + /// + /// Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeletePoolWithHttpInfoAsync(string poolid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deletePools + /// + /// + /// Delete pool. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeletePoolsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deletePools + /// + /// + /// Delete pool. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeletePoolsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteStorageSingle + /// + /// + /// Delete storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteStorageSingleAsync(string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteStorageSingle + /// + /// + /// Delete storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteStorageSingleWithHttpInfoAsync(string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteVM + /// + /// + /// Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteVMAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteVM + /// + /// + /// Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteVMWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteVMFirewallIPSet + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteVMFirewallIPSetAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteVMFirewallIPSet + /// + /// + /// Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteVMFirewallIPSetWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteVMFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task DeleteVMFirewallRuleAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteVMFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> DeleteVMFirewallRuleWithHttpInfoAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// deleteVMSnapshot + /// + /// + /// Delete a VM snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task DeleteVMSnapshotAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// deleteVMSnapshot + /// + /// + /// Delete a VM snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> DeleteVMSnapshotWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccess + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetAccessAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccess + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetAccessWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessAcl + /// + /// + /// Get Access Control List (ACLs). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessAcl200Response + System.Threading.Tasks.Task GetAccessAclAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessAcl + /// + /// + /// Get Access Control List (ACLs). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessAcl200Response) + System.Threading.Tasks.Task> GetAccessAclWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessDomains + /// + /// + /// Authentication domain index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessDomains200Response + System.Threading.Tasks.Task GetAccessDomainsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessDomains + /// + /// + /// Authentication domain index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessDomains200Response) + System.Threading.Tasks.Task> GetAccessDomainsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessDomainsSingle + /// + /// + /// Get auth server configuration. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetAccessDomainsSingleAsync(string realm, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessDomainsSingle + /// + /// + /// Get auth server configuration. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetAccessDomainsSingleWithHttpInfoAsync(string realm, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessGroups + /// + /// + /// Group index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessGroups200Response + System.Threading.Tasks.Task GetAccessGroupsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessGroups + /// + /// + /// Group index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessGroups200Response) + System.Threading.Tasks.Task> GetAccessGroupsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessGroupsSingle + /// + /// + /// Get group configuration. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessGroupsSingle200Response + System.Threading.Tasks.Task GetAccessGroupsSingleAsync(string groupid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessGroupsSingle + /// + /// + /// Get group configuration. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessGroupsSingle200Response) + System.Threading.Tasks.Task> GetAccessGroupsSingleWithHttpInfoAsync(string groupid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessOpenid + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetAccessOpenidAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessOpenid + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetAccessOpenidWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessPermissions + /// + /// + /// Retrieve effective permissions of given user/token. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessPermissions200Response + System.Threading.Tasks.Task GetAccessPermissionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessPermissions + /// + /// + /// Retrieve effective permissions of given user/token. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessPermissions200Response) + System.Threading.Tasks.Task> GetAccessPermissionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessRoles + /// + /// + /// Role index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessRoles200Response + System.Threading.Tasks.Task GetAccessRolesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessRoles + /// + /// + /// Role index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessRoles200Response) + System.Threading.Tasks.Task> GetAccessRolesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessRolesSingle + /// + /// + /// Get role configuration. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessRolesSingle200Response + System.Threading.Tasks.Task GetAccessRolesSingleAsync(string roleid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessRolesSingle + /// + /// + /// Get role configuration. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessRolesSingle200Response) + System.Threading.Tasks.Task> GetAccessRolesSingleWithHttpInfoAsync(string roleid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessTfa + /// + /// + /// List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessTfa200Response + System.Threading.Tasks.Task GetAccessTfaAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessTfa + /// + /// + /// List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessTfa200Response) + System.Threading.Tasks.Task> GetAccessTfaWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessTfaSingle + /// + /// + /// List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessTfaSingle200Response + System.Threading.Tasks.Task GetAccessTfaSingleAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessTfaSingle + /// + /// + /// List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessTfaSingle200Response) + System.Threading.Tasks.Task> GetAccessTfaSingleWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessTfaSingleSingle + /// + /// + /// Fetch a requested TFA entry if present. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessTfaSingleSingle200Response + System.Threading.Tasks.Task GetAccessTfaSingleSingleAsync(string id, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessTfaSingleSingle + /// + /// + /// Fetch a requested TFA entry if present. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessTfaSingleSingle200Response) + System.Threading.Tasks.Task> GetAccessTfaSingleSingleWithHttpInfoAsync(string id, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessTicket + /// + /// + /// Dummy. Useful for formatters which want to provide a login page. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetAccessTicketAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessTicket + /// + /// + /// Dummy. Useful for formatters which want to provide a login page. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetAccessTicketWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessUsers + /// + /// + /// User index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsers200Response + System.Threading.Tasks.Task GetAccessUsersAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessUsers + /// + /// + /// User index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsers200Response) + System.Threading.Tasks.Task> GetAccessUsersWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessUsersSingle + /// + /// + /// Get user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsersSingle200Response + System.Threading.Tasks.Task GetAccessUsersSingleAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessUsersSingle + /// + /// + /// Get user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsersSingle200Response) + System.Threading.Tasks.Task> GetAccessUsersSingleWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessUsersSingleTfa + /// + /// + /// Get user TFA types (Personal and Realm). + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsersSingleTfa200Response + System.Threading.Tasks.Task GetAccessUsersSingleTfaAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessUsersSingleTfa + /// + /// + /// Get user TFA types (Personal and Realm). + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsersSingleTfa200Response) + System.Threading.Tasks.Task> GetAccessUsersSingleTfaWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessUsersSingleToken + /// + /// + /// Get user API tokens. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsersSingleToken200Response + System.Threading.Tasks.Task GetAccessUsersSingleTokenAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessUsersSingleToken + /// + /// + /// Get user API tokens. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsersSingleToken200Response) + System.Threading.Tasks.Task> GetAccessUsersSingleTokenWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getAccessUsersSingleTokenSingle + /// + /// + /// Get specific API token information. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsersSingleTokenSingle200Response + System.Threading.Tasks.Task GetAccessUsersSingleTokenSingleAsync(string tokenid, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getAccessUsersSingleTokenSingle + /// + /// + /// Get specific API token information. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsersSingleTokenSingle200Response) + System.Threading.Tasks.Task> GetAccessUsersSingleTokenSingleWithHttpInfoAsync(string tokenid, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getCluster + /// + /// + /// Cluster index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getCluster + /// + /// + /// Cluster index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcme + /// + /// + /// ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterAcmeAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcme + /// + /// + /// ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterAcmeWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcmeAccount + /// + /// + /// ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterAcmeAccountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcmeAccount + /// + /// + /// ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterAcmeAccountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcmeAccountSingle + /// + /// + /// Return existing ACME account information. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeAccountSingle200Response + System.Threading.Tasks.Task GetClusterAcmeAccountSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcmeAccountSingle + /// + /// + /// Return existing ACME account information. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeAccountSingle200Response) + System.Threading.Tasks.Task> GetClusterAcmeAccountSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcmeChallengeschema + /// + /// + /// Get schema of ACME challenge types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeChallengeschema200Response + System.Threading.Tasks.Task GetClusterAcmeChallengeschemaAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcmeChallengeschema + /// + /// + /// Get schema of ACME challenge types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeChallengeschema200Response) + System.Threading.Tasks.Task> GetClusterAcmeChallengeschemaWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcmeDirectories + /// + /// + /// Get named known ACME directory endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeDirectories200Response + System.Threading.Tasks.Task GetClusterAcmeDirectoriesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcmeDirectories + /// + /// + /// Get named known ACME directory endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeDirectories200Response) + System.Threading.Tasks.Task> GetClusterAcmeDirectoriesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcmeMeta + /// + /// + /// Retrieve ACME Directory Meta Information + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeMeta200Response + System.Threading.Tasks.Task GetClusterAcmeMetaAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcmeMeta + /// + /// + /// Retrieve ACME Directory Meta Information + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeMeta200Response) + System.Threading.Tasks.Task> GetClusterAcmeMetaWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcmePlugins + /// + /// + /// ACME plugin index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmePlugins200Response + System.Threading.Tasks.Task GetClusterAcmePluginsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcmePlugins + /// + /// + /// ACME plugin index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmePlugins200Response) + System.Threading.Tasks.Task> GetClusterAcmePluginsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcmePluginsSingle + /// + /// + /// Get ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmePluginsSingle200Response + System.Threading.Tasks.Task GetClusterAcmePluginsSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcmePluginsSingle + /// + /// + /// Get ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmePluginsSingle200Response) + System.Threading.Tasks.Task> GetClusterAcmePluginsSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterAcmeTos + /// + /// + /// Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeTos200Response + System.Threading.Tasks.Task GetClusterAcmeTosAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterAcmeTos + /// + /// + /// Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeTos200Response) + System.Threading.Tasks.Task> GetClusterAcmeTosWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterBackup + /// + /// + /// List vzdump backup schedule. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackup200Response + System.Threading.Tasks.Task GetClusterBackupAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterBackup + /// + /// + /// List vzdump backup schedule. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackup200Response) + System.Threading.Tasks.Task> GetClusterBackupWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterBackupSingle + /// + /// + /// Read vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterBackupSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterBackupSingle + /// + /// + /// Read vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterBackupSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterBackupSingleIncludedvolumes + /// + /// + /// Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackupSingleIncludedvolumes200Response + System.Threading.Tasks.Task GetClusterBackupSingleIncludedvolumesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterBackupSingleIncludedvolumes + /// + /// + /// Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackupSingleIncludedvolumes200Response) + System.Threading.Tasks.Task> GetClusterBackupSingleIncludedvolumesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterBackupinfo + /// + /// + /// Index for backup info related endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackupinfo200Response + System.Threading.Tasks.Task GetClusterBackupinfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterBackupinfo + /// + /// + /// Index for backup info related endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackupinfo200Response) + System.Threading.Tasks.Task> GetClusterBackupinfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterBackupinfoNotbackedup + /// + /// + /// Shows all guests which are not covered by any backup job. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackupinfoNotbackedup200Response + System.Threading.Tasks.Task GetClusterBackupinfoNotbackedupAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterBackupinfoNotbackedup + /// + /// + /// Shows all guests which are not covered by any backup job. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackupinfoNotbackedup200Response) + System.Threading.Tasks.Task> GetClusterBackupinfoNotbackedupWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterBulkaction + /// + /// + /// List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMapping200Response + System.Threading.Tasks.Task GetClusterBulkactionAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterBulkaction + /// + /// + /// List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMapping200Response) + System.Threading.Tasks.Task> GetClusterBulkactionWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterBulkactionGuest + /// + /// + /// Bulk action index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterBulkactionGuestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterBulkactionGuest + /// + /// + /// Bulk action index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterBulkactionGuestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterCeph + /// + /// + /// Cluster ceph index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterCephAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterCeph + /// + /// + /// Cluster ceph index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterCephWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterCephFlags + /// + /// + /// get the status of all ceph flags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterCephFlags200Response + System.Threading.Tasks.Task GetClusterCephFlagsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterCephFlags + /// + /// + /// get the status of all ceph flags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterCephFlags200Response) + System.Threading.Tasks.Task> GetClusterCephFlagsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterCephFlagsSingle + /// + /// + /// Get the status of a specific ceph flag. + /// + /// Thrown when fails to make API call + /// flag + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterCephFlagsSingle200Response + System.Threading.Tasks.Task GetClusterCephFlagsSingleAsync(string flag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterCephFlagsSingle + /// + /// + /// Get the status of a specific ceph flag. + /// + /// Thrown when fails to make API call + /// flag + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterCephFlagsSingle200Response) + System.Threading.Tasks.Task> GetClusterCephFlagsSingleWithHttpInfoAsync(string flag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterCephMetadata + /// + /// + /// Get ceph metadata. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterCephMetadata200Response + System.Threading.Tasks.Task GetClusterCephMetadataAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterCephMetadata + /// + /// + /// Get ceph metadata. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterCephMetadata200Response) + System.Threading.Tasks.Task> GetClusterCephMetadataWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterCephStatus + /// + /// + /// Get ceph status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterCephStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterCephStatus + /// + /// + /// Get ceph status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterCephStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterConfig + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterConfigAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterConfig + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterConfigWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterConfigApiversion + /// + /// + /// Return the version of the cluster join API available on this node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterConfigApiversion200Response + System.Threading.Tasks.Task GetClusterConfigApiversionAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterConfigApiversion + /// + /// + /// Return the version of the cluster join API available on this node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterConfigApiversion200Response) + System.Threading.Tasks.Task> GetClusterConfigApiversionWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterConfigJoin + /// + /// + /// Get information needed to join this cluster over the connected node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterConfigJoin200Response + System.Threading.Tasks.Task GetClusterConfigJoinAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterConfigJoin + /// + /// + /// Get information needed to join this cluster over the connected node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterConfigJoin200Response) + System.Threading.Tasks.Task> GetClusterConfigJoinWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterConfigNodes + /// + /// + /// Corosync node list. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterConfigNodes200Response + System.Threading.Tasks.Task GetClusterConfigNodesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterConfigNodes + /// + /// + /// Corosync node list. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterConfigNodes200Response) + System.Threading.Tasks.Task> GetClusterConfigNodesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterConfigQdevice + /// + /// + /// Get QDevice status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterConfigQdeviceAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterConfigQdevice + /// + /// + /// Get QDevice status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterConfigQdeviceWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterConfigTotem + /// + /// + /// Get corosync totem protocol settings. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterConfigTotemAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterConfigTotem + /// + /// + /// Get corosync totem protocol settings. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterConfigTotemWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterFirewallAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterFirewallWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallAliases200Response + System.Threading.Tasks.Task GetClusterFirewallAliasesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallAliases200Response) + System.Threading.Tasks.Task> GetClusterFirewallAliasesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterFirewallAliasesSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterFirewallAliasesSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallGroupRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + System.Threading.Tasks.Task GetClusterFirewallGroupRuleAsync(string group, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallGroupRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + System.Threading.Tasks.Task> GetClusterFirewallGroupRuleWithHttpInfoAsync(string group, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallGroupRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + System.Threading.Tasks.Task GetClusterFirewallGroupRulesAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallGroupRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + System.Threading.Tasks.Task> GetClusterFirewallGroupRulesWithHttpInfoAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallGroups + /// + /// + /// List security groups. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroups200Response + System.Threading.Tasks.Task GetClusterFirewallGroupsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallGroups + /// + /// + /// List security groups. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroups200Response) + System.Threading.Tasks.Task> GetClusterFirewallGroupsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallIPSet + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSet200Response + System.Threading.Tasks.Task GetClusterFirewallIPSetAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallIPSet + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSet200Response) + System.Threading.Tasks.Task> GetClusterFirewallIPSetWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallIPSetIP + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterFirewallIPSetIPAsync(string cidr, string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallIPSetIP + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallIPSets + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSets200Response + System.Threading.Tasks.Task GetClusterFirewallIPSetsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallIPSets + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSets200Response) + System.Threading.Tasks.Task> GetClusterFirewallIPSetsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallMacros + /// + /// + /// List available macros + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallMacros200Response + System.Threading.Tasks.Task GetClusterFirewallMacrosAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallMacros + /// + /// + /// List available macros + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallMacros200Response) + System.Threading.Tasks.Task> GetClusterFirewallMacrosWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallOptions + /// + /// + /// Get Firewall options. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallOptions200Response + System.Threading.Tasks.Task GetClusterFirewallOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallOptions + /// + /// + /// Get Firewall options. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallOptions200Response) + System.Threading.Tasks.Task> GetClusterFirewallOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallRefs200Response + System.Threading.Tasks.Task GetClusterFirewallRefsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallRefs200Response) + System.Threading.Tasks.Task> GetClusterFirewallRefsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + System.Threading.Tasks.Task GetClusterFirewallRuleAsync(int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + System.Threading.Tasks.Task> GetClusterFirewallRuleWithHttpInfoAsync(int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + System.Threading.Tasks.Task GetClusterFirewallRulesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + System.Threading.Tasks.Task> GetClusterFirewallRulesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHa + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHa200Response + System.Threading.Tasks.Task GetClusterHaAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHa + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHa200Response) + System.Threading.Tasks.Task> GetClusterHaWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaGroups + /// + /// + /// Get HA groups. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaGroups200Response + System.Threading.Tasks.Task GetClusterHaGroupsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaGroups + /// + /// + /// Get HA groups. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaGroups200Response) + System.Threading.Tasks.Task> GetClusterHaGroupsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaGroupsSingle + /// + /// + /// Read ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetClusterHaGroupsSingleAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaGroupsSingle + /// + /// + /// Read ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetClusterHaGroupsSingleWithHttpInfoAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaResources + /// + /// + /// List HA resources. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaResources200Response + System.Threading.Tasks.Task GetClusterHaResourcesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaResources + /// + /// + /// List HA resources. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaResources200Response) + System.Threading.Tasks.Task> GetClusterHaResourcesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaResourcesSingle + /// + /// + /// Read resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaResourcesSingle200Response + System.Threading.Tasks.Task GetClusterHaResourcesSingleAsync(string sid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaResourcesSingle + /// + /// + /// Read resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaResourcesSingle200Response) + System.Threading.Tasks.Task> GetClusterHaResourcesSingleWithHttpInfoAsync(string sid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaRules + /// + /// + /// Get HA rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaRules200Response + System.Threading.Tasks.Task GetClusterHaRulesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaRules + /// + /// + /// Get HA rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaRules200Response) + System.Threading.Tasks.Task> GetClusterHaRulesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaRulesSingle + /// + /// + /// Read HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaRulesSingle200Response + System.Threading.Tasks.Task GetClusterHaRulesSingleAsync(string rule, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaRulesSingle + /// + /// + /// Read HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaRulesSingle200Response) + System.Threading.Tasks.Task> GetClusterHaRulesSingleWithHttpInfoAsync(string rule, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaStatus + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterHaStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaStatus + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterHaStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaStatusCurrent + /// + /// + /// Get HA manger status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaStatusCurrent200Response + System.Threading.Tasks.Task GetClusterHaStatusCurrentAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaStatusCurrent + /// + /// + /// Get HA manger status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaStatusCurrent200Response) + System.Threading.Tasks.Task> GetClusterHaStatusCurrentWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterHaStatusManagerstatus + /// + /// + /// Get full HA manger status, including LRM status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterHaStatusManagerstatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterHaStatusManagerstatus + /// + /// + /// Get full HA manger status, including LRM status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterHaStatusManagerstatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterJobs + /// + /// + /// Index for jobs related endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackupinfo200Response + System.Threading.Tasks.Task GetClusterJobsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterJobs + /// + /// + /// Index for jobs related endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackupinfo200Response) + System.Threading.Tasks.Task> GetClusterJobsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterJobsRealmsync + /// + /// + /// List configured realm-sync-jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterJobsRealmsync200Response + System.Threading.Tasks.Task GetClusterJobsRealmsyncAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterJobsRealmsync + /// + /// + /// List configured realm-sync-jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterJobsRealmsync200Response) + System.Threading.Tasks.Task> GetClusterJobsRealmsyncWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterJobsRealmsyncSingle + /// + /// + /// Read realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterJobsRealmsyncSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterJobsRealmsyncSingle + /// + /// + /// Read realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterJobsRealmsyncSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterJobsScheduleanalyze + /// + /// + /// Returns a list of future schedule runtimes. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterJobsScheduleanalyze200Response + System.Threading.Tasks.Task GetClusterJobsScheduleanalyzeAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterJobsScheduleanalyze + /// + /// + /// Returns a list of future schedule runtimes. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterJobsScheduleanalyze200Response) + System.Threading.Tasks.Task> GetClusterJobsScheduleanalyzeWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterLog + /// + /// + /// Read cluster log + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterLogAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterLog + /// + /// + /// Read cluster log + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterLogWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMapping + /// + /// + /// List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMapping200Response + System.Threading.Tasks.Task GetClusterMappingAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMapping + /// + /// + /// List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMapping200Response) + System.Threading.Tasks.Task> GetClusterMappingWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMappingDir + /// + /// + /// List directory mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMappingDir200Response + System.Threading.Tasks.Task GetClusterMappingDirAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMappingDir + /// + /// + /// List directory mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMappingDir200Response) + System.Threading.Tasks.Task> GetClusterMappingDirWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMappingDirSingle + /// + /// + /// Get directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterMappingDirSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMappingDirSingle + /// + /// + /// Get directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterMappingDirSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMappingPci + /// + /// + /// List PCI Hardware Mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMappingPci200Response + System.Threading.Tasks.Task GetClusterMappingPciAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMappingPci + /// + /// + /// List PCI Hardware Mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMappingPci200Response) + System.Threading.Tasks.Task> GetClusterMappingPciWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMappingPciSingle + /// + /// + /// Get PCI Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterMappingPciSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMappingPciSingle + /// + /// + /// Get PCI Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterMappingPciSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMappingUsb + /// + /// + /// List USB Hardware Mappings + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMappingUsb200Response + System.Threading.Tasks.Task GetClusterMappingUsbAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMappingUsb + /// + /// + /// List USB Hardware Mappings + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMappingUsb200Response) + System.Threading.Tasks.Task> GetClusterMappingUsbWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMappingUsbSingle + /// + /// + /// Get USB Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterMappingUsbSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMappingUsbSingle + /// + /// + /// Get USB Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterMappingUsbSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMetrics + /// + /// + /// Metrics index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterMetricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMetrics + /// + /// + /// Metrics index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterMetricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMetricsExport + /// + /// + /// Retrieve metrics of the cluster. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsExport200Response + System.Threading.Tasks.Task GetClusterMetricsExportAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMetricsExport + /// + /// + /// Retrieve metrics of the cluster. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsExport200Response) + System.Threading.Tasks.Task> GetClusterMetricsExportWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMetricsServer + /// + /// + /// List configured metric servers. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServer200Response + System.Threading.Tasks.Task GetClusterMetricsServerAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMetricsServer + /// + /// + /// List configured metric servers. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServer200Response) + System.Threading.Tasks.Task> GetClusterMetricsServerWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterMetricsServerSingle + /// + /// + /// Read metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterMetricsServerSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterMetricsServerSingle + /// + /// + /// Read metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterMetricsServerSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNextid + /// + /// + /// Get next free VMID. Pass a VMID to assert that its free (at time of check). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNextid200Response + System.Threading.Tasks.Task GetClusterNextidAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNextid + /// + /// + /// Get next free VMID. Pass a VMID to assert that its free (at time of check). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNextid200Response) + System.Threading.Tasks.Task> GetClusterNextidWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotifications + /// + /// + /// Index for notification-related API endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterNotificationsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotifications + /// + /// + /// Index for notification-related API endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterNotificationsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpoints + /// + /// + /// Index for all available endpoint types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpoints + /// + /// + /// Index for all available endpoint types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpointsGotify + /// + /// + /// Returns a list of all gotify endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsGotify200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsGotifyAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpointsGotify + /// + /// + /// Returns a list of all gotify endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsGotify200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsGotifyWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpointsGotifySingle + /// + /// + /// Return a specific gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsGotifySingle200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsGotifySingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpointsGotifySingle + /// + /// + /// Return a specific gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsGotifySingle200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpointsSendmail + /// + /// + /// Returns a list of all sendmail endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsSendmail200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsSendmailAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpointsSendmail + /// + /// + /// Returns a list of all sendmail endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsSendmail200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsSendmailWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Return a specific sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsSendmailSingle200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsSendmailSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Return a specific sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsSendmailSingle200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpointsSmtp + /// + /// + /// Returns a list of all smtp endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsSmtp200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsSmtpAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpointsSmtp + /// + /// + /// Returns a list of all smtp endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsSmtp200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsSmtpWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Return a specific smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsSmtpSingle200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsSmtpSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Return a specific smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsSmtpSingle200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpointsWebhook + /// + /// + /// Returns a list of all webhook endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsWebhook200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsWebhookAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpointsWebhook + /// + /// + /// Returns a list of all webhook endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsWebhook200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsWebhookWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Return a specific webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsWebhookSingle200Response + System.Threading.Tasks.Task GetClusterNotificationsEndpointsWebhookSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Return a specific webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsWebhookSingle200Response) + System.Threading.Tasks.Task> GetClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsMatcherfields + /// + /// + /// Returns known notification metadata fields + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsMatcherfields200Response + System.Threading.Tasks.Task GetClusterNotificationsMatcherfieldsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsMatcherfields + /// + /// + /// Returns known notification metadata fields + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsMatcherfields200Response) + System.Threading.Tasks.Task> GetClusterNotificationsMatcherfieldsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsMatcherfieldvalues + /// + /// + /// Returns known notification metadata fields and their known values + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsMatcherfieldvalues200Response + System.Threading.Tasks.Task GetClusterNotificationsMatcherfieldvaluesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsMatcherfieldvalues + /// + /// + /// Returns known notification metadata fields and their known values + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsMatcherfieldvalues200Response) + System.Threading.Tasks.Task> GetClusterNotificationsMatcherfieldvaluesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsMatchers + /// + /// + /// Returns a list of all matchers + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsMatchers200Response + System.Threading.Tasks.Task GetClusterNotificationsMatchersAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsMatchers + /// + /// + /// Returns a list of all matchers + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsMatchers200Response) + System.Threading.Tasks.Task> GetClusterNotificationsMatchersWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsMatchersSingle + /// + /// + /// Return a specific matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsMatchersSingle200Response + System.Threading.Tasks.Task GetClusterNotificationsMatchersSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsMatchersSingle + /// + /// + /// Return a specific matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsMatchersSingle200Response) + System.Threading.Tasks.Task> GetClusterNotificationsMatchersSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterNotificationsTargets + /// + /// + /// Returns a list of all entities that can be used as notification targets. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsTargets200Response + System.Threading.Tasks.Task GetClusterNotificationsTargetsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterNotificationsTargets + /// + /// + /// Returns a list of all entities that can be used as notification targets. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsTargets200Response) + System.Threading.Tasks.Task> GetClusterNotificationsTargetsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterOptions + /// + /// + /// Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterOptions + /// + /// + /// Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterReplication + /// + /// + /// List replication jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterReplication200Response + System.Threading.Tasks.Task GetClusterReplicationAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterReplication + /// + /// + /// List replication jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterReplication200Response) + System.Threading.Tasks.Task> GetClusterReplicationWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterReplicationSingle + /// + /// + /// Read replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterReplicationSingle200Response + System.Threading.Tasks.Task GetClusterReplicationSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterReplicationSingle + /// + /// + /// Read replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterReplicationSingle200Response) + System.Threading.Tasks.Task> GetClusterReplicationSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterResources + /// + /// + /// Resources index (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterResources200Response + System.Threading.Tasks.Task GetClusterResourcesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterResources + /// + /// + /// Resources index (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterResources200Response) + System.Threading.Tasks.Task> GetClusterResourcesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSDN + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHa200Response + System.Threading.Tasks.Task GetClusterSDNAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSDN + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHa200Response) + System.Threading.Tasks.Task> GetClusterSDNWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSDNController + /// + /// + /// Read sdn controller configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetClusterSDNControllerAsync(string controller, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSDNController + /// + /// + /// Read sdn controller configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetClusterSDNControllerWithHttpInfoAsync(string controller, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSDNControllers + /// + /// + /// SDN controllers index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSDNControllers200Response + System.Threading.Tasks.Task GetClusterSDNControllersAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSDNControllers + /// + /// + /// SDN controllers index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSDNControllers200Response) + System.Threading.Tasks.Task> GetClusterSDNControllersWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSDNVnet + /// + /// + /// Read sdn vnet configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetClusterSDNVnetAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSDNVnet + /// + /// + /// Read sdn vnet configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetClusterSDNVnetWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSDNVnets + /// + /// + /// SDN vnets index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSDNVnets200Response + System.Threading.Tasks.Task GetClusterSDNVnetsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSDNVnets + /// + /// + /// SDN vnets index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSDNVnets200Response) + System.Threading.Tasks.Task> GetClusterSDNVnetsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSDNZone + /// + /// + /// Read sdn zone configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetClusterSDNZoneAsync(string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSDNZone + /// + /// + /// Read sdn zone configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetClusterSDNZoneWithHttpInfoAsync(string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSDNZones + /// + /// + /// SDN zones index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSDNZones200Response + System.Threading.Tasks.Task GetClusterSDNZonesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSDNZones + /// + /// + /// SDN zones index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSDNZones200Response) + System.Threading.Tasks.Task> GetClusterSDNZonesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnDns + /// + /// + /// SDN dns index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnDns200Response + System.Threading.Tasks.Task GetClusterSdnDnsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnDns + /// + /// + /// SDN dns index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnDns200Response) + System.Threading.Tasks.Task> GetClusterSdnDnsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnDnsSingle + /// + /// + /// Read sdn dns configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterSdnDnsSingleAsync(string dns, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnDnsSingle + /// + /// + /// Read sdn dns configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterSdnDnsSingleWithHttpInfoAsync(string dns, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnFabrics + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetClusterSdnFabricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnFabrics + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetClusterSdnFabricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnFabricsAll + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsAll200Response + System.Threading.Tasks.Task GetClusterSdnFabricsAllAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnFabricsAll + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsAll200Response) + System.Threading.Tasks.Task> GetClusterSdnFabricsAllWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnFabricsFabric + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsFabric200Response + System.Threading.Tasks.Task GetClusterSdnFabricsFabricAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnFabricsFabric + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsFabric200Response) + System.Threading.Tasks.Task> GetClusterSdnFabricsFabricWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnFabricsFabricSingle + /// + /// + /// Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsFabricSingle200Response + System.Threading.Tasks.Task GetClusterSdnFabricsFabricSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnFabricsFabricSingle + /// + /// + /// Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsFabricSingle200Response) + System.Threading.Tasks.Task> GetClusterSdnFabricsFabricSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnFabricsNode + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsNode200Response + System.Threading.Tasks.Task GetClusterSdnFabricsNodeAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnFabricsNode + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsNode200Response) + System.Threading.Tasks.Task> GetClusterSdnFabricsNodeWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnFabricsNodeSingle + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// fabric_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsNode200Response + System.Threading.Tasks.Task GetClusterSdnFabricsNodeSingleAsync(string fabricId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnFabricsNodeSingle + /// + /// + /// SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// fabric_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsNode200Response) + System.Threading.Tasks.Task> GetClusterSdnFabricsNodeSingleWithHttpInfoAsync(string fabricId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnFabricsNodeSingleSingle + /// + /// + /// Get a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetClusterSdnFabricsNodeSingleSingleAsync(string fabricId, string nodeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnFabricsNodeSingleSingle + /// + /// + /// Get a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(string fabricId, string nodeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnIpams + /// + /// + /// SDN ipams index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnIpams200Response + System.Threading.Tasks.Task GetClusterSdnIpamsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnIpams + /// + /// + /// SDN ipams index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnIpams200Response) + System.Threading.Tasks.Task> GetClusterSdnIpamsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnIpamsSingle + /// + /// + /// Read sdn ipam configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterSdnIpamsSingleAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnIpamsSingle + /// + /// + /// Read sdn ipam configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterSdnIpamsSingleWithHttpInfoAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnIpamsSingleStatus + /// + /// + /// List PVE IPAM Entries + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnIpamsSingleStatus200Response + System.Threading.Tasks.Task GetClusterSdnIpamsSingleStatusAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnIpamsSingleStatus + /// + /// + /// List PVE IPAM Entries + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnIpamsSingleStatus200Response) + System.Threading.Tasks.Task> GetClusterSdnIpamsSingleStatusWithHttpInfoAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnVnetsSingleFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterSdnVnetsSingleFirewallAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnVnetsSingleFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterSdnVnetsSingleFirewallWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnVnetsSingleFirewallOptions + /// + /// + /// Get vnet firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnVnetsSingleFirewallOptions200Response + System.Threading.Tasks.Task GetClusterSdnVnetsSingleFirewallOptionsAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnVnetsSingleFirewallOptions + /// + /// + /// Get vnet firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnVnetsSingleFirewallOptions200Response) + System.Threading.Tasks.Task> GetClusterSdnVnetsSingleFirewallOptionsWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnVnetsSingleFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + System.Threading.Tasks.Task GetClusterSdnVnetsSingleFirewallRulesAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnVnetsSingleFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + System.Threading.Tasks.Task> GetClusterSdnVnetsSingleFirewallRulesWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + System.Threading.Tasks.Task GetClusterSdnVnetsSingleFirewallRulesSingleAsync(int pos, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + System.Threading.Tasks.Task> GetClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(int pos, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnVnetsSingleSubnets + /// + /// + /// SDN subnets index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetClusterSdnVnetsSingleSubnetsAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnVnetsSingleSubnets + /// + /// + /// SDN subnets index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetClusterSdnVnetsSingleSubnetsWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Read sdn subnet configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetClusterSdnVnetsSingleSubnetsSingleAsync(string subnet, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Read sdn subnet configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(string subnet, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterStatus + /// + /// + /// Get cluster status information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterStatus200Response + System.Threading.Tasks.Task GetClusterStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterStatus + /// + /// + /// Get cluster status information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterStatus200Response) + System.Threading.Tasks.Task> GetClusterStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getClusterTasks + /// + /// + /// List recent tasks (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterTasks200Response + System.Threading.Tasks.Task GetClusterTasksAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getClusterTasks + /// + /// + /// List recent tasks (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterTasks200Response) + System.Threading.Tasks.Task> GetClusterTasksWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getCurrentVMStatus + /// + /// + /// Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCurrentVMStatus200Response + System.Threading.Tasks.Task GetCurrentVMStatusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getCurrentVMStatus + /// + /// + /// Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCurrentVMStatus200Response) + System.Threading.Tasks.Task> GetCurrentVMStatusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNode + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodeAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNode + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodeWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodeFirewallAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodeFirewallWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeFirewallOptions + /// + /// + /// Get host firewall options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeFirewallOptions200Response + System.Threading.Tasks.Task GetNodeFirewallOptionsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeFirewallOptions + /// + /// + /// Get host firewall options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeFirewallOptions200Response) + System.Threading.Tasks.Task> GetNodeFirewallOptionsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + System.Threading.Tasks.Task GetNodeFirewallRuleAsync(string node, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + System.Threading.Tasks.Task> GetNodeFirewallRuleWithHttpInfoAsync(string node, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + System.Threading.Tasks.Task GetNodeFirewallRulesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + System.Threading.Tasks.Task> GetNodeFirewallRulesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeRRD + /// + /// + /// Read node RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMRRD200Response + System.Threading.Tasks.Task GetNodeRRDAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeRRD + /// + /// + /// Read node RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMRRD200Response) + System.Threading.Tasks.Task> GetNodeRRDWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeRRDData + /// + /// + /// Read node RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodeRRDDataAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeRRDData + /// + /// + /// Read node RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodeRRDDataWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeSDN + /// + /// + /// SDN index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodeSDNAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeSDN + /// + /// + /// SDN index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodeSDNWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeSDNZone + /// + /// + /// Directory index for SDN zone status. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetNodeSDNZoneAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeSDNZone + /// + /// + /// Directory index for SDN zone status. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetNodeSDNZoneWithHttpInfoAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeSDNZoneContent + /// + /// + /// List zone content. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeSDNZoneContent200Response + System.Threading.Tasks.Task GetNodeSDNZoneContentAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeSDNZoneContent + /// + /// + /// List zone content. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeSDNZoneContent200Response) + System.Threading.Tasks.Task> GetNodeSDNZoneContentWithHttpInfoAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeSDNZones + /// + /// + /// Get status for all zones. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeSDNZones200Response + System.Threading.Tasks.Task GetNodeSDNZonesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeSDNZones + /// + /// + /// Get status for all zones. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeSDNZones200Response) + System.Threading.Tasks.Task> GetNodeSDNZonesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeTask + /// + /// + /// getNodeTask + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodeTaskAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeTask + /// + /// + /// getNodeTask + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodeTaskWithHttpInfoAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeTaskLog + /// + /// + /// Read task log. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + System.Threading.Tasks.Task GetNodeTaskLogAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeTaskLog + /// + /// + /// Read task log. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + System.Threading.Tasks.Task> GetNodeTaskLogWithHttpInfoAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeTaskStatus + /// + /// + /// Read task status. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeTaskStatus200Response + System.Threading.Tasks.Task GetNodeTaskStatusAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeTaskStatus + /// + /// + /// Read task status. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeTaskStatus200Response) + System.Threading.Tasks.Task> GetNodeTaskStatusWithHttpInfoAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodeTasks + /// + /// + /// Read task list for one node (finished tasks). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeTasks200Response + System.Threading.Tasks.Task GetNodeTasksAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodeTasks + /// + /// + /// Read task list for one node (finished tasks). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeTasks200Response) + System.Threading.Tasks.Task> GetNodeTasksWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodes + /// + /// + /// Cluster node index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodes200Response + System.Threading.Tasks.Task GetNodesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodes + /// + /// + /// Cluster node index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodes200Response) + System.Threading.Tasks.Task> GetNodesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleAplinfo + /// + /// + /// Get list of appliances. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleAplinfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleAplinfo + /// + /// + /// Get list of appliances. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleAplinfoWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleApt + /// + /// + /// Directory index for apt (Advanced Package Tool). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHa200Response + System.Threading.Tasks.Task GetNodesSingleAptAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleApt + /// + /// + /// Directory index for apt (Advanced Package Tool). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHa200Response) + System.Threading.Tasks.Task> GetNodesSingleAptWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleAptChangelog + /// + /// + /// Get package changelogs. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetNodesSingleAptChangelogAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleAptChangelog + /// + /// + /// Get package changelogs. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetNodesSingleAptChangelogWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleAptRepositories + /// + /// + /// Get APT repository information. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleAptRepositories200Response + System.Threading.Tasks.Task GetNodesSingleAptRepositoriesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleAptRepositories + /// + /// + /// Get APT repository information. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleAptRepositories200Response) + System.Threading.Tasks.Task> GetNodesSingleAptRepositoriesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleAptUpdate + /// + /// + /// List available updates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleAptUpdate200Response + System.Threading.Tasks.Task GetNodesSingleAptUpdateAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleAptUpdate + /// + /// + /// List available updates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleAptUpdate200Response) + System.Threading.Tasks.Task> GetNodesSingleAptUpdateWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleAptVersions + /// + /// + /// Get package information for important Proxmox packages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleAptVersions200Response + System.Threading.Tasks.Task GetNodesSingleAptVersionsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleAptVersions + /// + /// + /// Get package information for important Proxmox packages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleAptVersions200Response) + System.Threading.Tasks.Task> GetNodesSingleAptVersionsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCapabilities + /// + /// + /// Node capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleCapabilitiesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCapabilities + /// + /// + /// Node capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleCapabilitiesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCapabilitiesQemu + /// + /// + /// QEMU capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCapabilitiesQemu + /// + /// + /// QEMU capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCapabilitiesQemuCpu + /// + /// + /// List all custom and default CPU models. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCapabilitiesQemuCpu200Response + System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuCpuAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCapabilitiesQemuCpu + /// + /// + /// List all custom and default CPU models. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCapabilitiesQemuCpu200Response) + System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuCpuWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCapabilitiesQemuCpuflags + /// + /// + /// List of available VM-specific CPU flags. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCapabilitiesQemuCpuflags200Response + System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuCpuflagsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCapabilitiesQemuCpuflags + /// + /// + /// List of available VM-specific CPU flags. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCapabilitiesQemuCpuflags200Response) + System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuCpuflagsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCapabilitiesQemuMachines + /// + /// + /// Get available QEMU/KVM machine types. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCapabilitiesQemuMachines200Response + System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuMachinesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCapabilitiesQemuMachines + /// + /// + /// Get available QEMU/KVM machine types. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCapabilitiesQemuMachines200Response) + System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuMachinesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCapabilitiesQemuMigration + /// + /// + /// Get node-specific QEMU migration capabilities of the node. Requires the 'Sys.Audit' permission on '/nodes/<node>'. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCapabilitiesQemuMigration200Response + System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuMigrationAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCapabilitiesQemuMigration + /// + /// + /// Get node-specific QEMU migration capabilities of the node. Requires the 'Sys.Audit' permission on '/nodes/<node>'. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCapabilitiesQemuMigration200Response) + System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuMigrationWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCeph + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleCephAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCeph + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleCephWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephCfg + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleCephCfgAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephCfg + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleCephCfgWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephCfgDb + /// + /// + /// Get the Ceph configuration database. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephCfgDb200Response + System.Threading.Tasks.Task GetNodesSingleCephCfgDbAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephCfgDb + /// + /// + /// Get the Ceph configuration database. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephCfgDb200Response) + System.Threading.Tasks.Task> GetNodesSingleCephCfgDbWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephCfgRaw + /// + /// + /// Get the Ceph configuration file. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetNodesSingleCephCfgRawAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephCfgRaw + /// + /// + /// Get the Ceph configuration file. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetNodesSingleCephCfgRawWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephCfgValue + /// + /// + /// Get configured values from either the config file or config DB. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephCfgValue200Response + System.Threading.Tasks.Task GetNodesSingleCephCfgValueAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephCfgValue + /// + /// + /// Get configured values from either the config file or config DB. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephCfgValue200Response) + System.Threading.Tasks.Task> GetNodesSingleCephCfgValueWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephCmdsafety + /// + /// + /// Heuristical check if it is safe to perform an action. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephCmdsafety200Response + System.Threading.Tasks.Task GetNodesSingleCephCmdsafetyAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephCmdsafety + /// + /// + /// Heuristical check if it is safe to perform an action. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephCmdsafety200Response) + System.Threading.Tasks.Task> GetNodesSingleCephCmdsafetyWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephCrush + /// + /// + /// Get OSD crush map + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetNodesSingleCephCrushAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephCrush + /// + /// + /// Get OSD crush map + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetNodesSingleCephCrushWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephFs + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephFs200Response + System.Threading.Tasks.Task GetNodesSingleCephFsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephFs + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephFs200Response) + System.Threading.Tasks.Task> GetNodesSingleCephFsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephLog + /// + /// + /// Read ceph log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + System.Threading.Tasks.Task GetNodesSingleCephLogAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephLog + /// + /// + /// Read ceph log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + System.Threading.Tasks.Task> GetNodesSingleCephLogWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephMds + /// + /// + /// MDS directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephMds200Response + System.Threading.Tasks.Task GetNodesSingleCephMdsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephMds + /// + /// + /// MDS directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephMds200Response) + System.Threading.Tasks.Task> GetNodesSingleCephMdsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephMgr + /// + /// + /// MGR directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephMgr200Response + System.Threading.Tasks.Task GetNodesSingleCephMgrAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephMgr + /// + /// + /// MGR directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephMgr200Response) + System.Threading.Tasks.Task> GetNodesSingleCephMgrWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephMon + /// + /// + /// Get Ceph monitor list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephMon200Response + System.Threading.Tasks.Task GetNodesSingleCephMonAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephMon + /// + /// + /// Get Ceph monitor list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephMon200Response) + System.Threading.Tasks.Task> GetNodesSingleCephMonWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephOsd + /// + /// + /// Get Ceph osd list/tree. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetNodesSingleCephOsdAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephOsd + /// + /// + /// Get Ceph osd list/tree. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleCephOsdWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephOsdSingle + /// + /// + /// OSD index. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleCephOsdSingleAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephOsdSingle + /// + /// + /// OSD index. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleCephOsdSingleWithHttpInfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephOsdSingleLvinfo + /// + /// + /// Get OSD volume details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephOsdSingleLvinfo200Response + System.Threading.Tasks.Task GetNodesSingleCephOsdSingleLvinfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephOsdSingleLvinfo + /// + /// + /// Get OSD volume details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephOsdSingleLvinfo200Response) + System.Threading.Tasks.Task> GetNodesSingleCephOsdSingleLvinfoWithHttpInfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephOsdSingleMetadata + /// + /// + /// Get OSD details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephOsdSingleMetadata200Response + System.Threading.Tasks.Task GetNodesSingleCephOsdSingleMetadataAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephOsdSingleMetadata + /// + /// + /// Get OSD details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephOsdSingleMetadata200Response) + System.Threading.Tasks.Task> GetNodesSingleCephOsdSingleMetadataWithHttpInfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephPool + /// + /// + /// List all pools and their settings (which are settable by the POST/PUT endpoints). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephPool200Response + System.Threading.Tasks.Task GetNodesSingleCephPoolAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephPool + /// + /// + /// List all pools and their settings (which are settable by the POST/PUT endpoints). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephPool200Response) + System.Threading.Tasks.Task> GetNodesSingleCephPoolWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephPoolSingle + /// + /// + /// Pool index. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleCephPoolSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephPoolSingle + /// + /// + /// Pool index. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleCephPoolSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephPoolSingleStatus + /// + /// + /// Show the current pool status. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephPoolSingleStatus200Response + System.Threading.Tasks.Task GetNodesSingleCephPoolSingleStatusAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephPoolSingleStatus + /// + /// + /// Show the current pool status. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephPoolSingleStatus200Response) + System.Threading.Tasks.Task> GetNodesSingleCephPoolSingleStatusWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephRules + /// + /// + /// List ceph rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephRules200Response + System.Threading.Tasks.Task GetNodesSingleCephRulesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephRules + /// + /// + /// List ceph rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephRules200Response) + System.Threading.Tasks.Task> GetNodesSingleCephRulesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCephStatus + /// + /// + /// Get ceph status. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetNodesSingleCephStatusAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCephStatus + /// + /// + /// Get ceph status. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleCephStatusWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCertificates + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleCertificatesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCertificates + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleCertificatesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCertificatesAcme + /// + /// + /// ACME index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleCertificatesAcmeAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCertificatesAcme + /// + /// + /// ACME index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleCertificatesAcmeWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleCertificatesInfo + /// + /// + /// Get information about node's certificates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCertificatesInfo200Response + System.Threading.Tasks.Task GetNodesSingleCertificatesInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleCertificatesInfo + /// + /// + /// Get information about node's certificates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCertificatesInfo200Response) + System.Threading.Tasks.Task> GetNodesSingleCertificatesInfoWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleConfig + /// + /// + /// Get node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleConfig200Response + System.Threading.Tasks.Task GetNodesSingleConfigAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleConfig + /// + /// + /// Get node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleConfig200Response) + System.Threading.Tasks.Task> GetNodesSingleConfigWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDisks + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleDisksAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDisks + /// + /// + /// Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleDisksWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDisksDirectory + /// + /// + /// PVE Managed Directory storages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksDirectory200Response + System.Threading.Tasks.Task GetNodesSingleDisksDirectoryAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDisksDirectory + /// + /// + /// PVE Managed Directory storages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksDirectory200Response) + System.Threading.Tasks.Task> GetNodesSingleDisksDirectoryWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDisksList + /// + /// + /// List local disks. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksList200Response + System.Threading.Tasks.Task GetNodesSingleDisksListAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDisksList + /// + /// + /// List local disks. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksList200Response) + System.Threading.Tasks.Task> GetNodesSingleDisksListWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDisksLvm + /// + /// + /// List LVM Volume Groups + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksLvm200Response + System.Threading.Tasks.Task GetNodesSingleDisksLvmAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDisksLvm + /// + /// + /// List LVM Volume Groups + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksLvm200Response) + System.Threading.Tasks.Task> GetNodesSingleDisksLvmWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDisksLvmthin + /// + /// + /// List LVM thinpools + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksLvmthin200Response + System.Threading.Tasks.Task GetNodesSingleDisksLvmthinAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDisksLvmthin + /// + /// + /// List LVM thinpools + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksLvmthin200Response) + System.Threading.Tasks.Task> GetNodesSingleDisksLvmthinWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDisksSmart + /// + /// + /// Get SMART Health of a disk. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksSmart200Response + System.Threading.Tasks.Task GetNodesSingleDisksSmartAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDisksSmart + /// + /// + /// Get SMART Health of a disk. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksSmart200Response) + System.Threading.Tasks.Task> GetNodesSingleDisksSmartWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDisksZfs + /// + /// + /// List Zpools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksZfs200Response + System.Threading.Tasks.Task GetNodesSingleDisksZfsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDisksZfs + /// + /// + /// List Zpools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksZfs200Response) + System.Threading.Tasks.Task> GetNodesSingleDisksZfsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDisksZfsSingle + /// + /// + /// Get details about a zpool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksZfsSingle200Response + System.Threading.Tasks.Task GetNodesSingleDisksZfsSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDisksZfsSingle + /// + /// + /// Get details about a zpool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksZfsSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleDisksZfsSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleDns + /// + /// + /// Read DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDns200Response + System.Threading.Tasks.Task GetNodesSingleDnsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleDns + /// + /// + /// Read DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDns200Response) + System.Threading.Tasks.Task> GetNodesSingleDnsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + System.Threading.Tasks.Task GetNodesSingleFirewallLogAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + System.Threading.Tasks.Task> GetNodesSingleFirewallLogWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleHardware + /// + /// + /// Index of hardware types + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHardware200Response + System.Threading.Tasks.Task GetNodesSingleHardwareAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleHardware + /// + /// + /// Index of hardware types + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHardware200Response) + System.Threading.Tasks.Task> GetNodesSingleHardwareWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleHardwarePci + /// + /// + /// List local PCI devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHardwarePci200Response + System.Threading.Tasks.Task GetNodesSingleHardwarePciAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleHardwarePci + /// + /// + /// List local PCI devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHardwarePci200Response) + System.Threading.Tasks.Task> GetNodesSingleHardwarePciWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleHardwarePciSingle + /// + /// + /// Index of available pci methods + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScan200Response + System.Threading.Tasks.Task GetNodesSingleHardwarePciSingleAsync(string node, string pciIdOrMapping, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleHardwarePciSingle + /// + /// + /// Index of available pci methods + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScan200Response) + System.Threading.Tasks.Task> GetNodesSingleHardwarePciSingleWithHttpInfoAsync(string node, string pciIdOrMapping, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleHardwarePciSingleMdev + /// + /// + /// List mediated device types for given PCI device. + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHardwarePciSingleMdev200Response + System.Threading.Tasks.Task GetNodesSingleHardwarePciSingleMdevAsync(string node, string pciIdOrMapping, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleHardwarePciSingleMdev + /// + /// + /// List mediated device types for given PCI device. + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHardwarePciSingleMdev200Response) + System.Threading.Tasks.Task> GetNodesSingleHardwarePciSingleMdevWithHttpInfoAsync(string node, string pciIdOrMapping, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleHardwareUsb + /// + /// + /// List local USB devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHardwareUsb200Response + System.Threading.Tasks.Task GetNodesSingleHardwareUsbAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleHardwareUsb + /// + /// + /// List local USB devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHardwareUsb200Response) + System.Threading.Tasks.Task> GetNodesSingleHardwareUsbWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleHosts + /// + /// + /// Get the content of /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHosts200Response + System.Threading.Tasks.Task GetNodesSingleHostsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleHosts + /// + /// + /// Get the content of /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHosts200Response) + System.Threading.Tasks.Task> GetNodesSingleHostsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleJournal + /// + /// + /// Read Journal + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleJournal200Response + System.Threading.Tasks.Task GetNodesSingleJournalAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleJournal + /// + /// + /// Read Journal + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleJournal200Response) + System.Threading.Tasks.Task> GetNodesSingleJournalWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxc + /// + /// + /// LXC container index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxc200Response + System.Threading.Tasks.Task GetNodesSingleLxcAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxc + /// + /// + /// LXC container index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxc200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingle + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingle + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleConfig + /// + /// + /// Get container configuration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleConfig200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleConfigAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleConfig + /// + /// + /// Get container configuration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleConfig200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleConfigWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFeature + /// + /// + /// Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleFeature200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFeatureAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFeature + /// + /// + /// Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleFeature200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFeatureWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallAliases200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallAliasesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallAliases200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallAliasesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallAliasesSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallIpset + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSets200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallIpsetAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallIpset + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSets200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallIpsetWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSet200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallIpsetSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingle + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSet200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallIpsetSingleSingleAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallLogAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallLogWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallOptions + /// + /// + /// Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMFirewallOptions200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallOptionsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallOptions + /// + /// + /// Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMFirewallOptions200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallOptionsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallRefs200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallRefsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallRefs200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallRefsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallRulesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallRulesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallRulesSingleAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleInterfaces + /// + /// + /// Get IP addresses of the specified container interface. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleInterfaces200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleInterfacesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleInterfaces + /// + /// + /// Get IP addresses of the specified container interface. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleInterfaces200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleInterfacesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleMigrate + /// + /// + /// Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleMigrate200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleMigrateAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleMigrate + /// + /// + /// Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleMigrate200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleMigrateWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleMtunnelwebsocket + /// + /// + /// Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleMtunnelwebsocket200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleMtunnelwebsocketAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleMtunnelwebsocket + /// + /// + /// Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleMtunnelwebsocket200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleMtunnelwebsocketWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSinglePending + /// + /// + /// Get container configuration, including pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSinglePending200Response + System.Threading.Tasks.Task GetNodesSingleLxcSinglePendingAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSinglePending + /// + /// + /// Get container configuration, including pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSinglePending200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSinglePendingWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleRrd + /// + /// + /// Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMRRD200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleRrdAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleRrd + /// + /// + /// Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMRRD200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleRrdWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleRrddata + /// + /// + /// Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleRrddataAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleRrddata + /// + /// + /// Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleRrddataWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleSnapshot + /// + /// + /// List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleSnapshot200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleSnapshotAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleSnapshot + /// + /// + /// List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleSnapshot200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleSnapshotWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleSnapshotSingle + /// + /// + /// getNodesSingleLxcSingleSnapshotSingle + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleSnapshotSingleAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleSnapshotSingle + /// + /// + /// getNodesSingleLxcSingleSnapshotSingle + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleSnapshotSingleWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleSnapshotSingleConfig + /// + /// + /// Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleSnapshotSingleConfigAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleSnapshotSingleConfig + /// + /// + /// Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleStatus + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleStatusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleStatus + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleStatusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleStatusCurrent + /// + /// + /// Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleStatusCurrent200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleStatusCurrentAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleStatusCurrent + /// + /// + /// Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleStatusCurrent200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleStatusCurrentWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleLxcSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleVncwebsocket200Response + System.Threading.Tasks.Task GetNodesSingleLxcSingleVncwebsocketAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleLxcSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleVncwebsocket200Response) + System.Threading.Tasks.Task> GetNodesSingleLxcSingleVncwebsocketWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleNetstat + /// + /// + /// Read tap/vm network device interface counters + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleNetstatAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleNetstat + /// + /// + /// Read tap/vm network device interface counters + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleNetstatWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleNetwork + /// + /// + /// List available networks + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleNetwork200Response + System.Threading.Tasks.Task GetNodesSingleNetworkAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleNetwork + /// + /// + /// List available networks + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleNetwork200Response) + System.Threading.Tasks.Task> GetNodesSingleNetworkWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleNetworkSingle + /// + /// + /// Read network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleNetworkSingle200Response + System.Threading.Tasks.Task GetNodesSingleNetworkSingleAsync(string iface, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleNetworkSingle + /// + /// + /// Read network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleNetworkSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleNetworkSingleWithHttpInfoAsync(string iface, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgent + /// + /// + /// QEMU Guest Agent command index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgent + /// + /// + /// QEMU Guest Agent command index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentExecstatus + /// + /// + /// Gets the status of the given pid started by the guest-agent + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleAgentExecstatus200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentExecstatusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentExecstatus + /// + /// + /// Gets the status of the given pid started by the guest-agent + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleAgentExecstatus200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentExecstatusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentFileread + /// + /// + /// Reads the given file via guest agent. Is limited to 16777216 bytes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleAgentFileread200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentFilereadAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentFileread + /// + /// + /// Reads the given file via guest agent. Is limited to 16777216 bytes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleAgentFileread200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentFilereadWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGetfsinfo + /// + /// + /// Execute get-fsinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetfsinfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGetfsinfo + /// + /// + /// Execute get-fsinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetfsinfoWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGethostname + /// + /// + /// Execute get-host-name. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGethostnameAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGethostname + /// + /// + /// Execute get-host-name. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGethostnameWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGetmemoryblockinfo + /// + /// + /// Execute get-memory-block-info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetmemoryblockinfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblockinfo + /// + /// + /// Execute get-memory-block-info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetmemoryblockinfoWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGetmemoryblocks + /// + /// + /// Execute get-memory-blocks. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetmemoryblocksAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblocks + /// + /// + /// Execute get-memory-blocks. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetmemoryblocksWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGetosinfo + /// + /// + /// Execute get-osinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetosinfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGetosinfo + /// + /// + /// Execute get-osinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetosinfoWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGettime + /// + /// + /// Execute get-time. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGettimeAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGettime + /// + /// + /// Execute get-time. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGettimeWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGettimezone + /// + /// + /// Execute get-timezone. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGettimezoneAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGettimezone + /// + /// + /// Execute get-timezone. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGettimezoneWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGetusers + /// + /// + /// Execute get-users. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetusersAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGetusers + /// + /// + /// Execute get-users. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetusersWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentGetvcpus + /// + /// + /// Execute get-vcpus. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetvcpusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentGetvcpus + /// + /// + /// Execute get-vcpus. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetvcpusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentInfo + /// + /// + /// Execute info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentInfo + /// + /// + /// Execute info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentInfoWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleAgentNetworkgetinterfaces + /// + /// + /// Execute network-get-interfaces. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentNetworkgetinterfacesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleAgentNetworkgetinterfaces + /// + /// + /// Execute network-get-interfaces. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentNetworkgetinterfacesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleCloudinit + /// + /// + /// Get the cloudinit configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleCloudinit200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleCloudinitAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleCloudinit + /// + /// + /// Get the cloudinit configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleCloudinit200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleCloudinitWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleCloudinitDump + /// + /// + /// Get automatically generated cloudinit config. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleCloudinitDumpAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleCloudinitDump + /// + /// + /// Get automatically generated cloudinit config. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleCloudinitDumpWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleFeature + /// + /// + /// Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFeature200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleFeatureAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleFeature + /// + /// + /// Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFeature200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleFeatureWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallAliases200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleFirewallAliasesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleFirewallAliases + /// + /// + /// List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallAliases200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleFirewallAliasesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleFirewallAliasesSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleFirewallLogAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleFirewallLog + /// + /// + /// Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleFirewallLogWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallRefs200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleFirewallRefsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleFirewallRefs + /// + /// + /// Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallRefs200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleFirewallRefsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleMtunnelwebsocket + /// + /// + /// Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleMtunnelwebsocket200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleMtunnelwebsocketAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleMtunnelwebsocket + /// + /// + /// Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleMtunnelwebsocket200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleMtunnelwebsocketWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQemuSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleVncwebsocket200Response + System.Threading.Tasks.Task GetNodesSingleQemuSingleVncwebsocketAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQemuSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleVncwebsocket200Response) + System.Threading.Tasks.Task> GetNodesSingleQemuSingleVncwebsocketWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQueryocirepotags + /// + /// + /// List all tags for an OCI repository reference. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleJournal200Response + System.Threading.Tasks.Task GetNodesSingleQueryocirepotagsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQueryocirepotags + /// + /// + /// List all tags for an OCI repository reference. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleJournal200Response) + System.Threading.Tasks.Task> GetNodesSingleQueryocirepotagsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleQueryurlmetadata + /// + /// + /// Query metadata of an URL: file size, file name and mime type. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQueryurlmetadata200Response + System.Threading.Tasks.Task GetNodesSingleQueryurlmetadataAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleQueryurlmetadata + /// + /// + /// Query metadata of an URL: file size, file name and mime type. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQueryurlmetadata200Response) + System.Threading.Tasks.Task> GetNodesSingleQueryurlmetadataWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleReplication + /// + /// + /// List status of all replication jobs on this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHa200Response + System.Threading.Tasks.Task GetNodesSingleReplicationAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleReplication + /// + /// + /// List status of all replication jobs on this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHa200Response) + System.Threading.Tasks.Task> GetNodesSingleReplicationWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleReplicationSingle + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleReplicationSingleAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleReplicationSingle + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleReplicationSingleWithHttpInfoAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleReplicationSingleLog + /// + /// + /// Read replication job log. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + System.Threading.Tasks.Task GetNodesSingleReplicationSingleLogAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleReplicationSingleLog + /// + /// + /// Read replication job log. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + System.Threading.Tasks.Task> GetNodesSingleReplicationSingleLogWithHttpInfoAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleReplicationSingleStatus + /// + /// + /// Get replication job status. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetNodesSingleReplicationSingleStatusAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleReplicationSingleStatus + /// + /// + /// Get replication job status. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleReplicationSingleStatusWithHttpInfoAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleReport + /// + /// + /// Gather various systems information about a node + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetNodesSingleReportAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleReport + /// + /// + /// Gather various systems information about a node + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetNodesSingleReportWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleScan + /// + /// + /// Index of available scan methods + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScan200Response + System.Threading.Tasks.Task GetNodesSingleScanAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleScan + /// + /// + /// Index of available scan methods + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScan200Response) + System.Threading.Tasks.Task> GetNodesSingleScanWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleScanCifs + /// + /// + /// Scan remote CIFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanCifs200Response + System.Threading.Tasks.Task GetNodesSingleScanCifsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleScanCifs + /// + /// + /// Scan remote CIFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanCifs200Response) + System.Threading.Tasks.Task> GetNodesSingleScanCifsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleScanIscsi + /// + /// + /// Scan remote iSCSI server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanIscsi200Response + System.Threading.Tasks.Task GetNodesSingleScanIscsiAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleScanIscsi + /// + /// + /// Scan remote iSCSI server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanIscsi200Response) + System.Threading.Tasks.Task> GetNodesSingleScanIscsiWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleScanLvm + /// + /// + /// List local LVM volume groups. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanLvm200Response + System.Threading.Tasks.Task GetNodesSingleScanLvmAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleScanLvm + /// + /// + /// List local LVM volume groups. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanLvm200Response) + System.Threading.Tasks.Task> GetNodesSingleScanLvmWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleScanLvmthin + /// + /// + /// List local LVM Thin Pools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanLvmthin200Response + System.Threading.Tasks.Task GetNodesSingleScanLvmthinAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleScanLvmthin + /// + /// + /// List local LVM Thin Pools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanLvmthin200Response) + System.Threading.Tasks.Task> GetNodesSingleScanLvmthinWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleScanNfs + /// + /// + /// Scan remote NFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanNfs200Response + System.Threading.Tasks.Task GetNodesSingleScanNfsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleScanNfs + /// + /// + /// Scan remote NFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanNfs200Response) + System.Threading.Tasks.Task> GetNodesSingleScanNfsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleScanPbs + /// + /// + /// Scan remote Proxmox Backup Server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanPbs200Response + System.Threading.Tasks.Task GetNodesSingleScanPbsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleScanPbs + /// + /// + /// Scan remote Proxmox Backup Server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanPbs200Response) + System.Threading.Tasks.Task> GetNodesSingleScanPbsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleScanZfs + /// + /// + /// Scan zfs pool list on local node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanZfs200Response + System.Threading.Tasks.Task GetNodesSingleScanZfsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleScanZfs + /// + /// + /// Scan zfs pool list on local node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanZfs200Response) + System.Threading.Tasks.Task> GetNodesSingleScanZfsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSdnFabricsSingle + /// + /// + /// Directory index for SDN fabric status. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetNodesSingleSdnFabricsSingleAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSdnFabricsSingle + /// + /// + /// Directory index for SDN fabric status. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetNodesSingleSdnFabricsSingleWithHttpInfoAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSdnFabricsSingleInterfaces + /// + /// + /// Get all interfaces for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnFabricsSingleInterfaces200Response + System.Threading.Tasks.Task GetNodesSingleSdnFabricsSingleInterfacesAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSdnFabricsSingleInterfaces + /// + /// + /// Get all interfaces for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnFabricsSingleInterfaces200Response) + System.Threading.Tasks.Task> GetNodesSingleSdnFabricsSingleInterfacesWithHttpInfoAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSdnFabricsSingleNeighbors + /// + /// + /// Get all neighbors for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnFabricsSingleNeighbors200Response + System.Threading.Tasks.Task GetNodesSingleSdnFabricsSingleNeighborsAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSdnFabricsSingleNeighbors + /// + /// + /// Get all neighbors for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnFabricsSingleNeighbors200Response) + System.Threading.Tasks.Task> GetNodesSingleSdnFabricsSingleNeighborsWithHttpInfoAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSdnFabricsSingleRoutes + /// + /// + /// Get all routes for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnFabricsSingleRoutes200Response + System.Threading.Tasks.Task GetNodesSingleSdnFabricsSingleRoutesAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSdnFabricsSingleRoutes + /// + /// + /// Get all routes for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnFabricsSingleRoutes200Response) + System.Threading.Tasks.Task> GetNodesSingleSdnFabricsSingleRoutesWithHttpInfoAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSdnVnetsSingle + /// + /// + /// getNodesSingleSdnVnetsSingle + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetNodesSingleSdnVnetsSingleAsync(string node, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSdnVnetsSingle + /// + /// + /// getNodesSingleSdnVnetsSingle + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetNodesSingleSdnVnetsSingleWithHttpInfoAsync(string node, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSdnVnetsSingleMacvrf + /// + /// + /// Get the MAC VRF for a VNet in an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnVnetsSingleMacvrf200Response + System.Threading.Tasks.Task GetNodesSingleSdnVnetsSingleMacvrfAsync(string node, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSdnVnetsSingleMacvrf + /// + /// + /// Get the MAC VRF for a VNet in an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnVnetsSingleMacvrf200Response) + System.Threading.Tasks.Task> GetNodesSingleSdnVnetsSingleMacvrfWithHttpInfoAsync(string node, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSdnZonesSingleBridges + /// + /// + /// Get a list of all bridges (vnets) that are part of a zone, as well as the ports that are members of that bridge. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnZonesSingleBridges200Response + System.Threading.Tasks.Task GetNodesSingleSdnZonesSingleBridgesAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSdnZonesSingleBridges + /// + /// + /// Get a list of all bridges (vnets) that are part of a zone, as well as the ports that are members of that bridge. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnZonesSingleBridges200Response) + System.Threading.Tasks.Task> GetNodesSingleSdnZonesSingleBridgesWithHttpInfoAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSdnZonesSingleIpvrf + /// + /// + /// Get the IP VRF of an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnZonesSingleIpvrf200Response + System.Threading.Tasks.Task GetNodesSingleSdnZonesSingleIpvrfAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSdnZonesSingleIpvrf + /// + /// + /// Get the IP VRF of an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnZonesSingleIpvrf200Response) + System.Threading.Tasks.Task> GetNodesSingleSdnZonesSingleIpvrfWithHttpInfoAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleServices + /// + /// + /// Service list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleServices200Response + System.Threading.Tasks.Task GetNodesSingleServicesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleServices + /// + /// + /// Service list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleServices200Response) + System.Threading.Tasks.Task> GetNodesSingleServicesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleServicesSingle + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetNodesSingleServicesSingleAsync(string node, string service, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleServicesSingle + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetNodesSingleServicesSingleWithHttpInfoAsync(string node, string service, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleServicesSingleState + /// + /// + /// Read service properties + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleServicesSingleState200Response + System.Threading.Tasks.Task GetNodesSingleServicesSingleStateAsync(string node, string service, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleServicesSingleState + /// + /// + /// Read service properties + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleServicesSingleState200Response) + System.Threading.Tasks.Task> GetNodesSingleServicesSingleStateWithHttpInfoAsync(string node, string service, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStatus + /// + /// + /// Read node status + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStatus200Response + System.Threading.Tasks.Task GetNodesSingleStatusAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStatus + /// + /// + /// Read node status + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStatus200Response) + System.Threading.Tasks.Task> GetNodesSingleStatusWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorage + /// + /// + /// Get status for all datastores. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorage200Response + System.Threading.Tasks.Task GetNodesSingleStorageAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorage + /// + /// + /// Get status for all datastores. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorage200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingle + /// + /// + /// getNodesSingleStorageSingle + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingle + /// + /// + /// getNodesSingleStorageSingle + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingleContent + /// + /// + /// List storage content. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleContent200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleContentAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingleContent + /// + /// + /// List storage content. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleContent200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleContentWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingleContentSingle + /// + /// + /// Get volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleContentSingle200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleContentSingleAsync(string node, string storage, string volume, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingleContentSingle + /// + /// + /// Get volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleContentSingle200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleContentSingleWithHttpInfoAsync(string node, string storage, string volume, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingleFilerestoreDownload + /// + /// + /// Extract a file or directory (as zip archive) from a PBS backup. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleFilerestoreDownload200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleFilerestoreDownloadAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingleFilerestoreDownload + /// + /// + /// Extract a file or directory (as zip archive) from a PBS backup. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleFilerestoreDownload200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleFilerestoreDownloadWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingleFilerestoreList + /// + /// + /// List files and directories for single file restore under the given path. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleFilerestoreList200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleFilerestoreListAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingleFilerestoreList + /// + /// + /// List files and directories for single file restore under the given path. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleFilerestoreList200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleFilerestoreListWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingleImportmetadata + /// + /// + /// Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleImportmetadata200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleImportmetadataAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingleImportmetadata + /// + /// + /// Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleImportmetadata200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleImportmetadataWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSinglePrunebackups + /// + /// + /// Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSinglePrunebackups200Response + System.Threading.Tasks.Task GetNodesSingleStorageSinglePrunebackupsAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSinglePrunebackups + /// + /// + /// Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSinglePrunebackups200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSinglePrunebackupsWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingleRrd + /// + /// + /// Read storage RRD statistics (returns PNG). + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMRRD200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleRrdAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingleRrd + /// + /// + /// Read storage RRD statistics (returns PNG). + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMRRD200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleRrdWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingleRrddata + /// + /// + /// Read storage RRD statistics. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleRrddataAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingleRrddata + /// + /// + /// Read storage RRD statistics. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleRrddataWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleStorageSingleStatus + /// + /// + /// Read storage status. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleStatus200Response + System.Threading.Tasks.Task GetNodesSingleStorageSingleStatusAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleStorageSingleStatus + /// + /// + /// Read storage status. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleStatus200Response) + System.Threading.Tasks.Task> GetNodesSingleStorageSingleStatusWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSubscription + /// + /// + /// Read subscription info. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSubscription200Response + System.Threading.Tasks.Task GetNodesSingleSubscriptionAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSubscription + /// + /// + /// Read subscription info. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSubscription200Response) + System.Threading.Tasks.Task> GetNodesSingleSubscriptionWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleSyslog + /// + /// + /// Read system log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + System.Threading.Tasks.Task GetNodesSingleSyslogAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleSyslog + /// + /// + /// Read system log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + System.Threading.Tasks.Task> GetNodesSingleSyslogWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleTime + /// + /// + /// Read server time and time zone settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleTime200Response + System.Threading.Tasks.Task GetNodesSingleTimeAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleTime + /// + /// + /// Read server time and time zone settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleTime200Response) + System.Threading.Tasks.Task> GetNodesSingleTimeWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleVersion + /// + /// + /// API version details + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleVersion200Response + System.Threading.Tasks.Task GetNodesSingleVersionAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleVersion + /// + /// + /// API version details + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleVersion200Response) + System.Threading.Tasks.Task> GetNodesSingleVersionWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleVncwebsocket200Response + System.Threading.Tasks.Task GetNodesSingleVncwebsocketAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleVncwebsocket + /// + /// + /// Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleVncwebsocket200Response) + System.Threading.Tasks.Task> GetNodesSingleVncwebsocketWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleVzdumpDefaults + /// + /// + /// Get the currently configured vzdump defaults. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleVzdumpDefaults200Response + System.Threading.Tasks.Task GetNodesSingleVzdumpDefaultsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleVzdumpDefaults + /// + /// + /// Get the currently configured vzdump defaults. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleVzdumpDefaults200Response) + System.Threading.Tasks.Task> GetNodesSingleVzdumpDefaultsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getNodesSingleVzdumpExtractconfig + /// + /// + /// Extract configuration from vzdump backup archive. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task GetNodesSingleVzdumpExtractconfigAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getNodesSingleVzdumpExtractconfig + /// + /// + /// Extract configuration from vzdump backup archive. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> GetNodesSingleVzdumpExtractconfigWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getPool + /// + /// + /// Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetPool200Response + System.Threading.Tasks.Task GetPoolAsync(string poolid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getPool + /// + /// + /// Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetPool200Response) + System.Threading.Tasks.Task> GetPoolWithHttpInfoAsync(string poolid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getPools + /// + /// + /// List pools or get pool configuration. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetPools200Response + System.Threading.Tasks.Task GetPoolsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getPools + /// + /// + /// List pools or get pool configuration. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetPools200Response) + System.Threading.Tasks.Task> GetPoolsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getStorage + /// + /// + /// Storage index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetStorage200Response + System.Threading.Tasks.Task GetStorageAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getStorage + /// + /// + /// Storage index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetStorage200Response) + System.Threading.Tasks.Task> GetStorageWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getStorageSingle + /// + /// + /// Read storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetStorageSingleAsync(string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getStorageSingle + /// + /// + /// Read storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetStorageSingleWithHttpInfoAsync(string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVM + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetVMAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVM + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetVMWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMConfig + /// + /// + /// Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMConfig200Response + System.Threading.Tasks.Task GetVMConfigAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMConfig + /// + /// + /// Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMConfig200Response) + System.Threading.Tasks.Task> GetVMConfigWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMConfigPending + /// + /// + /// Get the virtual machine configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMConfigPending200Response + System.Threading.Tasks.Task GetVMConfigPendingAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMConfigPending + /// + /// + /// Get the virtual machine configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMConfigPending200Response) + System.Threading.Tasks.Task> GetVMConfigPendingWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetVMFirewallAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMFirewall + /// + /// + /// Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetVMFirewallWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMFirewallIPSet + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSet200Response + System.Threading.Tasks.Task GetVMFirewallIPSetAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMFirewallIPSet + /// + /// + /// List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSet200Response) + System.Threading.Tasks.Task> GetVMFirewallIPSetWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMFirewallIPSetIP + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetVMFirewallIPSetIPAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMFirewallIPSetIP + /// + /// + /// Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetVMFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMFirewallIPSets + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSets200Response + System.Threading.Tasks.Task GetVMFirewallIPSetsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMFirewallIPSets + /// + /// + /// List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSets200Response) + System.Threading.Tasks.Task> GetVMFirewallIPSetsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMFirewallOptions + /// + /// + /// Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMFirewallOptions200Response + System.Threading.Tasks.Task GetVMFirewallOptionsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMFirewallOptions + /// + /// + /// Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMFirewallOptions200Response) + System.Threading.Tasks.Task> GetVMFirewallOptionsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + System.Threading.Tasks.Task GetVMFirewallRuleAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMFirewallRule + /// + /// + /// Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + System.Threading.Tasks.Task> GetVMFirewallRuleWithHttpInfoAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + System.Threading.Tasks.Task GetVMFirewallRulesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMFirewallRules + /// + /// + /// List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + System.Threading.Tasks.Task> GetVMFirewallRulesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMRRD + /// + /// + /// Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMRRD200Response + System.Threading.Tasks.Task GetVMRRDAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMRRD + /// + /// + /// Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMRRD200Response) + System.Threading.Tasks.Task> GetVMRRDWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMRRDData + /// + /// + /// Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetVMRRDDataAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMRRDData + /// + /// + /// Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetVMRRDDataWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMSnapshot + /// + /// + /// getVMSnapshot + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + System.Threading.Tasks.Task GetVMSnapshotAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMSnapshot + /// + /// + /// getVMSnapshot + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + System.Threading.Tasks.Task> GetVMSnapshotWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMSnapshotConfig + /// + /// + /// Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + System.Threading.Tasks.Task GetVMSnapshotConfigAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMSnapshotConfig + /// + /// + /// Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + System.Threading.Tasks.Task> GetVMSnapshotConfigWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMSnapshots + /// + /// + /// List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMSnapshots200Response + System.Threading.Tasks.Task GetVMSnapshotsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMSnapshots + /// + /// + /// List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMSnapshots200Response) + System.Threading.Tasks.Task> GetVMSnapshotsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMStatus + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + System.Threading.Tasks.Task GetVMStatusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMStatus + /// + /// + /// Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + System.Threading.Tasks.Task> GetVMStatusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVMs + /// + /// + /// Virtual machine index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMs200Response + System.Threading.Tasks.Task GetVMsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVMs + /// + /// + /// Virtual machine index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMs200Response) + System.Threading.Tasks.Task> GetVMsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// getVersion + /// + /// + /// API version details, including some parts of the global datacenter config. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVersion200Response + System.Threading.Tasks.Task GetVersionAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// getVersion + /// + /// + /// API version details, including some parts of the global datacenter config. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVersion200Response) + System.Threading.Tasks.Task> GetVersionWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// migrateVM + /// + /// + /// Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of MigrateVM200Response + System.Threading.Tasks.Task MigrateVMAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// migrateVM + /// + /// + /// Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MigrateVM200Response) + System.Threading.Tasks.Task> MigrateVMWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// rebootVM + /// + /// + /// Reboot the VM by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task RebootVMAsync(string node, int vmid, RebootVMRequest? rebootVMRequest = default(RebootVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// rebootVM + /// + /// + /// Reboot the VM by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> RebootVMWithHttpInfoAsync(string node, int vmid, RebootVMRequest? rebootVMRequest = default(RebootVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// removeClusterFirewallGroupRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task RemoveClusterFirewallGroupRuleAsync(string group, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// removeClusterFirewallGroupRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> RemoveClusterFirewallGroupRuleWithHttpInfoAsync(string group, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// removeClusterFirewallIPSetIP + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task RemoveClusterFirewallIPSetIPAsync(string cidr, string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// removeClusterFirewallIPSetIP + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> RemoveClusterFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// removeClusterFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task RemoveClusterFirewallRuleAsync(int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// removeClusterFirewallRule + /// + /// + /// Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> RemoveClusterFirewallRuleWithHttpInfoAsync(int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// removeVMFirewallIPSetIP + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task RemoveVMFirewallIPSetIPAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// removeVMFirewallIPSetIP + /// + /// + /// Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> RemoveVMFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// resetVM + /// + /// + /// Reset virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task ResetVMAsync(string node, int vmid, ResetVMRequest? resetVMRequest = default(ResetVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// resetVM + /// + /// + /// Reset virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> ResetVMWithHttpInfoAsync(string node, int vmid, ResetVMRequest? resetVMRequest = default(ResetVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// resizeVMDisk + /// + /// + /// Extend volume size. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task ResizeVMDiskAsync(string node, int vmid, ResizeVMDiskRequest? resizeVMDiskRequest = default(ResizeVMDiskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// resizeVMDisk + /// + /// + /// Extend volume size. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> ResizeVMDiskWithHttpInfoAsync(string node, int vmid, ResizeVMDiskRequest? resizeVMDiskRequest = default(ResizeVMDiskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// resumeVM + /// + /// + /// Resume virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task ResumeVMAsync(string node, int vmid, ResumeVMRequest? resumeVMRequest = default(ResumeVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// resumeVM + /// + /// + /// Resume virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> ResumeVMWithHttpInfoAsync(string node, int vmid, ResumeVMRequest? resumeVMRequest = default(ResumeVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// rollbackVMSnapshot + /// + /// + /// Rollback VM state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task RollbackVMSnapshotAsync(string node, string snapname, int vmid, RollbackVMSnapshotRequest? rollbackVMSnapshotRequest = default(RollbackVMSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// rollbackVMSnapshot + /// + /// + /// Rollback VM state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> RollbackVMSnapshotWithHttpInfoAsync(string node, string snapname, int vmid, RollbackVMSnapshotRequest? rollbackVMSnapshotRequest = default(RollbackVMSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// shutdownVM + /// + /// + /// Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task ShutdownVMAsync(string node, int vmid, ShutdownVMRequest? shutdownVMRequest = default(ShutdownVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// shutdownVM + /// + /// + /// Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> ShutdownVMWithHttpInfoAsync(string node, int vmid, ShutdownVMRequest? shutdownVMRequest = default(ShutdownVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// startVM + /// + /// + /// Start virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task StartVMAsync(string node, int vmid, StartVMRequest? startVMRequest = default(StartVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// startVM + /// + /// + /// Start virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> StartVMWithHttpInfoAsync(string node, int vmid, StartVMRequest? startVMRequest = default(StartVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// stopNodeTask + /// + /// + /// Stop a task. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task StopNodeTaskAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// stopNodeTask + /// + /// + /// Stop a task. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> StopNodeTaskWithHttpInfoAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// stopVM + /// + /// + /// Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task StopVMAsync(string node, int vmid, StopVMRequest? stopVMRequest = default(StopVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// stopVM + /// + /// + /// Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> StopVMWithHttpInfoAsync(string node, int vmid, StopVMRequest? stopVMRequest = default(StopVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// suspendVM + /// + /// + /// Suspend virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task SuspendVMAsync(string node, int vmid, SuspendVMRequest? suspendVMRequest = default(SuspendVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// suspendVM + /// + /// + /// Suspend virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> SuspendVMWithHttpInfoAsync(string node, int vmid, SuspendVMRequest? suspendVMRequest = default(SuspendVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// unlinkVMDiskImages + /// + /// + /// Unlink/delete disk images. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UnlinkVMDiskImagesAsync(string node, int vmid, UnlinkVMDiskImagesRequest? unlinkVMDiskImagesRequest = default(UnlinkVMDiskImagesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// unlinkVMDiskImages + /// + /// + /// Unlink/delete disk images. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UnlinkVMDiskImagesWithHttpInfoAsync(string node, int vmid, UnlinkVMDiskImagesRequest? unlinkVMDiskImagesRequest = default(UnlinkVMDiskImagesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessAcl + /// + /// + /// Update Access Control List (add or remove permissions). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateAccessAclAsync(UpdateAccessAclRequest? updateAccessAclRequest = default(UpdateAccessAclRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessAcl + /// + /// + /// Update Access Control List (add or remove permissions). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateAccessAclWithHttpInfoAsync(UpdateAccessAclRequest? updateAccessAclRequest = default(UpdateAccessAclRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessDomainsSingle + /// + /// + /// Update authentication server settings. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateAccessDomainsSingleAsync(string realm, UpdateAccessDomainsSingleRequest? updateAccessDomainsSingleRequest = default(UpdateAccessDomainsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessDomainsSingle + /// + /// + /// Update authentication server settings. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateAccessDomainsSingleWithHttpInfoAsync(string realm, UpdateAccessDomainsSingleRequest? updateAccessDomainsSingleRequest = default(UpdateAccessDomainsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessGroupsSingle + /// + /// + /// Update group data. + /// + /// Thrown when fails to make API call + /// groupid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateAccessGroupsSingleAsync(string groupid, UpdateAccessGroupsSingleRequest? updateAccessGroupsSingleRequest = default(UpdateAccessGroupsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessGroupsSingle + /// + /// + /// Update group data. + /// + /// Thrown when fails to make API call + /// groupid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateAccessGroupsSingleWithHttpInfoAsync(string groupid, UpdateAccessGroupsSingleRequest? updateAccessGroupsSingleRequest = default(UpdateAccessGroupsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessPassword + /// + /// + /// Change user password. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateAccessPasswordAsync(UpdateAccessPasswordRequest? updateAccessPasswordRequest = default(UpdateAccessPasswordRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessPassword + /// + /// + /// Change user password. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateAccessPasswordWithHttpInfoAsync(UpdateAccessPasswordRequest? updateAccessPasswordRequest = default(UpdateAccessPasswordRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessRolesSingle + /// + /// + /// Update an existing role. + /// + /// Thrown when fails to make API call + /// roleid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateAccessRolesSingleAsync(string roleid, UpdateAccessRolesSingleRequest? updateAccessRolesSingleRequest = default(UpdateAccessRolesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessRolesSingle + /// + /// + /// Update an existing role. + /// + /// Thrown when fails to make API call + /// roleid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateAccessRolesSingleWithHttpInfoAsync(string roleid, UpdateAccessRolesSingleRequest? updateAccessRolesSingleRequest = default(UpdateAccessRolesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessTfaSingleSingle + /// + /// + /// Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateAccessTfaSingleSingleAsync(string id, string userid, UpdateAccessTfaSingleSingleRequest? updateAccessTfaSingleSingleRequest = default(UpdateAccessTfaSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessTfaSingleSingle + /// + /// + /// Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateAccessTfaSingleSingleWithHttpInfoAsync(string id, string userid, UpdateAccessTfaSingleSingleRequest? updateAccessTfaSingleSingleRequest = default(UpdateAccessTfaSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessUsersSingle + /// + /// + /// Update user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateAccessUsersSingleAsync(string userid, UpdateAccessUsersSingleRequest? updateAccessUsersSingleRequest = default(UpdateAccessUsersSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessUsersSingle + /// + /// + /// Update user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateAccessUsersSingleWithHttpInfoAsync(string userid, UpdateAccessUsersSingleRequest? updateAccessUsersSingleRequest = default(UpdateAccessUsersSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessUsersSingleTokenSingle + /// + /// + /// Update API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UpdateAccessUsersSingleTokenSingle200Response + System.Threading.Tasks.Task UpdateAccessUsersSingleTokenSingleAsync(string tokenid, string userid, UpdateAccessUsersSingleTokenSingleRequest? updateAccessUsersSingleTokenSingleRequest = default(UpdateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessUsersSingleTokenSingle + /// + /// + /// Update API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UpdateAccessUsersSingleTokenSingle200Response) + System.Threading.Tasks.Task> UpdateAccessUsersSingleTokenSingleWithHttpInfoAsync(string tokenid, string userid, UpdateAccessUsersSingleTokenSingleRequest? updateAccessUsersSingleTokenSingleRequest = default(UpdateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateAccessUsersSingleUnlocktfa + /// + /// + /// Unlock a user's TFA authentication. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterCephFlagsSingle200Response + System.Threading.Tasks.Task UpdateAccessUsersSingleUnlocktfaAsync(string userid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateAccessUsersSingleUnlocktfa + /// + /// + /// Unlock a user's TFA authentication. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterCephFlagsSingle200Response) + System.Threading.Tasks.Task> UpdateAccessUsersSingleUnlocktfaWithHttpInfoAsync(string userid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterAcmeAccountSingle + /// + /// + /// Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterAcmeAccountSingleAsync(string name, UpdateClusterAcmeAccountSingleRequest? updateClusterAcmeAccountSingleRequest = default(UpdateClusterAcmeAccountSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterAcmeAccountSingle + /// + /// + /// Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterAcmeAccountSingleWithHttpInfoAsync(string name, UpdateClusterAcmeAccountSingleRequest? updateClusterAcmeAccountSingleRequest = default(UpdateClusterAcmeAccountSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterAcmePluginsSingle + /// + /// + /// Update ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterAcmePluginsSingleAsync(string id, UpdateClusterAcmePluginsSingleRequest? updateClusterAcmePluginsSingleRequest = default(UpdateClusterAcmePluginsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterAcmePluginsSingle + /// + /// + /// Update ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterAcmePluginsSingleWithHttpInfoAsync(string id, UpdateClusterAcmePluginsSingleRequest? updateClusterAcmePluginsSingleRequest = default(UpdateClusterAcmePluginsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterBackupSingle + /// + /// + /// Update vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterBackupSingleAsync(string id, UpdateClusterBackupSingleRequest? updateClusterBackupSingleRequest = default(UpdateClusterBackupSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterBackupSingle + /// + /// + /// Update vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterBackupSingleWithHttpInfoAsync(string id, UpdateClusterBackupSingleRequest? updateClusterBackupSingleRequest = default(UpdateClusterBackupSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterCephFlags + /// + /// + /// Set/Unset multiple ceph flags at once. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterCephFlagsAsync(UpdateClusterCephFlagsRequest? updateClusterCephFlagsRequest = default(UpdateClusterCephFlagsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterCephFlags + /// + /// + /// Set/Unset multiple ceph flags at once. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterCephFlagsWithHttpInfoAsync(UpdateClusterCephFlagsRequest? updateClusterCephFlagsRequest = default(UpdateClusterCephFlagsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterCephFlagsSingle + /// + /// + /// Set or clear (unset) a specific ceph flag + /// + /// Thrown when fails to make API call + /// flag + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterCephFlagsSingleAsync(string flag, UpdateClusterCephFlagsSingleRequest? updateClusterCephFlagsSingleRequest = default(UpdateClusterCephFlagsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterCephFlagsSingle + /// + /// + /// Set or clear (unset) a specific ceph flag + /// + /// Thrown when fails to make API call + /// flag + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterCephFlagsSingleWithHttpInfoAsync(string flag, UpdateClusterCephFlagsSingleRequest? updateClusterCephFlagsSingleRequest = default(UpdateClusterCephFlagsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterFirewallAliasesSingleAsync(string name, UpdateClusterFirewallAliasesSingleRequest? updateClusterFirewallAliasesSingleRequest = default(UpdateClusterFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterFirewallAliasesSingleWithHttpInfoAsync(string name, UpdateClusterFirewallAliasesSingleRequest? updateClusterFirewallAliasesSingleRequest = default(UpdateClusterFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterFirewallGroupRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterFirewallGroupRuleAsync(string group, int pos, UpdateClusterFirewallGroupRuleRequest? updateClusterFirewallGroupRuleRequest = default(UpdateClusterFirewallGroupRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterFirewallGroupRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterFirewallGroupRuleWithHttpInfoAsync(string group, int pos, UpdateClusterFirewallGroupRuleRequest? updateClusterFirewallGroupRuleRequest = default(UpdateClusterFirewallGroupRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterFirewallIPSetIP + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterFirewallIPSetIPAsync(string cidr, string name, UpdateClusterFirewallIPSetIPRequest? updateClusterFirewallIPSetIPRequest = default(UpdateClusterFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterFirewallIPSetIP + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, UpdateClusterFirewallIPSetIPRequest? updateClusterFirewallIPSetIPRequest = default(UpdateClusterFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterFirewallOptionsAsync(UpdateClusterFirewallOptionsRequest? updateClusterFirewallOptionsRequest = default(UpdateClusterFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterFirewallOptionsWithHttpInfoAsync(UpdateClusterFirewallOptionsRequest? updateClusterFirewallOptionsRequest = default(UpdateClusterFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterFirewallRuleAsync(int pos, UpdateClusterFirewallRuleRequest? updateClusterFirewallRuleRequest = default(UpdateClusterFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterFirewallRuleWithHttpInfoAsync(int pos, UpdateClusterFirewallRuleRequest? updateClusterFirewallRuleRequest = default(UpdateClusterFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterHaGroupsSingle + /// + /// + /// Update ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterHaGroupsSingleAsync(string group, UpdateClusterHaGroupsSingleRequest? updateClusterHaGroupsSingleRequest = default(UpdateClusterHaGroupsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterHaGroupsSingle + /// + /// + /// Update ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterHaGroupsSingleWithHttpInfoAsync(string group, UpdateClusterHaGroupsSingleRequest? updateClusterHaGroupsSingleRequest = default(UpdateClusterHaGroupsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterHaResourcesSingle + /// + /// + /// Update resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterHaResourcesSingleAsync(string sid, UpdateClusterHaResourcesSingleRequest? updateClusterHaResourcesSingleRequest = default(UpdateClusterHaResourcesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterHaResourcesSingle + /// + /// + /// Update resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterHaResourcesSingleWithHttpInfoAsync(string sid, UpdateClusterHaResourcesSingleRequest? updateClusterHaResourcesSingleRequest = default(UpdateClusterHaResourcesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterHaRulesSingle + /// + /// + /// Update HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterHaRulesSingleAsync(string rule, UpdateClusterHaRulesSingleRequest? updateClusterHaRulesSingleRequest = default(UpdateClusterHaRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterHaRulesSingle + /// + /// + /// Update HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterHaRulesSingleWithHttpInfoAsync(string rule, UpdateClusterHaRulesSingleRequest? updateClusterHaRulesSingleRequest = default(UpdateClusterHaRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterJobsRealmsyncSingle + /// + /// + /// Update realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterJobsRealmsyncSingleAsync(string id, UpdateClusterJobsRealmsyncSingleRequest? updateClusterJobsRealmsyncSingleRequest = default(UpdateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterJobsRealmsyncSingle + /// + /// + /// Update realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterJobsRealmsyncSingleWithHttpInfoAsync(string id, UpdateClusterJobsRealmsyncSingleRequest? updateClusterJobsRealmsyncSingleRequest = default(UpdateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterMappingDirSingle + /// + /// + /// Update a directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterMappingDirSingleAsync(string id, UpdateClusterMappingDirSingleRequest? updateClusterMappingDirSingleRequest = default(UpdateClusterMappingDirSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterMappingDirSingle + /// + /// + /// Update a directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterMappingDirSingleWithHttpInfoAsync(string id, UpdateClusterMappingDirSingleRequest? updateClusterMappingDirSingleRequest = default(UpdateClusterMappingDirSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterMappingPciSingle + /// + /// + /// Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterMappingPciSingleAsync(string id, UpdateClusterMappingPciSingleRequest? updateClusterMappingPciSingleRequest = default(UpdateClusterMappingPciSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterMappingPciSingle + /// + /// + /// Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterMappingPciSingleWithHttpInfoAsync(string id, UpdateClusterMappingPciSingleRequest? updateClusterMappingPciSingleRequest = default(UpdateClusterMappingPciSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterMappingUsbSingle + /// + /// + /// Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterMappingUsbSingleAsync(string id, UpdateClusterMappingUsbSingleRequest? updateClusterMappingUsbSingleRequest = default(UpdateClusterMappingUsbSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterMappingUsbSingle + /// + /// + /// Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterMappingUsbSingleWithHttpInfoAsync(string id, UpdateClusterMappingUsbSingleRequest? updateClusterMappingUsbSingleRequest = default(UpdateClusterMappingUsbSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterMetricsServerSingle + /// + /// + /// Update metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterMetricsServerSingleAsync(string id, UpdateClusterMetricsServerSingleRequest? updateClusterMetricsServerSingleRequest = default(UpdateClusterMetricsServerSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterMetricsServerSingle + /// + /// + /// Update metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterMetricsServerSingleWithHttpInfoAsync(string id, UpdateClusterMetricsServerSingleRequest? updateClusterMetricsServerSingleRequest = default(UpdateClusterMetricsServerSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterNotificationsEndpointsGotifySingle + /// + /// + /// Update existing gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterNotificationsEndpointsGotifySingleAsync(string name, UpdateClusterNotificationsEndpointsGotifySingleRequest? updateClusterNotificationsEndpointsGotifySingleRequest = default(UpdateClusterNotificationsEndpointsGotifySingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterNotificationsEndpointsGotifySingle + /// + /// + /// Update existing gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(string name, UpdateClusterNotificationsEndpointsGotifySingleRequest? updateClusterNotificationsEndpointsGotifySingleRequest = default(UpdateClusterNotificationsEndpointsGotifySingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Update existing sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterNotificationsEndpointsSendmailSingleAsync(string name, UpdateClusterNotificationsEndpointsSendmailSingleRequest? updateClusterNotificationsEndpointsSendmailSingleRequest = default(UpdateClusterNotificationsEndpointsSendmailSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterNotificationsEndpointsSendmailSingle + /// + /// + /// Update existing sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(string name, UpdateClusterNotificationsEndpointsSendmailSingleRequest? updateClusterNotificationsEndpointsSendmailSingleRequest = default(UpdateClusterNotificationsEndpointsSendmailSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Update existing smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterNotificationsEndpointsSmtpSingleAsync(string name, UpdateClusterNotificationsEndpointsSmtpSingleRequest? updateClusterNotificationsEndpointsSmtpSingleRequest = default(UpdateClusterNotificationsEndpointsSmtpSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterNotificationsEndpointsSmtpSingle + /// + /// + /// Update existing smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(string name, UpdateClusterNotificationsEndpointsSmtpSingleRequest? updateClusterNotificationsEndpointsSmtpSingleRequest = default(UpdateClusterNotificationsEndpointsSmtpSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Update existing webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterNotificationsEndpointsWebhookSingleAsync(string name, UpdateClusterNotificationsEndpointsWebhookSingleRequest? updateClusterNotificationsEndpointsWebhookSingleRequest = default(UpdateClusterNotificationsEndpointsWebhookSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterNotificationsEndpointsWebhookSingle + /// + /// + /// Update existing webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(string name, UpdateClusterNotificationsEndpointsWebhookSingleRequest? updateClusterNotificationsEndpointsWebhookSingleRequest = default(UpdateClusterNotificationsEndpointsWebhookSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterNotificationsMatchersSingle + /// + /// + /// Update existing matcher + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterNotificationsMatchersSingleAsync(string name, UpdateClusterNotificationsMatchersSingleRequest? updateClusterNotificationsMatchersSingleRequest = default(UpdateClusterNotificationsMatchersSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterNotificationsMatchersSingle + /// + /// + /// Update existing matcher + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterNotificationsMatchersSingleWithHttpInfoAsync(string name, UpdateClusterNotificationsMatchersSingleRequest? updateClusterNotificationsMatchersSingleRequest = default(UpdateClusterNotificationsMatchersSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterOptions + /// + /// + /// Set datacenter options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterOptionsAsync(UpdateClusterOptionsRequest? updateClusterOptionsRequest = default(UpdateClusterOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterOptions + /// + /// + /// Set datacenter options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterOptionsWithHttpInfoAsync(UpdateClusterOptionsRequest? updateClusterOptionsRequest = default(UpdateClusterOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterReplicationSingle + /// + /// + /// Update replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterReplicationSingleAsync(string id, UpdateClusterReplicationSingleRequest? updateClusterReplicationSingleRequest = default(UpdateClusterReplicationSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterReplicationSingle + /// + /// + /// Update replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterReplicationSingleWithHttpInfoAsync(string id, UpdateClusterReplicationSingleRequest? updateClusterReplicationSingleRequest = default(UpdateClusterReplicationSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSDN + /// + /// + /// Apply sdn controller changes && reload. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSDNAsync(UpdateClusterSDNRequest? updateClusterSDNRequest = default(UpdateClusterSDNRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSDN + /// + /// + /// Apply sdn controller changes && reload. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSDNWithHttpInfoAsync(UpdateClusterSDNRequest? updateClusterSDNRequest = default(UpdateClusterSDNRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSDNController + /// + /// + /// Update sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSDNControllerAsync(string controller, UpdateClusterSDNControllerRequest? updateClusterSDNControllerRequest = default(UpdateClusterSDNControllerRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSDNController + /// + /// + /// Update sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSDNControllerWithHttpInfoAsync(string controller, UpdateClusterSDNControllerRequest? updateClusterSDNControllerRequest = default(UpdateClusterSDNControllerRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSDNVnet + /// + /// + /// Update sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSDNVnetAsync(string vnet, UpdateClusterSDNVnetRequest? updateClusterSDNVnetRequest = default(UpdateClusterSDNVnetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSDNVnet + /// + /// + /// Update sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSDNVnetWithHttpInfoAsync(string vnet, UpdateClusterSDNVnetRequest? updateClusterSDNVnetRequest = default(UpdateClusterSDNVnetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSDNZone + /// + /// + /// Update sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSDNZoneAsync(string zone, UpdateClusterSDNZoneRequest? updateClusterSDNZoneRequest = default(UpdateClusterSDNZoneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSDNZone + /// + /// + /// Update sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSDNZoneWithHttpInfoAsync(string zone, UpdateClusterSDNZoneRequest? updateClusterSDNZoneRequest = default(UpdateClusterSDNZoneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSdnDnsSingle + /// + /// + /// Update sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSdnDnsSingleAsync(string dns, UpdateClusterSdnDnsSingleRequest? updateClusterSdnDnsSingleRequest = default(UpdateClusterSdnDnsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSdnDnsSingle + /// + /// + /// Update sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSdnDnsSingleWithHttpInfoAsync(string dns, UpdateClusterSdnDnsSingleRequest? updateClusterSdnDnsSingleRequest = default(UpdateClusterSdnDnsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSdnFabricsFabricSingle + /// + /// + /// Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSdnFabricsFabricSingleAsync(string id, UpdateClusterSdnFabricsFabricSingleRequest? updateClusterSdnFabricsFabricSingleRequest = default(UpdateClusterSdnFabricsFabricSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSdnFabricsFabricSingle + /// + /// + /// Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSdnFabricsFabricSingleWithHttpInfoAsync(string id, UpdateClusterSdnFabricsFabricSingleRequest? updateClusterSdnFabricsFabricSingleRequest = default(UpdateClusterSdnFabricsFabricSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSdnFabricsNodeSingleSingle + /// + /// + /// Update a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSdnFabricsNodeSingleSingleAsync(string fabricId, string nodeId, UpdateClusterSdnFabricsNodeSingleSingleRequest? updateClusterSdnFabricsNodeSingleSingleRequest = default(UpdateClusterSdnFabricsNodeSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSdnFabricsNodeSingleSingle + /// + /// + /// Update a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(string fabricId, string nodeId, UpdateClusterSdnFabricsNodeSingleSingleRequest? updateClusterSdnFabricsNodeSingleSingleRequest = default(UpdateClusterSdnFabricsNodeSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSdnIpamsSingle + /// + /// + /// Update sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSdnIpamsSingleAsync(string ipam, UpdateClusterSdnIpamsSingleRequest? updateClusterSdnIpamsSingleRequest = default(UpdateClusterSdnIpamsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSdnIpamsSingle + /// + /// + /// Update sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSdnIpamsSingleWithHttpInfoAsync(string ipam, UpdateClusterSdnIpamsSingleRequest? updateClusterSdnIpamsSingleRequest = default(UpdateClusterSdnIpamsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSdnVnetsSingleFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSdnVnetsSingleFirewallOptionsAsync(string vnet, UpdateClusterSdnVnetsSingleFirewallOptionsRequest? updateClusterSdnVnetsSingleFirewallOptionsRequest = default(UpdateClusterSdnVnetsSingleFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSdnVnetsSingleFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSdnVnetsSingleFirewallOptionsWithHttpInfoAsync(string vnet, UpdateClusterSdnVnetsSingleFirewallOptionsRequest? updateClusterSdnVnetsSingleFirewallOptionsRequest = default(UpdateClusterSdnVnetsSingleFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSdnVnetsSingleFirewallRulesSingleAsync(int pos, string vnet, UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest? updateClusterSdnVnetsSingleFirewallRulesSingleRequest = default(UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSdnVnetsSingleFirewallRulesSingle + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(int pos, string vnet, UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest? updateClusterSdnVnetsSingleFirewallRulesSingleRequest = default(UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSdnVnetsSingleIps + /// + /// + /// Update IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSdnVnetsSingleIpsAsync(string vnet, UpdateClusterSdnVnetsSingleIpsRequest? updateClusterSdnVnetsSingleIpsRequest = default(UpdateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSdnVnetsSingleIps + /// + /// + /// Update IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSdnVnetsSingleIpsWithHttpInfoAsync(string vnet, UpdateClusterSdnVnetsSingleIpsRequest? updateClusterSdnVnetsSingleIpsRequest = default(UpdateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Update sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateClusterSdnVnetsSingleSubnetsSingleAsync(string subnet, string vnet, UpdateClusterSdnVnetsSingleSubnetsSingleRequest? updateClusterSdnVnetsSingleSubnetsSingleRequest = default(UpdateClusterSdnVnetsSingleSubnetsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateClusterSdnVnetsSingleSubnetsSingle + /// + /// + /// Update sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(string subnet, string vnet, UpdateClusterSdnVnetsSingleSubnetsSingleRequest? updateClusterSdnVnetsSingleSubnetsSingleRequest = default(UpdateClusterSdnVnetsSingleSubnetsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodeFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodeFirewallOptionsAsync(string node, UpdateNodeFirewallOptionsRequest? updateNodeFirewallOptionsRequest = default(UpdateNodeFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodeFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodeFirewallOptionsWithHttpInfoAsync(string node, UpdateNodeFirewallOptionsRequest? updateNodeFirewallOptionsRequest = default(UpdateNodeFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodeFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodeFirewallRuleAsync(string node, int pos, UpdateNodeFirewallRuleRequest? updateNodeFirewallRuleRequest = default(UpdateNodeFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodeFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodeFirewallRuleWithHttpInfoAsync(string node, int pos, UpdateNodeFirewallRuleRequest? updateNodeFirewallRuleRequest = default(UpdateNodeFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleAptRepositories + /// + /// + /// Add a standard repository to the configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleAptRepositoriesAsync(string node, UpdateNodesSingleAptRepositoriesRequest? updateNodesSingleAptRepositoriesRequest = default(UpdateNodesSingleAptRepositoriesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleAptRepositories + /// + /// + /// Add a standard repository to the configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleAptRepositoriesWithHttpInfoAsync(string node, UpdateNodesSingleAptRepositoriesRequest? updateNodesSingleAptRepositoriesRequest = default(UpdateNodesSingleAptRepositoriesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleCephPoolSingle + /// + /// + /// Change POOL settings + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleCephPoolSingleAsync(string name, string node, UpdateNodesSingleCephPoolSingleRequest? updateNodesSingleCephPoolSingleRequest = default(UpdateNodesSingleCephPoolSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleCephPoolSingle + /// + /// + /// Change POOL settings + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleCephPoolSingleWithHttpInfoAsync(string name, string node, UpdateNodesSingleCephPoolSingleRequest? updateNodesSingleCephPoolSingleRequest = default(UpdateNodesSingleCephPoolSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleCertificatesAcmeCertificate + /// + /// + /// Renew existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleCertificatesAcmeCertificateAsync(string node, UpdateNodesSingleCertificatesAcmeCertificateRequest? updateNodesSingleCertificatesAcmeCertificateRequest = default(UpdateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleCertificatesAcmeCertificate + /// + /// + /// Renew existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(string node, UpdateNodesSingleCertificatesAcmeCertificateRequest? updateNodesSingleCertificatesAcmeCertificateRequest = default(UpdateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleConfig + /// + /// + /// Set node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleConfigAsync(string node, UpdateNodesSingleConfigRequest? updateNodesSingleConfigRequest = default(UpdateNodesSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleConfig + /// + /// + /// Set node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleConfigWithHttpInfoAsync(string node, UpdateNodesSingleConfigRequest? updateNodesSingleConfigRequest = default(UpdateNodesSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleDisksWipedisk + /// + /// + /// Wipe a disk or partition. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleDisksWipediskAsync(string node, UpdateNodesSingleDisksWipediskRequest? updateNodesSingleDisksWipediskRequest = default(UpdateNodesSingleDisksWipediskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleDisksWipedisk + /// + /// + /// Wipe a disk or partition. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleDisksWipediskWithHttpInfoAsync(string node, UpdateNodesSingleDisksWipediskRequest? updateNodesSingleDisksWipediskRequest = default(UpdateNodesSingleDisksWipediskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleDns + /// + /// + /// Write DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleDnsAsync(string node, UpdateNodesSingleDnsRequest? updateNodesSingleDnsRequest = default(UpdateNodesSingleDnsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleDns + /// + /// + /// Write DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleDnsWithHttpInfoAsync(string node, UpdateNodesSingleDnsRequest? updateNodesSingleDnsRequest = default(UpdateNodesSingleDnsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleLxcSingleConfig + /// + /// + /// Set container options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleLxcSingleConfigAsync(string node, int vmid, UpdateNodesSingleLxcSingleConfigRequest? updateNodesSingleLxcSingleConfigRequest = default(UpdateNodesSingleLxcSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleLxcSingleConfig + /// + /// + /// Set container options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleConfigWithHttpInfoAsync(string node, int vmid, UpdateNodesSingleLxcSingleConfigRequest? updateNodesSingleLxcSingleConfigRequest = default(UpdateNodesSingleLxcSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleLxcSingleFirewallAliasesSingleAsync(string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest? updateNodesSingleLxcSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleLxcSingleFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest? updateNodesSingleLxcSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleAsync(string cidr, string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest? updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest = default(UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleLxcSingleFirewallIpsetSingleSingle + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(string cidr, string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest? updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest = default(UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleLxcSingleFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleLxcSingleFirewallOptionsAsync(string node, int vmid, UpdateNodesSingleLxcSingleFirewallOptionsRequest? updateNodesSingleLxcSingleFirewallOptionsRequest = default(UpdateNodesSingleLxcSingleFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleLxcSingleFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleFirewallOptionsWithHttpInfoAsync(string node, int vmid, UpdateNodesSingleLxcSingleFirewallOptionsRequest? updateNodesSingleLxcSingleFirewallOptionsRequest = default(UpdateNodesSingleLxcSingleFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleLxcSingleFirewallRulesSingleAsync(string node, int pos, int vmid, UpdateNodesSingleLxcSingleFirewallRulesSingleRequest? updateNodesSingleLxcSingleFirewallRulesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleLxcSingleFirewallRulesSingle + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(string node, int pos, int vmid, UpdateNodesSingleLxcSingleFirewallRulesSingleRequest? updateNodesSingleLxcSingleFirewallRulesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleLxcSingleResize + /// + /// + /// Resize a container mount point. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + System.Threading.Tasks.Task UpdateNodesSingleLxcSingleResizeAsync(string node, int vmid, UpdateNodesSingleLxcSingleResizeRequest? updateNodesSingleLxcSingleResizeRequest = default(UpdateNodesSingleLxcSingleResizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleLxcSingleResize + /// + /// + /// Resize a container mount point. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleResizeWithHttpInfoAsync(string node, int vmid, UpdateNodesSingleLxcSingleResizeRequest? updateNodesSingleLxcSingleResizeRequest = default(UpdateNodesSingleLxcSingleResizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleLxcSingleSnapshotSingleConfig + /// + /// + /// Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleLxcSingleSnapshotSingleConfigAsync(string node, string snapname, int vmid, UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest? updateNodesSingleLxcSingleSnapshotSingleConfigRequest = default(UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleLxcSingleSnapshotSingleConfig + /// + /// + /// Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfoAsync(string node, string snapname, int vmid, UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest? updateNodesSingleLxcSingleSnapshotSingleConfigRequest = default(UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleNetwork + /// + /// + /// Reload network configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleNetworkAsync(string node, UpdateNodesSingleNetworkRequest? updateNodesSingleNetworkRequest = default(UpdateNodesSingleNetworkRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleNetwork + /// + /// + /// Reload network configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleNetworkWithHttpInfoAsync(string node, UpdateNodesSingleNetworkRequest? updateNodesSingleNetworkRequest = default(UpdateNodesSingleNetworkRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleNetworkSingle + /// + /// + /// Update network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleNetworkSingleAsync(string iface, string node, UpdateNodesSingleNetworkSingleRequest? updateNodesSingleNetworkSingleRequest = default(UpdateNodesSingleNetworkSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleNetworkSingle + /// + /// + /// Update network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleNetworkSingleWithHttpInfoAsync(string iface, string node, UpdateNodesSingleNetworkSingleRequest? updateNodesSingleNetworkSingleRequest = default(UpdateNodesSingleNetworkSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleQemuSingleCloudinit + /// + /// + /// Regenerate and change cloudinit config drive. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleQemuSingleCloudinitAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleQemuSingleCloudinit + /// + /// + /// Regenerate and change cloudinit config drive. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleQemuSingleCloudinitWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleQemuSingleFirewallAliasesSingleAsync(string name, string node, int vmid, UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest? updateNodesSingleQemuSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleQemuSingleFirewallAliasesSingle + /// + /// + /// Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest? updateNodesSingleQemuSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleQemuSingleSendkey + /// + /// + /// Send key event to virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleQemuSingleSendkeyAsync(string node, int vmid, UpdateNodesSingleQemuSingleSendkeyRequest? updateNodesSingleQemuSingleSendkeyRequest = default(UpdateNodesSingleQemuSingleSendkeyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleQemuSingleSendkey + /// + /// + /// Send key event to virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleQemuSingleSendkeyWithHttpInfoAsync(string node, int vmid, UpdateNodesSingleQemuSingleSendkeyRequest? updateNodesSingleQemuSingleSendkeyRequest = default(UpdateNodesSingleQemuSingleSendkeyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleStorageSingleContentSingle + /// + /// + /// Update volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleStorageSingleContentSingleAsync(string node, string storage, string volume, UpdateNodesSingleStorageSingleContentSingleRequest? updateNodesSingleStorageSingleContentSingleRequest = default(UpdateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleStorageSingleContentSingle + /// + /// + /// Update volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleStorageSingleContentSingleWithHttpInfoAsync(string node, string storage, string volume, UpdateNodesSingleStorageSingleContentSingleRequest? updateNodesSingleStorageSingleContentSingleRequest = default(UpdateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleSubscription + /// + /// + /// Set subscription key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleSubscriptionAsync(string node, UpdateNodesSingleSubscriptionRequest? updateNodesSingleSubscriptionRequest = default(UpdateNodesSingleSubscriptionRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleSubscription + /// + /// + /// Set subscription key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleSubscriptionWithHttpInfoAsync(string node, UpdateNodesSingleSubscriptionRequest? updateNodesSingleSubscriptionRequest = default(UpdateNodesSingleSubscriptionRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateNodesSingleTime + /// + /// + /// Set time zone. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateNodesSingleTimeAsync(string node, UpdateNodesSingleTimeRequest? updateNodesSingleTimeRequest = default(UpdateNodesSingleTimeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateNodesSingleTime + /// + /// + /// Set time zone. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateNodesSingleTimeWithHttpInfoAsync(string node, UpdateNodesSingleTimeRequest? updateNodesSingleTimeRequest = default(UpdateNodesSingleTimeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updatePool + /// + /// + /// Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). + /// + /// Thrown when fails to make API call + /// poolid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdatePoolAsync(string poolid, UpdatePoolRequest? updatePoolRequest = default(UpdatePoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updatePool + /// + /// + /// Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). + /// + /// Thrown when fails to make API call + /// poolid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdatePoolWithHttpInfoAsync(string poolid, UpdatePoolRequest? updatePoolRequest = default(UpdatePoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updatePools + /// + /// + /// Update pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdatePoolsAsync(UpdatePoolsRequest? updatePoolsRequest = default(UpdatePoolsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updatePools + /// + /// + /// Update pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdatePoolsWithHttpInfoAsync(UpdatePoolsRequest? updatePoolsRequest = default(UpdatePoolsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateStorageSingle + /// + /// + /// Update storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateStorage200Response + System.Threading.Tasks.Task UpdateStorageSingleAsync(string storage, UpdateStorageSingleRequest? updateStorageSingleRequest = default(UpdateStorageSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateStorageSingle + /// + /// + /// Update storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateStorage200Response) + System.Threading.Tasks.Task> UpdateStorageSingleWithHttpInfoAsync(string storage, UpdateStorageSingleRequest? updateStorageSingleRequest = default(UpdateStorageSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateVMConfig + /// + /// + /// Set virtual machine options (asynchronous API). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateVMConfigAsync(string node, int vmid, UpdateVMConfigRequest? updateVMConfigRequest = default(UpdateVMConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateVMConfig + /// + /// + /// Set virtual machine options (asynchronous API). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateVMConfigWithHttpInfoAsync(string node, int vmid, UpdateVMConfigRequest? updateVMConfigRequest = default(UpdateVMConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateVMConfigSync + /// + /// + /// Set virtual machine options (synchronous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateVMConfigSyncAsync(string node, int vmid, UpdateVMConfigSyncRequest? updateVMConfigSyncRequest = default(UpdateVMConfigSyncRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateVMConfigSync + /// + /// + /// Set virtual machine options (synchronous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateVMConfigSyncWithHttpInfoAsync(string node, int vmid, UpdateVMConfigSyncRequest? updateVMConfigSyncRequest = default(UpdateVMConfigSyncRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateVMFirewallIPSetIP + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateVMFirewallIPSetIPAsync(string cidr, string name, string node, int vmid, UpdateVMFirewallIPSetIPRequest? updateVMFirewallIPSetIPRequest = default(UpdateVMFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateVMFirewallIPSetIP + /// + /// + /// Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateVMFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, string node, int vmid, UpdateVMFirewallIPSetIPRequest? updateVMFirewallIPSetIPRequest = default(UpdateVMFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateVMFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateVMFirewallOptionsAsync(string node, int vmid, UpdateVMFirewallOptionsRequest? updateVMFirewallOptionsRequest = default(UpdateVMFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateVMFirewallOptions + /// + /// + /// Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateVMFirewallOptionsWithHttpInfoAsync(string node, int vmid, UpdateVMFirewallOptionsRequest? updateVMFirewallOptionsRequest = default(UpdateVMFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateVMFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateVMFirewallRuleAsync(string node, int pos, int vmid, UpdateVMFirewallRuleRequest? updateVMFirewallRuleRequest = default(UpdateVMFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateVMFirewallRule + /// + /// + /// Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateVMFirewallRuleWithHttpInfoAsync(string node, int pos, int vmid, UpdateVMFirewallRuleRequest? updateVMFirewallRuleRequest = default(UpdateVMFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// updateVMSnapshotConfig + /// + /// + /// Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + System.Threading.Tasks.Task UpdateVMSnapshotConfigAsync(string node, string snapname, int vmid, UpdateVMSnapshotConfigRequest? updateVMSnapshotConfigRequest = default(UpdateVMSnapshotConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// updateVMSnapshotConfig + /// + /// + /// Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + System.Threading.Tasks.Task> UpdateVMSnapshotConfigWithHttpInfoAsync(string node, string snapname, int vmid, UpdateVMSnapshotConfigRequest? updateVMSnapshotConfigRequest = default(UpdateVMSnapshotConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IProxmoxGeneratedApi : IProxmoxGeneratedApiSync, IProxmoxGeneratedApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ProxmoxGeneratedApi : IProxmoxGeneratedApi + { + private ProxmoxSharp.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ProxmoxGeneratedApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public ProxmoxGeneratedApi(string basePath) + { + this.Configuration = ProxmoxSharp.Client.Configuration.MergeConfigurations( + ProxmoxSharp.Client.GlobalConfiguration.Instance, + new ProxmoxSharp.Client.Configuration { BasePath = basePath } + ); + this.Client = new ProxmoxSharp.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new ProxmoxSharp.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = ProxmoxSharp.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ProxmoxGeneratedApi(ProxmoxSharp.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = ProxmoxSharp.Client.Configuration.MergeConfigurations( + ProxmoxSharp.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new ProxmoxSharp.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new ProxmoxSharp.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = ProxmoxSharp.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public ProxmoxGeneratedApi(ProxmoxSharp.Client.ISynchronousClient client, ProxmoxSharp.Client.IAsynchronousClient asyncClient, ProxmoxSharp.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = ProxmoxSharp.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public ProxmoxSharp.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public ProxmoxSharp.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public ProxmoxSharp.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ProxmoxSharp.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// addClusterFirewallGroupRule Create new rule. + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response AddClusterFirewallGroupRule(string group, AddClusterFirewallGroupRuleRequest? addClusterFirewallGroupRuleRequest = default(AddClusterFirewallGroupRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = AddClusterFirewallGroupRuleWithHttpInfo(group, addClusterFirewallGroupRuleRequest); + return localVarResponse.Data; + } + + /// + /// addClusterFirewallGroupRule Create new rule. + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse AddClusterFirewallGroupRuleWithHttpInfo(string group, AddClusterFirewallGroupRuleRequest? addClusterFirewallGroupRuleRequest = default(AddClusterFirewallGroupRuleRequest?), int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->AddClusterFirewallGroupRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.Data = addClusterFirewallGroupRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.AddClusterFirewallGroupRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/firewall/groups/{group}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddClusterFirewallGroupRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// addClusterFirewallGroupRule Create new rule. + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task AddClusterFirewallGroupRuleAsync(string group, AddClusterFirewallGroupRuleRequest? addClusterFirewallGroupRuleRequest = default(AddClusterFirewallGroupRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await AddClusterFirewallGroupRuleWithHttpInfoAsync(group, addClusterFirewallGroupRuleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// addClusterFirewallGroupRule Create new rule. + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> AddClusterFirewallGroupRuleWithHttpInfoAsync(string group, AddClusterFirewallGroupRuleRequest? addClusterFirewallGroupRuleRequest = default(AddClusterFirewallGroupRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->AddClusterFirewallGroupRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.Data = addClusterFirewallGroupRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.AddClusterFirewallGroupRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/firewall/groups/{group}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddClusterFirewallGroupRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// addClusterFirewallIPSetIP Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response AddClusterFirewallIPSetIP(string name, AddClusterFirewallIPSetIPRequest? addClusterFirewallIPSetIPRequest = default(AddClusterFirewallIPSetIPRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = AddClusterFirewallIPSetIPWithHttpInfo(name, addClusterFirewallIPSetIPRequest); + return localVarResponse.Data; + } + + /// + /// addClusterFirewallIPSetIP Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse AddClusterFirewallIPSetIPWithHttpInfo(string name, AddClusterFirewallIPSetIPRequest? addClusterFirewallIPSetIPRequest = default(AddClusterFirewallIPSetIPRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->AddClusterFirewallIPSetIP"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = addClusterFirewallIPSetIPRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.AddClusterFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddClusterFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// addClusterFirewallIPSetIP Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task AddClusterFirewallIPSetIPAsync(string name, AddClusterFirewallIPSetIPRequest? addClusterFirewallIPSetIPRequest = default(AddClusterFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await AddClusterFirewallIPSetIPWithHttpInfoAsync(name, addClusterFirewallIPSetIPRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// addClusterFirewallIPSetIP Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> AddClusterFirewallIPSetIPWithHttpInfoAsync(string name, AddClusterFirewallIPSetIPRequest? addClusterFirewallIPSetIPRequest = default(AddClusterFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->AddClusterFirewallIPSetIP"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = addClusterFirewallIPSetIPRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.AddClusterFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddClusterFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// addClusterFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response AddClusterFirewallRule(AddClusterFirewallRuleRequest? addClusterFirewallRuleRequest = default(AddClusterFirewallRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = AddClusterFirewallRuleWithHttpInfo(addClusterFirewallRuleRequest); + return localVarResponse.Data; + } + + /// + /// addClusterFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse AddClusterFirewallRuleWithHttpInfo(AddClusterFirewallRuleRequest? addClusterFirewallRuleRequest = default(AddClusterFirewallRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = addClusterFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.AddClusterFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddClusterFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// addClusterFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task AddClusterFirewallRuleAsync(AddClusterFirewallRuleRequest? addClusterFirewallRuleRequest = default(AddClusterFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await AddClusterFirewallRuleWithHttpInfoAsync(addClusterFirewallRuleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// addClusterFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> AddClusterFirewallRuleWithHttpInfoAsync(AddClusterFirewallRuleRequest? addClusterFirewallRuleRequest = default(AddClusterFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = addClusterFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.AddClusterFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddClusterFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// addVMFirewallIPSetIP Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response AddVMFirewallIPSetIP(string name, string node, int vmid, AddVMFirewallIPSetIPRequest? addVMFirewallIPSetIPRequest = default(AddVMFirewallIPSetIPRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = AddVMFirewallIPSetIPWithHttpInfo(name, node, vmid, addVMFirewallIPSetIPRequest); + return localVarResponse.Data; + } + + /// + /// addVMFirewallIPSetIP Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse AddVMFirewallIPSetIPWithHttpInfo(string name, string node, int vmid, AddVMFirewallIPSetIPRequest? addVMFirewallIPSetIPRequest = default(AddVMFirewallIPSetIPRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->AddVMFirewallIPSetIP"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->AddVMFirewallIPSetIP"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = addVMFirewallIPSetIPRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.AddVMFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddVMFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// addVMFirewallIPSetIP Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task AddVMFirewallIPSetIPAsync(string name, string node, int vmid, AddVMFirewallIPSetIPRequest? addVMFirewallIPSetIPRequest = default(AddVMFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await AddVMFirewallIPSetIPWithHttpInfoAsync(name, node, vmid, addVMFirewallIPSetIPRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// addVMFirewallIPSetIP Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> AddVMFirewallIPSetIPWithHttpInfoAsync(string name, string node, int vmid, AddVMFirewallIPSetIPRequest? addVMFirewallIPSetIPRequest = default(AddVMFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->AddVMFirewallIPSetIP"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->AddVMFirewallIPSetIP"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = addVMFirewallIPSetIPRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.AddVMFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("AddVMFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// cloneVM Create a copy of virtual machine/template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CloneVM(string node, int vmid, CloneVMRequest? cloneVMRequest = default(CloneVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CloneVMWithHttpInfo(node, vmid, cloneVMRequest); + return localVarResponse.Data; + } + + /// + /// cloneVM Create a copy of virtual machine/template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CloneVMWithHttpInfo(string node, int vmid, CloneVMRequest? cloneVMRequest = default(CloneVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CloneVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = cloneVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CloneVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/clone", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CloneVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// cloneVM Create a copy of virtual machine/template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CloneVMAsync(string node, int vmid, CloneVMRequest? cloneVMRequest = default(CloneVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CloneVMWithHttpInfoAsync(node, vmid, cloneVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// cloneVM Create a copy of virtual machine/template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CloneVMWithHttpInfoAsync(string node, int vmid, CloneVMRequest? cloneVMRequest = default(CloneVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CloneVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = cloneVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CloneVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/clone", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CloneVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessDomains Add an authentication server. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateAccessDomains(CreateAccessDomainsRequest? createAccessDomainsRequest = default(CreateAccessDomainsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessDomainsWithHttpInfo(createAccessDomainsRequest); + return localVarResponse.Data; + } + + /// + /// createAccessDomains Add an authentication server. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessDomainsWithHttpInfo(CreateAccessDomainsRequest? createAccessDomainsRequest = default(CreateAccessDomainsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessDomainsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/domains", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessDomains Add an authentication server. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateAccessDomainsAsync(CreateAccessDomainsRequest? createAccessDomainsRequest = default(CreateAccessDomainsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessDomainsWithHttpInfoAsync(createAccessDomainsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessDomains Add an authentication server. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateAccessDomainsWithHttpInfoAsync(CreateAccessDomainsRequest? createAccessDomainsRequest = default(CreateAccessDomainsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessDomainsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/domains", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessDomainsSingleSync Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// CreateAccessDomainsSingleSync200Response + public CreateAccessDomainsSingleSync200Response CreateAccessDomainsSingleSync(string realm, CreateAccessDomainsSingleSyncRequest? createAccessDomainsSingleSyncRequest = default(CreateAccessDomainsSingleSyncRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessDomainsSingleSyncWithHttpInfo(realm, createAccessDomainsSingleSyncRequest); + return localVarResponse.Data; + } + + /// + /// createAccessDomainsSingleSync Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessDomainsSingleSync200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessDomainsSingleSyncWithHttpInfo(string realm, CreateAccessDomainsSingleSyncRequest? createAccessDomainsSingleSyncRequest = default(CreateAccessDomainsSingleSyncRequest?), int operationIndex = 0) + { + // verify the required parameter 'realm' is set + if (realm == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'realm' when calling ProxmoxGeneratedApi->CreateAccessDomainsSingleSync"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("realm", ProxmoxSharp.Client.ClientUtils.ParameterToString(realm)); // path parameter + localVarRequestOptions.Data = createAccessDomainsSingleSyncRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessDomainsSingleSync"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/domains/{realm}/sync", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessDomainsSingleSync", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessDomainsSingleSync Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessDomainsSingleSync200Response + public async System.Threading.Tasks.Task CreateAccessDomainsSingleSyncAsync(string realm, CreateAccessDomainsSingleSyncRequest? createAccessDomainsSingleSyncRequest = default(CreateAccessDomainsSingleSyncRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessDomainsSingleSyncWithHttpInfoAsync(realm, createAccessDomainsSingleSyncRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessDomainsSingleSync Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: Synced groups will have the name 'name-$realm', so make sure those groups do not exist to prevent overwriting. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessDomainsSingleSync200Response) + public async System.Threading.Tasks.Task> CreateAccessDomainsSingleSyncWithHttpInfoAsync(string realm, CreateAccessDomainsSingleSyncRequest? createAccessDomainsSingleSyncRequest = default(CreateAccessDomainsSingleSyncRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'realm' is set + if (realm == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'realm' when calling ProxmoxGeneratedApi->CreateAccessDomainsSingleSync"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("realm", ProxmoxSharp.Client.ClientUtils.ParameterToString(realm)); // path parameter + localVarRequestOptions.Data = createAccessDomainsSingleSyncRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessDomainsSingleSync"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/domains/{realm}/sync", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessDomainsSingleSync", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessGroups Create new group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateAccessGroups(CreateAccessGroupsRequest? createAccessGroupsRequest = default(CreateAccessGroupsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessGroupsWithHttpInfo(createAccessGroupsRequest); + return localVarResponse.Data; + } + + /// + /// createAccessGroups Create new group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessGroupsWithHttpInfo(CreateAccessGroupsRequest? createAccessGroupsRequest = default(CreateAccessGroupsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessGroupsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessGroups Create new group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateAccessGroupsAsync(CreateAccessGroupsRequest? createAccessGroupsRequest = default(CreateAccessGroupsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessGroupsWithHttpInfoAsync(createAccessGroupsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessGroups Create new group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateAccessGroupsWithHttpInfoAsync(CreateAccessGroupsRequest? createAccessGroupsRequest = default(CreateAccessGroupsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessGroupsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessOpenidAuthurl Get the OpenId Authorization Url for the specified realm. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateAccessOpenidAuthurl200Response + public CreateAccessOpenidAuthurl200Response CreateAccessOpenidAuthurl(CreateAccessOpenidAuthurlRequest? createAccessOpenidAuthurlRequest = default(CreateAccessOpenidAuthurlRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessOpenidAuthurlWithHttpInfo(createAccessOpenidAuthurlRequest); + return localVarResponse.Data; + } + + /// + /// createAccessOpenidAuthurl Get the OpenId Authorization Url for the specified realm. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessOpenidAuthurl200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessOpenidAuthurlWithHttpInfo(CreateAccessOpenidAuthurlRequest? createAccessOpenidAuthurlRequest = default(CreateAccessOpenidAuthurlRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessOpenidAuthurlRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessOpenidAuthurl"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/openid/auth-url", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessOpenidAuthurl", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessOpenidAuthurl Get the OpenId Authorization Url for the specified realm. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessOpenidAuthurl200Response + public async System.Threading.Tasks.Task CreateAccessOpenidAuthurlAsync(CreateAccessOpenidAuthurlRequest? createAccessOpenidAuthurlRequest = default(CreateAccessOpenidAuthurlRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessOpenidAuthurlWithHttpInfoAsync(createAccessOpenidAuthurlRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessOpenidAuthurl Get the OpenId Authorization Url for the specified realm. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessOpenidAuthurl200Response) + public async System.Threading.Tasks.Task> CreateAccessOpenidAuthurlWithHttpInfoAsync(CreateAccessOpenidAuthurlRequest? createAccessOpenidAuthurlRequest = default(CreateAccessOpenidAuthurlRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessOpenidAuthurlRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessOpenidAuthurl"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/openid/auth-url", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessOpenidAuthurl", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessOpenidLogin Verify OpenID authorization code and create a ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateAccessOpenidLogin(CreateAccessOpenidLoginRequest? createAccessOpenidLoginRequest = default(CreateAccessOpenidLoginRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessOpenidLoginWithHttpInfo(createAccessOpenidLoginRequest); + return localVarResponse.Data; + } + + /// + /// createAccessOpenidLogin Verify OpenID authorization code and create a ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessOpenidLoginWithHttpInfo(CreateAccessOpenidLoginRequest? createAccessOpenidLoginRequest = default(CreateAccessOpenidLoginRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessOpenidLoginRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessOpenidLogin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/openid/login", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessOpenidLogin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessOpenidLogin Verify OpenID authorization code and create a ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateAccessOpenidLoginAsync(CreateAccessOpenidLoginRequest? createAccessOpenidLoginRequest = default(CreateAccessOpenidLoginRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessOpenidLoginWithHttpInfoAsync(createAccessOpenidLoginRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessOpenidLogin Verify OpenID authorization code and create a ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateAccessOpenidLoginWithHttpInfoAsync(CreateAccessOpenidLoginRequest? createAccessOpenidLoginRequest = default(CreateAccessOpenidLoginRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessOpenidLoginRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessOpenidLogin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/openid/login", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessOpenidLogin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessRoles Create new role. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateAccessRoles(CreateAccessRolesRequest? createAccessRolesRequest = default(CreateAccessRolesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessRolesWithHttpInfo(createAccessRolesRequest); + return localVarResponse.Data; + } + + /// + /// createAccessRoles Create new role. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessRolesWithHttpInfo(CreateAccessRolesRequest? createAccessRolesRequest = default(CreateAccessRolesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessRolesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessRoles"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/roles", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessRoles", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessRoles Create new role. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateAccessRolesAsync(CreateAccessRolesRequest? createAccessRolesRequest = default(CreateAccessRolesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessRolesWithHttpInfoAsync(createAccessRolesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessRoles Create new role. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateAccessRolesWithHttpInfoAsync(CreateAccessRolesRequest? createAccessRolesRequest = default(CreateAccessRolesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessRolesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessRoles"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/roles", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessRoles", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessTfaSingle Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// CreateAccessTfaSingle200Response + public CreateAccessTfaSingle200Response CreateAccessTfaSingle(string userid, CreateAccessTfaSingleRequest? createAccessTfaSingleRequest = default(CreateAccessTfaSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessTfaSingleWithHttpInfo(userid, createAccessTfaSingleRequest); + return localVarResponse.Data; + } + + /// + /// createAccessTfaSingle Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessTfaSingle200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessTfaSingleWithHttpInfo(string userid, CreateAccessTfaSingleRequest? createAccessTfaSingleRequest = default(CreateAccessTfaSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->CreateAccessTfaSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = createAccessTfaSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessTfaSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/tfa/{userid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessTfaSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessTfaSingle Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessTfaSingle200Response + public async System.Threading.Tasks.Task CreateAccessTfaSingleAsync(string userid, CreateAccessTfaSingleRequest? createAccessTfaSingleRequest = default(CreateAccessTfaSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessTfaSingleWithHttpInfoAsync(userid, createAccessTfaSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessTfaSingle Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessTfaSingle200Response) + public async System.Threading.Tasks.Task> CreateAccessTfaSingleWithHttpInfoAsync(string userid, CreateAccessTfaSingleRequest? createAccessTfaSingleRequest = default(CreateAccessTfaSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->CreateAccessTfaSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = createAccessTfaSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessTfaSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/tfa/{userid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessTfaSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessTicket Create or verify authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateAccessTicket200Response + public CreateAccessTicket200Response CreateAccessTicket(CreateAccessTicketRequest? createAccessTicketRequest = default(CreateAccessTicketRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessTicketWithHttpInfo(createAccessTicketRequest); + return localVarResponse.Data; + } + + /// + /// createAccessTicket Create or verify authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessTicket200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessTicketWithHttpInfo(CreateAccessTicketRequest? createAccessTicketRequest = default(CreateAccessTicketRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessTicketRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessTicket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/ticket", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessTicket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessTicket Create or verify authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessTicket200Response + public async System.Threading.Tasks.Task CreateAccessTicketAsync(CreateAccessTicketRequest? createAccessTicketRequest = default(CreateAccessTicketRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessTicketWithHttpInfoAsync(createAccessTicketRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessTicket Create or verify authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessTicket200Response) + public async System.Threading.Tasks.Task> CreateAccessTicketWithHttpInfoAsync(CreateAccessTicketRequest? createAccessTicketRequest = default(CreateAccessTicketRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessTicketRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessTicket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/ticket", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessTicket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessUsers Create new user. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateAccessUsers(CreateAccessUsersRequest? createAccessUsersRequest = default(CreateAccessUsersRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessUsersWithHttpInfo(createAccessUsersRequest); + return localVarResponse.Data; + } + + /// + /// createAccessUsers Create new user. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessUsersWithHttpInfo(CreateAccessUsersRequest? createAccessUsersRequest = default(CreateAccessUsersRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessUsersRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessUsers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/users", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessUsers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessUsers Create new user. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateAccessUsersAsync(CreateAccessUsersRequest? createAccessUsersRequest = default(CreateAccessUsersRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessUsersWithHttpInfoAsync(createAccessUsersRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessUsers Create new user. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateAccessUsersWithHttpInfoAsync(CreateAccessUsersRequest? createAccessUsersRequest = default(CreateAccessUsersRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessUsersRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessUsers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessUsers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessUsersSingleTokenSingle Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// CreateAccessUsersSingleTokenSingle200Response + public CreateAccessUsersSingleTokenSingle200Response CreateAccessUsersSingleTokenSingle(string tokenid, string userid, CreateAccessUsersSingleTokenSingleRequest? createAccessUsersSingleTokenSingleRequest = default(CreateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessUsersSingleTokenSingleWithHttpInfo(tokenid, userid, createAccessUsersSingleTokenSingleRequest); + return localVarResponse.Data; + } + + /// + /// createAccessUsersSingleTokenSingle Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateAccessUsersSingleTokenSingle200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessUsersSingleTokenSingleWithHttpInfo(string tokenid, string userid, CreateAccessUsersSingleTokenSingleRequest? createAccessUsersSingleTokenSingleRequest = default(CreateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'tokenid' is set + if (tokenid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'tokenid' when calling ProxmoxGeneratedApi->CreateAccessUsersSingleTokenSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->CreateAccessUsersSingleTokenSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tokenid", ProxmoxSharp.Client.ClientUtils.ParameterToString(tokenid)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = createAccessUsersSingleTokenSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessUsersSingleTokenSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/users/{userid}/token/{tokenid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessUsersSingleTokenSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessUsersSingleTokenSingle Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateAccessUsersSingleTokenSingle200Response + public async System.Threading.Tasks.Task CreateAccessUsersSingleTokenSingleAsync(string tokenid, string userid, CreateAccessUsersSingleTokenSingleRequest? createAccessUsersSingleTokenSingleRequest = default(CreateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessUsersSingleTokenSingleWithHttpInfoAsync(tokenid, userid, createAccessUsersSingleTokenSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessUsersSingleTokenSingle Generate a new API token for a specific user. NOTE: returns API token value, which needs to be stored as it cannot be retrieved afterwards! + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateAccessUsersSingleTokenSingle200Response) + public async System.Threading.Tasks.Task> CreateAccessUsersSingleTokenSingleWithHttpInfoAsync(string tokenid, string userid, CreateAccessUsersSingleTokenSingleRequest? createAccessUsersSingleTokenSingleRequest = default(CreateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'tokenid' is set + if (tokenid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'tokenid' when calling ProxmoxGeneratedApi->CreateAccessUsersSingleTokenSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->CreateAccessUsersSingleTokenSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tokenid", ProxmoxSharp.Client.ClientUtils.ParameterToString(tokenid)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = createAccessUsersSingleTokenSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessUsersSingleTokenSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/users/{userid}/token/{tokenid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessUsersSingleTokenSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessVncticket verify VNC authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateAccessVncticket(CreateAccessVncticketRequest? createAccessVncticketRequest = default(CreateAccessVncticketRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateAccessVncticketWithHttpInfo(createAccessVncticketRequest); + return localVarResponse.Data; + } + + /// + /// createAccessVncticket verify VNC authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateAccessVncticketWithHttpInfo(CreateAccessVncticketRequest? createAccessVncticketRequest = default(CreateAccessVncticketRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessVncticketRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessVncticket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/access/vncticket", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessVncticket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createAccessVncticket verify VNC authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateAccessVncticketAsync(CreateAccessVncticketRequest? createAccessVncticketRequest = default(CreateAccessVncticketRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateAccessVncticketWithHttpInfoAsync(createAccessVncticketRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createAccessVncticket verify VNC authentication ticket. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateAccessVncticketWithHttpInfoAsync(CreateAccessVncticketRequest? createAccessVncticketRequest = default(CreateAccessVncticketRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createAccessVncticketRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateAccessVncticket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/access/vncticket", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateAccessVncticket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterAcmeAccount Register a new ACME account with CA. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterAcmeAccount(CreateClusterAcmeAccountRequest? createClusterAcmeAccountRequest = default(CreateClusterAcmeAccountRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterAcmeAccountWithHttpInfo(createClusterAcmeAccountRequest); + return localVarResponse.Data; + } + + /// + /// createClusterAcmeAccount Register a new ACME account with CA. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterAcmeAccountWithHttpInfo(CreateClusterAcmeAccountRequest? createClusterAcmeAccountRequest = default(CreateClusterAcmeAccountRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterAcmeAccountRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterAcmeAccount"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/acme/account", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterAcmeAccount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterAcmeAccount Register a new ACME account with CA. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterAcmeAccountAsync(CreateClusterAcmeAccountRequest? createClusterAcmeAccountRequest = default(CreateClusterAcmeAccountRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterAcmeAccountWithHttpInfoAsync(createClusterAcmeAccountRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterAcmeAccount Register a new ACME account with CA. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterAcmeAccountWithHttpInfoAsync(CreateClusterAcmeAccountRequest? createClusterAcmeAccountRequest = default(CreateClusterAcmeAccountRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterAcmeAccountRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterAcmeAccount"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/acme/account", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterAcmeAccount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterAcmePlugins Add ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterAcmePlugins(CreateClusterAcmePluginsRequest? createClusterAcmePluginsRequest = default(CreateClusterAcmePluginsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterAcmePluginsWithHttpInfo(createClusterAcmePluginsRequest); + return localVarResponse.Data; + } + + /// + /// createClusterAcmePlugins Add ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterAcmePluginsWithHttpInfo(CreateClusterAcmePluginsRequest? createClusterAcmePluginsRequest = default(CreateClusterAcmePluginsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterAcmePluginsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterAcmePlugins"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/acme/plugins", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterAcmePlugins", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterAcmePlugins Add ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterAcmePluginsAsync(CreateClusterAcmePluginsRequest? createClusterAcmePluginsRequest = default(CreateClusterAcmePluginsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterAcmePluginsWithHttpInfoAsync(createClusterAcmePluginsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterAcmePlugins Add ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterAcmePluginsWithHttpInfoAsync(CreateClusterAcmePluginsRequest? createClusterAcmePluginsRequest = default(CreateClusterAcmePluginsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterAcmePluginsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterAcmePlugins"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/acme/plugins", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterAcmePlugins", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBackup Create new vzdump backup job. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterBackup(CreateClusterBackupRequest? createClusterBackupRequest = default(CreateClusterBackupRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterBackupWithHttpInfo(createClusterBackupRequest); + return localVarResponse.Data; + } + + /// + /// createClusterBackup Create new vzdump backup job. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterBackupWithHttpInfo(CreateClusterBackupRequest? createClusterBackupRequest = default(CreateClusterBackupRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBackupRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBackup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/backup", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBackup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBackup Create new vzdump backup job. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterBackupAsync(CreateClusterBackupRequest? createClusterBackupRequest = default(CreateClusterBackupRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterBackupWithHttpInfoAsync(createClusterBackupRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterBackup Create new vzdump backup job. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterBackupWithHttpInfoAsync(CreateClusterBackupRequest? createClusterBackupRequest = default(CreateClusterBackupRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBackupRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBackup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/backup", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBackup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBulkactionGuestMigrate Bulk migrate all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterBulkactionGuestStart200Response + public CreateClusterBulkactionGuestStart200Response CreateClusterBulkactionGuestMigrate(CreateClusterBulkactionGuestMigrateRequest? createClusterBulkactionGuestMigrateRequest = default(CreateClusterBulkactionGuestMigrateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterBulkactionGuestMigrateWithHttpInfo(createClusterBulkactionGuestMigrateRequest); + return localVarResponse.Data; + } + + /// + /// createClusterBulkactionGuestMigrate Bulk migrate all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterBulkactionGuestStart200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterBulkactionGuestMigrateWithHttpInfo(CreateClusterBulkactionGuestMigrateRequest? createClusterBulkactionGuestMigrateRequest = default(CreateClusterBulkactionGuestMigrateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBulkactionGuestMigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBulkactionGuestMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/bulk-action/guest/migrate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBulkactionGuestMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBulkactionGuestMigrate Bulk migrate all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterBulkactionGuestStart200Response + public async System.Threading.Tasks.Task CreateClusterBulkactionGuestMigrateAsync(CreateClusterBulkactionGuestMigrateRequest? createClusterBulkactionGuestMigrateRequest = default(CreateClusterBulkactionGuestMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterBulkactionGuestMigrateWithHttpInfoAsync(createClusterBulkactionGuestMigrateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterBulkactionGuestMigrate Bulk migrate all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterBulkactionGuestStart200Response) + public async System.Threading.Tasks.Task> CreateClusterBulkactionGuestMigrateWithHttpInfoAsync(CreateClusterBulkactionGuestMigrateRequest? createClusterBulkactionGuestMigrateRequest = default(CreateClusterBulkactionGuestMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBulkactionGuestMigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBulkactionGuestMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/bulk-action/guest/migrate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBulkactionGuestMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBulkactionGuestShutdown Bulk shutdown all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterBulkactionGuestStart200Response + public CreateClusterBulkactionGuestStart200Response CreateClusterBulkactionGuestShutdown(CreateClusterBulkactionGuestShutdownRequest? createClusterBulkactionGuestShutdownRequest = default(CreateClusterBulkactionGuestShutdownRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterBulkactionGuestShutdownWithHttpInfo(createClusterBulkactionGuestShutdownRequest); + return localVarResponse.Data; + } + + /// + /// createClusterBulkactionGuestShutdown Bulk shutdown all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterBulkactionGuestStart200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterBulkactionGuestShutdownWithHttpInfo(CreateClusterBulkactionGuestShutdownRequest? createClusterBulkactionGuestShutdownRequest = default(CreateClusterBulkactionGuestShutdownRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBulkactionGuestShutdownRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBulkactionGuestShutdown"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/bulk-action/guest/shutdown", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBulkactionGuestShutdown", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBulkactionGuestShutdown Bulk shutdown all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterBulkactionGuestStart200Response + public async System.Threading.Tasks.Task CreateClusterBulkactionGuestShutdownAsync(CreateClusterBulkactionGuestShutdownRequest? createClusterBulkactionGuestShutdownRequest = default(CreateClusterBulkactionGuestShutdownRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterBulkactionGuestShutdownWithHttpInfoAsync(createClusterBulkactionGuestShutdownRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterBulkactionGuestShutdown Bulk shutdown all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterBulkactionGuestStart200Response) + public async System.Threading.Tasks.Task> CreateClusterBulkactionGuestShutdownWithHttpInfoAsync(CreateClusterBulkactionGuestShutdownRequest? createClusterBulkactionGuestShutdownRequest = default(CreateClusterBulkactionGuestShutdownRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBulkactionGuestShutdownRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBulkactionGuestShutdown"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/bulk-action/guest/shutdown", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBulkactionGuestShutdown", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBulkactionGuestStart Bulk start or resume all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterBulkactionGuestStart200Response + public CreateClusterBulkactionGuestStart200Response CreateClusterBulkactionGuestStart(CreateClusterBulkactionGuestStartRequest? createClusterBulkactionGuestStartRequest = default(CreateClusterBulkactionGuestStartRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterBulkactionGuestStartWithHttpInfo(createClusterBulkactionGuestStartRequest); + return localVarResponse.Data; + } + + /// + /// createClusterBulkactionGuestStart Bulk start or resume all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterBulkactionGuestStart200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterBulkactionGuestStartWithHttpInfo(CreateClusterBulkactionGuestStartRequest? createClusterBulkactionGuestStartRequest = default(CreateClusterBulkactionGuestStartRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBulkactionGuestStartRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBulkactionGuestStart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/bulk-action/guest/start", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBulkactionGuestStart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBulkactionGuestStart Bulk start or resume all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterBulkactionGuestStart200Response + public async System.Threading.Tasks.Task CreateClusterBulkactionGuestStartAsync(CreateClusterBulkactionGuestStartRequest? createClusterBulkactionGuestStartRequest = default(CreateClusterBulkactionGuestStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterBulkactionGuestStartWithHttpInfoAsync(createClusterBulkactionGuestStartRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterBulkactionGuestStart Bulk start or resume all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterBulkactionGuestStart200Response) + public async System.Threading.Tasks.Task> CreateClusterBulkactionGuestStartWithHttpInfoAsync(CreateClusterBulkactionGuestStartRequest? createClusterBulkactionGuestStartRequest = default(CreateClusterBulkactionGuestStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBulkactionGuestStartRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBulkactionGuestStart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/bulk-action/guest/start", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBulkactionGuestStart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBulkactionGuestSuspend Bulk suspend all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterBulkactionGuestStart200Response + public CreateClusterBulkactionGuestStart200Response CreateClusterBulkactionGuestSuspend(CreateClusterBulkactionGuestSuspendRequest? createClusterBulkactionGuestSuspendRequest = default(CreateClusterBulkactionGuestSuspendRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterBulkactionGuestSuspendWithHttpInfo(createClusterBulkactionGuestSuspendRequest); + return localVarResponse.Data; + } + + /// + /// createClusterBulkactionGuestSuspend Bulk suspend all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterBulkactionGuestStart200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterBulkactionGuestSuspendWithHttpInfo(CreateClusterBulkactionGuestSuspendRequest? createClusterBulkactionGuestSuspendRequest = default(CreateClusterBulkactionGuestSuspendRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBulkactionGuestSuspendRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBulkactionGuestSuspend"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/bulk-action/guest/suspend", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBulkactionGuestSuspend", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterBulkactionGuestSuspend Bulk suspend all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterBulkactionGuestStart200Response + public async System.Threading.Tasks.Task CreateClusterBulkactionGuestSuspendAsync(CreateClusterBulkactionGuestSuspendRequest? createClusterBulkactionGuestSuspendRequest = default(CreateClusterBulkactionGuestSuspendRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterBulkactionGuestSuspendWithHttpInfoAsync(createClusterBulkactionGuestSuspendRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterBulkactionGuestSuspend Bulk suspend all guests on the cluster. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterBulkactionGuestStart200Response) + public async System.Threading.Tasks.Task> CreateClusterBulkactionGuestSuspendWithHttpInfoAsync(CreateClusterBulkactionGuestSuspendRequest? createClusterBulkactionGuestSuspendRequest = default(CreateClusterBulkactionGuestSuspendRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterBulkactionGuestSuspendRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterBulkactionGuestSuspend"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/bulk-action/guest/suspend", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterBulkactionGuestSuspend", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterConfig Generate new cluster configuration. If no links given, default to local IP address as link0. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterConfig(CreateClusterConfigRequest? createClusterConfigRequest = default(CreateClusterConfigRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterConfigWithHttpInfo(createClusterConfigRequest); + return localVarResponse.Data; + } + + /// + /// createClusterConfig Generate new cluster configuration. If no links given, default to local IP address as link0. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterConfigWithHttpInfo(CreateClusterConfigRequest? createClusterConfigRequest = default(CreateClusterConfigRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterConfig Generate new cluster configuration. If no links given, default to local IP address as link0. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterConfigAsync(CreateClusterConfigRequest? createClusterConfigRequest = default(CreateClusterConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterConfigWithHttpInfoAsync(createClusterConfigRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterConfig Generate new cluster configuration. If no links given, default to local IP address as link0. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterConfigWithHttpInfoAsync(CreateClusterConfigRequest? createClusterConfigRequest = default(CreateClusterConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterConfigJoin Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterConfigJoin(CreateClusterConfigJoinRequest? createClusterConfigJoinRequest = default(CreateClusterConfigJoinRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterConfigJoinWithHttpInfo(createClusterConfigJoinRequest); + return localVarResponse.Data; + } + + /// + /// createClusterConfigJoin Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterConfigJoinWithHttpInfo(CreateClusterConfigJoinRequest? createClusterConfigJoinRequest = default(CreateClusterConfigJoinRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterConfigJoinRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterConfigJoin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/config/join", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterConfigJoin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterConfigJoin Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterConfigJoinAsync(CreateClusterConfigJoinRequest? createClusterConfigJoinRequest = default(CreateClusterConfigJoinRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterConfigJoinWithHttpInfoAsync(createClusterConfigJoinRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterConfigJoin Joins this node into an existing cluster. If no links are given, default to IP resolved by node's hostname on single link (fallback fails for clusters with multiple links). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterConfigJoinWithHttpInfoAsync(CreateClusterConfigJoinRequest? createClusterConfigJoinRequest = default(CreateClusterConfigJoinRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterConfigJoinRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterConfigJoin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/config/join", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterConfigJoin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterConfigNodesSingle Adds a node to the cluster configuration. This call is for internal use. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterConfigNodesSingle200Response + public CreateClusterConfigNodesSingle200Response CreateClusterConfigNodesSingle(string node, CreateClusterConfigNodesSingleRequest? createClusterConfigNodesSingleRequest = default(CreateClusterConfigNodesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterConfigNodesSingleWithHttpInfo(node, createClusterConfigNodesSingleRequest); + return localVarResponse.Data; + } + + /// + /// createClusterConfigNodesSingle Adds a node to the cluster configuration. This call is for internal use. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterConfigNodesSingle200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterConfigNodesSingleWithHttpInfo(string node, CreateClusterConfigNodesSingleRequest? createClusterConfigNodesSingleRequest = default(CreateClusterConfigNodesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateClusterConfigNodesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createClusterConfigNodesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterConfigNodesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/config/nodes/{node}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterConfigNodesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterConfigNodesSingle Adds a node to the cluster configuration. This call is for internal use. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterConfigNodesSingle200Response + public async System.Threading.Tasks.Task CreateClusterConfigNodesSingleAsync(string node, CreateClusterConfigNodesSingleRequest? createClusterConfigNodesSingleRequest = default(CreateClusterConfigNodesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterConfigNodesSingleWithHttpInfoAsync(node, createClusterConfigNodesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterConfigNodesSingle Adds a node to the cluster configuration. This call is for internal use. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterConfigNodesSingle200Response) + public async System.Threading.Tasks.Task> CreateClusterConfigNodesSingleWithHttpInfoAsync(string node, CreateClusterConfigNodesSingleRequest? createClusterConfigNodesSingleRequest = default(CreateClusterConfigNodesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateClusterConfigNodesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createClusterConfigNodesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterConfigNodesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/config/nodes/{node}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterConfigNodesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterFirewallAliases(CreateClusterFirewallAliasesRequest? createClusterFirewallAliasesRequest = default(CreateClusterFirewallAliasesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterFirewallAliasesWithHttpInfo(createClusterFirewallAliasesRequest); + return localVarResponse.Data; + } + + /// + /// createClusterFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterFirewallAliasesWithHttpInfo(CreateClusterFirewallAliasesRequest? createClusterFirewallAliasesRequest = default(CreateClusterFirewallAliasesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterFirewallAliasesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/firewall/aliases", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterFirewallAliasesAsync(CreateClusterFirewallAliasesRequest? createClusterFirewallAliasesRequest = default(CreateClusterFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterFirewallAliasesWithHttpInfoAsync(createClusterFirewallAliasesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterFirewallAliasesWithHttpInfoAsync(CreateClusterFirewallAliasesRequest? createClusterFirewallAliasesRequest = default(CreateClusterFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterFirewallAliasesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/firewall/aliases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterFirewallGroup Create new security group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterFirewallGroup(CreateClusterFirewallGroupRequest? createClusterFirewallGroupRequest = default(CreateClusterFirewallGroupRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterFirewallGroupWithHttpInfo(createClusterFirewallGroupRequest); + return localVarResponse.Data; + } + + /// + /// createClusterFirewallGroup Create new security group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterFirewallGroupWithHttpInfo(CreateClusterFirewallGroupRequest? createClusterFirewallGroupRequest = default(CreateClusterFirewallGroupRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterFirewallGroupRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterFirewallGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/firewall/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterFirewallGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterFirewallGroup Create new security group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterFirewallGroupAsync(CreateClusterFirewallGroupRequest? createClusterFirewallGroupRequest = default(CreateClusterFirewallGroupRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterFirewallGroupWithHttpInfoAsync(createClusterFirewallGroupRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterFirewallGroup Create new security group. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterFirewallGroupWithHttpInfoAsync(CreateClusterFirewallGroupRequest? createClusterFirewallGroupRequest = default(CreateClusterFirewallGroupRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterFirewallGroupRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterFirewallGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/firewall/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterFirewallGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterFirewallIPSet Create new IPSet + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterFirewallIPSet(CreateClusterFirewallIPSetRequest? createClusterFirewallIPSetRequest = default(CreateClusterFirewallIPSetRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterFirewallIPSetWithHttpInfo(createClusterFirewallIPSetRequest); + return localVarResponse.Data; + } + + /// + /// createClusterFirewallIPSet Create new IPSet + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterFirewallIPSetWithHttpInfo(CreateClusterFirewallIPSetRequest? createClusterFirewallIPSetRequest = default(CreateClusterFirewallIPSetRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterFirewallIPSetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/firewall/ipset", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterFirewallIPSet Create new IPSet + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterFirewallIPSetAsync(CreateClusterFirewallIPSetRequest? createClusterFirewallIPSetRequest = default(CreateClusterFirewallIPSetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterFirewallIPSetWithHttpInfoAsync(createClusterFirewallIPSetRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterFirewallIPSet Create new IPSet + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterFirewallIPSetWithHttpInfoAsync(CreateClusterFirewallIPSetRequest? createClusterFirewallIPSetRequest = default(CreateClusterFirewallIPSetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterFirewallIPSetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/firewall/ipset", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaGroups Create a new HA group. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterHaGroups(CreateClusterHaGroupsRequest? createClusterHaGroupsRequest = default(CreateClusterHaGroupsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterHaGroupsWithHttpInfo(createClusterHaGroupsRequest); + return localVarResponse.Data; + } + + /// + /// createClusterHaGroups Create a new HA group. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterHaGroupsWithHttpInfo(CreateClusterHaGroupsRequest? createClusterHaGroupsRequest = default(CreateClusterHaGroupsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterHaGroupsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/ha/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaGroups Create a new HA group. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterHaGroupsAsync(CreateClusterHaGroupsRequest? createClusterHaGroupsRequest = default(CreateClusterHaGroupsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterHaGroupsWithHttpInfoAsync(createClusterHaGroupsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterHaGroups Create a new HA group. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterHaGroupsWithHttpInfoAsync(CreateClusterHaGroupsRequest? createClusterHaGroupsRequest = default(CreateClusterHaGroupsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterHaGroupsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/ha/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaResources Create a new HA resource. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterHaResources(CreateClusterHaResourcesRequest? createClusterHaResourcesRequest = default(CreateClusterHaResourcesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterHaResourcesWithHttpInfo(createClusterHaResourcesRequest); + return localVarResponse.Data; + } + + /// + /// createClusterHaResources Create a new HA resource. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterHaResourcesWithHttpInfo(CreateClusterHaResourcesRequest? createClusterHaResourcesRequest = default(CreateClusterHaResourcesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterHaResourcesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaResources"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/ha/resources", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaResources", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaResources Create a new HA resource. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterHaResourcesAsync(CreateClusterHaResourcesRequest? createClusterHaResourcesRequest = default(CreateClusterHaResourcesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterHaResourcesWithHttpInfoAsync(createClusterHaResourcesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterHaResources Create a new HA resource. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterHaResourcesWithHttpInfoAsync(CreateClusterHaResourcesRequest? createClusterHaResourcesRequest = default(CreateClusterHaResourcesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterHaResourcesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaResources"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/ha/resources", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaResources", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaResourcesSingleMigrate Request resource migration (online) to another node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// CreateClusterHaResourcesSingleMigrate200Response + public CreateClusterHaResourcesSingleMigrate200Response CreateClusterHaResourcesSingleMigrate(string sid, CreateClusterHaResourcesSingleMigrateRequest? createClusterHaResourcesSingleMigrateRequest = default(CreateClusterHaResourcesSingleMigrateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterHaResourcesSingleMigrateWithHttpInfo(sid, createClusterHaResourcesSingleMigrateRequest); + return localVarResponse.Data; + } + + /// + /// createClusterHaResourcesSingleMigrate Request resource migration (online) to another node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterHaResourcesSingleMigrate200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterHaResourcesSingleMigrateWithHttpInfo(string sid, CreateClusterHaResourcesSingleMigrateRequest? createClusterHaResourcesSingleMigrateRequest = default(CreateClusterHaResourcesSingleMigrateRequest?), int operationIndex = 0) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->CreateClusterHaResourcesSingleMigrate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + localVarRequestOptions.Data = createClusterHaResourcesSingleMigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaResourcesSingleMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/ha/resources/{sid}/migrate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaResourcesSingleMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaResourcesSingleMigrate Request resource migration (online) to another node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterHaResourcesSingleMigrate200Response + public async System.Threading.Tasks.Task CreateClusterHaResourcesSingleMigrateAsync(string sid, CreateClusterHaResourcesSingleMigrateRequest? createClusterHaResourcesSingleMigrateRequest = default(CreateClusterHaResourcesSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterHaResourcesSingleMigrateWithHttpInfoAsync(sid, createClusterHaResourcesSingleMigrateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterHaResourcesSingleMigrate Request resource migration (online) to another node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterHaResourcesSingleMigrate200Response) + public async System.Threading.Tasks.Task> CreateClusterHaResourcesSingleMigrateWithHttpInfoAsync(string sid, CreateClusterHaResourcesSingleMigrateRequest? createClusterHaResourcesSingleMigrateRequest = default(CreateClusterHaResourcesSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->CreateClusterHaResourcesSingleMigrate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + localVarRequestOptions.Data = createClusterHaResourcesSingleMigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaResourcesSingleMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/ha/resources/{sid}/migrate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaResourcesSingleMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaResourcesSingleRelocate Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// CreateClusterHaResourcesSingleRelocate200Response + public CreateClusterHaResourcesSingleRelocate200Response CreateClusterHaResourcesSingleRelocate(string sid, CreateClusterHaResourcesSingleRelocateRequest? createClusterHaResourcesSingleRelocateRequest = default(CreateClusterHaResourcesSingleRelocateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterHaResourcesSingleRelocateWithHttpInfo(sid, createClusterHaResourcesSingleRelocateRequest); + return localVarResponse.Data; + } + + /// + /// createClusterHaResourcesSingleRelocate Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterHaResourcesSingleRelocate200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterHaResourcesSingleRelocateWithHttpInfo(string sid, CreateClusterHaResourcesSingleRelocateRequest? createClusterHaResourcesSingleRelocateRequest = default(CreateClusterHaResourcesSingleRelocateRequest?), int operationIndex = 0) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->CreateClusterHaResourcesSingleRelocate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + localVarRequestOptions.Data = createClusterHaResourcesSingleRelocateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaResourcesSingleRelocate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/ha/resources/{sid}/relocate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaResourcesSingleRelocate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaResourcesSingleRelocate Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterHaResourcesSingleRelocate200Response + public async System.Threading.Tasks.Task CreateClusterHaResourcesSingleRelocateAsync(string sid, CreateClusterHaResourcesSingleRelocateRequest? createClusterHaResourcesSingleRelocateRequest = default(CreateClusterHaResourcesSingleRelocateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterHaResourcesSingleRelocateWithHttpInfoAsync(sid, createClusterHaResourcesSingleRelocateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterHaResourcesSingleRelocate Request resource relocatzion to another node. This stops the service on the old node, and restarts it on the target node. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterHaResourcesSingleRelocate200Response) + public async System.Threading.Tasks.Task> CreateClusterHaResourcesSingleRelocateWithHttpInfoAsync(string sid, CreateClusterHaResourcesSingleRelocateRequest? createClusterHaResourcesSingleRelocateRequest = default(CreateClusterHaResourcesSingleRelocateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->CreateClusterHaResourcesSingleRelocate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + localVarRequestOptions.Data = createClusterHaResourcesSingleRelocateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaResourcesSingleRelocate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/ha/resources/{sid}/relocate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaResourcesSingleRelocate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaRules Create HA rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterHaRules(CreateClusterHaRulesRequest? createClusterHaRulesRequest = default(CreateClusterHaRulesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterHaRulesWithHttpInfo(createClusterHaRulesRequest); + return localVarResponse.Data; + } + + /// + /// createClusterHaRules Create HA rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterHaRulesWithHttpInfo(CreateClusterHaRulesRequest? createClusterHaRulesRequest = default(CreateClusterHaRulesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterHaRulesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/ha/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterHaRules Create HA rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterHaRulesAsync(CreateClusterHaRulesRequest? createClusterHaRulesRequest = default(CreateClusterHaRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterHaRulesWithHttpInfoAsync(createClusterHaRulesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterHaRules Create HA rule. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterHaRulesWithHttpInfoAsync(CreateClusterHaRulesRequest? createClusterHaRulesRequest = default(CreateClusterHaRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterHaRulesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterHaRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/ha/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterHaRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterJobsRealmsyncSingle Create new realm-sync job. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterJobsRealmsyncSingle(string id, CreateClusterJobsRealmsyncSingleRequest? createClusterJobsRealmsyncSingleRequest = default(CreateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterJobsRealmsyncSingleWithHttpInfo(id, createClusterJobsRealmsyncSingleRequest); + return localVarResponse.Data; + } + + /// + /// createClusterJobsRealmsyncSingle Create new realm-sync job. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterJobsRealmsyncSingleWithHttpInfo(string id, CreateClusterJobsRealmsyncSingleRequest? createClusterJobsRealmsyncSingleRequest = default(CreateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->CreateClusterJobsRealmsyncSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createClusterJobsRealmsyncSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterJobsRealmsyncSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/jobs/realm-sync/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterJobsRealmsyncSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterJobsRealmsyncSingle Create new realm-sync job. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterJobsRealmsyncSingleAsync(string id, CreateClusterJobsRealmsyncSingleRequest? createClusterJobsRealmsyncSingleRequest = default(CreateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterJobsRealmsyncSingleWithHttpInfoAsync(id, createClusterJobsRealmsyncSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterJobsRealmsyncSingle Create new realm-sync job. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterJobsRealmsyncSingleWithHttpInfoAsync(string id, CreateClusterJobsRealmsyncSingleRequest? createClusterJobsRealmsyncSingleRequest = default(CreateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->CreateClusterJobsRealmsyncSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createClusterJobsRealmsyncSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterJobsRealmsyncSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/jobs/realm-sync/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterJobsRealmsyncSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterMappingDir Create a new directory mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterMappingDir(CreateClusterMappingDirRequest? createClusterMappingDirRequest = default(CreateClusterMappingDirRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterMappingDirWithHttpInfo(createClusterMappingDirRequest); + return localVarResponse.Data; + } + + /// + /// createClusterMappingDir Create a new directory mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterMappingDirWithHttpInfo(CreateClusterMappingDirRequest? createClusterMappingDirRequest = default(CreateClusterMappingDirRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterMappingDirRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterMappingDir"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/mapping/dir", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterMappingDir", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterMappingDir Create a new directory mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterMappingDirAsync(CreateClusterMappingDirRequest? createClusterMappingDirRequest = default(CreateClusterMappingDirRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterMappingDirWithHttpInfoAsync(createClusterMappingDirRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterMappingDir Create a new directory mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterMappingDirWithHttpInfoAsync(CreateClusterMappingDirRequest? createClusterMappingDirRequest = default(CreateClusterMappingDirRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterMappingDirRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterMappingDir"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/mapping/dir", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterMappingDir", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterMappingPci Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterMappingPci(CreateClusterMappingPciRequest? createClusterMappingPciRequest = default(CreateClusterMappingPciRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterMappingPciWithHttpInfo(createClusterMappingPciRequest); + return localVarResponse.Data; + } + + /// + /// createClusterMappingPci Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterMappingPciWithHttpInfo(CreateClusterMappingPciRequest? createClusterMappingPciRequest = default(CreateClusterMappingPciRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterMappingPciRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterMappingPci"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/mapping/pci", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterMappingPci", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterMappingPci Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterMappingPciAsync(CreateClusterMappingPciRequest? createClusterMappingPciRequest = default(CreateClusterMappingPciRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterMappingPciWithHttpInfoAsync(createClusterMappingPciRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterMappingPci Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterMappingPciWithHttpInfoAsync(CreateClusterMappingPciRequest? createClusterMappingPciRequest = default(CreateClusterMappingPciRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterMappingPciRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterMappingPci"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/mapping/pci", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterMappingPci", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterMappingUsb Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterMappingUsb(CreateClusterMappingUsbRequest? createClusterMappingUsbRequest = default(CreateClusterMappingUsbRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterMappingUsbWithHttpInfo(createClusterMappingUsbRequest); + return localVarResponse.Data; + } + + /// + /// createClusterMappingUsb Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterMappingUsbWithHttpInfo(CreateClusterMappingUsbRequest? createClusterMappingUsbRequest = default(CreateClusterMappingUsbRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterMappingUsbRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterMappingUsb"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/mapping/usb", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterMappingUsb", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterMappingUsb Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterMappingUsbAsync(CreateClusterMappingUsbRequest? createClusterMappingUsbRequest = default(CreateClusterMappingUsbRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterMappingUsbWithHttpInfoAsync(createClusterMappingUsbRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterMappingUsb Create a new hardware mapping. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterMappingUsbWithHttpInfoAsync(CreateClusterMappingUsbRequest? createClusterMappingUsbRequest = default(CreateClusterMappingUsbRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterMappingUsbRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterMappingUsb"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/mapping/usb", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterMappingUsb", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterMetricsServerSingle Create a new external metric server config + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterMetricsServerSingle(string id, CreateClusterMetricsServerSingleRequest? createClusterMetricsServerSingleRequest = default(CreateClusterMetricsServerSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterMetricsServerSingleWithHttpInfo(id, createClusterMetricsServerSingleRequest); + return localVarResponse.Data; + } + + /// + /// createClusterMetricsServerSingle Create a new external metric server config + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterMetricsServerSingleWithHttpInfo(string id, CreateClusterMetricsServerSingleRequest? createClusterMetricsServerSingleRequest = default(CreateClusterMetricsServerSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->CreateClusterMetricsServerSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createClusterMetricsServerSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterMetricsServerSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/metrics/server/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterMetricsServerSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterMetricsServerSingle Create a new external metric server config + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterMetricsServerSingleAsync(string id, CreateClusterMetricsServerSingleRequest? createClusterMetricsServerSingleRequest = default(CreateClusterMetricsServerSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterMetricsServerSingleWithHttpInfoAsync(id, createClusterMetricsServerSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterMetricsServerSingle Create a new external metric server config + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterMetricsServerSingleWithHttpInfoAsync(string id, CreateClusterMetricsServerSingleRequest? createClusterMetricsServerSingleRequest = default(CreateClusterMetricsServerSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->CreateClusterMetricsServerSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = createClusterMetricsServerSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterMetricsServerSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/metrics/server/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterMetricsServerSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsEndpointsGotify Create a new gotify endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterNotificationsEndpointsGotify(CreateClusterNotificationsEndpointsGotifyRequest? createClusterNotificationsEndpointsGotifyRequest = default(CreateClusterNotificationsEndpointsGotifyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterNotificationsEndpointsGotifyWithHttpInfo(createClusterNotificationsEndpointsGotifyRequest); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsEndpointsGotify Create a new gotify endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterNotificationsEndpointsGotifyWithHttpInfo(CreateClusterNotificationsEndpointsGotifyRequest? createClusterNotificationsEndpointsGotifyRequest = default(CreateClusterNotificationsEndpointsGotifyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsEndpointsGotifyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsEndpointsGotify"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/notifications/endpoints/gotify", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsEndpointsGotify", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsEndpointsGotify Create a new gotify endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterNotificationsEndpointsGotifyAsync(CreateClusterNotificationsEndpointsGotifyRequest? createClusterNotificationsEndpointsGotifyRequest = default(CreateClusterNotificationsEndpointsGotifyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterNotificationsEndpointsGotifyWithHttpInfoAsync(createClusterNotificationsEndpointsGotifyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsEndpointsGotify Create a new gotify endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterNotificationsEndpointsGotifyWithHttpInfoAsync(CreateClusterNotificationsEndpointsGotifyRequest? createClusterNotificationsEndpointsGotifyRequest = default(CreateClusterNotificationsEndpointsGotifyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsEndpointsGotifyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsEndpointsGotify"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/notifications/endpoints/gotify", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsEndpointsGotify", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsEndpointsSendmail Create a new sendmail endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterNotificationsEndpointsSendmail(CreateClusterNotificationsEndpointsSendmailRequest? createClusterNotificationsEndpointsSendmailRequest = default(CreateClusterNotificationsEndpointsSendmailRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterNotificationsEndpointsSendmailWithHttpInfo(createClusterNotificationsEndpointsSendmailRequest); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsEndpointsSendmail Create a new sendmail endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterNotificationsEndpointsSendmailWithHttpInfo(CreateClusterNotificationsEndpointsSendmailRequest? createClusterNotificationsEndpointsSendmailRequest = default(CreateClusterNotificationsEndpointsSendmailRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsEndpointsSendmailRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsEndpointsSendmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/notifications/endpoints/sendmail", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsEndpointsSendmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsEndpointsSendmail Create a new sendmail endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterNotificationsEndpointsSendmailAsync(CreateClusterNotificationsEndpointsSendmailRequest? createClusterNotificationsEndpointsSendmailRequest = default(CreateClusterNotificationsEndpointsSendmailRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterNotificationsEndpointsSendmailWithHttpInfoAsync(createClusterNotificationsEndpointsSendmailRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsEndpointsSendmail Create a new sendmail endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterNotificationsEndpointsSendmailWithHttpInfoAsync(CreateClusterNotificationsEndpointsSendmailRequest? createClusterNotificationsEndpointsSendmailRequest = default(CreateClusterNotificationsEndpointsSendmailRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsEndpointsSendmailRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsEndpointsSendmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/notifications/endpoints/sendmail", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsEndpointsSendmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsEndpointsSmtp Create a new smtp endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterNotificationsEndpointsSmtp(CreateClusterNotificationsEndpointsSmtpRequest? createClusterNotificationsEndpointsSmtpRequest = default(CreateClusterNotificationsEndpointsSmtpRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterNotificationsEndpointsSmtpWithHttpInfo(createClusterNotificationsEndpointsSmtpRequest); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsEndpointsSmtp Create a new smtp endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterNotificationsEndpointsSmtpWithHttpInfo(CreateClusterNotificationsEndpointsSmtpRequest? createClusterNotificationsEndpointsSmtpRequest = default(CreateClusterNotificationsEndpointsSmtpRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsEndpointsSmtpRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsEndpointsSmtp"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/notifications/endpoints/smtp", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsEndpointsSmtp", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsEndpointsSmtp Create a new smtp endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterNotificationsEndpointsSmtpAsync(CreateClusterNotificationsEndpointsSmtpRequest? createClusterNotificationsEndpointsSmtpRequest = default(CreateClusterNotificationsEndpointsSmtpRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterNotificationsEndpointsSmtpWithHttpInfoAsync(createClusterNotificationsEndpointsSmtpRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsEndpointsSmtp Create a new smtp endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterNotificationsEndpointsSmtpWithHttpInfoAsync(CreateClusterNotificationsEndpointsSmtpRequest? createClusterNotificationsEndpointsSmtpRequest = default(CreateClusterNotificationsEndpointsSmtpRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsEndpointsSmtpRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsEndpointsSmtp"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/notifications/endpoints/smtp", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsEndpointsSmtp", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsEndpointsWebhook Create a new webhook endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterNotificationsEndpointsWebhook(CreateClusterNotificationsEndpointsWebhookRequest? createClusterNotificationsEndpointsWebhookRequest = default(CreateClusterNotificationsEndpointsWebhookRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterNotificationsEndpointsWebhookWithHttpInfo(createClusterNotificationsEndpointsWebhookRequest); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsEndpointsWebhook Create a new webhook endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterNotificationsEndpointsWebhookWithHttpInfo(CreateClusterNotificationsEndpointsWebhookRequest? createClusterNotificationsEndpointsWebhookRequest = default(CreateClusterNotificationsEndpointsWebhookRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsEndpointsWebhookRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsEndpointsWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/notifications/endpoints/webhook", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsEndpointsWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsEndpointsWebhook Create a new webhook endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterNotificationsEndpointsWebhookAsync(CreateClusterNotificationsEndpointsWebhookRequest? createClusterNotificationsEndpointsWebhookRequest = default(CreateClusterNotificationsEndpointsWebhookRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterNotificationsEndpointsWebhookWithHttpInfoAsync(createClusterNotificationsEndpointsWebhookRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsEndpointsWebhook Create a new webhook endpoint + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterNotificationsEndpointsWebhookWithHttpInfoAsync(CreateClusterNotificationsEndpointsWebhookRequest? createClusterNotificationsEndpointsWebhookRequest = default(CreateClusterNotificationsEndpointsWebhookRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsEndpointsWebhookRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsEndpointsWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/notifications/endpoints/webhook", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsEndpointsWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsMatchers Create a new matcher + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterNotificationsMatchers(CreateClusterNotificationsMatchersRequest? createClusterNotificationsMatchersRequest = default(CreateClusterNotificationsMatchersRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterNotificationsMatchersWithHttpInfo(createClusterNotificationsMatchersRequest); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsMatchers Create a new matcher + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterNotificationsMatchersWithHttpInfo(CreateClusterNotificationsMatchersRequest? createClusterNotificationsMatchersRequest = default(CreateClusterNotificationsMatchersRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsMatchersRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsMatchers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/notifications/matchers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsMatchers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsMatchers Create a new matcher + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterNotificationsMatchersAsync(CreateClusterNotificationsMatchersRequest? createClusterNotificationsMatchersRequest = default(CreateClusterNotificationsMatchersRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterNotificationsMatchersWithHttpInfoAsync(createClusterNotificationsMatchersRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsMatchers Create a new matcher + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterNotificationsMatchersWithHttpInfoAsync(CreateClusterNotificationsMatchersRequest? createClusterNotificationsMatchersRequest = default(CreateClusterNotificationsMatchersRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterNotificationsMatchersRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsMatchers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/notifications/matchers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsMatchers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsTargetsSingleTest Send a test notification to a provided target. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterNotificationsTargetsSingleTest(string name, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterNotificationsTargetsSingleTestWithHttpInfo(name, body); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsTargetsSingleTest Send a test notification to a provided target. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterNotificationsTargetsSingleTestWithHttpInfo(string name, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->CreateClusterNotificationsTargetsSingleTest"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsTargetsSingleTest"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/notifications/targets/{name}/test", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsTargetsSingleTest", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterNotificationsTargetsSingleTest Send a test notification to a provided target. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterNotificationsTargetsSingleTestAsync(string name, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterNotificationsTargetsSingleTestWithHttpInfoAsync(name, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterNotificationsTargetsSingleTest Send a test notification to a provided target. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterNotificationsTargetsSingleTestWithHttpInfoAsync(string name, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->CreateClusterNotificationsTargetsSingleTest"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterNotificationsTargetsSingleTest"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/notifications/targets/{name}/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterNotificationsTargetsSingleTest", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterReplication Create a new replication job + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterReplication(CreateClusterReplicationRequest? createClusterReplicationRequest = default(CreateClusterReplicationRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterReplicationWithHttpInfo(createClusterReplicationRequest); + return localVarResponse.Data; + } + + /// + /// createClusterReplication Create a new replication job + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterReplicationWithHttpInfo(CreateClusterReplicationRequest? createClusterReplicationRequest = default(CreateClusterReplicationRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterReplicationRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterReplication"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/replication", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterReplication", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterReplication Create a new replication job + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterReplicationAsync(CreateClusterReplicationRequest? createClusterReplicationRequest = default(CreateClusterReplicationRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterReplicationWithHttpInfoAsync(createClusterReplicationRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterReplication Create a new replication job + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterReplicationWithHttpInfoAsync(CreateClusterReplicationRequest? createClusterReplicationRequest = default(CreateClusterReplicationRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterReplicationRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterReplication"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/replication", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterReplication", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSDNController Create a new sdn controller object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSDNController(CreateClusterSDNControllerRequest? createClusterSDNControllerRequest = default(CreateClusterSDNControllerRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSDNControllerWithHttpInfo(createClusterSDNControllerRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSDNController Create a new sdn controller object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSDNControllerWithHttpInfo(CreateClusterSDNControllerRequest? createClusterSDNControllerRequest = default(CreateClusterSDNControllerRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSDNControllerRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSDNController"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/controllers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSDNController", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSDNController Create a new sdn controller object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSDNControllerAsync(CreateClusterSDNControllerRequest? createClusterSDNControllerRequest = default(CreateClusterSDNControllerRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSDNControllerWithHttpInfoAsync(createClusterSDNControllerRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSDNController Create a new sdn controller object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSDNControllerWithHttpInfoAsync(CreateClusterSDNControllerRequest? createClusterSDNControllerRequest = default(CreateClusterSDNControllerRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSDNControllerRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSDNController"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/controllers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSDNController", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSDNVnet Create a new sdn vnet object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSDNVnet(CreateClusterSDNVnetRequest? createClusterSDNVnetRequest = default(CreateClusterSDNVnetRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSDNVnetWithHttpInfo(createClusterSDNVnetRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSDNVnet Create a new sdn vnet object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSDNVnetWithHttpInfo(CreateClusterSDNVnetRequest? createClusterSDNVnetRequest = default(CreateClusterSDNVnetRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSDNVnetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSDNVnet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/vnets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSDNVnet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSDNVnet Create a new sdn vnet object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSDNVnetAsync(CreateClusterSDNVnetRequest? createClusterSDNVnetRequest = default(CreateClusterSDNVnetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSDNVnetWithHttpInfoAsync(createClusterSDNVnetRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSDNVnet Create a new sdn vnet object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSDNVnetWithHttpInfoAsync(CreateClusterSDNVnetRequest? createClusterSDNVnetRequest = default(CreateClusterSDNVnetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSDNVnetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSDNVnet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/vnets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSDNVnet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSDNZone Create a new sdn zone object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSDNZone(CreateClusterSDNZoneRequest? createClusterSDNZoneRequest = default(CreateClusterSDNZoneRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSDNZoneWithHttpInfo(createClusterSDNZoneRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSDNZone Create a new sdn zone object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSDNZoneWithHttpInfo(CreateClusterSDNZoneRequest? createClusterSDNZoneRequest = default(CreateClusterSDNZoneRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSDNZoneRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/zones", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSDNZone Create a new sdn zone object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSDNZoneAsync(CreateClusterSDNZoneRequest? createClusterSDNZoneRequest = default(CreateClusterSDNZoneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSDNZoneWithHttpInfoAsync(createClusterSDNZoneRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSDNZone Create a new sdn zone object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSDNZoneWithHttpInfoAsync(CreateClusterSDNZoneRequest? createClusterSDNZoneRequest = default(CreateClusterSDNZoneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSDNZoneRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/zones", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnDns Create a new sdn dns object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnDns(CreateClusterSdnDnsRequest? createClusterSdnDnsRequest = default(CreateClusterSdnDnsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnDnsWithHttpInfo(createClusterSdnDnsRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnDns Create a new sdn dns object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnDnsWithHttpInfo(CreateClusterSdnDnsRequest? createClusterSdnDnsRequest = default(CreateClusterSdnDnsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnDnsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnDns"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/dns", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnDns", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnDns Create a new sdn dns object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnDnsAsync(CreateClusterSdnDnsRequest? createClusterSdnDnsRequest = default(CreateClusterSdnDnsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnDnsWithHttpInfoAsync(createClusterSdnDnsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnDns Create a new sdn dns object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnDnsWithHttpInfoAsync(CreateClusterSdnDnsRequest? createClusterSdnDnsRequest = default(CreateClusterSdnDnsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnDnsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnDns"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/dns", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnDns", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnFabricsFabric Add a fabric + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnFabricsFabric(CreateClusterSdnFabricsFabricRequest? createClusterSdnFabricsFabricRequest = default(CreateClusterSdnFabricsFabricRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnFabricsFabricWithHttpInfo(createClusterSdnFabricsFabricRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnFabricsFabric Add a fabric + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnFabricsFabricWithHttpInfo(CreateClusterSdnFabricsFabricRequest? createClusterSdnFabricsFabricRequest = default(CreateClusterSdnFabricsFabricRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnFabricsFabricRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnFabricsFabric"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/fabrics/fabric", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnFabricsFabric", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnFabricsFabric Add a fabric + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnFabricsFabricAsync(CreateClusterSdnFabricsFabricRequest? createClusterSdnFabricsFabricRequest = default(CreateClusterSdnFabricsFabricRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnFabricsFabricWithHttpInfoAsync(createClusterSdnFabricsFabricRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnFabricsFabric Add a fabric + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnFabricsFabricWithHttpInfoAsync(CreateClusterSdnFabricsFabricRequest? createClusterSdnFabricsFabricRequest = default(CreateClusterSdnFabricsFabricRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnFabricsFabricRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnFabricsFabric"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/fabrics/fabric", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnFabricsFabric", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnFabricsNodeSingle Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnFabricsNodeSingle(string fabricId, CreateClusterSdnFabricsNodeSingleRequest? createClusterSdnFabricsNodeSingleRequest = default(CreateClusterSdnFabricsNodeSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnFabricsNodeSingleWithHttpInfo(fabricId, createClusterSdnFabricsNodeSingleRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnFabricsNodeSingle Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnFabricsNodeSingleWithHttpInfo(string fabricId, CreateClusterSdnFabricsNodeSingleRequest? createClusterSdnFabricsNodeSingleRequest = default(CreateClusterSdnFabricsNodeSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->CreateClusterSdnFabricsNodeSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + localVarRequestOptions.Data = createClusterSdnFabricsNodeSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnFabricsNodeSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/fabrics/node/{fabric_id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnFabricsNodeSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnFabricsNodeSingle Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnFabricsNodeSingleAsync(string fabricId, CreateClusterSdnFabricsNodeSingleRequest? createClusterSdnFabricsNodeSingleRequest = default(CreateClusterSdnFabricsNodeSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnFabricsNodeSingleWithHttpInfoAsync(fabricId, createClusterSdnFabricsNodeSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnFabricsNodeSingle Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnFabricsNodeSingleWithHttpInfoAsync(string fabricId, CreateClusterSdnFabricsNodeSingleRequest? createClusterSdnFabricsNodeSingleRequest = default(CreateClusterSdnFabricsNodeSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->CreateClusterSdnFabricsNodeSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + localVarRequestOptions.Data = createClusterSdnFabricsNodeSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnFabricsNodeSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/fabrics/node/{fabric_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnFabricsNodeSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnIpams Create a new sdn ipam object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnIpams(CreateClusterSdnIpamsRequest? createClusterSdnIpamsRequest = default(CreateClusterSdnIpamsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnIpamsWithHttpInfo(createClusterSdnIpamsRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnIpams Create a new sdn ipam object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnIpamsWithHttpInfo(CreateClusterSdnIpamsRequest? createClusterSdnIpamsRequest = default(CreateClusterSdnIpamsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnIpamsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnIpams"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/ipams", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnIpams", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnIpams Create a new sdn ipam object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnIpamsAsync(CreateClusterSdnIpamsRequest? createClusterSdnIpamsRequest = default(CreateClusterSdnIpamsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnIpamsWithHttpInfoAsync(createClusterSdnIpamsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnIpams Create a new sdn ipam object. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnIpamsWithHttpInfoAsync(CreateClusterSdnIpamsRequest? createClusterSdnIpamsRequest = default(CreateClusterSdnIpamsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnIpamsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnIpams"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/ipams", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnIpams", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnLock Acquire global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnLock(CreateClusterSdnLockRequest? createClusterSdnLockRequest = default(CreateClusterSdnLockRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnLockWithHttpInfo(createClusterSdnLockRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnLock Acquire global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnLockWithHttpInfo(CreateClusterSdnLockRequest? createClusterSdnLockRequest = default(CreateClusterSdnLockRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnLockRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnLock"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/lock", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnLock", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnLock Acquire global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnLockAsync(CreateClusterSdnLockRequest? createClusterSdnLockRequest = default(CreateClusterSdnLockRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnLockWithHttpInfoAsync(createClusterSdnLockRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnLock Acquire global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnLockWithHttpInfoAsync(CreateClusterSdnLockRequest? createClusterSdnLockRequest = default(CreateClusterSdnLockRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnLockRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnLock"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/lock", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnLock", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnRollback Rollback pending changes to SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnRollback(CreateClusterSdnRollbackRequest? createClusterSdnRollbackRequest = default(CreateClusterSdnRollbackRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnRollbackWithHttpInfo(createClusterSdnRollbackRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnRollback Rollback pending changes to SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnRollbackWithHttpInfo(CreateClusterSdnRollbackRequest? createClusterSdnRollbackRequest = default(CreateClusterSdnRollbackRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnRollbackRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnRollback"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/rollback", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnRollback", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnRollback Rollback pending changes to SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnRollbackAsync(CreateClusterSdnRollbackRequest? createClusterSdnRollbackRequest = default(CreateClusterSdnRollbackRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnRollbackWithHttpInfoAsync(createClusterSdnRollbackRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnRollback Rollback pending changes to SDN configuration + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnRollbackWithHttpInfoAsync(CreateClusterSdnRollbackRequest? createClusterSdnRollbackRequest = default(CreateClusterSdnRollbackRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createClusterSdnRollbackRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnRollback"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/rollback", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnRollback", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnVnetsSingleFirewallRules Create new rule. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnVnetsSingleFirewallRules(string vnet, CreateClusterSdnVnetsSingleFirewallRulesRequest? createClusterSdnVnetsSingleFirewallRulesRequest = default(CreateClusterSdnVnetsSingleFirewallRulesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnVnetsSingleFirewallRulesWithHttpInfo(vnet, createClusterSdnVnetsSingleFirewallRulesRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnVnetsSingleFirewallRules Create new rule. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnVnetsSingleFirewallRulesWithHttpInfo(string vnet, CreateClusterSdnVnetsSingleFirewallRulesRequest? createClusterSdnVnetsSingleFirewallRulesRequest = default(CreateClusterSdnVnetsSingleFirewallRulesRequest?), int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->CreateClusterSdnVnetsSingleFirewallRules"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = createClusterSdnVnetsSingleFirewallRulesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnVnetsSingleFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/vnets/{vnet}/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnVnetsSingleFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnVnetsSingleFirewallRules Create new rule. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnVnetsSingleFirewallRulesAsync(string vnet, CreateClusterSdnVnetsSingleFirewallRulesRequest? createClusterSdnVnetsSingleFirewallRulesRequest = default(CreateClusterSdnVnetsSingleFirewallRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnVnetsSingleFirewallRulesWithHttpInfoAsync(vnet, createClusterSdnVnetsSingleFirewallRulesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnVnetsSingleFirewallRules Create new rule. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnVnetsSingleFirewallRulesWithHttpInfoAsync(string vnet, CreateClusterSdnVnetsSingleFirewallRulesRequest? createClusterSdnVnetsSingleFirewallRulesRequest = default(CreateClusterSdnVnetsSingleFirewallRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->CreateClusterSdnVnetsSingleFirewallRules"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = createClusterSdnVnetsSingleFirewallRulesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnVnetsSingleFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/vnets/{vnet}/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnVnetsSingleFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnVnetsSingleIps Create IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnVnetsSingleIps(string vnet, CreateClusterSdnVnetsSingleIpsRequest? createClusterSdnVnetsSingleIpsRequest = default(CreateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnVnetsSingleIpsWithHttpInfo(vnet, createClusterSdnVnetsSingleIpsRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnVnetsSingleIps Create IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnVnetsSingleIpsWithHttpInfo(string vnet, CreateClusterSdnVnetsSingleIpsRequest? createClusterSdnVnetsSingleIpsRequest = default(CreateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->CreateClusterSdnVnetsSingleIps"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = createClusterSdnVnetsSingleIpsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnVnetsSingleIps"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/vnets/{vnet}/ips", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnVnetsSingleIps", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnVnetsSingleIps Create IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnVnetsSingleIpsAsync(string vnet, CreateClusterSdnVnetsSingleIpsRequest? createClusterSdnVnetsSingleIpsRequest = default(CreateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnVnetsSingleIpsWithHttpInfoAsync(vnet, createClusterSdnVnetsSingleIpsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnVnetsSingleIps Create IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnVnetsSingleIpsWithHttpInfoAsync(string vnet, CreateClusterSdnVnetsSingleIpsRequest? createClusterSdnVnetsSingleIpsRequest = default(CreateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->CreateClusterSdnVnetsSingleIps"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = createClusterSdnVnetsSingleIpsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnVnetsSingleIps"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/vnets/{vnet}/ips", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnVnetsSingleIps", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnVnetsSingleSubnets Create a new sdn subnet object. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateClusterSdnVnetsSingleSubnets(string vnet, CreateClusterSdnVnetsSingleSubnetsRequest? createClusterSdnVnetsSingleSubnetsRequest = default(CreateClusterSdnVnetsSingleSubnetsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateClusterSdnVnetsSingleSubnetsWithHttpInfo(vnet, createClusterSdnVnetsSingleSubnetsRequest); + return localVarResponse.Data; + } + + /// + /// createClusterSdnVnetsSingleSubnets Create a new sdn subnet object. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateClusterSdnVnetsSingleSubnetsWithHttpInfo(string vnet, CreateClusterSdnVnetsSingleSubnetsRequest? createClusterSdnVnetsSingleSubnetsRequest = default(CreateClusterSdnVnetsSingleSubnetsRequest?), int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->CreateClusterSdnVnetsSingleSubnets"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = createClusterSdnVnetsSingleSubnetsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnVnetsSingleSubnets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/cluster/sdn/vnets/{vnet}/subnets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnVnetsSingleSubnets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createClusterSdnVnetsSingleSubnets Create a new sdn subnet object. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateClusterSdnVnetsSingleSubnetsAsync(string vnet, CreateClusterSdnVnetsSingleSubnetsRequest? createClusterSdnVnetsSingleSubnetsRequest = default(CreateClusterSdnVnetsSingleSubnetsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateClusterSdnVnetsSingleSubnetsWithHttpInfoAsync(vnet, createClusterSdnVnetsSingleSubnetsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createClusterSdnVnetsSingleSubnets Create a new sdn subnet object. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateClusterSdnVnetsSingleSubnetsWithHttpInfoAsync(string vnet, CreateClusterSdnVnetsSingleSubnetsRequest? createClusterSdnVnetsSingleSubnetsRequest = default(CreateClusterSdnVnetsSingleSubnetsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->CreateClusterSdnVnetsSingleSubnets"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = createClusterSdnVnetsSingleSubnetsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateClusterSdnVnetsSingleSubnets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/cluster/sdn/vnets/{vnet}/subnets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateClusterSdnVnetsSingleSubnets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodeFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodeFirewallRule(string node, CreateNodeFirewallRuleRequest? createNodeFirewallRuleRequest = default(CreateNodeFirewallRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodeFirewallRuleWithHttpInfo(node, createNodeFirewallRuleRequest); + return localVarResponse.Data; + } + + /// + /// createNodeFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodeFirewallRuleWithHttpInfo(string node, CreateNodeFirewallRuleRequest? createNodeFirewallRuleRequest = default(CreateNodeFirewallRuleRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodeFirewallRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodeFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodeFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodeFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodeFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodeFirewallRuleAsync(string node, CreateNodeFirewallRuleRequest? createNodeFirewallRuleRequest = default(CreateNodeFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodeFirewallRuleWithHttpInfoAsync(node, createNodeFirewallRuleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodeFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodeFirewallRuleWithHttpInfoAsync(string node, CreateNodeFirewallRuleRequest? createNodeFirewallRuleRequest = default(CreateNodeFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodeFirewallRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodeFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodeFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodeFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleAplinfo Download appliance templates. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleAplinfo(string node, CreateNodesSingleAplinfoRequest? createNodesSingleAplinfoRequest = default(CreateNodesSingleAplinfoRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleAplinfoWithHttpInfo(node, createNodesSingleAplinfoRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleAplinfo Download appliance templates. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleAplinfoWithHttpInfo(string node, CreateNodesSingleAplinfoRequest? createNodesSingleAplinfoRequest = default(CreateNodesSingleAplinfoRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleAplinfo"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleAplinfoRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleAplinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/aplinfo", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleAplinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleAplinfo Download appliance templates. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleAplinfoAsync(string node, CreateNodesSingleAplinfoRequest? createNodesSingleAplinfoRequest = default(CreateNodesSingleAplinfoRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleAplinfoWithHttpInfoAsync(node, createNodesSingleAplinfoRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleAplinfo Download appliance templates. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleAplinfoWithHttpInfoAsync(string node, CreateNodesSingleAplinfoRequest? createNodesSingleAplinfoRequest = default(CreateNodesSingleAplinfoRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleAplinfo"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleAplinfoRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleAplinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/aplinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleAplinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleAptRepositories Change the properties of a repository. Currently only allows enabling/disabling. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleAptRepositories(string node, CreateNodesSingleAptRepositoriesRequest? createNodesSingleAptRepositoriesRequest = default(CreateNodesSingleAptRepositoriesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleAptRepositoriesWithHttpInfo(node, createNodesSingleAptRepositoriesRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleAptRepositories Change the properties of a repository. Currently only allows enabling/disabling. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleAptRepositoriesWithHttpInfo(string node, CreateNodesSingleAptRepositoriesRequest? createNodesSingleAptRepositoriesRequest = default(CreateNodesSingleAptRepositoriesRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleAptRepositories"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleAptRepositoriesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleAptRepositories"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/apt/repositories", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleAptRepositories", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleAptRepositories Change the properties of a repository. Currently only allows enabling/disabling. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleAptRepositoriesAsync(string node, CreateNodesSingleAptRepositoriesRequest? createNodesSingleAptRepositoriesRequest = default(CreateNodesSingleAptRepositoriesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleAptRepositoriesWithHttpInfoAsync(node, createNodesSingleAptRepositoriesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleAptRepositories Change the properties of a repository. Currently only allows enabling/disabling. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleAptRepositoriesWithHttpInfoAsync(string node, CreateNodesSingleAptRepositoriesRequest? createNodesSingleAptRepositoriesRequest = default(CreateNodesSingleAptRepositoriesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleAptRepositories"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleAptRepositoriesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleAptRepositories"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/apt/repositories", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleAptRepositories", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleAptUpdate This is used to resynchronize the package index files from their sources (apt-get update). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleAptUpdate(string node, CreateNodesSingleAptUpdateRequest? createNodesSingleAptUpdateRequest = default(CreateNodesSingleAptUpdateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleAptUpdateWithHttpInfo(node, createNodesSingleAptUpdateRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleAptUpdate This is used to resynchronize the package index files from their sources (apt-get update). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleAptUpdateWithHttpInfo(string node, CreateNodesSingleAptUpdateRequest? createNodesSingleAptUpdateRequest = default(CreateNodesSingleAptUpdateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleAptUpdate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleAptUpdateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleAptUpdate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/apt/update", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleAptUpdate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleAptUpdate This is used to resynchronize the package index files from their sources (apt-get update). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleAptUpdateAsync(string node, CreateNodesSingleAptUpdateRequest? createNodesSingleAptUpdateRequest = default(CreateNodesSingleAptUpdateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleAptUpdateWithHttpInfoAsync(node, createNodesSingleAptUpdateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleAptUpdate This is used to resynchronize the package index files from their sources (apt-get update). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleAptUpdateWithHttpInfoAsync(string node, CreateNodesSingleAptUpdateRequest? createNodesSingleAptUpdateRequest = default(CreateNodesSingleAptUpdateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleAptUpdate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleAptUpdateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleAptUpdate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/apt/update", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleAptUpdate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephFsSingle Create a Ceph filesystem + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephFsSingle(string name, string node, CreateNodesSingleCephFsSingleRequest? createNodesSingleCephFsSingleRequest = default(CreateNodesSingleCephFsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephFsSingleWithHttpInfo(name, node, createNodesSingleCephFsSingleRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephFsSingle Create a Ceph filesystem + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephFsSingleWithHttpInfo(string name, string node, CreateNodesSingleCephFsSingleRequest? createNodesSingleCephFsSingleRequest = default(CreateNodesSingleCephFsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->CreateNodesSingleCephFsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephFsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephFsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephFsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/fs/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephFsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephFsSingle Create a Ceph filesystem + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephFsSingleAsync(string name, string node, CreateNodesSingleCephFsSingleRequest? createNodesSingleCephFsSingleRequest = default(CreateNodesSingleCephFsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephFsSingleWithHttpInfoAsync(name, node, createNodesSingleCephFsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephFsSingle Create a Ceph filesystem + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephFsSingleWithHttpInfoAsync(string name, string node, CreateNodesSingleCephFsSingleRequest? createNodesSingleCephFsSingleRequest = default(CreateNodesSingleCephFsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->CreateNodesSingleCephFsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephFsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephFsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephFsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/fs/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephFsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephInit Create initial ceph default configuration and setup symlinks. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephInit(string node, CreateNodesSingleCephInitRequest? createNodesSingleCephInitRequest = default(CreateNodesSingleCephInitRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephInitWithHttpInfo(node, createNodesSingleCephInitRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephInit Create initial ceph default configuration and setup symlinks. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephInitWithHttpInfo(string node, CreateNodesSingleCephInitRequest? createNodesSingleCephInitRequest = default(CreateNodesSingleCephInitRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephInit"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephInitRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephInit"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/init", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephInit", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephInit Create initial ceph default configuration and setup symlinks. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephInitAsync(string node, CreateNodesSingleCephInitRequest? createNodesSingleCephInitRequest = default(CreateNodesSingleCephInitRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephInitWithHttpInfoAsync(node, createNodesSingleCephInitRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephInit Create initial ceph default configuration and setup symlinks. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephInitWithHttpInfoAsync(string node, CreateNodesSingleCephInitRequest? createNodesSingleCephInitRequest = default(CreateNodesSingleCephInitRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephInit"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephInitRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephInit"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/init", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephInit", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephMdsSingle Create Ceph Metadata Server (MDS) + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephMdsSingle(string name, string node, CreateNodesSingleCephMdsSingleRequest? createNodesSingleCephMdsSingleRequest = default(CreateNodesSingleCephMdsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephMdsSingleWithHttpInfo(name, node, createNodesSingleCephMdsSingleRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephMdsSingle Create Ceph Metadata Server (MDS) + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephMdsSingleWithHttpInfo(string name, string node, CreateNodesSingleCephMdsSingleRequest? createNodesSingleCephMdsSingleRequest = default(CreateNodesSingleCephMdsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMdsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMdsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephMdsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephMdsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/mds/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephMdsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephMdsSingle Create Ceph Metadata Server (MDS) + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephMdsSingleAsync(string name, string node, CreateNodesSingleCephMdsSingleRequest? createNodesSingleCephMdsSingleRequest = default(CreateNodesSingleCephMdsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephMdsSingleWithHttpInfoAsync(name, node, createNodesSingleCephMdsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephMdsSingle Create Ceph Metadata Server (MDS) + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephMdsSingleWithHttpInfoAsync(string name, string node, CreateNodesSingleCephMdsSingleRequest? createNodesSingleCephMdsSingleRequest = default(CreateNodesSingleCephMdsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMdsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMdsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephMdsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephMdsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/mds/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephMdsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephMgrSingle Create Ceph Manager + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephMgrSingle(string id, string node, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephMgrSingleWithHttpInfo(id, node, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephMgrSingle Create Ceph Manager + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephMgrSingleWithHttpInfo(string id, string node, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMgrSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMgrSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephMgrSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/mgr/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephMgrSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephMgrSingle Create Ceph Manager + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephMgrSingleAsync(string id, string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephMgrSingleWithHttpInfoAsync(id, node, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephMgrSingle Create Ceph Manager + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephMgrSingleWithHttpInfoAsync(string id, string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMgrSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMgrSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephMgrSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/mgr/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephMgrSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephMonSingle Create Ceph Monitor and Manager + /// + /// Thrown when fails to make API call + /// monid + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephMonSingle(string monid, string node, CreateNodesSingleCephMonSingleRequest? createNodesSingleCephMonSingleRequest = default(CreateNodesSingleCephMonSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephMonSingleWithHttpInfo(monid, node, createNodesSingleCephMonSingleRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephMonSingle Create Ceph Monitor and Manager + /// + /// Thrown when fails to make API call + /// monid + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephMonSingleWithHttpInfo(string monid, string node, CreateNodesSingleCephMonSingleRequest? createNodesSingleCephMonSingleRequest = default(CreateNodesSingleCephMonSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'monid' is set + if (monid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'monid' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMonSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMonSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("monid", ProxmoxSharp.Client.ClientUtils.ParameterToString(monid)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephMonSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephMonSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/mon/{monid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephMonSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephMonSingle Create Ceph Monitor and Manager + /// + /// Thrown when fails to make API call + /// monid + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephMonSingleAsync(string monid, string node, CreateNodesSingleCephMonSingleRequest? createNodesSingleCephMonSingleRequest = default(CreateNodesSingleCephMonSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephMonSingleWithHttpInfoAsync(monid, node, createNodesSingleCephMonSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephMonSingle Create Ceph Monitor and Manager + /// + /// Thrown when fails to make API call + /// monid + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephMonSingleWithHttpInfoAsync(string monid, string node, CreateNodesSingleCephMonSingleRequest? createNodesSingleCephMonSingleRequest = default(CreateNodesSingleCephMonSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'monid' is set + if (monid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'monid' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMonSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephMonSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("monid", ProxmoxSharp.Client.ClientUtils.ParameterToString(monid)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephMonSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephMonSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/mon/{monid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephMonSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephOsd Create OSD + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephOsd(string node, CreateNodesSingleCephOsdRequest? createNodesSingleCephOsdRequest = default(CreateNodesSingleCephOsdRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephOsdWithHttpInfo(node, createNodesSingleCephOsdRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephOsd Create OSD + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephOsdWithHttpInfo(string node, CreateNodesSingleCephOsdRequest? createNodesSingleCephOsdRequest = default(CreateNodesSingleCephOsdRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephOsd"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephOsdRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephOsd"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/osd", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephOsd", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephOsd Create OSD + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephOsdAsync(string node, CreateNodesSingleCephOsdRequest? createNodesSingleCephOsdRequest = default(CreateNodesSingleCephOsdRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephOsdWithHttpInfoAsync(node, createNodesSingleCephOsdRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephOsd Create OSD + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephOsdWithHttpInfoAsync(string node, CreateNodesSingleCephOsdRequest? createNodesSingleCephOsdRequest = default(CreateNodesSingleCephOsdRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephOsd"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephOsdRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephOsd"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/osd", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephOsd", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephOsdSingleIn ceph osd in + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephOsdSingleIn(string node, int osdid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephOsdSingleInWithHttpInfo(node, osdid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephOsdSingleIn ceph osd in + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephOsdSingleInWithHttpInfo(string node, int osdid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephOsdSingleIn"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephOsdSingleIn"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/osd/{osdid}/in", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephOsdSingleIn", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephOsdSingleIn ceph osd in + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephOsdSingleInAsync(string node, int osdid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephOsdSingleInWithHttpInfoAsync(node, osdid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephOsdSingleIn ceph osd in + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephOsdSingleInWithHttpInfoAsync(string node, int osdid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephOsdSingleIn"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephOsdSingleIn"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/osd/{osdid}/in", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephOsdSingleIn", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephOsdSingleOut ceph osd out + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephOsdSingleOut(string node, int osdid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephOsdSingleOutWithHttpInfo(node, osdid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephOsdSingleOut ceph osd out + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephOsdSingleOutWithHttpInfo(string node, int osdid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephOsdSingleOut"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephOsdSingleOut"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/osd/{osdid}/out", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephOsdSingleOut", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephOsdSingleOut ceph osd out + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephOsdSingleOutAsync(string node, int osdid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephOsdSingleOutWithHttpInfoAsync(node, osdid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephOsdSingleOut ceph osd out + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephOsdSingleOutWithHttpInfoAsync(string node, int osdid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephOsdSingleOut"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephOsdSingleOut"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/osd/{osdid}/out", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephOsdSingleOut", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephOsdSingleScrub Instruct the OSD to scrub. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephOsdSingleScrub(string node, int osdid, CreateNodesSingleCephOsdSingleScrubRequest? createNodesSingleCephOsdSingleScrubRequest = default(CreateNodesSingleCephOsdSingleScrubRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephOsdSingleScrubWithHttpInfo(node, osdid, createNodesSingleCephOsdSingleScrubRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephOsdSingleScrub Instruct the OSD to scrub. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephOsdSingleScrubWithHttpInfo(string node, int osdid, CreateNodesSingleCephOsdSingleScrubRequest? createNodesSingleCephOsdSingleScrubRequest = default(CreateNodesSingleCephOsdSingleScrubRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephOsdSingleScrub"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephOsdSingleScrubRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephOsdSingleScrub"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/osd/{osdid}/scrub", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephOsdSingleScrub", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephOsdSingleScrub Instruct the OSD to scrub. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephOsdSingleScrubAsync(string node, int osdid, CreateNodesSingleCephOsdSingleScrubRequest? createNodesSingleCephOsdSingleScrubRequest = default(CreateNodesSingleCephOsdSingleScrubRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephOsdSingleScrubWithHttpInfoAsync(node, osdid, createNodesSingleCephOsdSingleScrubRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephOsdSingleScrub Instruct the OSD to scrub. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephOsdSingleScrubWithHttpInfoAsync(string node, int osdid, CreateNodesSingleCephOsdSingleScrubRequest? createNodesSingleCephOsdSingleScrubRequest = default(CreateNodesSingleCephOsdSingleScrubRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephOsdSingleScrub"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephOsdSingleScrubRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephOsdSingleScrub"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/osd/{osdid}/scrub", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephOsdSingleScrub", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephPool Create Ceph pool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephPool(string node, CreateNodesSingleCephPoolRequest? createNodesSingleCephPoolRequest = default(CreateNodesSingleCephPoolRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephPoolWithHttpInfo(node, createNodesSingleCephPoolRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephPool Create Ceph pool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephPoolWithHttpInfo(string node, CreateNodesSingleCephPoolRequest? createNodesSingleCephPoolRequest = default(CreateNodesSingleCephPoolRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephPool"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephPoolRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephPool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/pool", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephPool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephPool Create Ceph pool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephPoolAsync(string node, CreateNodesSingleCephPoolRequest? createNodesSingleCephPoolRequest = default(CreateNodesSingleCephPoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephPoolWithHttpInfoAsync(node, createNodesSingleCephPoolRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephPool Create Ceph pool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephPoolWithHttpInfoAsync(string node, CreateNodesSingleCephPoolRequest? createNodesSingleCephPoolRequest = default(CreateNodesSingleCephPoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephPool"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephPoolRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephPool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/pool", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephPool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephRestart Restart ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephRestart(string node, CreateNodesSingleCephRestartRequest? createNodesSingleCephRestartRequest = default(CreateNodesSingleCephRestartRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephRestartWithHttpInfo(node, createNodesSingleCephRestartRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephRestart Restart ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephRestartWithHttpInfo(string node, CreateNodesSingleCephRestartRequest? createNodesSingleCephRestartRequest = default(CreateNodesSingleCephRestartRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephRestart"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephRestartRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephRestart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/restart", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephRestart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephRestart Restart ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephRestartAsync(string node, CreateNodesSingleCephRestartRequest? createNodesSingleCephRestartRequest = default(CreateNodesSingleCephRestartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephRestartWithHttpInfoAsync(node, createNodesSingleCephRestartRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephRestart Restart ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephRestartWithHttpInfoAsync(string node, CreateNodesSingleCephRestartRequest? createNodesSingleCephRestartRequest = default(CreateNodesSingleCephRestartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephRestart"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephRestartRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephRestart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/restart", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephRestart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephStart Start ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephStart(string node, CreateNodesSingleCephStartRequest? createNodesSingleCephStartRequest = default(CreateNodesSingleCephStartRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephStartWithHttpInfo(node, createNodesSingleCephStartRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephStart Start ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephStartWithHttpInfo(string node, CreateNodesSingleCephStartRequest? createNodesSingleCephStartRequest = default(CreateNodesSingleCephStartRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephStart"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephStartRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephStart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/start", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephStart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephStart Start ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephStartAsync(string node, CreateNodesSingleCephStartRequest? createNodesSingleCephStartRequest = default(CreateNodesSingleCephStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephStartWithHttpInfoAsync(node, createNodesSingleCephStartRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephStart Start ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephStartWithHttpInfoAsync(string node, CreateNodesSingleCephStartRequest? createNodesSingleCephStartRequest = default(CreateNodesSingleCephStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephStart"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephStartRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephStart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/start", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephStart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephStop Stop ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCephStop(string node, CreateNodesSingleCephStopRequest? createNodesSingleCephStopRequest = default(CreateNodesSingleCephStopRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCephStopWithHttpInfo(node, createNodesSingleCephStopRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephStop Stop ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCephStopWithHttpInfo(string node, CreateNodesSingleCephStopRequest? createNodesSingleCephStopRequest = default(CreateNodesSingleCephStopRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephStop"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephStopRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephStop"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/ceph/stop", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephStop", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCephStop Stop ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCephStopAsync(string node, CreateNodesSingleCephStopRequest? createNodesSingleCephStopRequest = default(CreateNodesSingleCephStopRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCephStopWithHttpInfoAsync(node, createNodesSingleCephStopRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCephStop Stop ceph services. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCephStopWithHttpInfoAsync(string node, CreateNodesSingleCephStopRequest? createNodesSingleCephStopRequest = default(CreateNodesSingleCephStopRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCephStop"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCephStopRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCephStop"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/ceph/stop", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCephStop", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCertificatesAcmeCertificate Order a new certificate from ACME-compatible CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleCertificatesAcmeCertificate(string node, CreateNodesSingleCertificatesAcmeCertificateRequest? createNodesSingleCertificatesAcmeCertificateRequest = default(CreateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCertificatesAcmeCertificateWithHttpInfo(node, createNodesSingleCertificatesAcmeCertificateRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCertificatesAcmeCertificate Order a new certificate from ACME-compatible CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCertificatesAcmeCertificateWithHttpInfo(string node, CreateNodesSingleCertificatesAcmeCertificateRequest? createNodesSingleCertificatesAcmeCertificateRequest = default(CreateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCertificatesAcmeCertificate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCertificatesAcmeCertificateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCertificatesAcmeCertificate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/certificates/acme/certificate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCertificatesAcmeCertificate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCertificatesAcmeCertificate Order a new certificate from ACME-compatible CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleCertificatesAcmeCertificateAsync(string node, CreateNodesSingleCertificatesAcmeCertificateRequest? createNodesSingleCertificatesAcmeCertificateRequest = default(CreateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(node, createNodesSingleCertificatesAcmeCertificateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCertificatesAcmeCertificate Order a new certificate from ACME-compatible CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(string node, CreateNodesSingleCertificatesAcmeCertificateRequest? createNodesSingleCertificatesAcmeCertificateRequest = default(CreateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCertificatesAcmeCertificate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCertificatesAcmeCertificateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCertificatesAcmeCertificate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/certificates/acme/certificate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCertificatesAcmeCertificate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCertificatesCustom Upload or update custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleCertificatesCustom200Response + public CreateNodesSingleCertificatesCustom200Response CreateNodesSingleCertificatesCustom(string node, CreateNodesSingleCertificatesCustomRequest? createNodesSingleCertificatesCustomRequest = default(CreateNodesSingleCertificatesCustomRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleCertificatesCustomWithHttpInfo(node, createNodesSingleCertificatesCustomRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCertificatesCustom Upload or update custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleCertificatesCustom200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleCertificatesCustomWithHttpInfo(string node, CreateNodesSingleCertificatesCustomRequest? createNodesSingleCertificatesCustomRequest = default(CreateNodesSingleCertificatesCustomRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCertificatesCustom"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCertificatesCustomRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCertificatesCustom"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/certificates/custom", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCertificatesCustom", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleCertificatesCustom Upload or update custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleCertificatesCustom200Response + public async System.Threading.Tasks.Task CreateNodesSingleCertificatesCustomAsync(string node, CreateNodesSingleCertificatesCustomRequest? createNodesSingleCertificatesCustomRequest = default(CreateNodesSingleCertificatesCustomRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleCertificatesCustomWithHttpInfoAsync(node, createNodesSingleCertificatesCustomRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleCertificatesCustom Upload or update custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleCertificatesCustom200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleCertificatesCustomWithHttpInfoAsync(string node, CreateNodesSingleCertificatesCustomRequest? createNodesSingleCertificatesCustomRequest = default(CreateNodesSingleCertificatesCustomRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleCertificatesCustom"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleCertificatesCustomRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleCertificatesCustom"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/certificates/custom", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleCertificatesCustom", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksDirectory Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleDisksDirectory(string node, CreateNodesSingleDisksDirectoryRequest? createNodesSingleDisksDirectoryRequest = default(CreateNodesSingleDisksDirectoryRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleDisksDirectoryWithHttpInfo(node, createNodesSingleDisksDirectoryRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksDirectory Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleDisksDirectoryWithHttpInfo(string node, CreateNodesSingleDisksDirectoryRequest? createNodesSingleDisksDirectoryRequest = default(CreateNodesSingleDisksDirectoryRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksDirectory"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksDirectoryRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksDirectory"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/disks/directory", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksDirectory", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksDirectory Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleDisksDirectoryAsync(string node, CreateNodesSingleDisksDirectoryRequest? createNodesSingleDisksDirectoryRequest = default(CreateNodesSingleDisksDirectoryRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleDisksDirectoryWithHttpInfoAsync(node, createNodesSingleDisksDirectoryRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksDirectory Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleDisksDirectoryWithHttpInfoAsync(string node, CreateNodesSingleDisksDirectoryRequest? createNodesSingleDisksDirectoryRequest = default(CreateNodesSingleDisksDirectoryRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksDirectory"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksDirectoryRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksDirectory"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/disks/directory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksDirectory", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksInitgpt Initialize Disk with GPT + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleDisksInitgpt(string node, CreateNodesSingleDisksInitgptRequest? createNodesSingleDisksInitgptRequest = default(CreateNodesSingleDisksInitgptRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleDisksInitgptWithHttpInfo(node, createNodesSingleDisksInitgptRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksInitgpt Initialize Disk with GPT + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleDisksInitgptWithHttpInfo(string node, CreateNodesSingleDisksInitgptRequest? createNodesSingleDisksInitgptRequest = default(CreateNodesSingleDisksInitgptRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksInitgpt"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksInitgptRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksInitgpt"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/disks/initgpt", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksInitgpt", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksInitgpt Initialize Disk with GPT + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleDisksInitgptAsync(string node, CreateNodesSingleDisksInitgptRequest? createNodesSingleDisksInitgptRequest = default(CreateNodesSingleDisksInitgptRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleDisksInitgptWithHttpInfoAsync(node, createNodesSingleDisksInitgptRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksInitgpt Initialize Disk with GPT + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleDisksInitgptWithHttpInfoAsync(string node, CreateNodesSingleDisksInitgptRequest? createNodesSingleDisksInitgptRequest = default(CreateNodesSingleDisksInitgptRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksInitgpt"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksInitgptRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksInitgpt"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/disks/initgpt", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksInitgpt", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksLvm Create an LVM Volume Group + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleDisksLvm(string node, CreateNodesSingleDisksLvmRequest? createNodesSingleDisksLvmRequest = default(CreateNodesSingleDisksLvmRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleDisksLvmWithHttpInfo(node, createNodesSingleDisksLvmRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksLvm Create an LVM Volume Group + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleDisksLvmWithHttpInfo(string node, CreateNodesSingleDisksLvmRequest? createNodesSingleDisksLvmRequest = default(CreateNodesSingleDisksLvmRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksLvm"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksLvmRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksLvm"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/disks/lvm", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksLvm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksLvm Create an LVM Volume Group + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleDisksLvmAsync(string node, CreateNodesSingleDisksLvmRequest? createNodesSingleDisksLvmRequest = default(CreateNodesSingleDisksLvmRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleDisksLvmWithHttpInfoAsync(node, createNodesSingleDisksLvmRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksLvm Create an LVM Volume Group + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleDisksLvmWithHttpInfoAsync(string node, CreateNodesSingleDisksLvmRequest? createNodesSingleDisksLvmRequest = default(CreateNodesSingleDisksLvmRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksLvm"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksLvmRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksLvm"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/disks/lvm", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksLvm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksLvmthin Create an LVM thinpool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleDisksLvmthin(string node, CreateNodesSingleDisksLvmthinRequest? createNodesSingleDisksLvmthinRequest = default(CreateNodesSingleDisksLvmthinRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleDisksLvmthinWithHttpInfo(node, createNodesSingleDisksLvmthinRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksLvmthin Create an LVM thinpool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleDisksLvmthinWithHttpInfo(string node, CreateNodesSingleDisksLvmthinRequest? createNodesSingleDisksLvmthinRequest = default(CreateNodesSingleDisksLvmthinRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksLvmthin"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksLvmthinRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksLvmthin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/disks/lvmthin", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksLvmthin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksLvmthin Create an LVM thinpool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleDisksLvmthinAsync(string node, CreateNodesSingleDisksLvmthinRequest? createNodesSingleDisksLvmthinRequest = default(CreateNodesSingleDisksLvmthinRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleDisksLvmthinWithHttpInfoAsync(node, createNodesSingleDisksLvmthinRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksLvmthin Create an LVM thinpool + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleDisksLvmthinWithHttpInfoAsync(string node, CreateNodesSingleDisksLvmthinRequest? createNodesSingleDisksLvmthinRequest = default(CreateNodesSingleDisksLvmthinRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksLvmthin"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksLvmthinRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksLvmthin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/disks/lvmthin", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksLvmthin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksZfs Create a ZFS pool. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleDisksZfs(string node, CreateNodesSingleDisksZfsRequest? createNodesSingleDisksZfsRequest = default(CreateNodesSingleDisksZfsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleDisksZfsWithHttpInfo(node, createNodesSingleDisksZfsRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksZfs Create a ZFS pool. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleDisksZfsWithHttpInfo(string node, CreateNodesSingleDisksZfsRequest? createNodesSingleDisksZfsRequest = default(CreateNodesSingleDisksZfsRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksZfs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksZfsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksZfs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/disks/zfs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksZfs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleDisksZfs Create a ZFS pool. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleDisksZfsAsync(string node, CreateNodesSingleDisksZfsRequest? createNodesSingleDisksZfsRequest = default(CreateNodesSingleDisksZfsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleDisksZfsWithHttpInfoAsync(node, createNodesSingleDisksZfsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleDisksZfs Create a ZFS pool. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleDisksZfsWithHttpInfoAsync(string node, CreateNodesSingleDisksZfsRequest? createNodesSingleDisksZfsRequest = default(CreateNodesSingleDisksZfsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleDisksZfs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleDisksZfsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleDisksZfs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/disks/zfs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleDisksZfs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleExecute Execute multiple commands in order, root only. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response CreateNodesSingleExecute(string node, CreateNodesSingleExecuteRequest? createNodesSingleExecuteRequest = default(CreateNodesSingleExecuteRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleExecuteWithHttpInfo(node, createNodesSingleExecuteRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleExecute Execute multiple commands in order, root only. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleExecuteWithHttpInfo(string node, CreateNodesSingleExecuteRequest? createNodesSingleExecuteRequest = default(CreateNodesSingleExecuteRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleExecute"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleExecuteRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleExecute"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/execute", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleExecute", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleExecute Execute multiple commands in order, root only. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task CreateNodesSingleExecuteAsync(string node, CreateNodesSingleExecuteRequest? createNodesSingleExecuteRequest = default(CreateNodesSingleExecuteRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleExecuteWithHttpInfoAsync(node, createNodesSingleExecuteRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleExecute Execute multiple commands in order, root only. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleExecuteWithHttpInfoAsync(string node, CreateNodesSingleExecuteRequest? createNodesSingleExecuteRequest = default(CreateNodesSingleExecuteRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleExecute"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleExecuteRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleExecute"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/execute", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleExecute", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleHosts Write /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleHosts(string node, CreateNodesSingleHostsRequest? createNodesSingleHostsRequest = default(CreateNodesSingleHostsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleHostsWithHttpInfo(node, createNodesSingleHostsRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleHosts Write /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleHostsWithHttpInfo(string node, CreateNodesSingleHostsRequest? createNodesSingleHostsRequest = default(CreateNodesSingleHostsRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleHosts"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleHostsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleHosts"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/hosts", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleHosts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleHosts Write /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleHostsAsync(string node, CreateNodesSingleHostsRequest? createNodesSingleHostsRequest = default(CreateNodesSingleHostsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleHostsWithHttpInfoAsync(node, createNodesSingleHostsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleHosts Write /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleHostsWithHttpInfoAsync(string node, CreateNodesSingleHostsRequest? createNodesSingleHostsRequest = default(CreateNodesSingleHostsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleHosts"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleHostsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleHosts"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/hosts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleHosts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxc Create or restore a container. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxc(string node, CreateNodesSingleLxcRequest? createNodesSingleLxcRequest = default(CreateNodesSingleLxcRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcWithHttpInfo(node, createNodesSingleLxcRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxc Create or restore a container. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcWithHttpInfo(string node, CreateNodesSingleLxcRequest? createNodesSingleLxcRequest = default(CreateNodesSingleLxcRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxc"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxc"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxc", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxc Create or restore a container. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcAsync(string node, CreateNodesSingleLxcRequest? createNodesSingleLxcRequest = default(CreateNodesSingleLxcRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcWithHttpInfoAsync(node, createNodesSingleLxcRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxc Create or restore a container. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcWithHttpInfoAsync(string node, CreateNodesSingleLxcRequest? createNodesSingleLxcRequest = default(CreateNodesSingleLxcRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxc"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxc"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxc", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleClone Create a container clone/copy + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleClone(string node, int vmid, CreateNodesSingleLxcSingleCloneRequest? createNodesSingleLxcSingleCloneRequest = default(CreateNodesSingleLxcSingleCloneRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleCloneWithHttpInfo(node, vmid, createNodesSingleLxcSingleCloneRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleClone Create a container clone/copy + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleCloneWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleCloneRequest? createNodesSingleLxcSingleCloneRequest = default(CreateNodesSingleLxcSingleCloneRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleClone"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleCloneRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleClone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/clone", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleClone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleClone Create a container clone/copy + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleCloneAsync(string node, int vmid, CreateNodesSingleLxcSingleCloneRequest? createNodesSingleLxcSingleCloneRequest = default(CreateNodesSingleLxcSingleCloneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleCloneWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleCloneRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleClone Create a container clone/copy + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleCloneWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleCloneRequest? createNodesSingleLxcSingleCloneRequest = default(CreateNodesSingleLxcSingleCloneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleClone"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleCloneRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleClone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/clone", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleClone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleFirewallAliases(string node, int vmid, CreateNodesSingleLxcSingleFirewallAliasesRequest? createNodesSingleLxcSingleFirewallAliasesRequest = default(CreateNodesSingleLxcSingleFirewallAliasesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleFirewallAliasesWithHttpInfo(node, vmid, createNodesSingleLxcSingleFirewallAliasesRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleFirewallAliasesWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleFirewallAliasesRequest? createNodesSingleLxcSingleFirewallAliasesRequest = default(CreateNodesSingleLxcSingleFirewallAliasesRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallAliases"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleFirewallAliasesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/firewall/aliases", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleFirewallAliasesAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallAliasesRequest? createNodesSingleLxcSingleFirewallAliasesRequest = default(CreateNodesSingleLxcSingleFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleFirewallAliasesWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleFirewallAliasesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleFirewallAliasesWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallAliasesRequest? createNodesSingleLxcSingleFirewallAliasesRequest = default(CreateNodesSingleLxcSingleFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallAliases"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleFirewallAliasesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/firewall/aliases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleFirewallIpset Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleFirewallIpset(string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetRequest? createNodesSingleLxcSingleFirewallIpsetRequest = default(CreateNodesSingleLxcSingleFirewallIpsetRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleFirewallIpsetWithHttpInfo(node, vmid, createNodesSingleLxcSingleFirewallIpsetRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleFirewallIpset Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleFirewallIpsetWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetRequest? createNodesSingleLxcSingleFirewallIpsetRequest = default(CreateNodesSingleLxcSingleFirewallIpsetRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallIpset"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleFirewallIpsetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleFirewallIpset"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/firewall/ipset", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleFirewallIpset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleFirewallIpset Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleFirewallIpsetAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetRequest? createNodesSingleLxcSingleFirewallIpsetRequest = default(CreateNodesSingleLxcSingleFirewallIpsetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleFirewallIpsetWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleFirewallIpsetRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleFirewallIpset Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleFirewallIpsetWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetRequest? createNodesSingleLxcSingleFirewallIpsetRequest = default(CreateNodesSingleLxcSingleFirewallIpsetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallIpset"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleFirewallIpsetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleFirewallIpset"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/firewall/ipset", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleFirewallIpset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleFirewallIpsetSingle Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleFirewallIpsetSingle(string name, string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetSingleRequest? createNodesSingleLxcSingleFirewallIpsetSingleRequest = default(CreateNodesSingleLxcSingleFirewallIpsetSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(name, node, vmid, createNodesSingleLxcSingleFirewallIpsetSingleRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleFirewallIpsetSingle Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(string name, string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetSingleRequest? createNodesSingleLxcSingleFirewallIpsetSingleRequest = default(CreateNodesSingleLxcSingleFirewallIpsetSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallIpsetSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallIpsetSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleFirewallIpsetSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleFirewallIpsetSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleFirewallIpsetSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleFirewallIpsetSingle Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleFirewallIpsetSingleAsync(string name, string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetSingleRequest? createNodesSingleLxcSingleFirewallIpsetSingleRequest = default(CreateNodesSingleLxcSingleFirewallIpsetSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(name, node, vmid, createNodesSingleLxcSingleFirewallIpsetSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleFirewallIpsetSingle Add IP or Network to IPSet. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(string name, string node, int vmid, CreateNodesSingleLxcSingleFirewallIpsetSingleRequest? createNodesSingleLxcSingleFirewallIpsetSingleRequest = default(CreateNodesSingleLxcSingleFirewallIpsetSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallIpsetSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallIpsetSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleFirewallIpsetSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleFirewallIpsetSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleFirewallIpsetSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleFirewallRules Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleFirewallRules(string node, int vmid, CreateNodesSingleLxcSingleFirewallRulesRequest? createNodesSingleLxcSingleFirewallRulesRequest = default(CreateNodesSingleLxcSingleFirewallRulesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleFirewallRulesWithHttpInfo(node, vmid, createNodesSingleLxcSingleFirewallRulesRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleFirewallRules Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleFirewallRulesWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleFirewallRulesRequest? createNodesSingleLxcSingleFirewallRulesRequest = default(CreateNodesSingleLxcSingleFirewallRulesRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallRules"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleFirewallRulesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleFirewallRules Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleFirewallRulesAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallRulesRequest? createNodesSingleLxcSingleFirewallRulesRequest = default(CreateNodesSingleLxcSingleFirewallRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleFirewallRulesWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleFirewallRulesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleFirewallRules Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleFirewallRulesWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleFirewallRulesRequest? createNodesSingleLxcSingleFirewallRulesRequest = default(CreateNodesSingleLxcSingleFirewallRulesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleFirewallRules"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleFirewallRulesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleMigrate Migrate the container to another node. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleLxcSingleMigrate(string node, int vmid, CreateNodesSingleLxcSingleMigrateRequest? createNodesSingleLxcSingleMigrateRequest = default(CreateNodesSingleLxcSingleMigrateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleMigrateWithHttpInfo(node, vmid, createNodesSingleLxcSingleMigrateRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleMigrate Migrate the container to another node. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleMigrateWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleMigrateRequest? createNodesSingleLxcSingleMigrateRequest = default(CreateNodesSingleLxcSingleMigrateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleMigrate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleMigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/migrate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleMigrate Migrate the container to another node. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleMigrateAsync(string node, int vmid, CreateNodesSingleLxcSingleMigrateRequest? createNodesSingleLxcSingleMigrateRequest = default(CreateNodesSingleLxcSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleMigrateWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleMigrateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleMigrate Migrate the container to another node. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleMigrateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleMigrateRequest? createNodesSingleLxcSingleMigrateRequest = default(CreateNodesSingleLxcSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleMigrate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleMigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/migrate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleMovevolume Move a rootfs-/mp-volume to a different storage or to a different container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleMovevolume(string node, int vmid, CreateNodesSingleLxcSingleMovevolumeRequest? createNodesSingleLxcSingleMovevolumeRequest = default(CreateNodesSingleLxcSingleMovevolumeRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleMovevolumeWithHttpInfo(node, vmid, createNodesSingleLxcSingleMovevolumeRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleMovevolume Move a rootfs-/mp-volume to a different storage or to a different container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleMovevolumeWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleMovevolumeRequest? createNodesSingleLxcSingleMovevolumeRequest = default(CreateNodesSingleLxcSingleMovevolumeRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleMovevolume"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleMovevolumeRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleMovevolume"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/move_volume", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleMovevolume", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleMovevolume Move a rootfs-/mp-volume to a different storage or to a different container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleMovevolumeAsync(string node, int vmid, CreateNodesSingleLxcSingleMovevolumeRequest? createNodesSingleLxcSingleMovevolumeRequest = default(CreateNodesSingleLxcSingleMovevolumeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleMovevolumeWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleMovevolumeRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleMovevolume Move a rootfs-/mp-volume to a different storage or to a different container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleMovevolumeWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleMovevolumeRequest? createNodesSingleLxcSingleMovevolumeRequest = default(CreateNodesSingleLxcSingleMovevolumeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleMovevolume"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleMovevolumeRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleMovevolume"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/move_volume", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleMovevolume", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleMtunnel Migration tunnel endpoint - only for internal use by CT migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleMtunnel(string node, int vmid, CreateNodesSingleLxcSingleMtunnelRequest? createNodesSingleLxcSingleMtunnelRequest = default(CreateNodesSingleLxcSingleMtunnelRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleMtunnelWithHttpInfo(node, vmid, createNodesSingleLxcSingleMtunnelRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleMtunnel Migration tunnel endpoint - only for internal use by CT migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleMtunnelWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleMtunnelRequest? createNodesSingleLxcSingleMtunnelRequest = default(CreateNodesSingleLxcSingleMtunnelRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleMtunnel"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleMtunnelRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleMtunnel"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/mtunnel", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleMtunnel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleMtunnel Migration tunnel endpoint - only for internal use by CT migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleMtunnelAsync(string node, int vmid, CreateNodesSingleLxcSingleMtunnelRequest? createNodesSingleLxcSingleMtunnelRequest = default(CreateNodesSingleLxcSingleMtunnelRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleMtunnelWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleMtunnelRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleMtunnel Migration tunnel endpoint - only for internal use by CT migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleMtunnelWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleMtunnelRequest? createNodesSingleLxcSingleMtunnelRequest = default(CreateNodesSingleLxcSingleMtunnelRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleMtunnel"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleMtunnelRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleMtunnel"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/mtunnel", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleMtunnel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleRemotemigrate Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleLxcSingleRemotemigrate(string node, int vmid, CreateNodesSingleLxcSingleRemotemigrateRequest? createNodesSingleLxcSingleRemotemigrateRequest = default(CreateNodesSingleLxcSingleRemotemigrateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleRemotemigrateWithHttpInfo(node, vmid, createNodesSingleLxcSingleRemotemigrateRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleRemotemigrate Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleRemotemigrateWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleRemotemigrateRequest? createNodesSingleLxcSingleRemotemigrateRequest = default(CreateNodesSingleLxcSingleRemotemigrateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleRemotemigrate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleRemotemigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleRemotemigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/remote_migrate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleRemotemigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleRemotemigrate Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleRemotemigrateAsync(string node, int vmid, CreateNodesSingleLxcSingleRemotemigrateRequest? createNodesSingleLxcSingleRemotemigrateRequest = default(CreateNodesSingleLxcSingleRemotemigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleRemotemigrateWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleRemotemigrateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleRemotemigrate Migrate the container to another cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleRemotemigrateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleRemotemigrateRequest? createNodesSingleLxcSingleRemotemigrateRequest = default(CreateNodesSingleLxcSingleRemotemigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleRemotemigrate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleRemotemigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleRemotemigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/remote_migrate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleRemotemigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleSnapshot Snapshot a container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleLxcSingleSnapshot(string node, int vmid, CreateNodesSingleLxcSingleSnapshotRequest? createNodesSingleLxcSingleSnapshotRequest = default(CreateNodesSingleLxcSingleSnapshotRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleSnapshotWithHttpInfo(node, vmid, createNodesSingleLxcSingleSnapshotRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleSnapshot Snapshot a container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleSnapshotWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleSnapshotRequest? createNodesSingleLxcSingleSnapshotRequest = default(CreateNodesSingleLxcSingleSnapshotRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleSnapshot"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleSnapshotRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/snapshot", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleSnapshot Snapshot a container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleSnapshotAsync(string node, int vmid, CreateNodesSingleLxcSingleSnapshotRequest? createNodesSingleLxcSingleSnapshotRequest = default(CreateNodesSingleLxcSingleSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleSnapshotWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleSnapshotRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleSnapshot Snapshot a container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleSnapshotWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleSnapshotRequest? createNodesSingleLxcSingleSnapshotRequest = default(CreateNodesSingleLxcSingleSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleSnapshot"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleSnapshotRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/snapshot", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleSnapshotSingleRollback Rollback LXC state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleLxcSingleSnapshotSingleRollback(string node, string snapname, int vmid, CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest? createNodesSingleLxcSingleSnapshotSingleRollbackRequest = default(CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleSnapshotSingleRollbackWithHttpInfo(node, snapname, vmid, createNodesSingleLxcSingleSnapshotSingleRollbackRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleSnapshotSingleRollback Rollback LXC state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleSnapshotSingleRollbackWithHttpInfo(string node, string snapname, int vmid, CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest? createNodesSingleLxcSingleSnapshotSingleRollbackRequest = default(CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleSnapshotSingleRollback"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleSnapshotSingleRollback"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleSnapshotSingleRollbackRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleSnapshotSingleRollback"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/rollback", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleSnapshotSingleRollback", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleSnapshotSingleRollback Rollback LXC state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleSnapshotSingleRollbackAsync(string node, string snapname, int vmid, CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest? createNodesSingleLxcSingleSnapshotSingleRollbackRequest = default(CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleSnapshotSingleRollbackWithHttpInfoAsync(node, snapname, vmid, createNodesSingleLxcSingleSnapshotSingleRollbackRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleSnapshotSingleRollback Rollback LXC state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleSnapshotSingleRollbackWithHttpInfoAsync(string node, string snapname, int vmid, CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest? createNodesSingleLxcSingleSnapshotSingleRollbackRequest = default(CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleSnapshotSingleRollback"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleSnapshotSingleRollback"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleSnapshotSingleRollbackRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleSnapshotSingleRollback"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/rollback", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleSnapshotSingleRollback", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleSpiceproxy Returns a SPICE configuration to connect to the CT. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleSpiceproxy200Response + public CreateNodesSingleQemuSingleSpiceproxy200Response CreateNodesSingleLxcSingleSpiceproxy(string node, int vmid, CreateNodesSingleLxcSingleSpiceproxyRequest? createNodesSingleLxcSingleSpiceproxyRequest = default(CreateNodesSingleLxcSingleSpiceproxyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleSpiceproxyWithHttpInfo(node, vmid, createNodesSingleLxcSingleSpiceproxyRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleSpiceproxy Returns a SPICE configuration to connect to the CT. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleSpiceproxy200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleSpiceproxyWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleSpiceproxyRequest? createNodesSingleLxcSingleSpiceproxyRequest = default(CreateNodesSingleLxcSingleSpiceproxyRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleSpiceproxy"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleSpiceproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleSpiceproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/spiceproxy", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleSpiceproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleSpiceproxy Returns a SPICE configuration to connect to the CT. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleSpiceproxy200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleSpiceproxyAsync(string node, int vmid, CreateNodesSingleLxcSingleSpiceproxyRequest? createNodesSingleLxcSingleSpiceproxyRequest = default(CreateNodesSingleLxcSingleSpiceproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleSpiceproxyWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleSpiceproxyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleSpiceproxy Returns a SPICE configuration to connect to the CT. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleSpiceproxy200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleSpiceproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleSpiceproxyRequest? createNodesSingleLxcSingleSpiceproxyRequest = default(CreateNodesSingleLxcSingleSpiceproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleSpiceproxy"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleSpiceproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleSpiceproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/spiceproxy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleSpiceproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusReboot Reboot the container by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusReboot(string node, int vmid, CreateNodesSingleLxcSingleStatusRebootRequest? createNodesSingleLxcSingleStatusRebootRequest = default(CreateNodesSingleLxcSingleStatusRebootRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleStatusRebootWithHttpInfo(node, vmid, createNodesSingleLxcSingleStatusRebootRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusReboot Reboot the container by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleStatusRebootWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleStatusRebootRequest? createNodesSingleLxcSingleStatusRebootRequest = default(CreateNodesSingleLxcSingleStatusRebootRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusReboot"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleStatusRebootRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusReboot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/status/reboot", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusReboot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusReboot Reboot the container by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusRebootAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusRebootRequest? createNodesSingleLxcSingleStatusRebootRequest = default(CreateNodesSingleLxcSingleStatusRebootRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleStatusRebootWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleStatusRebootRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusReboot Reboot the container by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusRebootWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusRebootRequest? createNodesSingleLxcSingleStatusRebootRequest = default(CreateNodesSingleLxcSingleStatusRebootRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusReboot"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleStatusRebootRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusReboot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/status/reboot", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusReboot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusResume Resume the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusResume(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleStatusResumeWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusResume Resume the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleStatusResumeWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusResume"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusResume"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/status/resume", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusResume", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusResume Resume the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusResumeAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleStatusResumeWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusResume Resume the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusResumeWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusResume"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusResume"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/status/resume", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusResume", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusShutdown Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusShutdown(string node, int vmid, CreateNodesSingleLxcSingleStatusShutdownRequest? createNodesSingleLxcSingleStatusShutdownRequest = default(CreateNodesSingleLxcSingleStatusShutdownRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleStatusShutdownWithHttpInfo(node, vmid, createNodesSingleLxcSingleStatusShutdownRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusShutdown Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleStatusShutdownWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleStatusShutdownRequest? createNodesSingleLxcSingleStatusShutdownRequest = default(CreateNodesSingleLxcSingleStatusShutdownRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusShutdown"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleStatusShutdownRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusShutdown"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/status/shutdown", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusShutdown", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusShutdown Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusShutdownAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusShutdownRequest? createNodesSingleLxcSingleStatusShutdownRequest = default(CreateNodesSingleLxcSingleStatusShutdownRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleStatusShutdownWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleStatusShutdownRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusShutdown Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusShutdownWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusShutdownRequest? createNodesSingleLxcSingleStatusShutdownRequest = default(CreateNodesSingleLxcSingleStatusShutdownRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusShutdown"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleStatusShutdownRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusShutdown"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/status/shutdown", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusShutdown", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusStart Start the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusStart(string node, int vmid, CreateNodesSingleLxcSingleStatusStartRequest? createNodesSingleLxcSingleStatusStartRequest = default(CreateNodesSingleLxcSingleStatusStartRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleStatusStartWithHttpInfo(node, vmid, createNodesSingleLxcSingleStatusStartRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusStart Start the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleStatusStartWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleStatusStartRequest? createNodesSingleLxcSingleStatusStartRequest = default(CreateNodesSingleLxcSingleStatusStartRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusStart"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleStatusStartRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusStart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/status/start", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusStart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusStart Start the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusStartAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusStartRequest? createNodesSingleLxcSingleStatusStartRequest = default(CreateNodesSingleLxcSingleStatusStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleStatusStartWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleStatusStartRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusStart Start the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusStartWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusStartRequest? createNodesSingleLxcSingleStatusStartRequest = default(CreateNodesSingleLxcSingleStatusStartRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusStart"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleStatusStartRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusStart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/status/start", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusStart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusStop Stop the container. This will abruptly stop all processes running in the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusStop(string node, int vmid, CreateNodesSingleLxcSingleStatusStopRequest? createNodesSingleLxcSingleStatusStopRequest = default(CreateNodesSingleLxcSingleStatusStopRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleStatusStopWithHttpInfo(node, vmid, createNodesSingleLxcSingleStatusStopRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusStop Stop the container. This will abruptly stop all processes running in the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleStatusStopWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleStatusStopRequest? createNodesSingleLxcSingleStatusStopRequest = default(CreateNodesSingleLxcSingleStatusStopRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusStop"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleStatusStopRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusStop"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/status/stop", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusStop", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusStop Stop the container. This will abruptly stop all processes running in the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusStopAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusStopRequest? createNodesSingleLxcSingleStatusStopRequest = default(CreateNodesSingleLxcSingleStatusStopRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleStatusStopWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleStatusStopRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusStop Stop the container. This will abruptly stop all processes running in the container. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusStopWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleStatusStopRequest? createNodesSingleLxcSingleStatusStopRequest = default(CreateNodesSingleLxcSingleStatusStopRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusStop"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleStatusStopRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusStop"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/status/stop", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusStop", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusSuspend Suspend the container. This is experimental. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleStatusSuspend(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleStatusSuspendWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusSuspend Suspend the container. This is experimental. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleStatusSuspendWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusSuspend"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusSuspend"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/status/suspend", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusSuspend", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleStatusSuspend Suspend the container. This is experimental. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleStatusSuspendAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleStatusSuspendWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleStatusSuspend Suspend the container. This is experimental. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleStatusSuspendWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleStatusSuspend"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleStatusSuspend"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/status/suspend", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleStatusSuspend", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleTemplate Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleTemplate(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleTemplateWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleTemplate Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleTemplateWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleTemplate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/template", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleTemplate Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleTemplateAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleTemplateWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleTemplate Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleTemplateWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleTemplate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleTermproxy Creates a TCP proxy connection. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleTermproxy(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleTermproxyWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleTermproxy Creates a TCP proxy connection. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleTermproxyWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleTermproxy"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleTermproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/termproxy", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleTermproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleTermproxy Creates a TCP proxy connection. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleTermproxyAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleTermproxyWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleTermproxy Creates a TCP proxy connection. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleTermproxyWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleTermproxy"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleTermproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/termproxy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleTermproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleVncproxy Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleLxcSingleVncproxy(string node, int vmid, CreateNodesSingleLxcSingleVncproxyRequest? createNodesSingleLxcSingleVncproxyRequest = default(CreateNodesSingleLxcSingleVncproxyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleLxcSingleVncproxyWithHttpInfo(node, vmid, createNodesSingleLxcSingleVncproxyRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleVncproxy Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleLxcSingleVncproxyWithHttpInfo(string node, int vmid, CreateNodesSingleLxcSingleVncproxyRequest? createNodesSingleLxcSingleVncproxyRequest = default(CreateNodesSingleLxcSingleVncproxyRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleVncproxy"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleVncproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleVncproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/lxc/{vmid}/vncproxy", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleVncproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleLxcSingleVncproxy Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleLxcSingleVncproxyAsync(string node, int vmid, CreateNodesSingleLxcSingleVncproxyRequest? createNodesSingleLxcSingleVncproxyRequest = default(CreateNodesSingleLxcSingleVncproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleLxcSingleVncproxyWithHttpInfoAsync(node, vmid, createNodesSingleLxcSingleVncproxyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleLxcSingleVncproxy Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleLxcSingleVncproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleLxcSingleVncproxyRequest? createNodesSingleLxcSingleVncproxyRequest = default(CreateNodesSingleLxcSingleVncproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleLxcSingleVncproxy"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleLxcSingleVncproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleLxcSingleVncproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/lxc/{vmid}/vncproxy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleLxcSingleVncproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleMigrateall Migrate all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleMigrateall(string node, CreateNodesSingleMigrateallRequest? createNodesSingleMigrateallRequest = default(CreateNodesSingleMigrateallRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleMigrateallWithHttpInfo(node, createNodesSingleMigrateallRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleMigrateall Migrate all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleMigrateallWithHttpInfo(string node, CreateNodesSingleMigrateallRequest? createNodesSingleMigrateallRequest = default(CreateNodesSingleMigrateallRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleMigrateall"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleMigrateallRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleMigrateall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/migrateall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleMigrateall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleMigrateall Migrate all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleMigrateallAsync(string node, CreateNodesSingleMigrateallRequest? createNodesSingleMigrateallRequest = default(CreateNodesSingleMigrateallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleMigrateallWithHttpInfoAsync(node, createNodesSingleMigrateallRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleMigrateall Migrate all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleMigrateallWithHttpInfoAsync(string node, CreateNodesSingleMigrateallRequest? createNodesSingleMigrateallRequest = default(CreateNodesSingleMigrateallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleMigrateall"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleMigrateallRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleMigrateall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/migrateall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleMigrateall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleNetwork Create network device configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleNetwork(string node, CreateNodesSingleNetworkRequest? createNodesSingleNetworkRequest = default(CreateNodesSingleNetworkRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleNetworkWithHttpInfo(node, createNodesSingleNetworkRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleNetwork Create network device configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleNetworkWithHttpInfo(string node, CreateNodesSingleNetworkRequest? createNodesSingleNetworkRequest = default(CreateNodesSingleNetworkRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleNetwork"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleNetworkRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleNetwork"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/network", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleNetwork", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleNetwork Create network device configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleNetworkAsync(string node, CreateNodesSingleNetworkRequest? createNodesSingleNetworkRequest = default(CreateNodesSingleNetworkRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleNetworkWithHttpInfoAsync(node, createNodesSingleNetworkRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleNetwork Create network device configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleNetworkWithHttpInfoAsync(string node, CreateNodesSingleNetworkRequest? createNodesSingleNetworkRequest = default(CreateNodesSingleNetworkRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleNetwork"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleNetworkRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleNetwork"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/network", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleNetwork", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgent Execute QEMU Guest Agent commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgent(string node, int vmid, CreateNodesSingleQemuSingleAgentRequest? createNodesSingleQemuSingleAgentRequest = default(CreateNodesSingleQemuSingleAgentRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentWithHttpInfo(node, vmid, createNodesSingleQemuSingleAgentRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgent Execute QEMU Guest Agent commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleAgentRequest? createNodesSingleQemuSingleAgentRequest = default(CreateNodesSingleQemuSingleAgentRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgent"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleAgentRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgent Execute QEMU Guest Agent commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentRequest? createNodesSingleQemuSingleAgentRequest = default(CreateNodesSingleQemuSingleAgentRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleAgentRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgent Execute QEMU Guest Agent commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentRequest? createNodesSingleQemuSingleAgentRequest = default(CreateNodesSingleQemuSingleAgentRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgent"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleAgentRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentExec Executes the given command in the vm via the guest-agent and returns an object with the pid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgentExec200Response + public CreateNodesSingleQemuSingleAgentExec200Response CreateNodesSingleQemuSingleAgentExec(string node, int vmid, CreateNodesSingleQemuSingleAgentExecRequest? createNodesSingleQemuSingleAgentExecRequest = default(CreateNodesSingleQemuSingleAgentExecRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentExecWithHttpInfo(node, vmid, createNodesSingleQemuSingleAgentExecRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentExec Executes the given command in the vm via the guest-agent and returns an object with the pid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgentExec200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentExecWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleAgentExecRequest? createNodesSingleQemuSingleAgentExecRequest = default(CreateNodesSingleQemuSingleAgentExecRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentExec"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleAgentExecRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentExec"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/exec", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentExec", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentExec Executes the given command in the vm via the guest-agent and returns an object with the pid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgentExec200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentExecAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentExecRequest? createNodesSingleQemuSingleAgentExecRequest = default(CreateNodesSingleQemuSingleAgentExecRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentExecWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleAgentExecRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentExec Executes the given command in the vm via the guest-agent and returns an object with the pid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgentExec200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentExecWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentExecRequest? createNodesSingleQemuSingleAgentExecRequest = default(CreateNodesSingleQemuSingleAgentExecRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentExec"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleAgentExecRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentExec"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/exec", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentExec", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFilewrite Writes the given file via guest agent. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleQemuSingleAgentFilewrite(string node, int vmid, CreateNodesSingleQemuSingleAgentFilewriteRequest? createNodesSingleQemuSingleAgentFilewriteRequest = default(CreateNodesSingleQemuSingleAgentFilewriteRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentFilewriteWithHttpInfo(node, vmid, createNodesSingleQemuSingleAgentFilewriteRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFilewrite Writes the given file via guest agent. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentFilewriteWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleAgentFilewriteRequest? createNodesSingleQemuSingleAgentFilewriteRequest = default(CreateNodesSingleQemuSingleAgentFilewriteRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFilewrite"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleAgentFilewriteRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFilewrite"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/file-write", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFilewrite", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFilewrite Writes the given file via guest agent. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFilewriteAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentFilewriteRequest? createNodesSingleQemuSingleAgentFilewriteRequest = default(CreateNodesSingleQemuSingleAgentFilewriteRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentFilewriteWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleAgentFilewriteRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFilewrite Writes the given file via guest agent. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFilewriteWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentFilewriteRequest? createNodesSingleQemuSingleAgentFilewriteRequest = default(CreateNodesSingleQemuSingleAgentFilewriteRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFilewrite"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleAgentFilewriteRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFilewrite"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/file-write", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFilewrite", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezefreeze Execute fsfreeze-freeze. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentFsfreezefreeze(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentFsfreezefreezeWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezefreeze Execute fsfreeze-freeze. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentFsfreezefreezeWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFsfreezefreeze"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFsfreezefreeze"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/fsfreeze-freeze", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFsfreezefreeze", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezefreeze Execute fsfreeze-freeze. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFsfreezefreezeAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentFsfreezefreezeWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezefreeze Execute fsfreeze-freeze. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFsfreezefreezeWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFsfreezefreeze"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFsfreezefreeze"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/fsfreeze-freeze", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFsfreezefreeze", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezestatus Execute fsfreeze-status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentFsfreezestatus(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentFsfreezestatusWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezestatus Execute fsfreeze-status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentFsfreezestatusWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFsfreezestatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFsfreezestatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/fsfreeze-status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFsfreezestatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezestatus Execute fsfreeze-status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFsfreezestatusAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentFsfreezestatusWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezestatus Execute fsfreeze-status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFsfreezestatusWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFsfreezestatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFsfreezestatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/fsfreeze-status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFsfreezestatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezethaw Execute fsfreeze-thaw. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentFsfreezethaw(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentFsfreezethawWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezethaw Execute fsfreeze-thaw. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentFsfreezethawWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFsfreezethaw"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFsfreezethaw"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/fsfreeze-thaw", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFsfreezethaw", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezethaw Execute fsfreeze-thaw. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFsfreezethawAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentFsfreezethawWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFsfreezethaw Execute fsfreeze-thaw. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFsfreezethawWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFsfreezethaw"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFsfreezethaw"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/fsfreeze-thaw", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFsfreezethaw", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFstrim Execute fstrim. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentFstrim(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentFstrimWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFstrim Execute fstrim. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentFstrimWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFstrim"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFstrim"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/fstrim", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFstrim", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentFstrim Execute fstrim. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentFstrimAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentFstrimWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentFstrim Execute fstrim. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentFstrimWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentFstrim"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentFstrim"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/fstrim", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentFstrim", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentPing Execute ping. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentPing(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentPingWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentPing Execute ping. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentPingWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentPing"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentPing"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/ping", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentPing", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentPing Execute ping. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentPingAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentPingWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentPing Execute ping. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentPingWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentPing"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentPing"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/ping", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentPing", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentSetuserpassword Sets the password for the given user to the given password + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentSetuserpassword(string node, int vmid, CreateNodesSingleQemuSingleAgentSetuserpasswordRequest? createNodesSingleQemuSingleAgentSetuserpasswordRequest = default(CreateNodesSingleQemuSingleAgentSetuserpasswordRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentSetuserpasswordWithHttpInfo(node, vmid, createNodesSingleQemuSingleAgentSetuserpasswordRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentSetuserpassword Sets the password for the given user to the given password + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentSetuserpasswordWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleAgentSetuserpasswordRequest? createNodesSingleQemuSingleAgentSetuserpasswordRequest = default(CreateNodesSingleQemuSingleAgentSetuserpasswordRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentSetuserpassword"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleAgentSetuserpasswordRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentSetuserpassword"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/set-user-password", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentSetuserpassword", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentSetuserpassword Sets the password for the given user to the given password + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentSetuserpasswordAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentSetuserpasswordRequest? createNodesSingleQemuSingleAgentSetuserpasswordRequest = default(CreateNodesSingleQemuSingleAgentSetuserpasswordRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentSetuserpasswordWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleAgentSetuserpasswordRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentSetuserpassword Sets the password for the given user to the given password + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentSetuserpasswordWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleAgentSetuserpasswordRequest? createNodesSingleQemuSingleAgentSetuserpasswordRequest = default(CreateNodesSingleQemuSingleAgentSetuserpasswordRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentSetuserpassword"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleAgentSetuserpasswordRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentSetuserpassword"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/set-user-password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentSetuserpassword", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentShutdown Execute shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentShutdown(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentShutdownWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentShutdown Execute shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentShutdownWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentShutdown"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentShutdown"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/shutdown", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentShutdown", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentShutdown Execute shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentShutdownAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentShutdownWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentShutdown Execute shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentShutdownWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentShutdown"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentShutdown"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/shutdown", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentShutdown", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentSuspenddisk Execute suspend-disk. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentSuspenddisk(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentSuspenddiskWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentSuspenddisk Execute suspend-disk. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentSuspenddiskWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentSuspenddisk"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentSuspenddisk"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/suspend-disk", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentSuspenddisk", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentSuspenddisk Execute suspend-disk. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentSuspenddiskAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentSuspenddiskWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentSuspenddisk Execute suspend-disk. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentSuspenddiskWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentSuspenddisk"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentSuspenddisk"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/suspend-disk", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentSuspenddisk", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentSuspendhybrid Execute suspend-hybrid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentSuspendhybrid(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentSuspendhybridWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentSuspendhybrid Execute suspend-hybrid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentSuspendhybridWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentSuspendhybrid"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentSuspendhybrid"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/suspend-hybrid", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentSuspendhybrid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentSuspendhybrid Execute suspend-hybrid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentSuspendhybridAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentSuspendhybridWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentSuspendhybrid Execute suspend-hybrid. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentSuspendhybridWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentSuspendhybrid"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentSuspendhybrid"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/suspend-hybrid", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentSuspendhybrid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentSuspendram Execute suspend-ram. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response CreateNodesSingleQemuSingleAgentSuspendram(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleAgentSuspendramWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentSuspendram Execute suspend-ram. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleAgentSuspendramWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentSuspendram"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentSuspendram"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/agent/suspend-ram", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentSuspendram", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleAgentSuspendram Execute suspend-ram. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleAgentSuspendramAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleAgentSuspendramWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleAgentSuspendram Execute suspend-ram. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleAgentSuspendramWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleAgentSuspendram"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleAgentSuspendram"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/agent/suspend-ram", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleAgentSuspendram", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleDbusvmstate Control the dbus-vmstate helper for a given running VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleQemuSingleDbusvmstate(string node, int vmid, CreateNodesSingleQemuSingleDbusvmstateRequest? createNodesSingleQemuSingleDbusvmstateRequest = default(CreateNodesSingleQemuSingleDbusvmstateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleDbusvmstateWithHttpInfo(node, vmid, createNodesSingleQemuSingleDbusvmstateRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleDbusvmstate Control the dbus-vmstate helper for a given running VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleDbusvmstateWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleDbusvmstateRequest? createNodesSingleQemuSingleDbusvmstateRequest = default(CreateNodesSingleQemuSingleDbusvmstateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleDbusvmstate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleDbusvmstateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleDbusvmstate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/dbus-vmstate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleDbusvmstate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleDbusvmstate Control the dbus-vmstate helper for a given running VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleDbusvmstateAsync(string node, int vmid, CreateNodesSingleQemuSingleDbusvmstateRequest? createNodesSingleQemuSingleDbusvmstateRequest = default(CreateNodesSingleQemuSingleDbusvmstateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleDbusvmstateWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleDbusvmstateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleDbusvmstate Control the dbus-vmstate helper for a given running VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleDbusvmstateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleDbusvmstateRequest? createNodesSingleQemuSingleDbusvmstateRequest = default(CreateNodesSingleQemuSingleDbusvmstateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleDbusvmstate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleDbusvmstateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleDbusvmstate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/dbus-vmstate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleDbusvmstate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleQemuSingleFirewallAliases(string node, int vmid, CreateNodesSingleQemuSingleFirewallAliasesRequest? createNodesSingleQemuSingleFirewallAliasesRequest = default(CreateNodesSingleQemuSingleFirewallAliasesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleFirewallAliasesWithHttpInfo(node, vmid, createNodesSingleQemuSingleFirewallAliasesRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleFirewallAliasesWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleFirewallAliasesRequest? createNodesSingleQemuSingleFirewallAliasesRequest = default(CreateNodesSingleQemuSingleFirewallAliasesRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleFirewallAliases"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleFirewallAliasesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/firewall/aliases", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleFirewallAliasesAsync(string node, int vmid, CreateNodesSingleQemuSingleFirewallAliasesRequest? createNodesSingleQemuSingleFirewallAliasesRequest = default(CreateNodesSingleQemuSingleFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleFirewallAliasesWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleFirewallAliasesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleFirewallAliases Create IP or Network Alias. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleFirewallAliasesWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleFirewallAliasesRequest? createNodesSingleQemuSingleFirewallAliasesRequest = default(CreateNodesSingleQemuSingleFirewallAliasesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleFirewallAliases"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleFirewallAliasesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/firewall/aliases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleMigrate Migrate virtual machine. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleQemuSingleMigrate(string node, int vmid, CreateNodesSingleQemuSingleMigrateRequest? createNodesSingleQemuSingleMigrateRequest = default(CreateNodesSingleQemuSingleMigrateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleMigrateWithHttpInfo(node, vmid, createNodesSingleQemuSingleMigrateRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleMigrate Migrate virtual machine. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleMigrateWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleMigrateRequest? createNodesSingleQemuSingleMigrateRequest = default(CreateNodesSingleQemuSingleMigrateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleMigrate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleMigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/migrate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleMigrate Migrate virtual machine. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleMigrateAsync(string node, int vmid, CreateNodesSingleQemuSingleMigrateRequest? createNodesSingleQemuSingleMigrateRequest = default(CreateNodesSingleQemuSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleMigrateWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleMigrateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleMigrate Migrate virtual machine. Creates a new migration task. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleMigrateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleMigrateRequest? createNodesSingleQemuSingleMigrateRequest = default(CreateNodesSingleQemuSingleMigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleMigrate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleMigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/migrate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleMonitor Execute QEMU monitor commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleQemuSingleMonitor(string node, int vmid, CreateNodesSingleQemuSingleMonitorRequest? createNodesSingleQemuSingleMonitorRequest = default(CreateNodesSingleQemuSingleMonitorRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleMonitorWithHttpInfo(node, vmid, createNodesSingleQemuSingleMonitorRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleMonitor Execute QEMU monitor commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleMonitorWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleMonitorRequest? createNodesSingleQemuSingleMonitorRequest = default(CreateNodesSingleQemuSingleMonitorRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleMonitor"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleMonitorRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleMonitor"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/monitor", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleMonitor", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleMonitor Execute QEMU monitor commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleMonitorAsync(string node, int vmid, CreateNodesSingleQemuSingleMonitorRequest? createNodesSingleQemuSingleMonitorRequest = default(CreateNodesSingleQemuSingleMonitorRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleMonitorWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleMonitorRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleMonitor Execute QEMU monitor commands. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleMonitorWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleMonitorRequest? createNodesSingleQemuSingleMonitorRequest = default(CreateNodesSingleQemuSingleMonitorRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleMonitor"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleMonitorRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleMonitor"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/monitor", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleMonitor", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleMovedisk Move volume to different storage or to a different VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleQemuSingleMovedisk(string node, int vmid, CreateNodesSingleQemuSingleMovediskRequest? createNodesSingleQemuSingleMovediskRequest = default(CreateNodesSingleQemuSingleMovediskRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleMovediskWithHttpInfo(node, vmid, createNodesSingleQemuSingleMovediskRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleMovedisk Move volume to different storage or to a different VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleMovediskWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleMovediskRequest? createNodesSingleQemuSingleMovediskRequest = default(CreateNodesSingleQemuSingleMovediskRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleMovedisk"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleMovediskRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleMovedisk"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/move_disk", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleMovedisk", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleMovedisk Move volume to different storage or to a different VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleMovediskAsync(string node, int vmid, CreateNodesSingleQemuSingleMovediskRequest? createNodesSingleQemuSingleMovediskRequest = default(CreateNodesSingleQemuSingleMovediskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleMovediskWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleMovediskRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleMovedisk Move volume to different storage or to a different VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleMovediskWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleMovediskRequest? createNodesSingleQemuSingleMovediskRequest = default(CreateNodesSingleQemuSingleMovediskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleMovedisk"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleMovediskRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleMovedisk"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/move_disk", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleMovedisk", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleMtunnel Migration tunnel endpoint - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleQemuSingleMtunnel(string node, int vmid, CreateNodesSingleQemuSingleMtunnelRequest? createNodesSingleQemuSingleMtunnelRequest = default(CreateNodesSingleQemuSingleMtunnelRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleMtunnelWithHttpInfo(node, vmid, createNodesSingleQemuSingleMtunnelRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleMtunnel Migration tunnel endpoint - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleMtunnelWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleMtunnelRequest? createNodesSingleQemuSingleMtunnelRequest = default(CreateNodesSingleQemuSingleMtunnelRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleMtunnel"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleMtunnelRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleMtunnel"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/mtunnel", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleMtunnel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleMtunnel Migration tunnel endpoint - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleMtunnelAsync(string node, int vmid, CreateNodesSingleQemuSingleMtunnelRequest? createNodesSingleQemuSingleMtunnelRequest = default(CreateNodesSingleQemuSingleMtunnelRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleMtunnelWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleMtunnelRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleMtunnel Migration tunnel endpoint - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleMtunnelWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleMtunnelRequest? createNodesSingleQemuSingleMtunnelRequest = default(CreateNodesSingleQemuSingleMtunnelRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleMtunnel"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleMtunnelRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleMtunnel"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/mtunnel", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleMtunnel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleRemotemigrate Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleQemuSingleRemotemigrate(string node, int vmid, CreateNodesSingleQemuSingleRemotemigrateRequest? createNodesSingleQemuSingleRemotemigrateRequest = default(CreateNodesSingleQemuSingleRemotemigrateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleRemotemigrateWithHttpInfo(node, vmid, createNodesSingleQemuSingleRemotemigrateRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleRemotemigrate Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleRemotemigrateWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleRemotemigrateRequest? createNodesSingleQemuSingleRemotemigrateRequest = default(CreateNodesSingleQemuSingleRemotemigrateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleRemotemigrate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleRemotemigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleRemotemigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/remote_migrate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleRemotemigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleRemotemigrate Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleRemotemigrateAsync(string node, int vmid, CreateNodesSingleQemuSingleRemotemigrateRequest? createNodesSingleQemuSingleRemotemigrateRequest = default(CreateNodesSingleQemuSingleRemotemigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleRemotemigrateWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleRemotemigrateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleRemotemigrate Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleRemotemigrateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleRemotemigrateRequest? createNodesSingleQemuSingleRemotemigrateRequest = default(CreateNodesSingleQemuSingleRemotemigrateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleRemotemigrate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleRemotemigrateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleRemotemigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/remote_migrate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleRemotemigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleSpiceproxy Returns a SPICE configuration to connect to the VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleSpiceproxy200Response + public CreateNodesSingleQemuSingleSpiceproxy200Response CreateNodesSingleQemuSingleSpiceproxy(string node, int vmid, CreateNodesSingleQemuSingleSpiceproxyRequest? createNodesSingleQemuSingleSpiceproxyRequest = default(CreateNodesSingleQemuSingleSpiceproxyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleSpiceproxyWithHttpInfo(node, vmid, createNodesSingleQemuSingleSpiceproxyRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleSpiceproxy Returns a SPICE configuration to connect to the VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleSpiceproxy200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleSpiceproxyWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleSpiceproxyRequest? createNodesSingleQemuSingleSpiceproxyRequest = default(CreateNodesSingleQemuSingleSpiceproxyRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleSpiceproxy"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleSpiceproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleSpiceproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/spiceproxy", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleSpiceproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleSpiceproxy Returns a SPICE configuration to connect to the VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleSpiceproxy200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleSpiceproxyAsync(string node, int vmid, CreateNodesSingleQemuSingleSpiceproxyRequest? createNodesSingleQemuSingleSpiceproxyRequest = default(CreateNodesSingleQemuSingleSpiceproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleSpiceproxyWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleSpiceproxyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleSpiceproxy Returns a SPICE configuration to connect to the VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleSpiceproxy200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleSpiceproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleSpiceproxyRequest? createNodesSingleQemuSingleSpiceproxyRequest = default(CreateNodesSingleQemuSingleSpiceproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleSpiceproxy"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleSpiceproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleSpiceproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/spiceproxy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleSpiceproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleTemplate Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateNodesSingleQemuSingleTemplate(string node, int vmid, CreateNodesSingleQemuSingleTemplateRequest? createNodesSingleQemuSingleTemplateRequest = default(CreateNodesSingleQemuSingleTemplateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleTemplateWithHttpInfo(node, vmid, createNodesSingleQemuSingleTemplateRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleTemplate Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleTemplateWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleTemplateRequest? createNodesSingleQemuSingleTemplateRequest = default(CreateNodesSingleQemuSingleTemplateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleTemplate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleTemplateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/template", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleTemplate Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleTemplateAsync(string node, int vmid, CreateNodesSingleQemuSingleTemplateRequest? createNodesSingleQemuSingleTemplateRequest = default(CreateNodesSingleQemuSingleTemplateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleTemplateWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleTemplateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleTemplate Create a Template. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleTemplateWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleTemplateRequest? createNodesSingleQemuSingleTemplateRequest = default(CreateNodesSingleQemuSingleTemplateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleTemplate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleTemplateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleTemplate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/template", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleTemplate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleTermproxy Creates a TCP proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleQemuSingleTermproxy(string node, int vmid, CreateNodesSingleQemuSingleTermproxyRequest? createNodesSingleQemuSingleTermproxyRequest = default(CreateNodesSingleQemuSingleTermproxyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleTermproxyWithHttpInfo(node, vmid, createNodesSingleQemuSingleTermproxyRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleTermproxy Creates a TCP proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleTermproxyWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleTermproxyRequest? createNodesSingleQemuSingleTermproxyRequest = default(CreateNodesSingleQemuSingleTermproxyRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleTermproxy"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleTermproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleTermproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/termproxy", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleTermproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleTermproxy Creates a TCP proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleTermproxyAsync(string node, int vmid, CreateNodesSingleQemuSingleTermproxyRequest? createNodesSingleQemuSingleTermproxyRequest = default(CreateNodesSingleQemuSingleTermproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleTermproxyWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleTermproxyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleTermproxy Creates a TCP proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleTermproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleTermproxyRequest? createNodesSingleQemuSingleTermproxyRequest = default(CreateNodesSingleQemuSingleTermproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleTermproxy"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleTermproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleTermproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/termproxy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleTermproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleVncproxy Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleQemuSingleVncproxy(string node, int vmid, CreateNodesSingleQemuSingleVncproxyRequest? createNodesSingleQemuSingleVncproxyRequest = default(CreateNodesSingleQemuSingleVncproxyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleQemuSingleVncproxyWithHttpInfo(node, vmid, createNodesSingleQemuSingleVncproxyRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleVncproxy Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleQemuSingleVncproxyWithHttpInfo(string node, int vmid, CreateNodesSingleQemuSingleVncproxyRequest? createNodesSingleQemuSingleVncproxyRequest = default(CreateNodesSingleQemuSingleVncproxyRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleVncproxy"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleVncproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleVncproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/vncproxy", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleVncproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleQemuSingleVncproxy Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleQemuSingleVncproxyAsync(string node, int vmid, CreateNodesSingleQemuSingleVncproxyRequest? createNodesSingleQemuSingleVncproxyRequest = default(CreateNodesSingleQemuSingleVncproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleQemuSingleVncproxyWithHttpInfoAsync(node, vmid, createNodesSingleQemuSingleVncproxyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleQemuSingleVncproxy Creates a TCP VNC proxy connections. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleQemuSingleVncproxyWithHttpInfoAsync(string node, int vmid, CreateNodesSingleQemuSingleVncproxyRequest? createNodesSingleQemuSingleVncproxyRequest = default(CreateNodesSingleQemuSingleVncproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleQemuSingleVncproxy"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createNodesSingleQemuSingleVncproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleQemuSingleVncproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/vncproxy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleQemuSingleVncproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleReplicationSingleSchedulenow Schedule replication job to start as soon as possible. + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleReplicationSingleSchedulenow(string id, string node, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleReplicationSingleSchedulenowWithHttpInfo(id, node, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleReplicationSingleSchedulenow Schedule replication job to start as soon as possible. + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleReplicationSingleSchedulenowWithHttpInfo(string id, string node, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->CreateNodesSingleReplicationSingleSchedulenow"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleReplicationSingleSchedulenow"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleReplicationSingleSchedulenow"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/replication/{id}/schedule_now", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleReplicationSingleSchedulenow", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleReplicationSingleSchedulenow Schedule replication job to start as soon as possible. + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleReplicationSingleSchedulenowAsync(string id, string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleReplicationSingleSchedulenowWithHttpInfoAsync(id, node, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleReplicationSingleSchedulenow Schedule replication job to start as soon as possible. + /// + /// Thrown when fails to make API call + /// id + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleReplicationSingleSchedulenowWithHttpInfoAsync(string id, string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->CreateNodesSingleReplicationSingleSchedulenow"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleReplicationSingleSchedulenow"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleReplicationSingleSchedulenow"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/replication/{id}/schedule_now", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleReplicationSingleSchedulenow", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleServicesSingleReload Reload service. Falls back to restart if service cannot be reloaded. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleServicesSingleReload(string node, string service, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleServicesSingleReloadWithHttpInfo(node, service, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleServicesSingleReload Reload service. Falls back to restart if service cannot be reloaded. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleServicesSingleReloadWithHttpInfo(string node, string service, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleReload"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleReload"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleServicesSingleReload"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/services/{service}/reload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleServicesSingleReload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleServicesSingleReload Reload service. Falls back to restart if service cannot be reloaded. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleServicesSingleReloadAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleServicesSingleReloadWithHttpInfoAsync(node, service, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleServicesSingleReload Reload service. Falls back to restart if service cannot be reloaded. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleServicesSingleReloadWithHttpInfoAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleReload"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleReload"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleServicesSingleReload"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/services/{service}/reload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleServicesSingleReload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleServicesSingleRestart Hard restart service. Use reload if you want to reduce interruptions. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleServicesSingleRestart(string node, string service, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleServicesSingleRestartWithHttpInfo(node, service, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleServicesSingleRestart Hard restart service. Use reload if you want to reduce interruptions. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleServicesSingleRestartWithHttpInfo(string node, string service, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleRestart"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleRestart"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleServicesSingleRestart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/services/{service}/restart", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleServicesSingleRestart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleServicesSingleRestart Hard restart service. Use reload if you want to reduce interruptions. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleServicesSingleRestartAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleServicesSingleRestartWithHttpInfoAsync(node, service, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleServicesSingleRestart Hard restart service. Use reload if you want to reduce interruptions. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleServicesSingleRestartWithHttpInfoAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleRestart"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleRestart"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleServicesSingleRestart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/services/{service}/restart", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleServicesSingleRestart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleServicesSingleStart Start service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleServicesSingleStart(string node, string service, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleServicesSingleStartWithHttpInfo(node, service, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleServicesSingleStart Start service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleServicesSingleStartWithHttpInfo(string node, string service, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleStart"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleStart"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleServicesSingleStart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/services/{service}/start", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleServicesSingleStart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleServicesSingleStart Start service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleServicesSingleStartAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleServicesSingleStartWithHttpInfoAsync(node, service, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleServicesSingleStart Start service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleServicesSingleStartWithHttpInfoAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleStart"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleStart"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleServicesSingleStart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/services/{service}/start", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleServicesSingleStart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleServicesSingleStop Stop service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleServicesSingleStop(string node, string service, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleServicesSingleStopWithHttpInfo(node, service, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleServicesSingleStop Stop service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleServicesSingleStopWithHttpInfo(string node, string service, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleStop"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleStop"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleServicesSingleStop"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/services/{service}/stop", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleServicesSingleStop", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleServicesSingleStop Stop service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleServicesSingleStopAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleServicesSingleStopWithHttpInfoAsync(node, service, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleServicesSingleStop Stop service. + /// + /// Thrown when fails to make API call + /// node + /// service + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleServicesSingleStopWithHttpInfoAsync(string node, string service, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleStop"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->CreateNodesSingleServicesSingleStop"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleServicesSingleStop"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/services/{service}/stop", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleServicesSingleStop", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleSpiceshell Creates a SPICE shell. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleSpiceproxy200Response + public CreateNodesSingleQemuSingleSpiceproxy200Response CreateNodesSingleSpiceshell(string node, CreateNodesSingleSpiceshellRequest? createNodesSingleSpiceshellRequest = default(CreateNodesSingleSpiceshellRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleSpiceshellWithHttpInfo(node, createNodesSingleSpiceshellRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleSpiceshell Creates a SPICE shell. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleSpiceproxy200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleSpiceshellWithHttpInfo(string node, CreateNodesSingleSpiceshellRequest? createNodesSingleSpiceshellRequest = default(CreateNodesSingleSpiceshellRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleSpiceshell"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleSpiceshellRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleSpiceshell"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/spiceshell", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleSpiceshell", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleSpiceshell Creates a SPICE shell. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleSpiceproxy200Response + public async System.Threading.Tasks.Task CreateNodesSingleSpiceshellAsync(string node, CreateNodesSingleSpiceshellRequest? createNodesSingleSpiceshellRequest = default(CreateNodesSingleSpiceshellRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleSpiceshellWithHttpInfoAsync(node, createNodesSingleSpiceshellRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleSpiceshell Creates a SPICE shell. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleSpiceproxy200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleSpiceshellWithHttpInfoAsync(string node, CreateNodesSingleSpiceshellRequest? createNodesSingleSpiceshellRequest = default(CreateNodesSingleSpiceshellRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleSpiceshell"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleSpiceshellRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleSpiceshell"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/spiceshell", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleSpiceshell", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStartall Start all VMs and containers located on this node (by default only those with onboot=1). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleStartall(string node, CreateNodesSingleStartallRequest? createNodesSingleStartallRequest = default(CreateNodesSingleStartallRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleStartallWithHttpInfo(node, createNodesSingleStartallRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStartall Start all VMs and containers located on this node (by default only those with onboot=1). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleStartallWithHttpInfo(string node, CreateNodesSingleStartallRequest? createNodesSingleStartallRequest = default(CreateNodesSingleStartallRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStartall"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleStartallRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStartall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/startall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStartall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStartall Start all VMs and containers located on this node (by default only those with onboot=1). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleStartallAsync(string node, CreateNodesSingleStartallRequest? createNodesSingleStartallRequest = default(CreateNodesSingleStartallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleStartallWithHttpInfoAsync(node, createNodesSingleStartallRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStartall Start all VMs and containers located on this node (by default only those with onboot=1). + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleStartallWithHttpInfoAsync(string node, CreateNodesSingleStartallRequest? createNodesSingleStartallRequest = default(CreateNodesSingleStartallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStartall"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleStartallRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStartall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/startall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStartall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStatus Reboot or shutdown a node. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleStatus(string node, CreateNodesSingleStatusRequest? createNodesSingleStatusRequest = default(CreateNodesSingleStatusRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleStatusWithHttpInfo(node, createNodesSingleStatusRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStatus Reboot or shutdown a node. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleStatusWithHttpInfo(string node, CreateNodesSingleStatusRequest? createNodesSingleStatusRequest = default(CreateNodesSingleStatusRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleStatusRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStatus Reboot or shutdown a node. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleStatusAsync(string node, CreateNodesSingleStatusRequest? createNodesSingleStatusRequest = default(CreateNodesSingleStatusRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleStatusWithHttpInfoAsync(node, createNodesSingleStatusRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStatus Reboot or shutdown a node. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleStatusWithHttpInfoAsync(string node, CreateNodesSingleStatusRequest? createNodesSingleStatusRequest = default(CreateNodesSingleStatusRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleStatusRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStopall Stop all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleStopall(string node, CreateNodesSingleStopallRequest? createNodesSingleStopallRequest = default(CreateNodesSingleStopallRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleStopallWithHttpInfo(node, createNodesSingleStopallRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStopall Stop all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleStopallWithHttpInfo(string node, CreateNodesSingleStopallRequest? createNodesSingleStopallRequest = default(CreateNodesSingleStopallRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStopall"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleStopallRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStopall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/stopall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStopall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStopall Stop all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleStopallAsync(string node, CreateNodesSingleStopallRequest? createNodesSingleStopallRequest = default(CreateNodesSingleStopallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleStopallWithHttpInfoAsync(node, createNodesSingleStopallRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStopall Stop all VMs and Containers. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleStopallWithHttpInfoAsync(string node, CreateNodesSingleStopallRequest? createNodesSingleStopallRequest = default(CreateNodesSingleStopallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStopall"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleStopallRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStopall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/stopall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStopall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleContent Allocate disk images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleStorageSingleContent200Response + public CreateNodesSingleStorageSingleContent200Response CreateNodesSingleStorageSingleContent(string node, string storage, CreateNodesSingleStorageSingleContentRequest? createNodesSingleStorageSingleContentRequest = default(CreateNodesSingleStorageSingleContentRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleStorageSingleContentWithHttpInfo(node, storage, createNodesSingleStorageSingleContentRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleContent Allocate disk images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleStorageSingleContent200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleStorageSingleContentWithHttpInfo(string node, string storage, CreateNodesSingleStorageSingleContentRequest? createNodesSingleStorageSingleContentRequest = default(CreateNodesSingleStorageSingleContentRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContent"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContent"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleContentRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleContent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/storage/{storage}/content", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleContent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleContent Allocate disk images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleStorageSingleContent200Response + public async System.Threading.Tasks.Task CreateNodesSingleStorageSingleContentAsync(string node, string storage, CreateNodesSingleStorageSingleContentRequest? createNodesSingleStorageSingleContentRequest = default(CreateNodesSingleStorageSingleContentRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleStorageSingleContentWithHttpInfoAsync(node, storage, createNodesSingleStorageSingleContentRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleContent Allocate disk images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleStorageSingleContent200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleStorageSingleContentWithHttpInfoAsync(string node, string storage, CreateNodesSingleStorageSingleContentRequest? createNodesSingleStorageSingleContentRequest = default(CreateNodesSingleStorageSingleContentRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContent"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContent"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleContentRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleContent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/storage/{storage}/content", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleContent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleContentSingle Copy a volume. This is experimental code - do not use. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleStorageSingleContentSingle(string node, string storage, string volume, CreateNodesSingleStorageSingleContentSingleRequest? createNodesSingleStorageSingleContentSingleRequest = default(CreateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleStorageSingleContentSingleWithHttpInfo(node, storage, volume, createNodesSingleStorageSingleContentSingleRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleContentSingle Copy a volume. This is experimental code - do not use. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleStorageSingleContentSingleWithHttpInfo(string node, string storage, string volume, CreateNodesSingleStorageSingleContentSingleRequest? createNodesSingleStorageSingleContentSingleRequest = default(CreateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'volume' is set + if (volume == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'volume' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContentSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.PathParameters.Add("volume", ProxmoxSharp.Client.ClientUtils.ParameterToString(volume)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleContentSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleContentSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/storage/{storage}/content/{volume}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleContentSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleContentSingle Copy a volume. This is experimental code - do not use. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleStorageSingleContentSingleAsync(string node, string storage, string volume, CreateNodesSingleStorageSingleContentSingleRequest? createNodesSingleStorageSingleContentSingleRequest = default(CreateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleStorageSingleContentSingleWithHttpInfoAsync(node, storage, volume, createNodesSingleStorageSingleContentSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleContentSingle Copy a volume. This is experimental code - do not use. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleStorageSingleContentSingleWithHttpInfoAsync(string node, string storage, string volume, CreateNodesSingleStorageSingleContentSingleRequest? createNodesSingleStorageSingleContentSingleRequest = default(CreateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'volume' is set + if (volume == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'volume' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleContentSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.PathParameters.Add("volume", ProxmoxSharp.Client.ClientUtils.ParameterToString(volume)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleContentSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleContentSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/storage/{storage}/content/{volume}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleContentSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleDownloadurl Download templates, ISO images, OVAs and VM images by using an URL. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleStorageSingleDownloadurl(string node, string storage, CreateNodesSingleStorageSingleDownloadurlRequest? createNodesSingleStorageSingleDownloadurlRequest = default(CreateNodesSingleStorageSingleDownloadurlRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleStorageSingleDownloadurlWithHttpInfo(node, storage, createNodesSingleStorageSingleDownloadurlRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleDownloadurl Download templates, ISO images, OVAs and VM images by using an URL. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleStorageSingleDownloadurlWithHttpInfo(string node, string storage, CreateNodesSingleStorageSingleDownloadurlRequest? createNodesSingleStorageSingleDownloadurlRequest = default(CreateNodesSingleStorageSingleDownloadurlRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleDownloadurl"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleDownloadurl"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleDownloadurlRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleDownloadurl"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/storage/{storage}/download-url", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleDownloadurl", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleDownloadurl Download templates, ISO images, OVAs and VM images by using an URL. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleStorageSingleDownloadurlAsync(string node, string storage, CreateNodesSingleStorageSingleDownloadurlRequest? createNodesSingleStorageSingleDownloadurlRequest = default(CreateNodesSingleStorageSingleDownloadurlRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleStorageSingleDownloadurlWithHttpInfoAsync(node, storage, createNodesSingleStorageSingleDownloadurlRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleDownloadurl Download templates, ISO images, OVAs and VM images by using an URL. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleStorageSingleDownloadurlWithHttpInfoAsync(string node, string storage, CreateNodesSingleStorageSingleDownloadurlRequest? createNodesSingleStorageSingleDownloadurlRequest = default(CreateNodesSingleStorageSingleDownloadurlRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleDownloadurl"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleDownloadurl"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleDownloadurlRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleDownloadurl"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/storage/{storage}/download-url", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleDownloadurl", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleOciregistrypull Pull an OCI image from a registry. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleStorageSingleOciregistrypull(string node, string storage, CreateNodesSingleStorageSingleOciregistrypullRequest? createNodesSingleStorageSingleOciregistrypullRequest = default(CreateNodesSingleStorageSingleOciregistrypullRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleStorageSingleOciregistrypullWithHttpInfo(node, storage, createNodesSingleStorageSingleOciregistrypullRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleOciregistrypull Pull an OCI image from a registry. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleStorageSingleOciregistrypullWithHttpInfo(string node, string storage, CreateNodesSingleStorageSingleOciregistrypullRequest? createNodesSingleStorageSingleOciregistrypullRequest = default(CreateNodesSingleStorageSingleOciregistrypullRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleOciregistrypull"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleOciregistrypull"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleOciregistrypullRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleOciregistrypull"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/storage/{storage}/oci-registry-pull", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleOciregistrypull", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleOciregistrypull Pull an OCI image from a registry. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleStorageSingleOciregistrypullAsync(string node, string storage, CreateNodesSingleStorageSingleOciregistrypullRequest? createNodesSingleStorageSingleOciregistrypullRequest = default(CreateNodesSingleStorageSingleOciregistrypullRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleStorageSingleOciregistrypullWithHttpInfoAsync(node, storage, createNodesSingleStorageSingleOciregistrypullRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleOciregistrypull Pull an OCI image from a registry. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleStorageSingleOciregistrypullWithHttpInfoAsync(string node, string storage, CreateNodesSingleStorageSingleOciregistrypullRequest? createNodesSingleStorageSingleOciregistrypullRequest = default(CreateNodesSingleStorageSingleOciregistrypullRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleOciregistrypull"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleOciregistrypull"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleOciregistrypullRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleOciregistrypull"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/storage/{storage}/oci-registry-pull", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleOciregistrypull", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleUpload Upload templates, ISO images, OVAs and VM images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleStorageSingleUpload(string node, string storage, CreateNodesSingleStorageSingleUploadRequest? createNodesSingleStorageSingleUploadRequest = default(CreateNodesSingleStorageSingleUploadRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleStorageSingleUploadWithHttpInfo(node, storage, createNodesSingleStorageSingleUploadRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleUpload Upload templates, ISO images, OVAs and VM images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleStorageSingleUploadWithHttpInfo(string node, string storage, CreateNodesSingleStorageSingleUploadRequest? createNodesSingleStorageSingleUploadRequest = default(CreateNodesSingleStorageSingleUploadRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleUpload"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleUpload"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleUploadRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleUpload"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/storage/{storage}/upload", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleUpload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleStorageSingleUpload Upload templates, ISO images, OVAs and VM images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleStorageSingleUploadAsync(string node, string storage, CreateNodesSingleStorageSingleUploadRequest? createNodesSingleStorageSingleUploadRequest = default(CreateNodesSingleStorageSingleUploadRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleStorageSingleUploadWithHttpInfoAsync(node, storage, createNodesSingleStorageSingleUploadRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleStorageSingleUpload Upload templates, ISO images, OVAs and VM images. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleStorageSingleUploadWithHttpInfoAsync(string node, string storage, CreateNodesSingleStorageSingleUploadRequest? createNodesSingleStorageSingleUploadRequest = default(CreateNodesSingleStorageSingleUploadRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleUpload"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->CreateNodesSingleStorageSingleUpload"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = createNodesSingleStorageSingleUploadRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleStorageSingleUpload"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/storage/{storage}/upload", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleStorageSingleUpload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleSubscription Update subscription info. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleSubscription(string node, CreateNodesSingleSubscriptionRequest? createNodesSingleSubscriptionRequest = default(CreateNodesSingleSubscriptionRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleSubscriptionWithHttpInfo(node, createNodesSingleSubscriptionRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleSubscription Update subscription info. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleSubscriptionWithHttpInfo(string node, CreateNodesSingleSubscriptionRequest? createNodesSingleSubscriptionRequest = default(CreateNodesSingleSubscriptionRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleSubscription"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleSubscriptionRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleSubscription"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/subscription", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleSubscription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleSubscription Update subscription info. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleSubscriptionAsync(string node, CreateNodesSingleSubscriptionRequest? createNodesSingleSubscriptionRequest = default(CreateNodesSingleSubscriptionRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleSubscriptionWithHttpInfoAsync(node, createNodesSingleSubscriptionRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleSubscription Update subscription info. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleSubscriptionWithHttpInfoAsync(string node, CreateNodesSingleSubscriptionRequest? createNodesSingleSubscriptionRequest = default(CreateNodesSingleSubscriptionRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleSubscription"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleSubscriptionRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleSubscription"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/subscription", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleSubscription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleSuspendall Suspend all VMs. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleSuspendall(string node, CreateNodesSingleSuspendallRequest? createNodesSingleSuspendallRequest = default(CreateNodesSingleSuspendallRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleSuspendallWithHttpInfo(node, createNodesSingleSuspendallRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleSuspendall Suspend all VMs. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleSuspendallWithHttpInfo(string node, CreateNodesSingleSuspendallRequest? createNodesSingleSuspendallRequest = default(CreateNodesSingleSuspendallRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleSuspendall"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleSuspendallRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleSuspendall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/suspendall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleSuspendall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleSuspendall Suspend all VMs. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleSuspendallAsync(string node, CreateNodesSingleSuspendallRequest? createNodesSingleSuspendallRequest = default(CreateNodesSingleSuspendallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleSuspendallWithHttpInfoAsync(node, createNodesSingleSuspendallRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleSuspendall Suspend all VMs. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleSuspendallWithHttpInfoAsync(string node, CreateNodesSingleSuspendallRequest? createNodesSingleSuspendallRequest = default(CreateNodesSingleSuspendallRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleSuspendall"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleSuspendallRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleSuspendall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/suspendall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleSuspendall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleTermproxy Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleTermproxy(string node, CreateNodesSingleTermproxyRequest? createNodesSingleTermproxyRequest = default(CreateNodesSingleTermproxyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleTermproxyWithHttpInfo(node, createNodesSingleTermproxyRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleTermproxy Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleTermproxyWithHttpInfo(string node, CreateNodesSingleTermproxyRequest? createNodesSingleTermproxyRequest = default(CreateNodesSingleTermproxyRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleTermproxy"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleTermproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleTermproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/termproxy", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleTermproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleTermproxy Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleTermproxyAsync(string node, CreateNodesSingleTermproxyRequest? createNodesSingleTermproxyRequest = default(CreateNodesSingleTermproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleTermproxyWithHttpInfoAsync(node, createNodesSingleTermproxyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleTermproxy Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleTermproxyWithHttpInfoAsync(string node, CreateNodesSingleTermproxyRequest? createNodesSingleTermproxyRequest = default(CreateNodesSingleTermproxyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleTermproxy"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleTermproxyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleTermproxy"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/termproxy", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleTermproxy", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleVncshell Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleVncshell(string node, CreateNodesSingleVncshellRequest? createNodesSingleVncshellRequest = default(CreateNodesSingleVncshellRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleVncshellWithHttpInfo(node, createNodesSingleVncshellRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleVncshell Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleVncshellWithHttpInfo(string node, CreateNodesSingleVncshellRequest? createNodesSingleVncshellRequest = default(CreateNodesSingleVncshellRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleVncshell"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleVncshellRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleVncshell"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/vncshell", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleVncshell", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleVncshell Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleVncshellAsync(string node, CreateNodesSingleVncshellRequest? createNodesSingleVncshellRequest = default(CreateNodesSingleVncshellRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleVncshellWithHttpInfoAsync(node, createNodesSingleVncshellRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleVncshell Creates a VNC Shell proxy. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleVncshellWithHttpInfoAsync(string node, CreateNodesSingleVncshellRequest? createNodesSingleVncshellRequest = default(CreateNodesSingleVncshellRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleVncshell"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleVncshellRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleVncshell"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/vncshell", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleVncshell", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleVzdump Create backup. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateNodesSingleVzdump(string node, CreateNodesSingleVzdumpRequest? createNodesSingleVzdumpRequest = default(CreateNodesSingleVzdumpRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleVzdumpWithHttpInfo(node, createNodesSingleVzdumpRequest); + return localVarResponse.Data; + } + + /// + /// createNodesSingleVzdump Create backup. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleVzdumpWithHttpInfo(string node, CreateNodesSingleVzdumpRequest? createNodesSingleVzdumpRequest = default(CreateNodesSingleVzdumpRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleVzdump"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleVzdumpRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleVzdump"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/vzdump", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleVzdump", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleVzdump Create backup. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateNodesSingleVzdumpAsync(string node, CreateNodesSingleVzdumpRequest? createNodesSingleVzdumpRequest = default(CreateNodesSingleVzdumpRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleVzdumpWithHttpInfoAsync(node, createNodesSingleVzdumpRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleVzdump Create backup. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleVzdumpWithHttpInfoAsync(string node, CreateNodesSingleVzdumpRequest? createNodesSingleVzdumpRequest = default(CreateNodesSingleVzdumpRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleVzdump"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createNodesSingleVzdumpRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleVzdump"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/vzdump", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleVzdump", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleWakeonlan Try to wake a node via 'wake on LAN' network packet. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleWakeonlan200Response + public CreateNodesSingleWakeonlan200Response CreateNodesSingleWakeonlan(string node, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateNodesSingleWakeonlanWithHttpInfo(node, body); + return localVarResponse.Data; + } + + /// + /// createNodesSingleWakeonlan Try to wake a node via 'wake on LAN' network packet. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleWakeonlan200Response + public ProxmoxSharp.Client.ApiResponse CreateNodesSingleWakeonlanWithHttpInfo(string node, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleWakeonlan"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleWakeonlan"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/wakeonlan", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleWakeonlan", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createNodesSingleWakeonlan Try to wake a node via 'wake on LAN' network packet. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleWakeonlan200Response + public async System.Threading.Tasks.Task CreateNodesSingleWakeonlanAsync(string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateNodesSingleWakeonlanWithHttpInfoAsync(node, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createNodesSingleWakeonlan Try to wake a node via 'wake on LAN' network packet. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleWakeonlan200Response) + public async System.Threading.Tasks.Task> CreateNodesSingleWakeonlanWithHttpInfoAsync(string node, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateNodesSingleWakeonlan"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateNodesSingleWakeonlan"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/wakeonlan", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateNodesSingleWakeonlan", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createPool Create new pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreatePool(CreatePoolRequest? createPoolRequest = default(CreatePoolRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreatePoolWithHttpInfo(createPoolRequest); + return localVarResponse.Data; + } + + /// + /// createPool Create new pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreatePoolWithHttpInfo(CreatePoolRequest? createPoolRequest = default(CreatePoolRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createPoolRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreatePool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/pools", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreatePool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createPool Create new pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreatePoolAsync(CreatePoolRequest? createPoolRequest = default(CreatePoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreatePoolWithHttpInfoAsync(createPoolRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createPool Create new pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreatePoolWithHttpInfoAsync(CreatePoolRequest? createPoolRequest = default(CreatePoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createPoolRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreatePool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/pools", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreatePool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createStorage Create a new storage. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateStorage200Response + public CreateStorage200Response CreateStorage(CreateStorageRequest? createStorageRequest = default(CreateStorageRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateStorageWithHttpInfo(createStorageRequest); + return localVarResponse.Data; + } + + /// + /// createStorage Create a new storage. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateStorage200Response + public ProxmoxSharp.Client.ApiResponse CreateStorageWithHttpInfo(CreateStorageRequest? createStorageRequest = default(CreateStorageRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createStorageRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateStorage"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/storage", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateStorage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createStorage Create a new storage. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateStorage200Response + public async System.Threading.Tasks.Task CreateStorageAsync(CreateStorageRequest? createStorageRequest = default(CreateStorageRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateStorageWithHttpInfoAsync(createStorageRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createStorage Create a new storage. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateStorage200Response) + public async System.Threading.Tasks.Task> CreateStorageWithHttpInfoAsync(CreateStorageRequest? createStorageRequest = default(CreateStorageRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = createStorageRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateStorage"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/storage", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateStorage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createVM Create or restore a virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateVM(string node, CreateVMRequest? createVMRequest = default(CreateVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateVMWithHttpInfo(node, createVMRequest); + return localVarResponse.Data; + } + + /// + /// createVM Create or restore a virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateVMWithHttpInfo(string node, CreateVMRequest? createVMRequest = default(CreateVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createVM Create or restore a virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateVMAsync(string node, CreateVMRequest? createVMRequest = default(CreateVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateVMWithHttpInfoAsync(node, createVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createVM Create or restore a virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateVMWithHttpInfoAsync(string node, CreateVMRequest? createVMRequest = default(CreateVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = createVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createVMFirewallIPSet Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateVMFirewallIPSet(string node, int vmid, CreateVMFirewallIPSetRequest? createVMFirewallIPSetRequest = default(CreateVMFirewallIPSetRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateVMFirewallIPSetWithHttpInfo(node, vmid, createVMFirewallIPSetRequest); + return localVarResponse.Data; + } + + /// + /// createVMFirewallIPSet Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateVMFirewallIPSetWithHttpInfo(string node, int vmid, CreateVMFirewallIPSetRequest? createVMFirewallIPSetRequest = default(CreateVMFirewallIPSetRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateVMFirewallIPSet"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createVMFirewallIPSetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateVMFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/firewall/ipset", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateVMFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createVMFirewallIPSet Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateVMFirewallIPSetAsync(string node, int vmid, CreateVMFirewallIPSetRequest? createVMFirewallIPSetRequest = default(CreateVMFirewallIPSetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateVMFirewallIPSetWithHttpInfoAsync(node, vmid, createVMFirewallIPSetRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createVMFirewallIPSet Create new IPSet + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateVMFirewallIPSetWithHttpInfoAsync(string node, int vmid, CreateVMFirewallIPSetRequest? createVMFirewallIPSetRequest = default(CreateVMFirewallIPSetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateVMFirewallIPSet"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createVMFirewallIPSetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateVMFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/firewall/ipset", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateVMFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createVMFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response CreateVMFirewallRule(string node, int vmid, CreateVMFirewallRuleRequest? createVMFirewallRuleRequest = default(CreateVMFirewallRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateVMFirewallRuleWithHttpInfo(node, vmid, createVMFirewallRuleRequest); + return localVarResponse.Data; + } + + /// + /// createVMFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse CreateVMFirewallRuleWithHttpInfo(string node, int vmid, CreateVMFirewallRuleRequest? createVMFirewallRuleRequest = default(CreateVMFirewallRuleRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateVMFirewallRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createVMFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateVMFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateVMFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createVMFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task CreateVMFirewallRuleAsync(string node, int vmid, CreateVMFirewallRuleRequest? createVMFirewallRuleRequest = default(CreateVMFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateVMFirewallRuleWithHttpInfoAsync(node, vmid, createVMFirewallRuleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createVMFirewallRule Create new rule. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> CreateVMFirewallRuleWithHttpInfoAsync(string node, int vmid, CreateVMFirewallRuleRequest? createVMFirewallRuleRequest = default(CreateVMFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateVMFirewallRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createVMFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateVMFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateVMFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createVMSnapshot Snapshot a VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response CreateVMSnapshot(string node, int vmid, CreateVMSnapshotRequest? createVMSnapshotRequest = default(CreateVMSnapshotRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = CreateVMSnapshotWithHttpInfo(node, vmid, createVMSnapshotRequest); + return localVarResponse.Data; + } + + /// + /// createVMSnapshot Snapshot a VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse CreateVMSnapshotWithHttpInfo(string node, int vmid, CreateVMSnapshotRequest? createVMSnapshotRequest = default(CreateVMSnapshotRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateVMSnapshot"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createVMSnapshotRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateVMSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/snapshot", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateVMSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// createVMSnapshot Snapshot a VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task CreateVMSnapshotAsync(string node, int vmid, CreateVMSnapshotRequest? createVMSnapshotRequest = default(CreateVMSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await CreateVMSnapshotWithHttpInfoAsync(node, vmid, createVMSnapshotRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// createVMSnapshot Snapshot a VM. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> CreateVMSnapshotWithHttpInfoAsync(string node, int vmid, CreateVMSnapshotRequest? createVMSnapshotRequest = default(CreateVMSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->CreateVMSnapshot"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = createVMSnapshotRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.CreateVMSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/snapshot", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateVMSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessDomainsSingle Delete an authentication server. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteAccessDomainsSingle(string realm, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteAccessDomainsSingleWithHttpInfo(realm); + return localVarResponse.Data; + } + + /// + /// deleteAccessDomainsSingle Delete an authentication server. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteAccessDomainsSingleWithHttpInfo(string realm, int operationIndex = 0) + { + // verify the required parameter 'realm' is set + if (realm == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'realm' when calling ProxmoxGeneratedApi->DeleteAccessDomainsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("realm", ProxmoxSharp.Client.ClientUtils.ParameterToString(realm)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessDomainsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/access/domains/{realm}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessDomainsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessDomainsSingle Delete an authentication server. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteAccessDomainsSingleAsync(string realm, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteAccessDomainsSingleWithHttpInfoAsync(realm, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteAccessDomainsSingle Delete an authentication server. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteAccessDomainsSingleWithHttpInfoAsync(string realm, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'realm' is set + if (realm == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'realm' when calling ProxmoxGeneratedApi->DeleteAccessDomainsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("realm", ProxmoxSharp.Client.ClientUtils.ParameterToString(realm)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessDomainsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/access/domains/{realm}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessDomainsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessGroupsSingle Delete group. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteAccessGroupsSingle(string groupid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteAccessGroupsSingleWithHttpInfo(groupid); + return localVarResponse.Data; + } + + /// + /// deleteAccessGroupsSingle Delete group. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteAccessGroupsSingleWithHttpInfo(string groupid, int operationIndex = 0) + { + // verify the required parameter 'groupid' is set + if (groupid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'groupid' when calling ProxmoxGeneratedApi->DeleteAccessGroupsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupid", ProxmoxSharp.Client.ClientUtils.ParameterToString(groupid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/access/groups/{groupid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessGroupsSingle Delete group. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteAccessGroupsSingleAsync(string groupid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteAccessGroupsSingleWithHttpInfoAsync(groupid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteAccessGroupsSingle Delete group. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteAccessGroupsSingleWithHttpInfoAsync(string groupid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'groupid' is set + if (groupid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'groupid' when calling ProxmoxGeneratedApi->DeleteAccessGroupsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupid", ProxmoxSharp.Client.ClientUtils.ParameterToString(groupid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/access/groups/{groupid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessRolesSingle Delete role. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteAccessRolesSingle(string roleid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteAccessRolesSingleWithHttpInfo(roleid); + return localVarResponse.Data; + } + + /// + /// deleteAccessRolesSingle Delete role. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteAccessRolesSingleWithHttpInfo(string roleid, int operationIndex = 0) + { + // verify the required parameter 'roleid' is set + if (roleid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'roleid' when calling ProxmoxGeneratedApi->DeleteAccessRolesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("roleid", ProxmoxSharp.Client.ClientUtils.ParameterToString(roleid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessRolesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/access/roles/{roleid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessRolesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessRolesSingle Delete role. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteAccessRolesSingleAsync(string roleid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteAccessRolesSingleWithHttpInfoAsync(roleid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteAccessRolesSingle Delete role. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteAccessRolesSingleWithHttpInfoAsync(string roleid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'roleid' is set + if (roleid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'roleid' when calling ProxmoxGeneratedApi->DeleteAccessRolesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("roleid", ProxmoxSharp.Client.ClientUtils.ParameterToString(roleid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessRolesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/access/roles/{roleid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessRolesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessTfaSingleSingle Delete a TFA entry by ID. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteAccessTfaSingleSingle(string id, string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteAccessTfaSingleSingleWithHttpInfo(id, userid); + return localVarResponse.Data; + } + + /// + /// deleteAccessTfaSingleSingle Delete a TFA entry by ID. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteAccessTfaSingleSingleWithHttpInfo(string id, string userid, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteAccessTfaSingleSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->DeleteAccessTfaSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessTfaSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/access/tfa/{userid}/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessTfaSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessTfaSingleSingle Delete a TFA entry by ID. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteAccessTfaSingleSingleAsync(string id, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteAccessTfaSingleSingleWithHttpInfoAsync(id, userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteAccessTfaSingleSingle Delete a TFA entry by ID. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteAccessTfaSingleSingleWithHttpInfoAsync(string id, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteAccessTfaSingleSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->DeleteAccessTfaSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessTfaSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/access/tfa/{userid}/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessTfaSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessUsersSingle Delete user. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteAccessUsersSingle(string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteAccessUsersSingleWithHttpInfo(userid); + return localVarResponse.Data; + } + + /// + /// deleteAccessUsersSingle Delete user. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteAccessUsersSingleWithHttpInfo(string userid, int operationIndex = 0) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->DeleteAccessUsersSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessUsersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/access/users/{userid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessUsersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessUsersSingle Delete user. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteAccessUsersSingleAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteAccessUsersSingleWithHttpInfoAsync(userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteAccessUsersSingle Delete user. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteAccessUsersSingleWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->DeleteAccessUsersSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessUsersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/access/users/{userid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessUsersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessUsersSingleTokenSingle Remove API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteAccessUsersSingleTokenSingle(string tokenid, string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteAccessUsersSingleTokenSingleWithHttpInfo(tokenid, userid); + return localVarResponse.Data; + } + + /// + /// deleteAccessUsersSingleTokenSingle Remove API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteAccessUsersSingleTokenSingleWithHttpInfo(string tokenid, string userid, int operationIndex = 0) + { + // verify the required parameter 'tokenid' is set + if (tokenid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'tokenid' when calling ProxmoxGeneratedApi->DeleteAccessUsersSingleTokenSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->DeleteAccessUsersSingleTokenSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tokenid", ProxmoxSharp.Client.ClientUtils.ParameterToString(tokenid)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessUsersSingleTokenSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/access/users/{userid}/token/{tokenid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessUsersSingleTokenSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteAccessUsersSingleTokenSingle Remove API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteAccessUsersSingleTokenSingleAsync(string tokenid, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteAccessUsersSingleTokenSingleWithHttpInfoAsync(tokenid, userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteAccessUsersSingleTokenSingle Remove API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteAccessUsersSingleTokenSingleWithHttpInfoAsync(string tokenid, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'tokenid' is set + if (tokenid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'tokenid' when calling ProxmoxGeneratedApi->DeleteAccessUsersSingleTokenSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->DeleteAccessUsersSingleTokenSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tokenid", ProxmoxSharp.Client.ClientUtils.ParameterToString(tokenid)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteAccessUsersSingleTokenSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/access/users/{userid}/token/{tokenid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteAccessUsersSingleTokenSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterAcmeAccountSingle Deactivate existing ACME account at CA. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterAcmeAccountSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterAcmeAccountSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// deleteClusterAcmeAccountSingle Deactivate existing ACME account at CA. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterAcmeAccountSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterAcmeAccountSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterAcmeAccountSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/acme/account/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterAcmeAccountSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterAcmeAccountSingle Deactivate existing ACME account at CA. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterAcmeAccountSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterAcmeAccountSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterAcmeAccountSingle Deactivate existing ACME account at CA. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterAcmeAccountSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterAcmeAccountSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterAcmeAccountSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/acme/account/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterAcmeAccountSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterAcmePluginsSingle Delete ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterAcmePluginsSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterAcmePluginsSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterAcmePluginsSingle Delete ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterAcmePluginsSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterAcmePluginsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterAcmePluginsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/acme/plugins/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterAcmePluginsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterAcmePluginsSingle Delete ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterAcmePluginsSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterAcmePluginsSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterAcmePluginsSingle Delete ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterAcmePluginsSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterAcmePluginsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterAcmePluginsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/acme/plugins/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterAcmePluginsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterBackupSingle Delete vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterBackupSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterBackupSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterBackupSingle Delete vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterBackupSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterBackupSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterBackupSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/backup/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterBackupSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterBackupSingle Delete vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterBackupSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterBackupSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterBackupSingle Delete vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterBackupSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterBackupSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterBackupSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/backup/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterBackupSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterConfigNodesSingle Removes a node from the cluster configuration. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterConfigNodesSingle(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterConfigNodesSingleWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// deleteClusterConfigNodesSingle Removes a node from the cluster configuration. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterConfigNodesSingleWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteClusterConfigNodesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterConfigNodesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/config/nodes/{node}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterConfigNodesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterConfigNodesSingle Removes a node from the cluster configuration. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterConfigNodesSingleAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterConfigNodesSingleWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterConfigNodesSingle Removes a node from the cluster configuration. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterConfigNodesSingleWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteClusterConfigNodesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterConfigNodesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/config/nodes/{node}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterConfigNodesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterFirewallAliasesSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterFirewallAliasesSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// deleteClusterFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterFirewallAliasesSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterFirewallAliasesSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterFirewallAliasesSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterFirewallAliasesSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterFirewallGroup Delete security group. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterFirewallGroup(string group, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterFirewallGroupWithHttpInfo(group); + return localVarResponse.Data; + } + + /// + /// deleteClusterFirewallGroup Delete security group. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterFirewallGroupWithHttpInfo(string group, int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->DeleteClusterFirewallGroup"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterFirewallGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/firewall/groups/{group}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterFirewallGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterFirewallGroup Delete security group. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterFirewallGroupAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterFirewallGroupWithHttpInfoAsync(group, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterFirewallGroup Delete security group. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterFirewallGroupWithHttpInfoAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->DeleteClusterFirewallGroup"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterFirewallGroup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/firewall/groups/{group}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterFirewallGroup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterFirewallIPSet Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterFirewallIPSet(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterFirewallIPSetWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// deleteClusterFirewallIPSet Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterFirewallIPSetWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterFirewallIPSet"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterFirewallIPSet Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterFirewallIPSetAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterFirewallIPSetWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterFirewallIPSet Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterFirewallIPSetWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterFirewallIPSet"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterHaGroupsSingle Delete ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterHaGroupsSingle(string group, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterHaGroupsSingleWithHttpInfo(group); + return localVarResponse.Data; + } + + /// + /// deleteClusterHaGroupsSingle Delete ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterHaGroupsSingleWithHttpInfo(string group, int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->DeleteClusterHaGroupsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterHaGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/ha/groups/{group}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterHaGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterHaGroupsSingle Delete ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterHaGroupsSingleAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterHaGroupsSingleWithHttpInfoAsync(group, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterHaGroupsSingle Delete ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterHaGroupsSingleWithHttpInfoAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->DeleteClusterHaGroupsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterHaGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/ha/groups/{group}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterHaGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterHaResourcesSingle Delete resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterHaResourcesSingle(string sid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterHaResourcesSingleWithHttpInfo(sid); + return localVarResponse.Data; + } + + /// + /// deleteClusterHaResourcesSingle Delete resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterHaResourcesSingleWithHttpInfo(string sid, int operationIndex = 0) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->DeleteClusterHaResourcesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterHaResourcesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/ha/resources/{sid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterHaResourcesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterHaResourcesSingle Delete resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterHaResourcesSingleAsync(string sid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterHaResourcesSingleWithHttpInfoAsync(sid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterHaResourcesSingle Delete resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterHaResourcesSingleWithHttpInfoAsync(string sid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->DeleteClusterHaResourcesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterHaResourcesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/ha/resources/{sid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterHaResourcesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterHaRulesSingle Delete HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterHaRulesSingle(string rule, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterHaRulesSingleWithHttpInfo(rule); + return localVarResponse.Data; + } + + /// + /// deleteClusterHaRulesSingle Delete HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterHaRulesSingleWithHttpInfo(string rule, int operationIndex = 0) + { + // verify the required parameter 'rule' is set + if (rule == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'rule' when calling ProxmoxGeneratedApi->DeleteClusterHaRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("rule", ProxmoxSharp.Client.ClientUtils.ParameterToString(rule)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterHaRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/ha/rules/{rule}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterHaRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterHaRulesSingle Delete HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterHaRulesSingleAsync(string rule, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterHaRulesSingleWithHttpInfoAsync(rule, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterHaRulesSingle Delete HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterHaRulesSingleWithHttpInfoAsync(string rule, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'rule' is set + if (rule == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'rule' when calling ProxmoxGeneratedApi->DeleteClusterHaRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("rule", ProxmoxSharp.Client.ClientUtils.ParameterToString(rule)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterHaRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/ha/rules/{rule}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterHaRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterJobsRealmsyncSingle Delete realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterJobsRealmsyncSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterJobsRealmsyncSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterJobsRealmsyncSingle Delete realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterJobsRealmsyncSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterJobsRealmsyncSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterJobsRealmsyncSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/jobs/realm-sync/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterJobsRealmsyncSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterJobsRealmsyncSingle Delete realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterJobsRealmsyncSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterJobsRealmsyncSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterJobsRealmsyncSingle Delete realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterJobsRealmsyncSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterJobsRealmsyncSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterJobsRealmsyncSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/jobs/realm-sync/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterJobsRealmsyncSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterMappingDirSingle Remove directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterMappingDirSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterMappingDirSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterMappingDirSingle Remove directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterMappingDirSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterMappingDirSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterMappingDirSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/mapping/dir/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterMappingDirSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterMappingDirSingle Remove directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterMappingDirSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterMappingDirSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterMappingDirSingle Remove directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterMappingDirSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterMappingDirSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterMappingDirSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/mapping/dir/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterMappingDirSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterMappingPciSingle Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterMappingPciSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterMappingPciSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterMappingPciSingle Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterMappingPciSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterMappingPciSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterMappingPciSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/mapping/pci/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterMappingPciSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterMappingPciSingle Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterMappingPciSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterMappingPciSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterMappingPciSingle Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterMappingPciSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterMappingPciSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterMappingPciSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/mapping/pci/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterMappingPciSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterMappingUsbSingle Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterMappingUsbSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterMappingUsbSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterMappingUsbSingle Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterMappingUsbSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterMappingUsbSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterMappingUsbSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/mapping/usb/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterMappingUsbSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterMappingUsbSingle Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterMappingUsbSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterMappingUsbSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterMappingUsbSingle Remove Hardware Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterMappingUsbSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterMappingUsbSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterMappingUsbSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/mapping/usb/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterMappingUsbSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterMetricsServerSingle Remove Metric server. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterMetricsServerSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterMetricsServerSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterMetricsServerSingle Remove Metric server. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterMetricsServerSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterMetricsServerSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterMetricsServerSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/metrics/server/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterMetricsServerSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterMetricsServerSingle Remove Metric server. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterMetricsServerSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterMetricsServerSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterMetricsServerSingle Remove Metric server. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterMetricsServerSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterMetricsServerSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterMetricsServerSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/metrics/server/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterMetricsServerSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsEndpointsGotifySingle Remove gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterNotificationsEndpointsGotifySingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterNotificationsEndpointsGotifySingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsEndpointsGotifySingle Remove gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterNotificationsEndpointsGotifySingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsEndpointsGotifySingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsEndpointsGotifySingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/notifications/endpoints/gotify/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsEndpointsGotifySingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsEndpointsGotifySingle Remove gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterNotificationsEndpointsGotifySingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsEndpointsGotifySingle Remove gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsEndpointsGotifySingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsEndpointsGotifySingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/notifications/endpoints/gotify/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsEndpointsGotifySingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsEndpointsSendmailSingle Remove sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterNotificationsEndpointsSendmailSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterNotificationsEndpointsSendmailSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsEndpointsSendmailSingle Remove sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterNotificationsEndpointsSendmailSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsEndpointsSendmailSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsEndpointsSendmailSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/notifications/endpoints/sendmail/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsEndpointsSendmailSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsEndpointsSendmailSingle Remove sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterNotificationsEndpointsSendmailSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsEndpointsSendmailSingle Remove sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsEndpointsSendmailSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsEndpointsSendmailSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/notifications/endpoints/sendmail/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsEndpointsSendmailSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsEndpointsSmtpSingle Remove smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterNotificationsEndpointsSmtpSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterNotificationsEndpointsSmtpSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsEndpointsSmtpSingle Remove smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterNotificationsEndpointsSmtpSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsEndpointsSmtpSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsEndpointsSmtpSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/notifications/endpoints/smtp/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsEndpointsSmtpSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsEndpointsSmtpSingle Remove smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterNotificationsEndpointsSmtpSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsEndpointsSmtpSingle Remove smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsEndpointsSmtpSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsEndpointsSmtpSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/notifications/endpoints/smtp/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsEndpointsSmtpSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsEndpointsWebhookSingle Remove webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterNotificationsEndpointsWebhookSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterNotificationsEndpointsWebhookSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsEndpointsWebhookSingle Remove webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterNotificationsEndpointsWebhookSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsEndpointsWebhookSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsEndpointsWebhookSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/notifications/endpoints/webhook/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsEndpointsWebhookSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsEndpointsWebhookSingle Remove webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterNotificationsEndpointsWebhookSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsEndpointsWebhookSingle Remove webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsEndpointsWebhookSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsEndpointsWebhookSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/notifications/endpoints/webhook/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsEndpointsWebhookSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsMatchersSingle Remove matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterNotificationsMatchersSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterNotificationsMatchersSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsMatchersSingle Remove matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterNotificationsMatchersSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsMatchersSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsMatchersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/notifications/matchers/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsMatchersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterNotificationsMatchersSingle Remove matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterNotificationsMatchersSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterNotificationsMatchersSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterNotificationsMatchersSingle Remove matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterNotificationsMatchersSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteClusterNotificationsMatchersSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterNotificationsMatchersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/notifications/matchers/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterNotificationsMatchersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterReplicationSingle Mark replication job for removal. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterReplicationSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterReplicationSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterReplicationSingle Mark replication job for removal. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterReplicationSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterReplicationSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterReplicationSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/replication/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterReplicationSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterReplicationSingle Mark replication job for removal. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterReplicationSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterReplicationSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterReplicationSingle Mark replication job for removal. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterReplicationSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterReplicationSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterReplicationSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/replication/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterReplicationSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSDNController Delete sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSDNController(string controller, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSDNControllerWithHttpInfo(controller); + return localVarResponse.Data; + } + + /// + /// deleteClusterSDNController Delete sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSDNControllerWithHttpInfo(string controller, int operationIndex = 0) + { + // verify the required parameter 'controller' is set + if (controller == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'controller' when calling ProxmoxGeneratedApi->DeleteClusterSDNController"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("controller", ProxmoxSharp.Client.ClientUtils.ParameterToString(controller)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSDNController"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/controllers/{controller}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSDNController", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSDNController Delete sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSDNControllerAsync(string controller, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSDNControllerWithHttpInfoAsync(controller, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSDNController Delete sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSDNControllerWithHttpInfoAsync(string controller, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'controller' is set + if (controller == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'controller' when calling ProxmoxGeneratedApi->DeleteClusterSDNController"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("controller", ProxmoxSharp.Client.ClientUtils.ParameterToString(controller)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSDNController"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/controllers/{controller}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSDNController", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSDNVnet Delete sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSDNVnet(string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSDNVnetWithHttpInfo(vnet); + return localVarResponse.Data; + } + + /// + /// deleteClusterSDNVnet Delete sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSDNVnetWithHttpInfo(string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->DeleteClusterSDNVnet"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSDNVnet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/vnets/{vnet}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSDNVnet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSDNVnet Delete sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSDNVnetAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSDNVnetWithHttpInfoAsync(vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSDNVnet Delete sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSDNVnetWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->DeleteClusterSDNVnet"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSDNVnet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/vnets/{vnet}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSDNVnet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSDNZone Delete sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSDNZone(string zone, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSDNZoneWithHttpInfo(zone); + return localVarResponse.Data; + } + + /// + /// deleteClusterSDNZone Delete sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSDNZoneWithHttpInfo(string zone, int operationIndex = 0) + { + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->DeleteClusterSDNZone"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/zones/{zone}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSDNZone Delete sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSDNZoneAsync(string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSDNZoneWithHttpInfoAsync(zone, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSDNZone Delete sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSDNZoneWithHttpInfoAsync(string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->DeleteClusterSDNZone"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/zones/{zone}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnDnsSingle Delete sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSdnDnsSingle(string dns, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSdnDnsSingleWithHttpInfo(dns); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnDnsSingle Delete sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSdnDnsSingleWithHttpInfo(string dns, int operationIndex = 0) + { + // verify the required parameter 'dns' is set + if (dns == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'dns' when calling ProxmoxGeneratedApi->DeleteClusterSdnDnsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("dns", ProxmoxSharp.Client.ClientUtils.ParameterToString(dns)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnDnsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/dns/{dns}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnDnsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnDnsSingle Delete sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSdnDnsSingleAsync(string dns, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSdnDnsSingleWithHttpInfoAsync(dns, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnDnsSingle Delete sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSdnDnsSingleWithHttpInfoAsync(string dns, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'dns' is set + if (dns == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'dns' when calling ProxmoxGeneratedApi->DeleteClusterSdnDnsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("dns", ProxmoxSharp.Client.ClientUtils.ParameterToString(dns)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnDnsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/dns/{dns}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnDnsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnFabricsFabricSingle Add a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSdnFabricsFabricSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSdnFabricsFabricSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnFabricsFabricSingle Add a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSdnFabricsFabricSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterSdnFabricsFabricSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnFabricsFabricSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/fabrics/fabric/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnFabricsFabricSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnFabricsFabricSingle Add a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSdnFabricsFabricSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSdnFabricsFabricSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnFabricsFabricSingle Add a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSdnFabricsFabricSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteClusterSdnFabricsFabricSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnFabricsFabricSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/fabrics/fabric/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnFabricsFabricSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnFabricsNodeSingleSingle Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSdnFabricsNodeSingleSingle(string fabricId, string nodeId, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSdnFabricsNodeSingleSingleWithHttpInfo(fabricId, nodeId); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnFabricsNodeSingleSingle Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSdnFabricsNodeSingleSingleWithHttpInfo(string fabricId, string nodeId, int operationIndex = 0) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->DeleteClusterSdnFabricsNodeSingleSingle"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'nodeId' when calling ProxmoxGeneratedApi->DeleteClusterSdnFabricsNodeSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + localVarRequestOptions.PathParameters.Add("node_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(nodeId)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnFabricsNodeSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/fabrics/node/{fabric_id}/{node_id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnFabricsNodeSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnFabricsNodeSingleSingle Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSdnFabricsNodeSingleSingleAsync(string fabricId, string nodeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(fabricId, nodeId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnFabricsNodeSingleSingle Add a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(string fabricId, string nodeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->DeleteClusterSdnFabricsNodeSingleSingle"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'nodeId' when calling ProxmoxGeneratedApi->DeleteClusterSdnFabricsNodeSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + localVarRequestOptions.PathParameters.Add("node_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(nodeId)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnFabricsNodeSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/fabrics/node/{fabric_id}/{node_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnFabricsNodeSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnIpamsSingle Delete sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSdnIpamsSingle(string ipam, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSdnIpamsSingleWithHttpInfo(ipam); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnIpamsSingle Delete sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSdnIpamsSingleWithHttpInfo(string ipam, int operationIndex = 0) + { + // verify the required parameter 'ipam' is set + if (ipam == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'ipam' when calling ProxmoxGeneratedApi->DeleteClusterSdnIpamsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("ipam", ProxmoxSharp.Client.ClientUtils.ParameterToString(ipam)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnIpamsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/ipams/{ipam}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnIpamsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnIpamsSingle Delete sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSdnIpamsSingleAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSdnIpamsSingleWithHttpInfoAsync(ipam, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnIpamsSingle Delete sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSdnIpamsSingleWithHttpInfoAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'ipam' is set + if (ipam == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'ipam' when calling ProxmoxGeneratedApi->DeleteClusterSdnIpamsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("ipam", ProxmoxSharp.Client.ClientUtils.ParameterToString(ipam)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnIpamsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/ipams/{ipam}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnIpamsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnLock Release global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSdnLock(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSdnLockWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnLock Release global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSdnLockWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnLock"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/lock", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnLock", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnLock Release global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSdnLockAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSdnLockWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnLock Release global lock for SDN configuration + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSdnLockWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnLock"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/lock", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnLock", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnVnetsSingleFirewallRulesSingle Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSdnVnetsSingleFirewallRulesSingle(int pos, string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(pos, vnet); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnVnetsSingleFirewallRulesSingle Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(int pos, string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->DeleteClusterSdnVnetsSingleFirewallRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnVnetsSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnVnetsSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnVnetsSingleFirewallRulesSingle Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSdnVnetsSingleFirewallRulesSingleAsync(int pos, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(pos, vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnVnetsSingleFirewallRulesSingle Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(int pos, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->DeleteClusterSdnVnetsSingleFirewallRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnVnetsSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnVnetsSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnVnetsSingleIps Delete IP Mappings in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSdnVnetsSingleIps(string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSdnVnetsSingleIpsWithHttpInfo(vnet); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnVnetsSingleIps Delete IP Mappings in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSdnVnetsSingleIpsWithHttpInfo(string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->DeleteClusterSdnVnetsSingleIps"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnVnetsSingleIps"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/vnets/{vnet}/ips", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnVnetsSingleIps", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnVnetsSingleIps Delete IP Mappings in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSdnVnetsSingleIpsAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSdnVnetsSingleIpsWithHttpInfoAsync(vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnVnetsSingleIps Delete IP Mappings in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSdnVnetsSingleIpsWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->DeleteClusterSdnVnetsSingleIps"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnVnetsSingleIps"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/vnets/{vnet}/ips", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnVnetsSingleIps", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnVnetsSingleSubnetsSingle Delete sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteClusterSdnVnetsSingleSubnetsSingle(string subnet, string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(subnet, vnet); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnVnetsSingleSubnetsSingle Delete sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(string subnet, string vnet, int operationIndex = 0) + { + // verify the required parameter 'subnet' is set + if (subnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'subnet' when calling ProxmoxGeneratedApi->DeleteClusterSdnVnetsSingleSubnetsSingle"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->DeleteClusterSdnVnetsSingleSubnetsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("subnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(subnet)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnVnetsSingleSubnetsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/sdn/vnets/{vnet}/subnets/{subnet}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnVnetsSingleSubnetsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteClusterSdnVnetsSingleSubnetsSingle Delete sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteClusterSdnVnetsSingleSubnetsSingleAsync(string subnet, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(subnet, vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteClusterSdnVnetsSingleSubnetsSingle Delete sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(string subnet, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'subnet' is set + if (subnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'subnet' when calling ProxmoxGeneratedApi->DeleteClusterSdnVnetsSingleSubnetsSingle"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->DeleteClusterSdnVnetsSingleSubnetsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("subnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(subnet)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteClusterSdnVnetsSingleSubnetsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/sdn/vnets/{vnet}/subnets/{subnet}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteClusterSdnVnetsSingleSubnetsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodeFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodeFirewallRule(string node, int pos, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodeFirewallRuleWithHttpInfo(node, pos); + return localVarResponse.Data; + } + + /// + /// deleteNodeFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodeFirewallRuleWithHttpInfo(string node, int pos, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodeFirewallRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodeFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodeFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodeFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodeFirewallRuleAsync(string node, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodeFirewallRuleWithHttpInfoAsync(node, pos, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodeFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodeFirewallRuleWithHttpInfoAsync(string node, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodeFirewallRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodeFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodeFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephMdsSingle Destroy Ceph Metadata Server + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleCephMdsSingle(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleCephMdsSingleWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephMdsSingle Destroy Ceph Metadata Server + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleCephMdsSingleWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMdsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMdsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephMdsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/ceph/mds/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephMdsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephMdsSingle Destroy Ceph Metadata Server + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleCephMdsSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleCephMdsSingleWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephMdsSingle Destroy Ceph Metadata Server + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleCephMdsSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMdsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMdsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephMdsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/ceph/mds/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephMdsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephMgrSingle Destroy Ceph Manager. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleCephMgrSingle(string id, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleCephMgrSingleWithHttpInfo(id, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephMgrSingle Destroy Ceph Manager. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleCephMgrSingleWithHttpInfo(string id, string node, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMgrSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMgrSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephMgrSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/ceph/mgr/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephMgrSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephMgrSingle Destroy Ceph Manager. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleCephMgrSingleAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleCephMgrSingleWithHttpInfoAsync(id, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephMgrSingle Destroy Ceph Manager. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleCephMgrSingleWithHttpInfoAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMgrSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMgrSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephMgrSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/ceph/mgr/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephMgrSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephMonSingle Destroy Ceph Monitor and Manager. + /// + /// Thrown when fails to make API call + /// monid + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleCephMonSingle(string monid, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleCephMonSingleWithHttpInfo(monid, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephMonSingle Destroy Ceph Monitor and Manager. + /// + /// Thrown when fails to make API call + /// monid + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleCephMonSingleWithHttpInfo(string monid, string node, int operationIndex = 0) + { + // verify the required parameter 'monid' is set + if (monid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'monid' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMonSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMonSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("monid", ProxmoxSharp.Client.ClientUtils.ParameterToString(monid)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephMonSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/ceph/mon/{monid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephMonSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephMonSingle Destroy Ceph Monitor and Manager. + /// + /// Thrown when fails to make API call + /// monid + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleCephMonSingleAsync(string monid, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleCephMonSingleWithHttpInfoAsync(monid, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephMonSingle Destroy Ceph Monitor and Manager. + /// + /// Thrown when fails to make API call + /// monid + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleCephMonSingleWithHttpInfoAsync(string monid, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'monid' is set + if (monid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'monid' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMonSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephMonSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("monid", ProxmoxSharp.Client.ClientUtils.ParameterToString(monid)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephMonSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/ceph/mon/{monid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephMonSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephOsdSingle Destroy OSD + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleCephOsdSingle(string node, int osdid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleCephOsdSingleWithHttpInfo(node, osdid); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephOsdSingle Destroy OSD + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleCephOsdSingleWithHttpInfo(string node, int osdid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephOsdSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephOsdSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/ceph/osd/{osdid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephOsdSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephOsdSingle Destroy OSD + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleCephOsdSingleAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleCephOsdSingleWithHttpInfoAsync(node, osdid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephOsdSingle Destroy OSD + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleCephOsdSingleWithHttpInfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephOsdSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephOsdSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/ceph/osd/{osdid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephOsdSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephPoolSingle Destroy pool + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleCephPoolSingle(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleCephPoolSingleWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephPoolSingle Destroy pool + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleCephPoolSingleWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephPoolSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephPoolSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephPoolSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/ceph/pool/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephPoolSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCephPoolSingle Destroy pool + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleCephPoolSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleCephPoolSingleWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCephPoolSingle Destroy pool + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleCephPoolSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephPoolSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCephPoolSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCephPoolSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/ceph/pool/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCephPoolSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCertificatesAcmeCertificate Revoke existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleCertificatesAcmeCertificate(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleCertificatesAcmeCertificateWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCertificatesAcmeCertificate Revoke existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleCertificatesAcmeCertificateWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCertificatesAcmeCertificate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCertificatesAcmeCertificate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/certificates/acme/certificate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCertificatesAcmeCertificate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCertificatesAcmeCertificate Revoke existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleCertificatesAcmeCertificateAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCertificatesAcmeCertificate Revoke existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCertificatesAcmeCertificate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCertificatesAcmeCertificate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/certificates/acme/certificate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCertificatesAcmeCertificate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCertificatesCustom DELETE custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleCertificatesCustom(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleCertificatesCustomWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCertificatesCustom DELETE custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleCertificatesCustomWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCertificatesCustom"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCertificatesCustom"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/certificates/custom", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCertificatesCustom", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleCertificatesCustom DELETE custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleCertificatesCustomAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleCertificatesCustomWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleCertificatesCustom DELETE custom certificate chain and key. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleCertificatesCustomWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleCertificatesCustom"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleCertificatesCustom"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/certificates/custom", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleCertificatesCustom", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleDisksDirectorySingle Unmounts the storage and removes the mount unit. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleDisksDirectorySingle(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleDisksDirectorySingleWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleDisksDirectorySingle Unmounts the storage and removes the mount unit. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleDisksDirectorySingleWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksDirectorySingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksDirectorySingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleDisksDirectorySingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/disks/directory/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleDisksDirectorySingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleDisksDirectorySingle Unmounts the storage and removes the mount unit. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleDisksDirectorySingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleDisksDirectorySingleWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleDisksDirectorySingle Unmounts the storage and removes the mount unit. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleDisksDirectorySingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksDirectorySingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksDirectorySingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleDisksDirectorySingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/disks/directory/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleDisksDirectorySingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleDisksLvmSingle Remove an LVM Volume Group. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleDisksLvmSingle(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleDisksLvmSingleWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleDisksLvmSingle Remove an LVM Volume Group. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleDisksLvmSingleWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksLvmSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksLvmSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleDisksLvmSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/disks/lvm/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleDisksLvmSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleDisksLvmSingle Remove an LVM Volume Group. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleDisksLvmSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleDisksLvmSingleWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleDisksLvmSingle Remove an LVM Volume Group. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleDisksLvmSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksLvmSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksLvmSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleDisksLvmSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/disks/lvm/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleDisksLvmSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleDisksLvmthinSingle Remove an LVM thin pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleDisksLvmthinSingle(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleDisksLvmthinSingleWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleDisksLvmthinSingle Remove an LVM thin pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleDisksLvmthinSingleWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksLvmthinSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksLvmthinSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleDisksLvmthinSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/disks/lvmthin/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleDisksLvmthinSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleDisksLvmthinSingle Remove an LVM thin pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleDisksLvmthinSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleDisksLvmthinSingleWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleDisksLvmthinSingle Remove an LVM thin pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleDisksLvmthinSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksLvmthinSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksLvmthinSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleDisksLvmthinSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/disks/lvmthin/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleDisksLvmthinSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleDisksZfsSingle Destroy a ZFS pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleDisksZfsSingle(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleDisksZfsSingleWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleDisksZfsSingle Destroy a ZFS pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleDisksZfsSingleWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksZfsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksZfsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleDisksZfsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/disks/zfs/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleDisksZfsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleDisksZfsSingle Destroy a ZFS pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleDisksZfsSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleDisksZfsSingleWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleDisksZfsSingle Destroy a ZFS pool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleDisksZfsSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksZfsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleDisksZfsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleDisksZfsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/disks/zfs/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleDisksZfsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingle Destroy the container (also delete all uses files). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleLxcSingle(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleLxcSingleWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingle Destroy the container (also delete all uses files). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleLxcSingleWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/lxc/{vmid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingle Destroy the container (also delete all uses files). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleLxcSingleAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleLxcSingleWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingle Destroy the container (also delete all uses files). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/lxc/{vmid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleLxcSingleFirewallAliasesSingle(string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(name, node, vmid); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/lxc/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleLxcSingleFirewallAliasesSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/lxc/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingle Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleLxcSingleFirewallIpsetSingle(string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(name, node, vmid); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingle Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleFirewallIpsetSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleFirewallIpsetSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingle Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleLxcSingleFirewallIpsetSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingle Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleFirewallIpsetSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleFirewallIpsetSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingleSingle Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle(string cidr, string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(cidr, name, node, vmid); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingleSingle Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(string cidr, string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingleSingle Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(cidr, name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleFirewallIpsetSingleSingle Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleFirewallIpsetSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleFirewallRulesSingle Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleLxcSingleFirewallRulesSingle(string node, int pos, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(node, pos, vmid); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleFirewallRulesSingle Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(string node, int pos, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/lxc/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleFirewallRulesSingle Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleLxcSingleFirewallRulesSingleAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(node, pos, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleFirewallRulesSingle Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleFirewallRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/lxc/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleSnapshotSingle Delete a LXC snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response DeleteNodesSingleLxcSingleSnapshotSingle(string node, string snapname, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleLxcSingleSnapshotSingleWithHttpInfo(node, snapname, vmid); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleSnapshotSingle Delete a LXC snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleLxcSingleSnapshotSingleWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleSnapshotSingle"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleSnapshotSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleSnapshotSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleSnapshotSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleLxcSingleSnapshotSingle Delete a LXC snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task DeleteNodesSingleLxcSingleSnapshotSingleAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleLxcSingleSnapshotSingleWithHttpInfoAsync(node, snapname, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleLxcSingleSnapshotSingle Delete a LXC snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleLxcSingleSnapshotSingleWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleSnapshotSingle"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->DeleteNodesSingleLxcSingleSnapshotSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleLxcSingleSnapshotSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleLxcSingleSnapshotSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleNetwork Revert network configuration changes. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleNetwork(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleNetworkWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleNetwork Revert network configuration changes. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleNetworkWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleNetwork"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleNetwork"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/network", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleNetwork", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleNetwork Revert network configuration changes. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleNetworkAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleNetworkWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleNetwork Revert network configuration changes. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleNetworkWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleNetwork"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleNetwork"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/network", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleNetwork", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleNetworkSingle Delete network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleNetworkSingle(string iface, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleNetworkSingleWithHttpInfo(iface, node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleNetworkSingle Delete network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleNetworkSingleWithHttpInfo(string iface, string node, int operationIndex = 0) + { + // verify the required parameter 'iface' is set + if (iface == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'iface' when calling ProxmoxGeneratedApi->DeleteNodesSingleNetworkSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleNetworkSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("iface", ProxmoxSharp.Client.ClientUtils.ParameterToString(iface)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleNetworkSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/network/{iface}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleNetworkSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleNetworkSingle Delete network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleNetworkSingleAsync(string iface, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleNetworkSingleWithHttpInfoAsync(iface, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleNetworkSingle Delete network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleNetworkSingleWithHttpInfoAsync(string iface, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'iface' is set + if (iface == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'iface' when calling ProxmoxGeneratedApi->DeleteNodesSingleNetworkSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleNetworkSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("iface", ProxmoxSharp.Client.ClientUtils.ParameterToString(iface)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleNetworkSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/network/{iface}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleNetworkSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleQemuSingleFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleQemuSingleFirewallAliasesSingle(string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(name, node, vmid); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleQemuSingleFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleQemuSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleQemuSingleFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleQemuSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/qemu/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleQemuSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleQemuSingleFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleQemuSingleFirewallAliasesSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleQemuSingleFirewallAliasesSingle Remove IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteNodesSingleQemuSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleQemuSingleFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleQemuSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/qemu/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleQemuSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleStorageSingleContentSingle Delete volume + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleStorageSingleContentSingle(string node, string storage, string volume, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleStorageSingleContentSingleWithHttpInfo(node, storage, volume); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleStorageSingleContentSingle Delete volume + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleStorageSingleContentSingleWithHttpInfo(string node, string storage, string volume, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'volume' is set + if (volume == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'volume' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSingleContentSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.PathParameters.Add("volume", ProxmoxSharp.Client.ClientUtils.ParameterToString(volume)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleStorageSingleContentSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/storage/{storage}/content/{volume}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleStorageSingleContentSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleStorageSingleContentSingle Delete volume + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleStorageSingleContentSingleAsync(string node, string storage, string volume, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleStorageSingleContentSingleWithHttpInfoAsync(node, storage, volume, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleStorageSingleContentSingle Delete volume + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleStorageSingleContentSingleWithHttpInfoAsync(string node, string storage, string volume, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'volume' is set + if (volume == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'volume' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSingleContentSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.PathParameters.Add("volume", ProxmoxSharp.Client.ClientUtils.ParameterToString(volume)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleStorageSingleContentSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/storage/{storage}/content/{volume}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleStorageSingleContentSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleStorageSinglePrunebackups Prune backups. Only those using the standard naming scheme are considered. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleStorageSinglePrunebackups(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleStorageSinglePrunebackupsWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleStorageSinglePrunebackups Prune backups. Only those using the standard naming scheme are considered. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleStorageSinglePrunebackupsWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSinglePrunebackups"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSinglePrunebackups"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleStorageSinglePrunebackups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/storage/{storage}/prunebackups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleStorageSinglePrunebackups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleStorageSinglePrunebackups Prune backups. Only those using the standard naming scheme are considered. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleStorageSinglePrunebackupsAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleStorageSinglePrunebackupsWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleStorageSinglePrunebackups Prune backups. Only those using the standard naming scheme are considered. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleStorageSinglePrunebackupsWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSinglePrunebackups"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->DeleteNodesSingleStorageSinglePrunebackups"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleStorageSinglePrunebackups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/storage/{storage}/prunebackups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleStorageSinglePrunebackups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleSubscription Delete subscription key of this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteNodesSingleSubscription(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteNodesSingleSubscriptionWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleSubscription Delete subscription key of this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteNodesSingleSubscriptionWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleSubscription"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleSubscription"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/subscription", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleSubscription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteNodesSingleSubscription Delete subscription key of this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteNodesSingleSubscriptionAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteNodesSingleSubscriptionWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteNodesSingleSubscription Delete subscription key of this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteNodesSingleSubscriptionWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteNodesSingleSubscription"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteNodesSingleSubscription"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/subscription", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteNodesSingleSubscription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deletePool Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeletePool(string poolid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeletePoolWithHttpInfo(poolid); + return localVarResponse.Data; + } + + /// + /// deletePool Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeletePoolWithHttpInfo(string poolid, int operationIndex = 0) + { + // verify the required parameter 'poolid' is set + if (poolid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'poolid' when calling ProxmoxGeneratedApi->DeletePool"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("poolid", ProxmoxSharp.Client.ClientUtils.ParameterToString(poolid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeletePool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/pools/{poolid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeletePool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deletePool Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeletePoolAsync(string poolid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeletePoolWithHttpInfoAsync(poolid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deletePool Delete pool (deprecated, no support for nested pools, use 'DELETE /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeletePoolWithHttpInfoAsync(string poolid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'poolid' is set + if (poolid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'poolid' when calling ProxmoxGeneratedApi->DeletePool"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("poolid", ProxmoxSharp.Client.ClientUtils.ParameterToString(poolid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeletePool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/pools/{poolid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeletePool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deletePools Delete pool. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeletePools(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeletePoolsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// deletePools Delete pool. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeletePoolsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeletePools"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/pools", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeletePools", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deletePools Delete pool. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeletePoolsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeletePoolsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deletePools Delete pool. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeletePoolsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeletePools"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/pools", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeletePools", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteStorageSingle Delete storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteStorageSingle(string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteStorageSingleWithHttpInfo(storage); + return localVarResponse.Data; + } + + /// + /// deleteStorageSingle Delete storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteStorageSingleWithHttpInfo(string storage, int operationIndex = 0) + { + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->DeleteStorageSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteStorageSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/storage/{storage}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteStorageSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteStorageSingle Delete storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteStorageSingleAsync(string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteStorageSingleWithHttpInfoAsync(storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteStorageSingle Delete storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteStorageSingleWithHttpInfoAsync(string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->DeleteStorageSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteStorageSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/storage/{storage}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteStorageSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteVM Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteVM(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteVMWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// deleteVM Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteVMWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/qemu/{vmid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteVM Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteVMAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteVMWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteVM Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteVMWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/qemu/{vmid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteVMFirewallIPSet Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteVMFirewallIPSet(string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteVMFirewallIPSetWithHttpInfo(name, node, vmid); + return localVarResponse.Data; + } + + /// + /// deleteVMFirewallIPSet Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteVMFirewallIPSetWithHttpInfo(string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteVMFirewallIPSet"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteVMFirewallIPSet"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteVMFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteVMFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteVMFirewallIPSet Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteVMFirewallIPSetAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteVMFirewallIPSetWithHttpInfoAsync(name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteVMFirewallIPSet Delete IPSet + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteVMFirewallIPSetWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->DeleteVMFirewallIPSet"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteVMFirewallIPSet"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteVMFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteVMFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteVMFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response DeleteVMFirewallRule(string node, int pos, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteVMFirewallRuleWithHttpInfo(node, pos, vmid); + return localVarResponse.Data; + } + + /// + /// deleteVMFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse DeleteVMFirewallRuleWithHttpInfo(string node, int pos, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteVMFirewallRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteVMFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/qemu/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteVMFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteVMFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task DeleteVMFirewallRuleAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteVMFirewallRuleWithHttpInfoAsync(node, pos, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteVMFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> DeleteVMFirewallRuleWithHttpInfoAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteVMFirewallRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteVMFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/qemu/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteVMFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteVMSnapshot Delete a VM snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response DeleteVMSnapshot(string node, string snapname, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = DeleteVMSnapshotWithHttpInfo(node, snapname, vmid); + return localVarResponse.Data; + } + + /// + /// deleteVMSnapshot Delete a VM snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse DeleteVMSnapshotWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteVMSnapshot"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->DeleteVMSnapshot"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteVMSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteVMSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// deleteVMSnapshot Delete a VM snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task DeleteVMSnapshotAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await DeleteVMSnapshotWithHttpInfoAsync(node, snapname, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// deleteVMSnapshot Delete a VM snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> DeleteVMSnapshotWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->DeleteVMSnapshot"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->DeleteVMSnapshot"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.DeleteVMSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteVMSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccess Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetAccess(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccess Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetAccessWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccess Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetAccessAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccess Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetAccessWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccess"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccess", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessAcl Get Access Control List (ACLs). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessAcl200Response + public GetAccessAcl200Response GetAccessAcl(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessAclWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessAcl Get Access Control List (ACLs). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessAcl200Response + public ProxmoxSharp.Client.ApiResponse GetAccessAclWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessAcl"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/acl", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessAcl", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessAcl Get Access Control List (ACLs). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessAcl200Response + public async System.Threading.Tasks.Task GetAccessAclAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessAclWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessAcl Get Access Control List (ACLs). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessAcl200Response) + public async System.Threading.Tasks.Task> GetAccessAclWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessAcl"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/acl", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessAcl", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessDomains Authentication domain index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessDomains200Response + public GetAccessDomains200Response GetAccessDomains(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessDomainsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessDomains Authentication domain index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessDomains200Response + public ProxmoxSharp.Client.ApiResponse GetAccessDomainsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/domains", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessDomains Authentication domain index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessDomains200Response + public async System.Threading.Tasks.Task GetAccessDomainsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessDomainsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessDomains Authentication domain index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessDomains200Response) + public async System.Threading.Tasks.Task> GetAccessDomainsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessDomains"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/domains", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessDomains", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessDomainsSingle Get auth server configuration. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetAccessDomainsSingle(string realm, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessDomainsSingleWithHttpInfo(realm); + return localVarResponse.Data; + } + + /// + /// getAccessDomainsSingle Get auth server configuration. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetAccessDomainsSingleWithHttpInfo(string realm, int operationIndex = 0) + { + // verify the required parameter 'realm' is set + if (realm == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'realm' when calling ProxmoxGeneratedApi->GetAccessDomainsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("realm", ProxmoxSharp.Client.ClientUtils.ParameterToString(realm)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessDomainsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/domains/{realm}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessDomainsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessDomainsSingle Get auth server configuration. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetAccessDomainsSingleAsync(string realm, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessDomainsSingleWithHttpInfoAsync(realm, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessDomainsSingle Get auth server configuration. + /// + /// Thrown when fails to make API call + /// realm + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetAccessDomainsSingleWithHttpInfoAsync(string realm, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'realm' is set + if (realm == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'realm' when calling ProxmoxGeneratedApi->GetAccessDomainsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("realm", ProxmoxSharp.Client.ClientUtils.ParameterToString(realm)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessDomainsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/domains/{realm}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessDomainsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessGroups Group index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessGroups200Response + public GetAccessGroups200Response GetAccessGroups(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessGroupsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessGroups Group index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessGroups200Response + public ProxmoxSharp.Client.ApiResponse GetAccessGroupsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessGroups Group index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessGroups200Response + public async System.Threading.Tasks.Task GetAccessGroupsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessGroupsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessGroups Group index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessGroups200Response) + public async System.Threading.Tasks.Task> GetAccessGroupsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessGroupsSingle Get group configuration. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// GetAccessGroupsSingle200Response + public GetAccessGroupsSingle200Response GetAccessGroupsSingle(string groupid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessGroupsSingleWithHttpInfo(groupid); + return localVarResponse.Data; + } + + /// + /// getAccessGroupsSingle Get group configuration. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// ApiResponse of GetAccessGroupsSingle200Response + public ProxmoxSharp.Client.ApiResponse GetAccessGroupsSingleWithHttpInfo(string groupid, int operationIndex = 0) + { + // verify the required parameter 'groupid' is set + if (groupid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'groupid' when calling ProxmoxGeneratedApi->GetAccessGroupsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupid", ProxmoxSharp.Client.ClientUtils.ParameterToString(groupid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/groups/{groupid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessGroupsSingle Get group configuration. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessGroupsSingle200Response + public async System.Threading.Tasks.Task GetAccessGroupsSingleAsync(string groupid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessGroupsSingleWithHttpInfoAsync(groupid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessGroupsSingle Get group configuration. + /// + /// Thrown when fails to make API call + /// groupid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessGroupsSingle200Response) + public async System.Threading.Tasks.Task> GetAccessGroupsSingleWithHttpInfoAsync(string groupid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'groupid' is set + if (groupid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'groupid' when calling ProxmoxGeneratedApi->GetAccessGroupsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupid", ProxmoxSharp.Client.ClientUtils.ParameterToString(groupid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/groups/{groupid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessOpenid Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetAccessOpenid(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessOpenidWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessOpenid Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetAccessOpenidWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessOpenid"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/openid", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessOpenid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessOpenid Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetAccessOpenidAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessOpenidWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessOpenid Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetAccessOpenidWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessOpenid"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/openid", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessOpenid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessPermissions Retrieve effective permissions of given user/token. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessPermissions200Response + public GetAccessPermissions200Response GetAccessPermissions(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessPermissionsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessPermissions Retrieve effective permissions of given user/token. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessPermissions200Response + public ProxmoxSharp.Client.ApiResponse GetAccessPermissionsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessPermissions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/permissions", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessPermissions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessPermissions Retrieve effective permissions of given user/token. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessPermissions200Response + public async System.Threading.Tasks.Task GetAccessPermissionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessPermissionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessPermissions Retrieve effective permissions of given user/token. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessPermissions200Response) + public async System.Threading.Tasks.Task> GetAccessPermissionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessPermissions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/permissions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessPermissions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessRoles Role index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessRoles200Response + public GetAccessRoles200Response GetAccessRoles(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessRolesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessRoles Role index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessRoles200Response + public ProxmoxSharp.Client.ApiResponse GetAccessRolesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessRoles"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/roles", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessRoles", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessRoles Role index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessRoles200Response + public async System.Threading.Tasks.Task GetAccessRolesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessRolesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessRoles Role index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessRoles200Response) + public async System.Threading.Tasks.Task> GetAccessRolesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessRoles"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/roles", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessRoles", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessRolesSingle Get role configuration. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// GetAccessRolesSingle200Response + public GetAccessRolesSingle200Response GetAccessRolesSingle(string roleid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessRolesSingleWithHttpInfo(roleid); + return localVarResponse.Data; + } + + /// + /// getAccessRolesSingle Get role configuration. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// ApiResponse of GetAccessRolesSingle200Response + public ProxmoxSharp.Client.ApiResponse GetAccessRolesSingleWithHttpInfo(string roleid, int operationIndex = 0) + { + // verify the required parameter 'roleid' is set + if (roleid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'roleid' when calling ProxmoxGeneratedApi->GetAccessRolesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("roleid", ProxmoxSharp.Client.ClientUtils.ParameterToString(roleid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessRolesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/roles/{roleid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessRolesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessRolesSingle Get role configuration. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessRolesSingle200Response + public async System.Threading.Tasks.Task GetAccessRolesSingleAsync(string roleid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessRolesSingleWithHttpInfoAsync(roleid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessRolesSingle Get role configuration. + /// + /// Thrown when fails to make API call + /// roleid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessRolesSingle200Response) + public async System.Threading.Tasks.Task> GetAccessRolesSingleWithHttpInfoAsync(string roleid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'roleid' is set + if (roleid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'roleid' when calling ProxmoxGeneratedApi->GetAccessRolesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("roleid", ProxmoxSharp.Client.ClientUtils.ParameterToString(roleid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessRolesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/roles/{roleid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessRolesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessTfa List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessTfa200Response + public GetAccessTfa200Response GetAccessTfa(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessTfaWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessTfa List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessTfa200Response + public ProxmoxSharp.Client.ApiResponse GetAccessTfaWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessTfa"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/tfa", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessTfa", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessTfa List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessTfa200Response + public async System.Threading.Tasks.Task GetAccessTfaAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessTfaWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessTfa List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessTfa200Response) + public async System.Threading.Tasks.Task> GetAccessTfaWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessTfa"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/tfa", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessTfa", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessTfaSingle List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// GetAccessTfaSingle200Response + public GetAccessTfaSingle200Response GetAccessTfaSingle(string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessTfaSingleWithHttpInfo(userid); + return localVarResponse.Data; + } + + /// + /// getAccessTfaSingle List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessTfaSingle200Response + public ProxmoxSharp.Client.ApiResponse GetAccessTfaSingleWithHttpInfo(string userid, int operationIndex = 0) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessTfaSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessTfaSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/tfa/{userid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessTfaSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessTfaSingle List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessTfaSingle200Response + public async System.Threading.Tasks.Task GetAccessTfaSingleAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessTfaSingleWithHttpInfoAsync(userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessTfaSingle List TFA configurations of users. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessTfaSingle200Response) + public async System.Threading.Tasks.Task> GetAccessTfaSingleWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessTfaSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessTfaSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/tfa/{userid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessTfaSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessTfaSingleSingle Fetch a requested TFA entry if present. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// GetAccessTfaSingleSingle200Response + public GetAccessTfaSingleSingle200Response GetAccessTfaSingleSingle(string id, string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessTfaSingleSingleWithHttpInfo(id, userid); + return localVarResponse.Data; + } + + /// + /// getAccessTfaSingleSingle Fetch a requested TFA entry if present. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessTfaSingleSingle200Response + public ProxmoxSharp.Client.ApiResponse GetAccessTfaSingleSingleWithHttpInfo(string id, string userid, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetAccessTfaSingleSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessTfaSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessTfaSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/tfa/{userid}/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessTfaSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessTfaSingleSingle Fetch a requested TFA entry if present. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessTfaSingleSingle200Response + public async System.Threading.Tasks.Task GetAccessTfaSingleSingleAsync(string id, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessTfaSingleSingleWithHttpInfoAsync(id, userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessTfaSingleSingle Fetch a requested TFA entry if present. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessTfaSingleSingle200Response) + public async System.Threading.Tasks.Task> GetAccessTfaSingleSingleWithHttpInfoAsync(string id, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetAccessTfaSingleSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessTfaSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessTfaSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/tfa/{userid}/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessTfaSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessTicket Dummy. Useful for formatters which want to provide a login page. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetAccessTicket(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessTicketWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessTicket Dummy. Useful for formatters which want to provide a login page. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetAccessTicketWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessTicket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/ticket", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessTicket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessTicket Dummy. Useful for formatters which want to provide a login page. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetAccessTicketAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessTicketWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessTicket Dummy. Useful for formatters which want to provide a login page. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetAccessTicketWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessTicket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/ticket", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessTicket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsers User index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetAccessUsers200Response + public GetAccessUsers200Response GetAccessUsers(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessUsersWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getAccessUsers User index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetAccessUsers200Response + public ProxmoxSharp.Client.ApiResponse GetAccessUsersWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/users", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsers User index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsers200Response + public async System.Threading.Tasks.Task GetAccessUsersAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessUsersWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessUsers User index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsers200Response) + public async System.Threading.Tasks.Task> GetAccessUsersWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsersSingle Get user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// GetAccessUsersSingle200Response + public GetAccessUsersSingle200Response GetAccessUsersSingle(string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessUsersSingleWithHttpInfo(userid); + return localVarResponse.Data; + } + + /// + /// getAccessUsersSingle Get user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessUsersSingle200Response + public ProxmoxSharp.Client.ApiResponse GetAccessUsersSingleWithHttpInfo(string userid, int operationIndex = 0) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessUsersSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/users/{userid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsersSingle Get user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsersSingle200Response + public async System.Threading.Tasks.Task GetAccessUsersSingleAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessUsersSingleWithHttpInfoAsync(userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessUsersSingle Get user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsersSingle200Response) + public async System.Threading.Tasks.Task> GetAccessUsersSingleWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessUsersSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/users/{userid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsersSingleTfa Get user TFA types (Personal and Realm). + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// GetAccessUsersSingleTfa200Response + public GetAccessUsersSingleTfa200Response GetAccessUsersSingleTfa(string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessUsersSingleTfaWithHttpInfo(userid); + return localVarResponse.Data; + } + + /// + /// getAccessUsersSingleTfa Get user TFA types (Personal and Realm). + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessUsersSingleTfa200Response + public ProxmoxSharp.Client.ApiResponse GetAccessUsersSingleTfaWithHttpInfo(string userid, int operationIndex = 0) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessUsersSingleTfa"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsersSingleTfa"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/users/{userid}/tfa", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsersSingleTfa", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsersSingleTfa Get user TFA types (Personal and Realm). + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsersSingleTfa200Response + public async System.Threading.Tasks.Task GetAccessUsersSingleTfaAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessUsersSingleTfaWithHttpInfoAsync(userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessUsersSingleTfa Get user TFA types (Personal and Realm). + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsersSingleTfa200Response) + public async System.Threading.Tasks.Task> GetAccessUsersSingleTfaWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessUsersSingleTfa"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsersSingleTfa"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/users/{userid}/tfa", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsersSingleTfa", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsersSingleToken Get user API tokens. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// GetAccessUsersSingleToken200Response + public GetAccessUsersSingleToken200Response GetAccessUsersSingleToken(string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessUsersSingleTokenWithHttpInfo(userid); + return localVarResponse.Data; + } + + /// + /// getAccessUsersSingleToken Get user API tokens. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessUsersSingleToken200Response + public ProxmoxSharp.Client.ApiResponse GetAccessUsersSingleTokenWithHttpInfo(string userid, int operationIndex = 0) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessUsersSingleToken"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsersSingleToken"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/users/{userid}/token", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsersSingleToken", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsersSingleToken Get user API tokens. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsersSingleToken200Response + public async System.Threading.Tasks.Task GetAccessUsersSingleTokenAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessUsersSingleTokenWithHttpInfoAsync(userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessUsersSingleToken Get user API tokens. + /// + /// Thrown when fails to make API call + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsersSingleToken200Response) + public async System.Threading.Tasks.Task> GetAccessUsersSingleTokenWithHttpInfoAsync(string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessUsersSingleToken"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsersSingleToken"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/users/{userid}/token", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsersSingleToken", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsersSingleTokenSingle Get specific API token information. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// GetAccessUsersSingleTokenSingle200Response + public GetAccessUsersSingleTokenSingle200Response GetAccessUsersSingleTokenSingle(string tokenid, string userid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetAccessUsersSingleTokenSingleWithHttpInfo(tokenid, userid); + return localVarResponse.Data; + } + + /// + /// getAccessUsersSingleTokenSingle Get specific API token information. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// ApiResponse of GetAccessUsersSingleTokenSingle200Response + public ProxmoxSharp.Client.ApiResponse GetAccessUsersSingleTokenSingleWithHttpInfo(string tokenid, string userid, int operationIndex = 0) + { + // verify the required parameter 'tokenid' is set + if (tokenid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'tokenid' when calling ProxmoxGeneratedApi->GetAccessUsersSingleTokenSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessUsersSingleTokenSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tokenid", ProxmoxSharp.Client.ClientUtils.ParameterToString(tokenid)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsersSingleTokenSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/access/users/{userid}/token/{tokenid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsersSingleTokenSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getAccessUsersSingleTokenSingle Get specific API token information. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetAccessUsersSingleTokenSingle200Response + public async System.Threading.Tasks.Task GetAccessUsersSingleTokenSingleAsync(string tokenid, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetAccessUsersSingleTokenSingleWithHttpInfoAsync(tokenid, userid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getAccessUsersSingleTokenSingle Get specific API token information. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetAccessUsersSingleTokenSingle200Response) + public async System.Threading.Tasks.Task> GetAccessUsersSingleTokenSingleWithHttpInfoAsync(string tokenid, string userid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'tokenid' is set + if (tokenid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'tokenid' when calling ProxmoxGeneratedApi->GetAccessUsersSingleTokenSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->GetAccessUsersSingleTokenSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tokenid", ProxmoxSharp.Client.ClientUtils.ParameterToString(tokenid)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetAccessUsersSingleTokenSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/access/users/{userid}/token/{tokenid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetAccessUsersSingleTokenSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getCluster Cluster index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetCluster(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getCluster Cluster index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetCluster"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCluster", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getCluster Cluster index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getCluster Cluster index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetCluster"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCluster", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcme ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterAcme(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmeWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterAcme ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmeWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcme"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcme", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcme ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterAcmeAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmeWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcme ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterAcmeWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcme"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcme", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeAccount ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterAcmeAccount(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmeAccountWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeAccount ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmeAccountWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeAccount"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme/account", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeAccount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeAccount ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterAcmeAccountAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmeAccountWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeAccount ACMEAccount index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterAcmeAccountWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeAccount"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme/account", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeAccount", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeAccountSingle Return existing ACME account information. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterAcmeAccountSingle200Response + public GetClusterAcmeAccountSingle200Response GetClusterAcmeAccountSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmeAccountSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeAccountSingle Return existing ACME account information. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeAccountSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmeAccountSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterAcmeAccountSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeAccountSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme/account/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeAccountSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeAccountSingle Return existing ACME account information. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeAccountSingle200Response + public async System.Threading.Tasks.Task GetClusterAcmeAccountSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmeAccountSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeAccountSingle Return existing ACME account information. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeAccountSingle200Response) + public async System.Threading.Tasks.Task> GetClusterAcmeAccountSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterAcmeAccountSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeAccountSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme/account/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeAccountSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeChallengeschema Get schema of ACME challenge types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmeChallengeschema200Response + public GetClusterAcmeChallengeschema200Response GetClusterAcmeChallengeschema(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmeChallengeschemaWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeChallengeschema Get schema of ACME challenge types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeChallengeschema200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmeChallengeschemaWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeChallengeschema"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme/challenge-schema", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeChallengeschema", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeChallengeschema Get schema of ACME challenge types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeChallengeschema200Response + public async System.Threading.Tasks.Task GetClusterAcmeChallengeschemaAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmeChallengeschemaWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeChallengeschema Get schema of ACME challenge types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeChallengeschema200Response) + public async System.Threading.Tasks.Task> GetClusterAcmeChallengeschemaWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeChallengeschema"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme/challenge-schema", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeChallengeschema", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeDirectories Get named known ACME directory endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmeDirectories200Response + public GetClusterAcmeDirectories200Response GetClusterAcmeDirectories(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmeDirectoriesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeDirectories Get named known ACME directory endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeDirectories200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmeDirectoriesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeDirectories"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme/directories", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeDirectories", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeDirectories Get named known ACME directory endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeDirectories200Response + public async System.Threading.Tasks.Task GetClusterAcmeDirectoriesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmeDirectoriesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeDirectories Get named known ACME directory endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeDirectories200Response) + public async System.Threading.Tasks.Task> GetClusterAcmeDirectoriesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeDirectories"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme/directories", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeDirectories", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeMeta Retrieve ACME Directory Meta Information + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmeMeta200Response + public GetClusterAcmeMeta200Response GetClusterAcmeMeta(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmeMetaWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeMeta Retrieve ACME Directory Meta Information + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeMeta200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmeMetaWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeMeta"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme/meta", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeMeta", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeMeta Retrieve ACME Directory Meta Information + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeMeta200Response + public async System.Threading.Tasks.Task GetClusterAcmeMetaAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmeMetaWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeMeta Retrieve ACME Directory Meta Information + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeMeta200Response) + public async System.Threading.Tasks.Task> GetClusterAcmeMetaWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeMeta"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme/meta", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeMeta", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmePlugins ACME plugin index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmePlugins200Response + public GetClusterAcmePlugins200Response GetClusterAcmePlugins(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmePluginsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterAcmePlugins ACME plugin index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmePlugins200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmePluginsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmePlugins"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme/plugins", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmePlugins", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmePlugins ACME plugin index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmePlugins200Response + public async System.Threading.Tasks.Task GetClusterAcmePluginsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmePluginsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcmePlugins ACME plugin index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmePlugins200Response) + public async System.Threading.Tasks.Task> GetClusterAcmePluginsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmePlugins"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme/plugins", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmePlugins", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmePluginsSingle Get ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterAcmePluginsSingle200Response + public GetClusterAcmePluginsSingle200Response GetClusterAcmePluginsSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmePluginsSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterAcmePluginsSingle Get ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmePluginsSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmePluginsSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterAcmePluginsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmePluginsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme/plugins/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmePluginsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmePluginsSingle Get ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmePluginsSingle200Response + public async System.Threading.Tasks.Task GetClusterAcmePluginsSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmePluginsSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcmePluginsSingle Get ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmePluginsSingle200Response) + public async System.Threading.Tasks.Task> GetClusterAcmePluginsSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterAcmePluginsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmePluginsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme/plugins/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmePluginsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeTos Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterAcmeTos200Response + public GetClusterAcmeTos200Response GetClusterAcmeTos(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterAcmeTosWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeTos Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterAcmeTos200Response + public ProxmoxSharp.Client.ApiResponse GetClusterAcmeTosWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeTos"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/acme/tos", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeTos", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterAcmeTos Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterAcmeTos200Response + public async System.Threading.Tasks.Task GetClusterAcmeTosAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterAcmeTosWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterAcmeTos Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterAcmeTos200Response) + public async System.Threading.Tasks.Task> GetClusterAcmeTosWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterAcmeTos"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/acme/tos", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterAcmeTos", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackup List vzdump backup schedule. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterBackup200Response + public GetClusterBackup200Response GetClusterBackup(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterBackupWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterBackup List vzdump backup schedule. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterBackup200Response + public ProxmoxSharp.Client.ApiResponse GetClusterBackupWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/backup", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackup List vzdump backup schedule. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackup200Response + public async System.Threading.Tasks.Task GetClusterBackupAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterBackupWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterBackup List vzdump backup schedule. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackup200Response) + public async System.Threading.Tasks.Task> GetClusterBackupWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/backup", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackupSingle Read vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterBackupSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterBackupSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterBackupSingle Read vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterBackupSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterBackupSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackupSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/backup/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackupSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackupSingle Read vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterBackupSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterBackupSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterBackupSingle Read vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterBackupSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterBackupSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackupSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/backup/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackupSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackupSingleIncludedvolumes Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterBackupSingleIncludedvolumes200Response + public GetClusterBackupSingleIncludedvolumes200Response GetClusterBackupSingleIncludedvolumes(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterBackupSingleIncludedvolumesWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterBackupSingleIncludedvolumes Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterBackupSingleIncludedvolumes200Response + public ProxmoxSharp.Client.ApiResponse GetClusterBackupSingleIncludedvolumesWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterBackupSingleIncludedvolumes"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackupSingleIncludedvolumes"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/backup/{id}/included_volumes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackupSingleIncludedvolumes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackupSingleIncludedvolumes Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackupSingleIncludedvolumes200Response + public async System.Threading.Tasks.Task GetClusterBackupSingleIncludedvolumesAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterBackupSingleIncludedvolumesWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterBackupSingleIncludedvolumes Returns included guests and the backup status of their disks. Optimized to be used in ExtJS tree views. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackupSingleIncludedvolumes200Response) + public async System.Threading.Tasks.Task> GetClusterBackupSingleIncludedvolumesWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterBackupSingleIncludedvolumes"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackupSingleIncludedvolumes"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/backup/{id}/included_volumes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackupSingleIncludedvolumes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackupinfo Index for backup info related endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterBackupinfo200Response + public GetClusterBackupinfo200Response GetClusterBackupinfo(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterBackupinfoWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterBackupinfo Index for backup info related endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterBackupinfo200Response + public ProxmoxSharp.Client.ApiResponse GetClusterBackupinfoWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackupinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/backup-info", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackupinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackupinfo Index for backup info related endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackupinfo200Response + public async System.Threading.Tasks.Task GetClusterBackupinfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterBackupinfoWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterBackupinfo Index for backup info related endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackupinfo200Response) + public async System.Threading.Tasks.Task> GetClusterBackupinfoWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackupinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/backup-info", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackupinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackupinfoNotbackedup Shows all guests which are not covered by any backup job. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterBackupinfoNotbackedup200Response + public GetClusterBackupinfoNotbackedup200Response GetClusterBackupinfoNotbackedup(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterBackupinfoNotbackedupWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterBackupinfoNotbackedup Shows all guests which are not covered by any backup job. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterBackupinfoNotbackedup200Response + public ProxmoxSharp.Client.ApiResponse GetClusterBackupinfoNotbackedupWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackupinfoNotbackedup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/backup-info/not-backed-up", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackupinfoNotbackedup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBackupinfoNotbackedup Shows all guests which are not covered by any backup job. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackupinfoNotbackedup200Response + public async System.Threading.Tasks.Task GetClusterBackupinfoNotbackedupAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterBackupinfoNotbackedupWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterBackupinfoNotbackedup Shows all guests which are not covered by any backup job. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackupinfoNotbackedup200Response) + public async System.Threading.Tasks.Task> GetClusterBackupinfoNotbackedupWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBackupinfoNotbackedup"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/backup-info/not-backed-up", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBackupinfoNotbackedup", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBulkaction List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMapping200Response + public GetClusterMapping200Response GetClusterBulkaction(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterBulkactionWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterBulkaction List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMapping200Response + public ProxmoxSharp.Client.ApiResponse GetClusterBulkactionWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBulkaction"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/bulk-action", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBulkaction", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBulkaction List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMapping200Response + public async System.Threading.Tasks.Task GetClusterBulkactionAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterBulkactionWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterBulkaction List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMapping200Response) + public async System.Threading.Tasks.Task> GetClusterBulkactionWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBulkaction"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/bulk-action", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBulkaction", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBulkactionGuest Bulk action index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterBulkactionGuest(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterBulkactionGuestWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterBulkactionGuest Bulk action index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterBulkactionGuestWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBulkactionGuest"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/bulk-action/guest", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBulkactionGuest", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterBulkactionGuest Bulk action index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterBulkactionGuestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterBulkactionGuestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterBulkactionGuest Bulk action index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterBulkactionGuestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterBulkactionGuest"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/bulk-action/guest", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterBulkactionGuest", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCeph Cluster ceph index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterCeph(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterCephWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterCeph Cluster ceph index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterCephWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCeph"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ceph", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCeph", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCeph Cluster ceph index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterCephAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterCephWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterCeph Cluster ceph index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterCephWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCeph"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ceph", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCeph", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCephFlags get the status of all ceph flags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterCephFlags200Response + public GetClusterCephFlags200Response GetClusterCephFlags(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterCephFlagsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterCephFlags get the status of all ceph flags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterCephFlags200Response + public ProxmoxSharp.Client.ApiResponse GetClusterCephFlagsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCephFlags"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ceph/flags", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCephFlags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCephFlags get the status of all ceph flags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterCephFlags200Response + public async System.Threading.Tasks.Task GetClusterCephFlagsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterCephFlagsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterCephFlags get the status of all ceph flags + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterCephFlags200Response) + public async System.Threading.Tasks.Task> GetClusterCephFlagsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCephFlags"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ceph/flags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCephFlags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCephFlagsSingle Get the status of a specific ceph flag. + /// + /// Thrown when fails to make API call + /// flag + /// Index associated with the operation. + /// GetClusterCephFlagsSingle200Response + public GetClusterCephFlagsSingle200Response GetClusterCephFlagsSingle(string flag, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterCephFlagsSingleWithHttpInfo(flag); + return localVarResponse.Data; + } + + /// + /// getClusterCephFlagsSingle Get the status of a specific ceph flag. + /// + /// Thrown when fails to make API call + /// flag + /// Index associated with the operation. + /// ApiResponse of GetClusterCephFlagsSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterCephFlagsSingleWithHttpInfo(string flag, int operationIndex = 0) + { + // verify the required parameter 'flag' is set + if (flag == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'flag' when calling ProxmoxGeneratedApi->GetClusterCephFlagsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("flag", ProxmoxSharp.Client.ClientUtils.ParameterToString(flag)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCephFlagsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ceph/flags/{flag}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCephFlagsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCephFlagsSingle Get the status of a specific ceph flag. + /// + /// Thrown when fails to make API call + /// flag + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterCephFlagsSingle200Response + public async System.Threading.Tasks.Task GetClusterCephFlagsSingleAsync(string flag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterCephFlagsSingleWithHttpInfoAsync(flag, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterCephFlagsSingle Get the status of a specific ceph flag. + /// + /// Thrown when fails to make API call + /// flag + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterCephFlagsSingle200Response) + public async System.Threading.Tasks.Task> GetClusterCephFlagsSingleWithHttpInfoAsync(string flag, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'flag' is set + if (flag == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'flag' when calling ProxmoxGeneratedApi->GetClusterCephFlagsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("flag", ProxmoxSharp.Client.ClientUtils.ParameterToString(flag)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCephFlagsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ceph/flags/{flag}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCephFlagsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCephMetadata Get ceph metadata. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterCephMetadata200Response + public GetClusterCephMetadata200Response GetClusterCephMetadata(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterCephMetadataWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterCephMetadata Get ceph metadata. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterCephMetadata200Response + public ProxmoxSharp.Client.ApiResponse GetClusterCephMetadataWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCephMetadata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ceph/metadata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCephMetadata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCephMetadata Get ceph metadata. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterCephMetadata200Response + public async System.Threading.Tasks.Task GetClusterCephMetadataAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterCephMetadataWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterCephMetadata Get ceph metadata. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterCephMetadata200Response) + public async System.Threading.Tasks.Task> GetClusterCephMetadataWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCephMetadata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ceph/metadata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCephMetadata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCephStatus Get ceph status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterCephStatus(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterCephStatusWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterCephStatus Get ceph status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterCephStatusWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCephStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ceph/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCephStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterCephStatus Get ceph status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterCephStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterCephStatusWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterCephStatus Get ceph status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterCephStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterCephStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ceph/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterCephStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfig Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterConfig(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterConfigWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterConfig Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterConfigWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfig Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterConfigAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterConfigWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterConfig Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterConfigWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigApiversion Return the version of the cluster join API available on this node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterConfigApiversion200Response + public GetClusterConfigApiversion200Response GetClusterConfigApiversion(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterConfigApiversionWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterConfigApiversion Return the version of the cluster join API available on this node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterConfigApiversion200Response + public ProxmoxSharp.Client.ApiResponse GetClusterConfigApiversionWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigApiversion"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/config/apiversion", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigApiversion", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigApiversion Return the version of the cluster join API available on this node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterConfigApiversion200Response + public async System.Threading.Tasks.Task GetClusterConfigApiversionAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterConfigApiversionWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterConfigApiversion Return the version of the cluster join API available on this node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterConfigApiversion200Response) + public async System.Threading.Tasks.Task> GetClusterConfigApiversionWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigApiversion"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/config/apiversion", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigApiversion", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigJoin Get information needed to join this cluster over the connected node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterConfigJoin200Response + public GetClusterConfigJoin200Response GetClusterConfigJoin(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterConfigJoinWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterConfigJoin Get information needed to join this cluster over the connected node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterConfigJoin200Response + public ProxmoxSharp.Client.ApiResponse GetClusterConfigJoinWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigJoin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/config/join", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigJoin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigJoin Get information needed to join this cluster over the connected node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterConfigJoin200Response + public async System.Threading.Tasks.Task GetClusterConfigJoinAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterConfigJoinWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterConfigJoin Get information needed to join this cluster over the connected node. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterConfigJoin200Response) + public async System.Threading.Tasks.Task> GetClusterConfigJoinWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigJoin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/config/join", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigJoin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigNodes Corosync node list. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterConfigNodes200Response + public GetClusterConfigNodes200Response GetClusterConfigNodes(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterConfigNodesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterConfigNodes Corosync node list. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterConfigNodes200Response + public ProxmoxSharp.Client.ApiResponse GetClusterConfigNodesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigNodes"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/config/nodes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigNodes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigNodes Corosync node list. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterConfigNodes200Response + public async System.Threading.Tasks.Task GetClusterConfigNodesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterConfigNodesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterConfigNodes Corosync node list. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterConfigNodes200Response) + public async System.Threading.Tasks.Task> GetClusterConfigNodesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigNodes"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/config/nodes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigNodes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigQdevice Get QDevice status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterConfigQdevice(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterConfigQdeviceWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterConfigQdevice Get QDevice status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterConfigQdeviceWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigQdevice"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/config/qdevice", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigQdevice", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigQdevice Get QDevice status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterConfigQdeviceAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterConfigQdeviceWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterConfigQdevice Get QDevice status + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterConfigQdeviceWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigQdevice"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/config/qdevice", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigQdevice", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigTotem Get corosync totem protocol settings. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterConfigTotem(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterConfigTotemWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterConfigTotem Get corosync totem protocol settings. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterConfigTotemWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigTotem"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/config/totem", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigTotem", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterConfigTotem Get corosync totem protocol settings. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterConfigTotemAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterConfigTotemWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterConfigTotem Get corosync totem protocol settings. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterConfigTotemWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterConfigTotem"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/config/totem", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterConfigTotem", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewall Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterFirewall(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterFirewall Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewall Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterFirewallAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewall Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallAliases200Response + public GetClusterFirewallAliases200Response GetClusterFirewallAliases(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallAliasesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallAliases200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallAliasesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/aliases", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallAliases200Response + public async System.Threading.Tasks.Task GetClusterFirewallAliasesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallAliasesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallAliases200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallAliasesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/aliases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterFirewallAliasesSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallAliasesSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallAliasesSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterFirewallAliasesSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallAliasesSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallAliasesSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallGroupRule Get single rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + public GetClusterFirewallGroupRule200Response GetClusterFirewallGroupRule(string group, int pos, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallGroupRuleWithHttpInfo(group, pos); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallGroupRule Get single rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallGroupRuleWithHttpInfo(string group, int pos, int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->GetClusterFirewallGroupRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallGroupRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/groups/{group}/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallGroupRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallGroupRule Get single rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + public async System.Threading.Tasks.Task GetClusterFirewallGroupRuleAsync(string group, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallGroupRuleWithHttpInfoAsync(group, pos, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallGroupRule Get single rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallGroupRuleWithHttpInfoAsync(string group, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->GetClusterFirewallGroupRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallGroupRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/groups/{group}/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallGroupRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallGroupRules List rules. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + public GetClusterFirewallGroupRules200Response GetClusterFirewallGroupRules(string group, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallGroupRulesWithHttpInfo(group); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallGroupRules List rules. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallGroupRulesWithHttpInfo(string group, int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->GetClusterFirewallGroupRules"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallGroupRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/groups/{group}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallGroupRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallGroupRules List rules. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + public async System.Threading.Tasks.Task GetClusterFirewallGroupRulesAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallGroupRulesWithHttpInfoAsync(group, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallGroupRules List rules. + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallGroupRulesWithHttpInfoAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->GetClusterFirewallGroupRules"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallGroupRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/groups/{group}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallGroupRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallGroups List security groups. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallGroups200Response + public GetClusterFirewallGroups200Response GetClusterFirewallGroups(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallGroupsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallGroups List security groups. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroups200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallGroupsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallGroups List security groups. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroups200Response + public async System.Threading.Tasks.Task GetClusterFirewallGroupsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallGroupsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallGroups List security groups. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroups200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallGroupsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallIPSet List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterFirewallIPSet200Response + public GetClusterFirewallIPSet200Response GetClusterFirewallIPSet(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallIPSetWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallIPSet List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSet200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallIPSetWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterFirewallIPSet"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallIPSet List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSet200Response + public async System.Threading.Tasks.Task GetClusterFirewallIPSetAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallIPSetWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallIPSet List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSet200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallIPSetWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterFirewallIPSet"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallIPSetIP Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterFirewallIPSetIP(string cidr, string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallIPSetIPWithHttpInfo(cidr, name); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallIPSetIP Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallIPSetIPWithHttpInfo(string cidr, string name, int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->GetClusterFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterFirewallIPSetIP"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallIPSetIP Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterFirewallIPSetIPAsync(string cidr, string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallIPSetIPWithHttpInfoAsync(cidr, name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallIPSetIP Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->GetClusterFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterFirewallIPSetIP"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallIPSets List IPSets + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallIPSets200Response + public GetClusterFirewallIPSets200Response GetClusterFirewallIPSets(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallIPSetsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallIPSets List IPSets + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSets200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallIPSetsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallIPSets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/ipset", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallIPSets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallIPSets List IPSets + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSets200Response + public async System.Threading.Tasks.Task GetClusterFirewallIPSetsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallIPSetsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallIPSets List IPSets + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSets200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallIPSetsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallIPSets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/ipset", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallIPSets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallMacros List available macros + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallMacros200Response + public GetClusterFirewallMacros200Response GetClusterFirewallMacros(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallMacrosWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallMacros List available macros + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallMacros200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallMacrosWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallMacros"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/macros", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallMacros", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallMacros List available macros + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallMacros200Response + public async System.Threading.Tasks.Task GetClusterFirewallMacrosAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallMacrosWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallMacros List available macros + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallMacros200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallMacrosWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallMacros"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/macros", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallMacros", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallOptions Get Firewall options. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallOptions200Response + public GetClusterFirewallOptions200Response GetClusterFirewallOptions(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallOptionsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallOptions Get Firewall options. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallOptions200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallOptionsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallOptions Get Firewall options. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallOptions200Response + public async System.Threading.Tasks.Task GetClusterFirewallOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallOptions Get Firewall options. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallOptions200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallRefs200Response + public GetClusterFirewallRefs200Response GetClusterFirewallRefs(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallRefsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallRefs200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallRefsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallRefs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/refs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallRefs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallRefs200Response + public async System.Threading.Tasks.Task GetClusterFirewallRefsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallRefsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallRefs200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallRefsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallRefs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/refs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallRefs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + public GetClusterFirewallGroupRule200Response GetClusterFirewallRule(int pos, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallRuleWithHttpInfo(pos); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallRuleWithHttpInfo(int pos, int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + public async System.Threading.Tasks.Task GetClusterFirewallRuleAsync(int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallRuleWithHttpInfoAsync(pos, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallRuleWithHttpInfoAsync(int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + public GetClusterFirewallGroupRules200Response GetClusterFirewallRules(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterFirewallRulesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + public ProxmoxSharp.Client.ApiResponse GetClusterFirewallRulesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + public async System.Threading.Tasks.Task GetClusterFirewallRulesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterFirewallRulesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + public async System.Threading.Tasks.Task> GetClusterFirewallRulesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHa Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHa200Response + public GetClusterHa200Response GetClusterHa(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterHa Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHa200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHa"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHa", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHa Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHa200Response + public async System.Threading.Tasks.Task GetClusterHaAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHa Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHa200Response) + public async System.Threading.Tasks.Task> GetClusterHaWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHa"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHa", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaGroups Get HA groups. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHaGroups200Response + public GetClusterHaGroups200Response GetClusterHaGroups(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaGroupsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterHaGroups Get HA groups. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHaGroups200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaGroupsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/groups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaGroups Get HA groups. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaGroups200Response + public async System.Threading.Tasks.Task GetClusterHaGroupsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaGroupsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaGroups Get HA groups. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaGroups200Response) + public async System.Threading.Tasks.Task> GetClusterHaGroupsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaGroups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaGroups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaGroupsSingle Read ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetClusterHaGroupsSingle(string group, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaGroupsSingleWithHttpInfo(group); + return localVarResponse.Data; + } + + /// + /// getClusterHaGroupsSingle Read ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaGroupsSingleWithHttpInfo(string group, int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->GetClusterHaGroupsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/groups/{group}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaGroupsSingle Read ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetClusterHaGroupsSingleAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaGroupsSingleWithHttpInfoAsync(group, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaGroupsSingle Read ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetClusterHaGroupsSingleWithHttpInfoAsync(string group, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->GetClusterHaGroupsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/groups/{group}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaResources List HA resources. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHaResources200Response + public GetClusterHaResources200Response GetClusterHaResources(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaResourcesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterHaResources List HA resources. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHaResources200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaResourcesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaResources"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/resources", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaResources", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaResources List HA resources. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaResources200Response + public async System.Threading.Tasks.Task GetClusterHaResourcesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaResourcesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaResources List HA resources. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaResources200Response) + public async System.Threading.Tasks.Task> GetClusterHaResourcesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaResources"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/resources", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaResources", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaResourcesSingle Read resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// GetClusterHaResourcesSingle200Response + public GetClusterHaResourcesSingle200Response GetClusterHaResourcesSingle(string sid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaResourcesSingleWithHttpInfo(sid); + return localVarResponse.Data; + } + + /// + /// getClusterHaResourcesSingle Read resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// ApiResponse of GetClusterHaResourcesSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaResourcesSingleWithHttpInfo(string sid, int operationIndex = 0) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->GetClusterHaResourcesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaResourcesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/resources/{sid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaResourcesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaResourcesSingle Read resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaResourcesSingle200Response + public async System.Threading.Tasks.Task GetClusterHaResourcesSingleAsync(string sid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaResourcesSingleWithHttpInfoAsync(sid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaResourcesSingle Read resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaResourcesSingle200Response) + public async System.Threading.Tasks.Task> GetClusterHaResourcesSingleWithHttpInfoAsync(string sid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->GetClusterHaResourcesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaResourcesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/resources/{sid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaResourcesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaRules Get HA rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHaRules200Response + public GetClusterHaRules200Response GetClusterHaRules(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaRulesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterHaRules Get HA rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHaRules200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaRulesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaRules Get HA rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaRules200Response + public async System.Threading.Tasks.Task GetClusterHaRulesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaRulesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaRules Get HA rules. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaRules200Response) + public async System.Threading.Tasks.Task> GetClusterHaRulesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaRulesSingle Read HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// GetClusterHaRulesSingle200Response + public GetClusterHaRulesSingle200Response GetClusterHaRulesSingle(string rule, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaRulesSingleWithHttpInfo(rule); + return localVarResponse.Data; + } + + /// + /// getClusterHaRulesSingle Read HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// ApiResponse of GetClusterHaRulesSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaRulesSingleWithHttpInfo(string rule, int operationIndex = 0) + { + // verify the required parameter 'rule' is set + if (rule == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'rule' when calling ProxmoxGeneratedApi->GetClusterHaRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("rule", ProxmoxSharp.Client.ClientUtils.ParameterToString(rule)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/rules/{rule}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaRulesSingle Read HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaRulesSingle200Response + public async System.Threading.Tasks.Task GetClusterHaRulesSingleAsync(string rule, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaRulesSingleWithHttpInfoAsync(rule, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaRulesSingle Read HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaRulesSingle200Response) + public async System.Threading.Tasks.Task> GetClusterHaRulesSingleWithHttpInfoAsync(string rule, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'rule' is set + if (rule == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'rule' when calling ProxmoxGeneratedApi->GetClusterHaRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("rule", ProxmoxSharp.Client.ClientUtils.ParameterToString(rule)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/rules/{rule}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaStatus Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterHaStatus(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaStatusWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterHaStatus Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaStatusWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaStatus Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterHaStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaStatusWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaStatus Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterHaStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaStatusCurrent Get HA manger status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHaStatusCurrent200Response + public GetClusterHaStatusCurrent200Response GetClusterHaStatusCurrent(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaStatusCurrentWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterHaStatusCurrent Get HA manger status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHaStatusCurrent200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaStatusCurrentWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaStatusCurrent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/status/current", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaStatusCurrent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaStatusCurrent Get HA manger status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHaStatusCurrent200Response + public async System.Threading.Tasks.Task GetClusterHaStatusCurrentAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaStatusCurrentWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaStatusCurrent Get HA manger status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHaStatusCurrent200Response) + public async System.Threading.Tasks.Task> GetClusterHaStatusCurrentWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaStatusCurrent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/status/current", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaStatusCurrent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaStatusManagerstatus Get full HA manger status, including LRM status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterHaStatusManagerstatus(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterHaStatusManagerstatusWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterHaStatusManagerstatus Get full HA manger status, including LRM status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterHaStatusManagerstatusWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaStatusManagerstatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/ha/status/manager_status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaStatusManagerstatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterHaStatusManagerstatus Get full HA manger status, including LRM status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterHaStatusManagerstatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterHaStatusManagerstatusWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterHaStatusManagerstatus Get full HA manger status, including LRM status. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterHaStatusManagerstatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterHaStatusManagerstatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/ha/status/manager_status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterHaStatusManagerstatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterJobs Index for jobs related endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterBackupinfo200Response + public GetClusterBackupinfo200Response GetClusterJobs(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterJobsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterJobs Index for jobs related endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterBackupinfo200Response + public ProxmoxSharp.Client.ApiResponse GetClusterJobsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterJobs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/jobs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterJobs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterJobs Index for jobs related endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterBackupinfo200Response + public async System.Threading.Tasks.Task GetClusterJobsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterJobsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterJobs Index for jobs related endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterBackupinfo200Response) + public async System.Threading.Tasks.Task> GetClusterJobsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterJobs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/jobs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterJobs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterJobsRealmsync List configured realm-sync-jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterJobsRealmsync200Response + public GetClusterJobsRealmsync200Response GetClusterJobsRealmsync(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterJobsRealmsyncWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterJobsRealmsync List configured realm-sync-jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterJobsRealmsync200Response + public ProxmoxSharp.Client.ApiResponse GetClusterJobsRealmsyncWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterJobsRealmsync"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/jobs/realm-sync", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterJobsRealmsync", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterJobsRealmsync List configured realm-sync-jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterJobsRealmsync200Response + public async System.Threading.Tasks.Task GetClusterJobsRealmsyncAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterJobsRealmsyncWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterJobsRealmsync List configured realm-sync-jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterJobsRealmsync200Response) + public async System.Threading.Tasks.Task> GetClusterJobsRealmsyncWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterJobsRealmsync"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/jobs/realm-sync", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterJobsRealmsync", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterJobsRealmsyncSingle Read realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterJobsRealmsyncSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterJobsRealmsyncSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterJobsRealmsyncSingle Read realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterJobsRealmsyncSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterJobsRealmsyncSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterJobsRealmsyncSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/jobs/realm-sync/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterJobsRealmsyncSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterJobsRealmsyncSingle Read realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterJobsRealmsyncSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterJobsRealmsyncSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterJobsRealmsyncSingle Read realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterJobsRealmsyncSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterJobsRealmsyncSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterJobsRealmsyncSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/jobs/realm-sync/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterJobsRealmsyncSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterJobsScheduleanalyze Returns a list of future schedule runtimes. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterJobsScheduleanalyze200Response + public GetClusterJobsScheduleanalyze200Response GetClusterJobsScheduleanalyze(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterJobsScheduleanalyzeWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterJobsScheduleanalyze Returns a list of future schedule runtimes. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterJobsScheduleanalyze200Response + public ProxmoxSharp.Client.ApiResponse GetClusterJobsScheduleanalyzeWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterJobsScheduleanalyze"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/jobs/schedule-analyze", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterJobsScheduleanalyze", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterJobsScheduleanalyze Returns a list of future schedule runtimes. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterJobsScheduleanalyze200Response + public async System.Threading.Tasks.Task GetClusterJobsScheduleanalyzeAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterJobsScheduleanalyzeWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterJobsScheduleanalyze Returns a list of future schedule runtimes. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterJobsScheduleanalyze200Response) + public async System.Threading.Tasks.Task> GetClusterJobsScheduleanalyzeWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterJobsScheduleanalyze"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/jobs/schedule-analyze", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterJobsScheduleanalyze", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterLog Read cluster log + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterLog(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterLogWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterLog Read cluster log + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterLogWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/log", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterLog Read cluster log + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterLogAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterLogWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterLog Read cluster log + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterLogWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/log", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMapping List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMapping200Response + public GetClusterMapping200Response GetClusterMapping(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMappingWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterMapping List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMapping200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMappingWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMapping"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/mapping", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMapping", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMapping List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMapping200Response + public async System.Threading.Tasks.Task GetClusterMappingAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMappingWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMapping List resource types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMapping200Response) + public async System.Threading.Tasks.Task> GetClusterMappingWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMapping"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/mapping", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMapping", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingDir List directory mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMappingDir200Response + public GetClusterMappingDir200Response GetClusterMappingDir(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMappingDirWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterMappingDir List directory mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMappingDir200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMappingDirWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingDir"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/mapping/dir", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingDir", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingDir List directory mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMappingDir200Response + public async System.Threading.Tasks.Task GetClusterMappingDirAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMappingDirWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMappingDir List directory mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMappingDir200Response) + public async System.Threading.Tasks.Task> GetClusterMappingDirWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingDir"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/mapping/dir", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingDir", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingDirSingle Get directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterMappingDirSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMappingDirSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterMappingDirSingle Get directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMappingDirSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterMappingDirSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingDirSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/mapping/dir/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingDirSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingDirSingle Get directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterMappingDirSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMappingDirSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMappingDirSingle Get directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterMappingDirSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterMappingDirSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingDirSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/mapping/dir/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingDirSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingPci List PCI Hardware Mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMappingPci200Response + public GetClusterMappingPci200Response GetClusterMappingPci(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMappingPciWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterMappingPci List PCI Hardware Mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMappingPci200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMappingPciWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingPci"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/mapping/pci", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingPci", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingPci List PCI Hardware Mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMappingPci200Response + public async System.Threading.Tasks.Task GetClusterMappingPciAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMappingPciWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMappingPci List PCI Hardware Mapping + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMappingPci200Response) + public async System.Threading.Tasks.Task> GetClusterMappingPciWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingPci"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/mapping/pci", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingPci", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingPciSingle Get PCI Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterMappingPciSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMappingPciSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterMappingPciSingle Get PCI Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMappingPciSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterMappingPciSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingPciSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/mapping/pci/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingPciSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingPciSingle Get PCI Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterMappingPciSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMappingPciSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMappingPciSingle Get PCI Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterMappingPciSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterMappingPciSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingPciSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/mapping/pci/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingPciSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingUsb List USB Hardware Mappings + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMappingUsb200Response + public GetClusterMappingUsb200Response GetClusterMappingUsb(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMappingUsbWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterMappingUsb List USB Hardware Mappings + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMappingUsb200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMappingUsbWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingUsb"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/mapping/usb", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingUsb", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingUsb List USB Hardware Mappings + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMappingUsb200Response + public async System.Threading.Tasks.Task GetClusterMappingUsbAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMappingUsbWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMappingUsb List USB Hardware Mappings + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMappingUsb200Response) + public async System.Threading.Tasks.Task> GetClusterMappingUsbWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingUsb"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/mapping/usb", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingUsb", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingUsbSingle Get USB Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterMappingUsbSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMappingUsbSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterMappingUsbSingle Get USB Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMappingUsbSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterMappingUsbSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingUsbSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/mapping/usb/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingUsbSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMappingUsbSingle Get USB Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterMappingUsbSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMappingUsbSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMappingUsbSingle Get USB Mapping. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterMappingUsbSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterMappingUsbSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMappingUsbSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/mapping/usb/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMappingUsbSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMetrics Metrics index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterMetrics(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMetricsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterMetrics Metrics index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMetricsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMetrics"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/metrics", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMetrics", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMetrics Metrics index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterMetricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMetricsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMetrics Metrics index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterMetricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMetrics"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMetrics", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMetricsExport Retrieve metrics of the cluster. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsExport200Response + public GetClusterMetricsExport200Response GetClusterMetricsExport(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMetricsExportWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterMetricsExport Retrieve metrics of the cluster. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsExport200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMetricsExportWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMetricsExport"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/metrics/export", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMetricsExport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMetricsExport Retrieve metrics of the cluster. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsExport200Response + public async System.Threading.Tasks.Task GetClusterMetricsExportAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMetricsExportWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMetricsExport Retrieve metrics of the cluster. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsExport200Response) + public async System.Threading.Tasks.Task> GetClusterMetricsExportWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMetricsExport"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/metrics/export", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMetricsExport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMetricsServer List configured metric servers. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServer200Response + public GetClusterMetricsServer200Response GetClusterMetricsServer(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMetricsServerWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterMetricsServer List configured metric servers. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServer200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMetricsServerWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMetricsServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/metrics/server", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMetricsServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMetricsServer List configured metric servers. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServer200Response + public async System.Threading.Tasks.Task GetClusterMetricsServerAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMetricsServerWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMetricsServer List configured metric servers. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServer200Response) + public async System.Threading.Tasks.Task> GetClusterMetricsServerWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMetricsServer"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/metrics/server", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMetricsServer", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMetricsServerSingle Read metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterMetricsServerSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterMetricsServerSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterMetricsServerSingle Read metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterMetricsServerSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterMetricsServerSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMetricsServerSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/metrics/server/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMetricsServerSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterMetricsServerSingle Read metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterMetricsServerSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterMetricsServerSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterMetricsServerSingle Read metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterMetricsServerSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterMetricsServerSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterMetricsServerSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/metrics/server/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterMetricsServerSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNextid Get next free VMID. Pass a VMID to assert that its free (at time of check). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNextid200Response + public GetClusterNextid200Response GetClusterNextid(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNextidWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNextid Get next free VMID. Pass a VMID to assert that its free (at time of check). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNextid200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNextidWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNextid"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/nextid", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNextid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNextid Get next free VMID. Pass a VMID to assert that its free (at time of check). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNextid200Response + public async System.Threading.Tasks.Task GetClusterNextidAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNextidWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNextid Get next free VMID. Pass a VMID to assert that its free (at time of check). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNextid200Response) + public async System.Threading.Tasks.Task> GetClusterNextidWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNextid"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/nextid", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNextid", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotifications Index for notification-related API endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterNotifications(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotifications Index for notification-related API endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotifications"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotifications", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotifications Index for notification-related API endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterNotificationsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotifications Index for notification-related API endpoints. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotifications"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotifications", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpoints Index for all available endpoint types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterNotificationsEndpoints(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpoints Index for all available endpoint types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpoints"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpoints", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpoints Index for all available endpoint types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpoints Index for all available endpoint types. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpoints"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpoints", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsGotify Returns a list of all gotify endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsGotify200Response + public GetClusterNotificationsEndpointsGotify200Response GetClusterNotificationsEndpointsGotify(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsGotifyWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsGotify Returns a list of all gotify endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsGotify200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsGotifyWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsGotify"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints/gotify", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsGotify", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsGotify Returns a list of all gotify endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsGotify200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsGotifyAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsGotifyWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsGotify Returns a list of all gotify endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsGotify200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsGotifyWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsGotify"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints/gotify", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsGotify", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsGotifySingle Return a specific gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsGotifySingle200Response + public GetClusterNotificationsEndpointsGotifySingle200Response GetClusterNotificationsEndpointsGotifySingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsGotifySingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsGotifySingle Return a specific gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsGotifySingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsGotifySingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsEndpointsGotifySingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsGotifySingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints/gotify/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsGotifySingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsGotifySingle Return a specific gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsGotifySingle200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsGotifySingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsGotifySingle Return a specific gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsGotifySingle200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsEndpointsGotifySingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsGotifySingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints/gotify/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsGotifySingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsSendmail Returns a list of all sendmail endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsSendmail200Response + public GetClusterNotificationsEndpointsSendmail200Response GetClusterNotificationsEndpointsSendmail(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsSendmailWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsSendmail Returns a list of all sendmail endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsSendmail200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsSendmailWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsSendmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints/sendmail", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsSendmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsSendmail Returns a list of all sendmail endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsSendmail200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsSendmailAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsSendmailWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsSendmail Returns a list of all sendmail endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsSendmail200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsSendmailWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsSendmail"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints/sendmail", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsSendmail", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsSendmailSingle Return a specific sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsSendmailSingle200Response + public GetClusterNotificationsEndpointsSendmailSingle200Response GetClusterNotificationsEndpointsSendmailSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsSendmailSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsSendmailSingle Return a specific sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsSendmailSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsSendmailSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsEndpointsSendmailSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsSendmailSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints/sendmail/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsSendmailSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsSendmailSingle Return a specific sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsSendmailSingle200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsSendmailSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsSendmailSingle Return a specific sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsSendmailSingle200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsEndpointsSendmailSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsSendmailSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints/sendmail/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsSendmailSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsSmtp Returns a list of all smtp endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsSmtp200Response + public GetClusterNotificationsEndpointsSmtp200Response GetClusterNotificationsEndpointsSmtp(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsSmtpWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsSmtp Returns a list of all smtp endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsSmtp200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsSmtpWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsSmtp"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints/smtp", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsSmtp", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsSmtp Returns a list of all smtp endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsSmtp200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsSmtpAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsSmtpWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsSmtp Returns a list of all smtp endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsSmtp200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsSmtpWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsSmtp"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints/smtp", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsSmtp", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsSmtpSingle Return a specific smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsSmtpSingle200Response + public GetClusterNotificationsEndpointsSmtpSingle200Response GetClusterNotificationsEndpointsSmtpSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsSmtpSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsSmtpSingle Return a specific smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsSmtpSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsSmtpSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsEndpointsSmtpSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsSmtpSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints/smtp/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsSmtpSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsSmtpSingle Return a specific smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsSmtpSingle200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsSmtpSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsSmtpSingle Return a specific smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsSmtpSingle200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsEndpointsSmtpSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsSmtpSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints/smtp/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsSmtpSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsWebhook Returns a list of all webhook endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsWebhook200Response + public GetClusterNotificationsEndpointsWebhook200Response GetClusterNotificationsEndpointsWebhook(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsWebhookWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsWebhook Returns a list of all webhook endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsWebhook200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsWebhookWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints/webhook", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsWebhook Returns a list of all webhook endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsWebhook200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsWebhookAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsWebhookWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsWebhook Returns a list of all webhook endpoints + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsWebhook200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsWebhookWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsWebhook"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints/webhook", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsWebhook", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsWebhookSingle Return a specific webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsEndpointsWebhookSingle200Response + public GetClusterNotificationsEndpointsWebhookSingle200Response GetClusterNotificationsEndpointsWebhookSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsEndpointsWebhookSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsWebhookSingle Return a specific webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsEndpointsWebhookSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsEndpointsWebhookSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsEndpointsWebhookSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsWebhookSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/endpoints/webhook/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsWebhookSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsEndpointsWebhookSingle Return a specific webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsEndpointsWebhookSingle200Response + public async System.Threading.Tasks.Task GetClusterNotificationsEndpointsWebhookSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsEndpointsWebhookSingle Return a specific webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsEndpointsWebhookSingle200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsEndpointsWebhookSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsEndpointsWebhookSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/endpoints/webhook/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsEndpointsWebhookSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsMatcherfields Returns known notification metadata fields + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsMatcherfields200Response + public GetClusterNotificationsMatcherfields200Response GetClusterNotificationsMatcherfields(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsMatcherfieldsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsMatcherfields Returns known notification metadata fields + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsMatcherfields200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsMatcherfieldsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsMatcherfields"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/matcher-fields", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsMatcherfields", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsMatcherfields Returns known notification metadata fields + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsMatcherfields200Response + public async System.Threading.Tasks.Task GetClusterNotificationsMatcherfieldsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsMatcherfieldsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsMatcherfields Returns known notification metadata fields + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsMatcherfields200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsMatcherfieldsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsMatcherfields"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/matcher-fields", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsMatcherfields", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsMatcherfieldvalues Returns known notification metadata fields and their known values + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsMatcherfieldvalues200Response + public GetClusterNotificationsMatcherfieldvalues200Response GetClusterNotificationsMatcherfieldvalues(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsMatcherfieldvaluesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsMatcherfieldvalues Returns known notification metadata fields and their known values + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsMatcherfieldvalues200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsMatcherfieldvaluesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsMatcherfieldvalues"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/matcher-field-values", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsMatcherfieldvalues", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsMatcherfieldvalues Returns known notification metadata fields and their known values + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsMatcherfieldvalues200Response + public async System.Threading.Tasks.Task GetClusterNotificationsMatcherfieldvaluesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsMatcherfieldvaluesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsMatcherfieldvalues Returns known notification metadata fields and their known values + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsMatcherfieldvalues200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsMatcherfieldvaluesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsMatcherfieldvalues"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/matcher-field-values", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsMatcherfieldvalues", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsMatchers Returns a list of all matchers + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsMatchers200Response + public GetClusterNotificationsMatchers200Response GetClusterNotificationsMatchers(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsMatchersWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsMatchers Returns a list of all matchers + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsMatchers200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsMatchersWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsMatchers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/matchers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsMatchers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsMatchers Returns a list of all matchers + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsMatchers200Response + public async System.Threading.Tasks.Task GetClusterNotificationsMatchersAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsMatchersWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsMatchers Returns a list of all matchers + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsMatchers200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsMatchersWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsMatchers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/matchers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsMatchers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsMatchersSingle Return a specific matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// GetClusterNotificationsMatchersSingle200Response + public GetClusterNotificationsMatchersSingle200Response GetClusterNotificationsMatchersSingle(string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsMatchersSingleWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsMatchersSingle Return a specific matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsMatchersSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsMatchersSingleWithHttpInfo(string name, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsMatchersSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsMatchersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/matchers/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsMatchersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsMatchersSingle Return a specific matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsMatchersSingle200Response + public async System.Threading.Tasks.Task GetClusterNotificationsMatchersSingleAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsMatchersSingleWithHttpInfoAsync(name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsMatchersSingle Return a specific matcher + /// + /// Thrown when fails to make API call + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsMatchersSingle200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsMatchersSingleWithHttpInfoAsync(string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetClusterNotificationsMatchersSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsMatchersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/matchers/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsMatchersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsTargets Returns a list of all entities that can be used as notification targets. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterNotificationsTargets200Response + public GetClusterNotificationsTargets200Response GetClusterNotificationsTargets(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterNotificationsTargetsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsTargets Returns a list of all entities that can be used as notification targets. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterNotificationsTargets200Response + public ProxmoxSharp.Client.ApiResponse GetClusterNotificationsTargetsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsTargets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/notifications/targets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsTargets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterNotificationsTargets Returns a list of all entities that can be used as notification targets. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterNotificationsTargets200Response + public async System.Threading.Tasks.Task GetClusterNotificationsTargetsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterNotificationsTargetsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterNotificationsTargets Returns a list of all entities that can be used as notification targets. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterNotificationsTargets200Response) + public async System.Threading.Tasks.Task> GetClusterNotificationsTargetsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterNotificationsTargets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/notifications/targets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterNotificationsTargets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterOptions Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterOptions(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterOptionsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterOptions Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterOptionsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterOptions Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterOptionsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterOptionsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterOptions Get datacenter options. Without 'Sys.Audit' on '/' not all options are returned. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterOptionsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterReplication List replication jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterReplication200Response + public GetClusterReplication200Response GetClusterReplication(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterReplicationWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterReplication List replication jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetClusterReplicationWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterReplication"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/replication", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterReplication", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterReplication List replication jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterReplication200Response + public async System.Threading.Tasks.Task GetClusterReplicationAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterReplicationWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterReplication List replication jobs. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterReplication200Response) + public async System.Threading.Tasks.Task> GetClusterReplicationWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterReplication"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/replication", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterReplication", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterReplicationSingle Read replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterReplicationSingle200Response + public GetClusterReplicationSingle200Response GetClusterReplicationSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterReplicationSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterReplicationSingle Read replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterReplicationSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterReplicationSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterReplicationSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterReplicationSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/replication/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterReplicationSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterReplicationSingle Read replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterReplicationSingle200Response + public async System.Threading.Tasks.Task GetClusterReplicationSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterReplicationSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterReplicationSingle Read replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterReplicationSingle200Response) + public async System.Threading.Tasks.Task> GetClusterReplicationSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterReplicationSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterReplicationSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/replication/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterReplicationSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterResources Resources index (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterResources200Response + public GetClusterResources200Response GetClusterResources(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterResourcesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterResources Resources index (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterResources200Response + public ProxmoxSharp.Client.ApiResponse GetClusterResourcesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterResources"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/resources", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterResources", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterResources Resources index (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterResources200Response + public async System.Threading.Tasks.Task GetClusterResourcesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterResourcesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterResources Resources index (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterResources200Response) + public async System.Threading.Tasks.Task> GetClusterResourcesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterResources"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/resources", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterResources", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDN Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterHa200Response + public GetClusterHa200Response GetClusterSDN(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSDNWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSDN Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterHa200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSDNWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDN"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDN", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDN Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHa200Response + public async System.Threading.Tasks.Task GetClusterSDNAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSDNWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSDN Directory index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHa200Response) + public async System.Threading.Tasks.Task> GetClusterSDNWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDN"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDN", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNController Read sdn controller configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetClusterSDNController(string controller, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSDNControllerWithHttpInfo(controller); + return localVarResponse.Data; + } + + /// + /// getClusterSDNController Read sdn controller configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSDNControllerWithHttpInfo(string controller, int operationIndex = 0) + { + // verify the required parameter 'controller' is set + if (controller == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'controller' when calling ProxmoxGeneratedApi->GetClusterSDNController"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("controller", ProxmoxSharp.Client.ClientUtils.ParameterToString(controller)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNController"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/controllers/{controller}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNController", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNController Read sdn controller configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetClusterSDNControllerAsync(string controller, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSDNControllerWithHttpInfoAsync(controller, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSDNController Read sdn controller configuration. + /// + /// Thrown when fails to make API call + /// controller + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetClusterSDNControllerWithHttpInfoAsync(string controller, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'controller' is set + if (controller == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'controller' when calling ProxmoxGeneratedApi->GetClusterSDNController"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("controller", ProxmoxSharp.Client.ClientUtils.ParameterToString(controller)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNController"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/controllers/{controller}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNController", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNControllers SDN controllers index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSDNControllers200Response + public GetClusterSDNControllers200Response GetClusterSDNControllers(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSDNControllersWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSDNControllers SDN controllers index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSDNControllers200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSDNControllersWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNControllers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/controllers", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNControllers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNControllers SDN controllers index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSDNControllers200Response + public async System.Threading.Tasks.Task GetClusterSDNControllersAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSDNControllersWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSDNControllers SDN controllers index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSDNControllers200Response) + public async System.Threading.Tasks.Task> GetClusterSDNControllersWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNControllers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/controllers", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNControllers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNVnet Read sdn vnet configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetClusterSDNVnet(string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSDNVnetWithHttpInfo(vnet); + return localVarResponse.Data; + } + + /// + /// getClusterSDNVnet Read sdn vnet configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSDNVnetWithHttpInfo(string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSDNVnet"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNVnet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/vnets/{vnet}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNVnet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNVnet Read sdn vnet configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetClusterSDNVnetAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSDNVnetWithHttpInfoAsync(vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSDNVnet Read sdn vnet configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetClusterSDNVnetWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSDNVnet"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNVnet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/vnets/{vnet}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNVnet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNVnets SDN vnets index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSDNVnets200Response + public GetClusterSDNVnets200Response GetClusterSDNVnets(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSDNVnetsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSDNVnets SDN vnets index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSDNVnets200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSDNVnetsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNVnets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/vnets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNVnets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNVnets SDN vnets index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSDNVnets200Response + public async System.Threading.Tasks.Task GetClusterSDNVnetsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSDNVnetsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSDNVnets SDN vnets index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSDNVnets200Response) + public async System.Threading.Tasks.Task> GetClusterSDNVnetsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNVnets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/vnets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNVnets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNZone Read sdn zone configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetClusterSDNZone(string zone, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSDNZoneWithHttpInfo(zone); + return localVarResponse.Data; + } + + /// + /// getClusterSDNZone Read sdn zone configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSDNZoneWithHttpInfo(string zone, int operationIndex = 0) + { + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetClusterSDNZone"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/zones/{zone}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNZone Read sdn zone configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetClusterSDNZoneAsync(string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSDNZoneWithHttpInfoAsync(zone, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSDNZone Read sdn zone configuration. + /// + /// Thrown when fails to make API call + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetClusterSDNZoneWithHttpInfoAsync(string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetClusterSDNZone"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/zones/{zone}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNZones SDN zones index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSDNZones200Response + public GetClusterSDNZones200Response GetClusterSDNZones(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSDNZonesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSDNZones SDN zones index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSDNZones200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSDNZonesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNZones"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/zones", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNZones", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSDNZones SDN zones index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSDNZones200Response + public async System.Threading.Tasks.Task GetClusterSDNZonesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSDNZonesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSDNZones SDN zones index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSDNZones200Response) + public async System.Threading.Tasks.Task> GetClusterSDNZonesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSDNZones"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/zones", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSDNZones", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnDns SDN dns index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnDns200Response + public GetClusterSdnDns200Response GetClusterSdnDns(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnDnsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSdnDns SDN dns index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnDns200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnDnsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnDns"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/dns", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnDns", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnDns SDN dns index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnDns200Response + public async System.Threading.Tasks.Task GetClusterSdnDnsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnDnsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnDns SDN dns index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnDns200Response) + public async System.Threading.Tasks.Task> GetClusterSdnDnsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnDns"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/dns", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnDns", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnDnsSingle Read sdn dns configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterSdnDnsSingle(string dns, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnDnsSingleWithHttpInfo(dns); + return localVarResponse.Data; + } + + /// + /// getClusterSdnDnsSingle Read sdn dns configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnDnsSingleWithHttpInfo(string dns, int operationIndex = 0) + { + // verify the required parameter 'dns' is set + if (dns == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'dns' when calling ProxmoxGeneratedApi->GetClusterSdnDnsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("dns", ProxmoxSharp.Client.ClientUtils.ParameterToString(dns)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnDnsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/dns/{dns}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnDnsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnDnsSingle Read sdn dns configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterSdnDnsSingleAsync(string dns, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnDnsSingleWithHttpInfoAsync(dns, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnDnsSingle Read sdn dns configuration. + /// + /// Thrown when fails to make API call + /// dns + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterSdnDnsSingleWithHttpInfoAsync(string dns, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'dns' is set + if (dns == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'dns' when calling ProxmoxGeneratedApi->GetClusterSdnDnsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("dns", ProxmoxSharp.Client.ClientUtils.ParameterToString(dns)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnDnsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/dns/{dns}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnDnsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabrics SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetClusterSdnFabrics(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnFabricsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabrics SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnFabricsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabrics"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/fabrics", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabrics", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabrics SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetClusterSdnFabricsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnFabricsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabrics SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetClusterSdnFabricsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabrics"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/fabrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabrics", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsAll SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabricsAll200Response + public GetClusterSdnFabricsAll200Response GetClusterSdnFabricsAll(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnFabricsAllWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsAll SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsAll200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnFabricsAllWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsAll"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/fabrics/all", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsAll", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsAll SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsAll200Response + public async System.Threading.Tasks.Task GetClusterSdnFabricsAllAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnFabricsAllWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsAll SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsAll200Response) + public async System.Threading.Tasks.Task> GetClusterSdnFabricsAllWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsAll"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/fabrics/all", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsAll", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsFabric SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabricsFabric200Response + public GetClusterSdnFabricsFabric200Response GetClusterSdnFabricsFabric(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnFabricsFabricWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsFabric SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsFabric200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnFabricsFabricWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsFabric"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/fabrics/fabric", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsFabric", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsFabric SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsFabric200Response + public async System.Threading.Tasks.Task GetClusterSdnFabricsFabricAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnFabricsFabricWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsFabric SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsFabric200Response) + public async System.Threading.Tasks.Task> GetClusterSdnFabricsFabricWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsFabric"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/fabrics/fabric", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsFabric", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsFabricSingle Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// GetClusterSdnFabricsFabricSingle200Response + public GetClusterSdnFabricsFabricSingle200Response GetClusterSdnFabricsFabricSingle(string id, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnFabricsFabricSingleWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsFabricSingle Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsFabricSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnFabricsFabricSingleWithHttpInfo(string id, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterSdnFabricsFabricSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsFabricSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/fabrics/fabric/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsFabricSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsFabricSingle Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsFabricSingle200Response + public async System.Threading.Tasks.Task GetClusterSdnFabricsFabricSingleAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnFabricsFabricSingleWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsFabricSingle Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsFabricSingle200Response) + public async System.Threading.Tasks.Task> GetClusterSdnFabricsFabricSingleWithHttpInfoAsync(string id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetClusterSdnFabricsFabricSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsFabricSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/fabrics/fabric/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsFabricSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsNode SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnFabricsNode200Response + public GetClusterSdnFabricsNode200Response GetClusterSdnFabricsNode(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnFabricsNodeWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsNode SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsNode200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnFabricsNodeWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsNode"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/fabrics/node", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsNode", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsNode SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsNode200Response + public async System.Threading.Tasks.Task GetClusterSdnFabricsNodeAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnFabricsNodeWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsNode SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsNode200Response) + public async System.Threading.Tasks.Task> GetClusterSdnFabricsNodeWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsNode"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/fabrics/node", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsNode", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsNodeSingle SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// fabric_id + /// Index associated with the operation. + /// GetClusterSdnFabricsNode200Response + public GetClusterSdnFabricsNode200Response GetClusterSdnFabricsNodeSingle(string fabricId, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnFabricsNodeSingleWithHttpInfo(fabricId); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsNodeSingle SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// fabric_id + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabricsNode200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnFabricsNodeSingleWithHttpInfo(string fabricId, int operationIndex = 0) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->GetClusterSdnFabricsNodeSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsNodeSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/fabrics/node/{fabric_id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsNodeSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsNodeSingle SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// fabric_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabricsNode200Response + public async System.Threading.Tasks.Task GetClusterSdnFabricsNodeSingleAsync(string fabricId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnFabricsNodeSingleWithHttpInfoAsync(fabricId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsNodeSingle SDN Fabrics Index + /// + /// Thrown when fails to make API call + /// fabric_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabricsNode200Response) + public async System.Threading.Tasks.Task> GetClusterSdnFabricsNodeSingleWithHttpInfoAsync(string fabricId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->GetClusterSdnFabricsNodeSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsNodeSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/fabrics/node/{fabric_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsNodeSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsNodeSingleSingle Get a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetClusterSdnFabricsNodeSingleSingle(string fabricId, string nodeId, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnFabricsNodeSingleSingleWithHttpInfo(fabricId, nodeId); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsNodeSingleSingle Get a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnFabricsNodeSingleSingleWithHttpInfo(string fabricId, string nodeId, int operationIndex = 0) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->GetClusterSdnFabricsNodeSingleSingle"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'nodeId' when calling ProxmoxGeneratedApi->GetClusterSdnFabricsNodeSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + localVarRequestOptions.PathParameters.Add("node_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(nodeId)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsNodeSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/fabrics/node/{fabric_id}/{node_id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsNodeSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnFabricsNodeSingleSingle Get a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetClusterSdnFabricsNodeSingleSingleAsync(string fabricId, string nodeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(fabricId, nodeId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnFabricsNodeSingleSingle Get a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(string fabricId, string nodeId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->GetClusterSdnFabricsNodeSingleSingle"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'nodeId' when calling ProxmoxGeneratedApi->GetClusterSdnFabricsNodeSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + localVarRequestOptions.PathParameters.Add("node_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(nodeId)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnFabricsNodeSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/fabrics/node/{fabric_id}/{node_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnFabricsNodeSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnIpams SDN ipams index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterSdnIpams200Response + public GetClusterSdnIpams200Response GetClusterSdnIpams(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnIpamsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterSdnIpams SDN ipams index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnIpams200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnIpamsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnIpams"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/ipams", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnIpams", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnIpams SDN ipams index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnIpams200Response + public async System.Threading.Tasks.Task GetClusterSdnIpamsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnIpamsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnIpams SDN ipams index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnIpams200Response) + public async System.Threading.Tasks.Task> GetClusterSdnIpamsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnIpams"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/ipams", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnIpams", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnIpamsSingle Read sdn ipam configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterSdnIpamsSingle(string ipam, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnIpamsSingleWithHttpInfo(ipam); + return localVarResponse.Data; + } + + /// + /// getClusterSdnIpamsSingle Read sdn ipam configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnIpamsSingleWithHttpInfo(string ipam, int operationIndex = 0) + { + // verify the required parameter 'ipam' is set + if (ipam == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'ipam' when calling ProxmoxGeneratedApi->GetClusterSdnIpamsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("ipam", ProxmoxSharp.Client.ClientUtils.ParameterToString(ipam)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnIpamsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/ipams/{ipam}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnIpamsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnIpamsSingle Read sdn ipam configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterSdnIpamsSingleAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnIpamsSingleWithHttpInfoAsync(ipam, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnIpamsSingle Read sdn ipam configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterSdnIpamsSingleWithHttpInfoAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'ipam' is set + if (ipam == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'ipam' when calling ProxmoxGeneratedApi->GetClusterSdnIpamsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("ipam", ProxmoxSharp.Client.ClientUtils.ParameterToString(ipam)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnIpamsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/ipams/{ipam}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnIpamsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnIpamsSingleStatus List PVE IPAM Entries + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// GetClusterSdnIpamsSingleStatus200Response + public GetClusterSdnIpamsSingleStatus200Response GetClusterSdnIpamsSingleStatus(string ipam, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnIpamsSingleStatusWithHttpInfo(ipam); + return localVarResponse.Data; + } + + /// + /// getClusterSdnIpamsSingleStatus List PVE IPAM Entries + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnIpamsSingleStatus200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnIpamsSingleStatusWithHttpInfo(string ipam, int operationIndex = 0) + { + // verify the required parameter 'ipam' is set + if (ipam == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'ipam' when calling ProxmoxGeneratedApi->GetClusterSdnIpamsSingleStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("ipam", ProxmoxSharp.Client.ClientUtils.ParameterToString(ipam)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnIpamsSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/ipams/{ipam}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnIpamsSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnIpamsSingleStatus List PVE IPAM Entries + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnIpamsSingleStatus200Response + public async System.Threading.Tasks.Task GetClusterSdnIpamsSingleStatusAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnIpamsSingleStatusWithHttpInfoAsync(ipam, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnIpamsSingleStatus List PVE IPAM Entries + /// + /// Thrown when fails to make API call + /// ipam + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnIpamsSingleStatus200Response) + public async System.Threading.Tasks.Task> GetClusterSdnIpamsSingleStatusWithHttpInfoAsync(string ipam, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'ipam' is set + if (ipam == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'ipam' when calling ProxmoxGeneratedApi->GetClusterSdnIpamsSingleStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("ipam", ProxmoxSharp.Client.ClientUtils.ParameterToString(ipam)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnIpamsSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/ipams/{ipam}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnIpamsSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleFirewall Directory index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterSdnVnetsSingleFirewall(string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnVnetsSingleFirewallWithHttpInfo(vnet); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleFirewall Directory index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnVnetsSingleFirewallWithHttpInfo(string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleFirewall"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/vnets/{vnet}/firewall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleFirewall Directory index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterSdnVnetsSingleFirewallAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnVnetsSingleFirewallWithHttpInfoAsync(vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleFirewall Directory index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterSdnVnetsSingleFirewallWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleFirewall"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/vnets/{vnet}/firewall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleFirewallOptions Get vnet firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// GetClusterSdnVnetsSingleFirewallOptions200Response + public GetClusterSdnVnetsSingleFirewallOptions200Response GetClusterSdnVnetsSingleFirewallOptions(string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnVnetsSingleFirewallOptionsWithHttpInfo(vnet); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleFirewallOptions Get vnet firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnVnetsSingleFirewallOptions200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnVnetsSingleFirewallOptionsWithHttpInfo(string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleFirewallOptions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/vnets/{vnet}/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleFirewallOptions Get vnet firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnVnetsSingleFirewallOptions200Response + public async System.Threading.Tasks.Task GetClusterSdnVnetsSingleFirewallOptionsAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnVnetsSingleFirewallOptionsWithHttpInfoAsync(vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleFirewallOptions Get vnet firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnVnetsSingleFirewallOptions200Response) + public async System.Threading.Tasks.Task> GetClusterSdnVnetsSingleFirewallOptionsWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleFirewallOptions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/vnets/{vnet}/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + public GetClusterFirewallGroupRules200Response GetClusterSdnVnetsSingleFirewallRules(string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnVnetsSingleFirewallRulesWithHttpInfo(vnet); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnVnetsSingleFirewallRulesWithHttpInfo(string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleFirewallRules"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/vnets/{vnet}/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + public async System.Threading.Tasks.Task GetClusterSdnVnetsSingleFirewallRulesAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnVnetsSingleFirewallRulesWithHttpInfoAsync(vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + public async System.Threading.Tasks.Task> GetClusterSdnVnetsSingleFirewallRulesWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleFirewallRules"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/vnets/{vnet}/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleFirewallRulesSingle Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + public GetClusterFirewallGroupRule200Response GetClusterSdnVnetsSingleFirewallRulesSingle(int pos, string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(pos, vnet); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleFirewallRulesSingle Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(int pos, string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleFirewallRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleFirewallRulesSingle Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + public async System.Threading.Tasks.Task GetClusterSdnVnetsSingleFirewallRulesSingleAsync(int pos, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(pos, vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleFirewallRulesSingle Get single rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + public async System.Threading.Tasks.Task> GetClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(int pos, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleFirewallRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleSubnets SDN subnets index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetClusterSdnVnetsSingleSubnets(string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnVnetsSingleSubnetsWithHttpInfo(vnet); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleSubnets SDN subnets index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnVnetsSingleSubnetsWithHttpInfo(string vnet, int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleSubnets"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleSubnets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/vnets/{vnet}/subnets", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleSubnets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleSubnets SDN subnets index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetClusterSdnVnetsSingleSubnetsAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnVnetsSingleSubnetsWithHttpInfoAsync(vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleSubnets SDN subnets index. + /// + /// Thrown when fails to make API call + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetClusterSdnVnetsSingleSubnetsWithHttpInfoAsync(string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleSubnets"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleSubnets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/vnets/{vnet}/subnets", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleSubnets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleSubnetsSingle Read sdn subnet configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetClusterSdnVnetsSingleSubnetsSingle(string subnet, string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(subnet, vnet); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleSubnetsSingle Read sdn subnet configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(string subnet, string vnet, int operationIndex = 0) + { + // verify the required parameter 'subnet' is set + if (subnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'subnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleSubnetsSingle"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleSubnetsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("subnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(subnet)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleSubnetsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/sdn/vnets/{vnet}/subnets/{subnet}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleSubnetsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterSdnVnetsSingleSubnetsSingle Read sdn subnet configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetClusterSdnVnetsSingleSubnetsSingleAsync(string subnet, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(subnet, vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterSdnVnetsSingleSubnetsSingle Read sdn subnet configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(string subnet, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'subnet' is set + if (subnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'subnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleSubnetsSingle"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetClusterSdnVnetsSingleSubnetsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("subnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(subnet)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterSdnVnetsSingleSubnetsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/sdn/vnets/{vnet}/subnets/{subnet}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterSdnVnetsSingleSubnetsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterStatus Get cluster status information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterStatus200Response + public GetClusterStatus200Response GetClusterStatus(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterStatusWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterStatus Get cluster status information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterStatus200Response + public ProxmoxSharp.Client.ApiResponse GetClusterStatusWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterStatus Get cluster status information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterStatus200Response + public async System.Threading.Tasks.Task GetClusterStatusAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterStatusWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterStatus Get cluster status information. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterStatus200Response) + public async System.Threading.Tasks.Task> GetClusterStatusWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterTasks List recent tasks (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetClusterTasks200Response + public GetClusterTasks200Response GetClusterTasks(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetClusterTasksWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getClusterTasks List recent tasks (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetClusterTasks200Response + public ProxmoxSharp.Client.ApiResponse GetClusterTasksWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterTasks"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/cluster/tasks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterTasks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getClusterTasks List recent tasks (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterTasks200Response + public async System.Threading.Tasks.Task GetClusterTasksAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetClusterTasksWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getClusterTasks List recent tasks (cluster wide). + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterTasks200Response) + public async System.Threading.Tasks.Task> GetClusterTasksWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetClusterTasks"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/cluster/tasks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetClusterTasks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getCurrentVMStatus Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCurrentVMStatus200Response + public GetCurrentVMStatus200Response GetCurrentVMStatus(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetCurrentVMStatusWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getCurrentVMStatus Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCurrentVMStatus200Response + public ProxmoxSharp.Client.ApiResponse GetCurrentVMStatusWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetCurrentVMStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetCurrentVMStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/status/current", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCurrentVMStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getCurrentVMStatus Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCurrentVMStatus200Response + public async System.Threading.Tasks.Task GetCurrentVMStatusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetCurrentVMStatusWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getCurrentVMStatus Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCurrentVMStatus200Response) + public async System.Threading.Tasks.Task> GetCurrentVMStatusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetCurrentVMStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetCurrentVMStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/status/current", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCurrentVMStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNode Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNode(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNode Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodeWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNode"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNode"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNode", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNode Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodeAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNode Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodeWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNode"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNode"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNode", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodeFirewall(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeFirewallWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodeFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodeFirewallWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeFirewall"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/firewall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodeFirewallAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeFirewallWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodeFirewallWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeFirewall"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/firewall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeFirewallOptions Get host firewall options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodeFirewallOptions200Response + public GetNodeFirewallOptions200Response GetNodeFirewallOptions(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeFirewallOptionsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodeFirewallOptions Get host firewall options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodeFirewallOptions200Response + public ProxmoxSharp.Client.ApiResponse GetNodeFirewallOptionsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeFirewallOptions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeFirewallOptions Get host firewall options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeFirewallOptions200Response + public async System.Threading.Tasks.Task GetNodeFirewallOptionsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeFirewallOptionsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeFirewallOptions Get host firewall options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeFirewallOptions200Response) + public async System.Threading.Tasks.Task> GetNodeFirewallOptionsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeFirewallOptions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + public GetClusterFirewallGroupRule200Response GetNodeFirewallRule(string node, int pos, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeFirewallRuleWithHttpInfo(node, pos); + return localVarResponse.Data; + } + + /// + /// getNodeFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + public ProxmoxSharp.Client.ApiResponse GetNodeFirewallRuleWithHttpInfo(string node, int pos, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeFirewallRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + public async System.Threading.Tasks.Task GetNodeFirewallRuleAsync(string node, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeFirewallRuleWithHttpInfoAsync(node, pos, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + public async System.Threading.Tasks.Task> GetNodeFirewallRuleWithHttpInfoAsync(string node, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeFirewallRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + public GetClusterFirewallGroupRules200Response GetNodeFirewallRules(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeFirewallRulesWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodeFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + public ProxmoxSharp.Client.ApiResponse GetNodeFirewallRulesWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeFirewallRules"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + public async System.Threading.Tasks.Task GetNodeFirewallRulesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeFirewallRulesWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + public async System.Threading.Tasks.Task> GetNodeFirewallRulesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeFirewallRules"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeRRD Read node RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetVMRRD200Response + public GetVMRRD200Response GetNodeRRD(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeRRDWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodeRRD Read node RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetVMRRD200Response + public ProxmoxSharp.Client.ApiResponse GetNodeRRDWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeRRD"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeRRD"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/rrd", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeRRD", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeRRD Read node RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMRRD200Response + public async System.Threading.Tasks.Task GetNodeRRDAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeRRDWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeRRD Read node RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMRRD200Response) + public async System.Threading.Tasks.Task> GetNodeRRDWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeRRD"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeRRD"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/rrd", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeRRD", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeRRDData Read node RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodeRRDData(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeRRDDataWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodeRRDData Read node RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodeRRDDataWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeRRDData"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeRRDData"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/rrddata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeRRDData", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeRRDData Read node RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodeRRDDataAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeRRDDataWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeRRDData Read node RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodeRRDDataWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeRRDData"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeRRDData"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/rrddata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeRRDData", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeSDN SDN index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodeSDN(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeSDNWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodeSDN SDN index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodeSDNWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeSDN"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeSDN"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeSDN", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeSDN SDN index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodeSDNAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeSDNWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeSDN SDN index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodeSDNWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeSDN"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeSDN"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeSDN", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeSDNZone Directory index for SDN zone status. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetNodeSDNZone(string node, string zone, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeSDNZoneWithHttpInfo(node, zone); + return localVarResponse.Data; + } + + /// + /// getNodeSDNZone Directory index for SDN zone status. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetNodeSDNZoneWithHttpInfo(string node, string zone, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeSDNZone"); + } + + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetNodeSDNZone"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/zones/{zone}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeSDNZone Directory index for SDN zone status. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetNodeSDNZoneAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeSDNZoneWithHttpInfoAsync(node, zone, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeSDNZone Directory index for SDN zone status. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetNodeSDNZoneWithHttpInfoAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeSDNZone"); + } + + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetNodeSDNZone"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/zones/{zone}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeSDNZoneContent List zone content. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// GetNodeSDNZoneContent200Response + public GetNodeSDNZoneContent200Response GetNodeSDNZoneContent(string node, string zone, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeSDNZoneContentWithHttpInfo(node, zone); + return localVarResponse.Data; + } + + /// + /// getNodeSDNZoneContent List zone content. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// ApiResponse of GetNodeSDNZoneContent200Response + public ProxmoxSharp.Client.ApiResponse GetNodeSDNZoneContentWithHttpInfo(string node, string zone, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeSDNZoneContent"); + } + + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetNodeSDNZoneContent"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeSDNZoneContent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/zones/{zone}/content", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeSDNZoneContent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeSDNZoneContent List zone content. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeSDNZoneContent200Response + public async System.Threading.Tasks.Task GetNodeSDNZoneContentAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeSDNZoneContentWithHttpInfoAsync(node, zone, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeSDNZoneContent List zone content. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeSDNZoneContent200Response) + public async System.Threading.Tasks.Task> GetNodeSDNZoneContentWithHttpInfoAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeSDNZoneContent"); + } + + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetNodeSDNZoneContent"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeSDNZoneContent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/zones/{zone}/content", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeSDNZoneContent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeSDNZones Get status for all zones. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodeSDNZones200Response + public GetNodeSDNZones200Response GetNodeSDNZones(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeSDNZonesWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodeSDNZones Get status for all zones. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodeSDNZones200Response + public ProxmoxSharp.Client.ApiResponse GetNodeSDNZonesWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeSDNZones"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeSDNZones"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/zones", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeSDNZones", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeSDNZones Get status for all zones. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeSDNZones200Response + public async System.Threading.Tasks.Task GetNodeSDNZonesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeSDNZonesWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeSDNZones Get status for all zones. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeSDNZones200Response) + public async System.Threading.Tasks.Task> GetNodeSDNZonesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeSDNZones"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeSDNZones"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/zones", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeSDNZones", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeTask getNodeTask + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodeTask(string node, string upid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeTaskWithHttpInfo(node, upid); + return localVarResponse.Data; + } + + /// + /// getNodeTask getNodeTask + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodeTaskWithHttpInfo(string node, string upid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeTask"); + } + + // verify the required parameter 'upid' is set + if (upid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'upid' when calling ProxmoxGeneratedApi->GetNodeTask"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("upid", ProxmoxSharp.Client.ClientUtils.ParameterToString(upid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeTask"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/tasks/{upid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeTask", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeTask getNodeTask + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodeTaskAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeTaskWithHttpInfoAsync(node, upid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeTask getNodeTask + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodeTaskWithHttpInfoAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeTask"); + } + + // verify the required parameter 'upid' is set + if (upid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'upid' when calling ProxmoxGeneratedApi->GetNodeTask"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("upid", ProxmoxSharp.Client.ClientUtils.ParameterToString(upid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeTask"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/tasks/{upid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeTask", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeTaskLog Read task log. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + public GetNodesSingleQemuSingleFirewallLog200Response GetNodeTaskLog(string node, string upid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeTaskLogWithHttpInfo(node, upid); + return localVarResponse.Data; + } + + /// + /// getNodeTaskLog Read task log. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + public ProxmoxSharp.Client.ApiResponse GetNodeTaskLogWithHttpInfo(string node, string upid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeTaskLog"); + } + + // verify the required parameter 'upid' is set + if (upid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'upid' when calling ProxmoxGeneratedApi->GetNodeTaskLog"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("upid", ProxmoxSharp.Client.ClientUtils.ParameterToString(upid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeTaskLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/tasks/{upid}/log", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeTaskLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeTaskLog Read task log. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + public async System.Threading.Tasks.Task GetNodeTaskLogAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeTaskLogWithHttpInfoAsync(node, upid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeTaskLog Read task log. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + public async System.Threading.Tasks.Task> GetNodeTaskLogWithHttpInfoAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeTaskLog"); + } + + // verify the required parameter 'upid' is set + if (upid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'upid' when calling ProxmoxGeneratedApi->GetNodeTaskLog"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("upid", ProxmoxSharp.Client.ClientUtils.ParameterToString(upid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeTaskLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/tasks/{upid}/log", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeTaskLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeTaskStatus Read task status. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// GetNodeTaskStatus200Response + public GetNodeTaskStatus200Response GetNodeTaskStatus(string node, string upid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeTaskStatusWithHttpInfo(node, upid); + return localVarResponse.Data; + } + + /// + /// getNodeTaskStatus Read task status. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// ApiResponse of GetNodeTaskStatus200Response + public ProxmoxSharp.Client.ApiResponse GetNodeTaskStatusWithHttpInfo(string node, string upid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeTaskStatus"); + } + + // verify the required parameter 'upid' is set + if (upid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'upid' when calling ProxmoxGeneratedApi->GetNodeTaskStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("upid", ProxmoxSharp.Client.ClientUtils.ParameterToString(upid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeTaskStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/tasks/{upid}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeTaskStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeTaskStatus Read task status. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeTaskStatus200Response + public async System.Threading.Tasks.Task GetNodeTaskStatusAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeTaskStatusWithHttpInfoAsync(node, upid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeTaskStatus Read task status. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeTaskStatus200Response) + public async System.Threading.Tasks.Task> GetNodeTaskStatusWithHttpInfoAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeTaskStatus"); + } + + // verify the required parameter 'upid' is set + if (upid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'upid' when calling ProxmoxGeneratedApi->GetNodeTaskStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("upid", ProxmoxSharp.Client.ClientUtils.ParameterToString(upid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeTaskStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/tasks/{upid}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeTaskStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeTasks Read task list for one node (finished tasks). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodeTasks200Response + public GetNodeTasks200Response GetNodeTasks(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodeTasksWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodeTasks Read task list for one node (finished tasks). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodeTasks200Response + public ProxmoxSharp.Client.ApiResponse GetNodeTasksWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeTasks"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeTasks"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/tasks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeTasks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodeTasks Read task list for one node (finished tasks). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodeTasks200Response + public async System.Threading.Tasks.Task GetNodeTasksAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodeTasksWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodeTasks Read task list for one node (finished tasks). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodeTasks200Response) + public async System.Threading.Tasks.Task> GetNodeTasksWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodeTasks"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodeTasks"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/tasks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodeTasks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodes Cluster node index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetNodes200Response + public GetNodes200Response GetNodes(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getNodes Cluster node index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetNodes200Response + public ProxmoxSharp.Client.ApiResponse GetNodesWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodes"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodes Cluster node index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodes200Response + public async System.Threading.Tasks.Task GetNodesAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodes Cluster node index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodes200Response) + public async System.Threading.Tasks.Task> GetNodesWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodes"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAplinfo Get list of appliances. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleAplinfo(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleAplinfoWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAplinfo Get list of appliances. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleAplinfoWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAplinfo"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAplinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/aplinfo", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAplinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAplinfo Get list of appliances. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleAplinfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleAplinfoWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAplinfo Get list of appliances. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleAplinfoWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAplinfo"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAplinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/aplinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAplinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleApt Directory index for apt (Advanced Package Tool). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterHa200Response + public GetClusterHa200Response GetNodesSingleApt(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleAptWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleApt Directory index for apt (Advanced Package Tool). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterHa200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleAptWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleApt"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleApt"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/apt", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleApt", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleApt Directory index for apt (Advanced Package Tool). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHa200Response + public async System.Threading.Tasks.Task GetNodesSingleAptAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleAptWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleApt Directory index for apt (Advanced Package Tool). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHa200Response) + public async System.Threading.Tasks.Task> GetNodesSingleAptWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleApt"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleApt"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/apt", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleApt", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAptChangelog Get package changelogs. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetNodesSingleAptChangelog(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleAptChangelogWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAptChangelog Get package changelogs. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleAptChangelogWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAptChangelog"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAptChangelog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/apt/changelog", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAptChangelog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAptChangelog Get package changelogs. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetNodesSingleAptChangelogAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleAptChangelogWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAptChangelog Get package changelogs. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetNodesSingleAptChangelogWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAptChangelog"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAptChangelog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/apt/changelog", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAptChangelog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAptRepositories Get APT repository information. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleAptRepositories200Response + public GetNodesSingleAptRepositories200Response GetNodesSingleAptRepositories(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleAptRepositoriesWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAptRepositories Get APT repository information. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleAptRepositories200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleAptRepositoriesWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAptRepositories"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAptRepositories"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/apt/repositories", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAptRepositories", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAptRepositories Get APT repository information. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleAptRepositories200Response + public async System.Threading.Tasks.Task GetNodesSingleAptRepositoriesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleAptRepositoriesWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAptRepositories Get APT repository information. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleAptRepositories200Response) + public async System.Threading.Tasks.Task> GetNodesSingleAptRepositoriesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAptRepositories"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAptRepositories"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/apt/repositories", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAptRepositories", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAptUpdate List available updates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleAptUpdate200Response + public GetNodesSingleAptUpdate200Response GetNodesSingleAptUpdate(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleAptUpdateWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAptUpdate List available updates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleAptUpdate200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleAptUpdateWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAptUpdate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAptUpdate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/apt/update", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAptUpdate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAptUpdate List available updates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleAptUpdate200Response + public async System.Threading.Tasks.Task GetNodesSingleAptUpdateAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleAptUpdateWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAptUpdate List available updates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleAptUpdate200Response) + public async System.Threading.Tasks.Task> GetNodesSingleAptUpdateWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAptUpdate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAptUpdate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/apt/update", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAptUpdate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAptVersions Get package information for important Proxmox packages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleAptVersions200Response + public GetNodesSingleAptVersions200Response GetNodesSingleAptVersions(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleAptVersionsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAptVersions Get package information for important Proxmox packages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleAptVersions200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleAptVersionsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAptVersions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAptVersions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/apt/versions", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAptVersions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleAptVersions Get package information for important Proxmox packages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleAptVersions200Response + public async System.Threading.Tasks.Task GetNodesSingleAptVersionsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleAptVersionsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleAptVersions Get package information for important Proxmox packages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleAptVersions200Response) + public async System.Threading.Tasks.Task> GetNodesSingleAptVersionsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleAptVersions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleAptVersions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/apt/versions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleAptVersions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilities Node capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleCapabilities(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCapabilitiesWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilities Node capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCapabilitiesWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilities"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilities"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/capabilities", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilities", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilities Node capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleCapabilitiesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCapabilitiesWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilities Node capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCapabilitiesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilities"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilities"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/capabilities", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilities", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemu QEMU capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleCapabilitiesQemu(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCapabilitiesQemuWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemu QEMU capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCapabilitiesQemuWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemu"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemu"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/capabilities/qemu", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemu", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemu QEMU capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCapabilitiesQemuWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemu QEMU capabilities index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemu"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemu"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/capabilities/qemu", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemu", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemuCpu List all custom and default CPU models. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCapabilitiesQemuCpu200Response + public GetNodesSingleCapabilitiesQemuCpu200Response GetNodesSingleCapabilitiesQemuCpu(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCapabilitiesQemuCpuWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemuCpu List all custom and default CPU models. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCapabilitiesQemuCpu200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCapabilitiesQemuCpuWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemuCpu"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemuCpu"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/capabilities/qemu/cpu", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemuCpu", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemuCpu List all custom and default CPU models. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCapabilitiesQemuCpu200Response + public async System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuCpuAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCapabilitiesQemuCpuWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemuCpu List all custom and default CPU models. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCapabilitiesQemuCpu200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuCpuWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemuCpu"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemuCpu"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/capabilities/qemu/cpu", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemuCpu", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemuCpuflags List of available VM-specific CPU flags. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCapabilitiesQemuCpuflags200Response + public GetNodesSingleCapabilitiesQemuCpuflags200Response GetNodesSingleCapabilitiesQemuCpuflags(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCapabilitiesQemuCpuflagsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemuCpuflags List of available VM-specific CPU flags. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCapabilitiesQemuCpuflags200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCapabilitiesQemuCpuflagsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemuCpuflags"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemuCpuflags"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/capabilities/qemu/cpu-flags", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemuCpuflags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemuCpuflags List of available VM-specific CPU flags. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCapabilitiesQemuCpuflags200Response + public async System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuCpuflagsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCapabilitiesQemuCpuflagsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemuCpuflags List of available VM-specific CPU flags. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCapabilitiesQemuCpuflags200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuCpuflagsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemuCpuflags"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemuCpuflags"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/capabilities/qemu/cpu-flags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemuCpuflags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemuMachines Get available QEMU/KVM machine types. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCapabilitiesQemuMachines200Response + public GetNodesSingleCapabilitiesQemuMachines200Response GetNodesSingleCapabilitiesQemuMachines(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCapabilitiesQemuMachinesWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemuMachines Get available QEMU/KVM machine types. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCapabilitiesQemuMachines200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCapabilitiesQemuMachinesWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemuMachines"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemuMachines"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/capabilities/qemu/machines", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemuMachines", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemuMachines Get available QEMU/KVM machine types. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCapabilitiesQemuMachines200Response + public async System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuMachinesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCapabilitiesQemuMachinesWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemuMachines Get available QEMU/KVM machine types. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCapabilitiesQemuMachines200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuMachinesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemuMachines"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemuMachines"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/capabilities/qemu/machines", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemuMachines", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemuMigration Get node-specific QEMU migration capabilities of the node. Requires the 'Sys.Audit' permission on '/nodes/<node>'. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCapabilitiesQemuMigration200Response + public GetNodesSingleCapabilitiesQemuMigration200Response GetNodesSingleCapabilitiesQemuMigration(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCapabilitiesQemuMigrationWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemuMigration Get node-specific QEMU migration capabilities of the node. Requires the 'Sys.Audit' permission on '/nodes/<node>'. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCapabilitiesQemuMigration200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCapabilitiesQemuMigrationWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemuMigration"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemuMigration"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/capabilities/qemu/migration", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemuMigration", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCapabilitiesQemuMigration Get node-specific QEMU migration capabilities of the node. Requires the 'Sys.Audit' permission on '/nodes/<node>'. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCapabilitiesQemuMigration200Response + public async System.Threading.Tasks.Task GetNodesSingleCapabilitiesQemuMigrationAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCapabilitiesQemuMigrationWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCapabilitiesQemuMigration Get node-specific QEMU migration capabilities of the node. Requires the 'Sys.Audit' permission on '/nodes/<node>'. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCapabilitiesQemuMigration200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCapabilitiesQemuMigrationWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCapabilitiesQemuMigration"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCapabilitiesQemuMigration"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/capabilities/qemu/migration", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCapabilitiesQemuMigration", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCeph Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleCeph(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCeph Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCeph"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCeph"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCeph", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCeph Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleCephAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCeph Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCeph"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCeph"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCeph", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCfg Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleCephCfg(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephCfgWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCfg Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephCfgWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCfg"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCfg"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/cfg", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCfg", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCfg Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleCephCfgAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephCfgWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCfg Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephCfgWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCfg"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCfg"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/cfg", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCfg", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCfgDb Get the Ceph configuration database. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephCfgDb200Response + public GetNodesSingleCephCfgDb200Response GetNodesSingleCephCfgDb(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephCfgDbWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCfgDb Get the Ceph configuration database. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephCfgDb200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephCfgDbWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCfgDb"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCfgDb"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/cfg/db", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCfgDb", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCfgDb Get the Ceph configuration database. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephCfgDb200Response + public async System.Threading.Tasks.Task GetNodesSingleCephCfgDbAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephCfgDbWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCfgDb Get the Ceph configuration database. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephCfgDb200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephCfgDbWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCfgDb"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCfgDb"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/cfg/db", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCfgDb", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCfgRaw Get the Ceph configuration file. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetNodesSingleCephCfgRaw(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephCfgRawWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCfgRaw Get the Ceph configuration file. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephCfgRawWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCfgRaw"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCfgRaw"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/cfg/raw", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCfgRaw", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCfgRaw Get the Ceph configuration file. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetNodesSingleCephCfgRawAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephCfgRawWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCfgRaw Get the Ceph configuration file. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephCfgRawWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCfgRaw"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCfgRaw"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/cfg/raw", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCfgRaw", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCfgValue Get configured values from either the config file or config DB. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephCfgValue200Response + public GetNodesSingleCephCfgValue200Response GetNodesSingleCephCfgValue(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephCfgValueWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCfgValue Get configured values from either the config file or config DB. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephCfgValue200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephCfgValueWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCfgValue"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCfgValue"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/cfg/value", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCfgValue", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCfgValue Get configured values from either the config file or config DB. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephCfgValue200Response + public async System.Threading.Tasks.Task GetNodesSingleCephCfgValueAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephCfgValueWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCfgValue Get configured values from either the config file or config DB. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephCfgValue200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephCfgValueWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCfgValue"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCfgValue"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/cfg/value", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCfgValue", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCmdsafety Heuristical check if it is safe to perform an action. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephCmdsafety200Response + public GetNodesSingleCephCmdsafety200Response GetNodesSingleCephCmdsafety(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephCmdsafetyWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCmdsafety Heuristical check if it is safe to perform an action. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephCmdsafety200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephCmdsafetyWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCmdsafety"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCmdsafety"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/cmd-safety", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCmdsafety", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCmdsafety Heuristical check if it is safe to perform an action. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephCmdsafety200Response + public async System.Threading.Tasks.Task GetNodesSingleCephCmdsafetyAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephCmdsafetyWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCmdsafety Heuristical check if it is safe to perform an action. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephCmdsafety200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephCmdsafetyWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCmdsafety"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCmdsafety"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/cmd-safety", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCmdsafety", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCrush Get OSD crush map + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetNodesSingleCephCrush(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephCrushWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCrush Get OSD crush map + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephCrushWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCrush"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCrush"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/crush", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCrush", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephCrush Get OSD crush map + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetNodesSingleCephCrushAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephCrushWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephCrush Get OSD crush map + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephCrushWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephCrush"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephCrush"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/crush", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephCrush", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephFs Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephFs200Response + public GetNodesSingleCephFs200Response GetNodesSingleCephFs(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephFsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephFs Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephFs200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephFsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephFs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephFs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/fs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephFs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephFs Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephFs200Response + public async System.Threading.Tasks.Task GetNodesSingleCephFsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephFsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephFs Directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephFs200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephFsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephFs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephFs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/fs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephFs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephLog Read ceph log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + public GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleCephLog(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephLogWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephLog Read ceph log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephLogWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephLog"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/log", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephLog Read ceph log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + public async System.Threading.Tasks.Task GetNodesSingleCephLogAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephLogWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephLog Read ceph log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephLogWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephLog"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/log", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephMds MDS directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephMds200Response + public GetNodesSingleCephMds200Response GetNodesSingleCephMds(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephMdsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephMds MDS directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephMds200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephMdsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephMds"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephMds"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/mds", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephMds", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephMds MDS directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephMds200Response + public async System.Threading.Tasks.Task GetNodesSingleCephMdsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephMdsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephMds MDS directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephMds200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephMdsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephMds"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephMds"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/mds", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephMds", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephMgr MGR directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephMgr200Response + public GetNodesSingleCephMgr200Response GetNodesSingleCephMgr(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephMgrWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephMgr MGR directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephMgr200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephMgrWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephMgr"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephMgr"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/mgr", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephMgr", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephMgr MGR directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephMgr200Response + public async System.Threading.Tasks.Task GetNodesSingleCephMgrAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephMgrWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephMgr MGR directory index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephMgr200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephMgrWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephMgr"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephMgr"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/mgr", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephMgr", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephMon Get Ceph monitor list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephMon200Response + public GetNodesSingleCephMon200Response GetNodesSingleCephMon(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephMonWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephMon Get Ceph monitor list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephMon200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephMonWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephMon"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephMon"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/mon", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephMon", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephMon Get Ceph monitor list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephMon200Response + public async System.Threading.Tasks.Task GetNodesSingleCephMonAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephMonWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephMon Get Ceph monitor list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephMon200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephMonWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephMon"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephMon"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/mon", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephMon", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephOsd Get Ceph osd list/tree. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetNodesSingleCephOsd(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephOsdWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephOsd Get Ceph osd list/tree. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephOsdWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephOsd"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephOsd"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/osd", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephOsd", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephOsd Get Ceph osd list/tree. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleCephOsdAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephOsdWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephOsd Get Ceph osd list/tree. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephOsdWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephOsd"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephOsd"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/osd", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephOsd", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephOsdSingle OSD index. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleCephOsdSingle(string node, int osdid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephOsdSingleWithHttpInfo(node, osdid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephOsdSingle OSD index. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephOsdSingleWithHttpInfo(string node, int osdid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephOsdSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephOsdSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/osd/{osdid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephOsdSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephOsdSingle OSD index. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleCephOsdSingleAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephOsdSingleWithHttpInfoAsync(node, osdid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephOsdSingle OSD index. + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephOsdSingleWithHttpInfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephOsdSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephOsdSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/osd/{osdid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephOsdSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephOsdSingleLvinfo Get OSD volume details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// GetNodesSingleCephOsdSingleLvinfo200Response + public GetNodesSingleCephOsdSingleLvinfo200Response GetNodesSingleCephOsdSingleLvinfo(string node, int osdid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephOsdSingleLvinfoWithHttpInfo(node, osdid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephOsdSingleLvinfo Get OSD volume details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephOsdSingleLvinfo200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephOsdSingleLvinfoWithHttpInfo(string node, int osdid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephOsdSingleLvinfo"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephOsdSingleLvinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/osd/{osdid}/lv-info", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephOsdSingleLvinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephOsdSingleLvinfo Get OSD volume details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephOsdSingleLvinfo200Response + public async System.Threading.Tasks.Task GetNodesSingleCephOsdSingleLvinfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephOsdSingleLvinfoWithHttpInfoAsync(node, osdid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephOsdSingleLvinfo Get OSD volume details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephOsdSingleLvinfo200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephOsdSingleLvinfoWithHttpInfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephOsdSingleLvinfo"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephOsdSingleLvinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/osd/{osdid}/lv-info", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephOsdSingleLvinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephOsdSingleMetadata Get OSD details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// GetNodesSingleCephOsdSingleMetadata200Response + public GetNodesSingleCephOsdSingleMetadata200Response GetNodesSingleCephOsdSingleMetadata(string node, int osdid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephOsdSingleMetadataWithHttpInfo(node, osdid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephOsdSingleMetadata Get OSD details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephOsdSingleMetadata200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephOsdSingleMetadataWithHttpInfo(string node, int osdid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephOsdSingleMetadata"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephOsdSingleMetadata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/osd/{osdid}/metadata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephOsdSingleMetadata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephOsdSingleMetadata Get OSD details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephOsdSingleMetadata200Response + public async System.Threading.Tasks.Task GetNodesSingleCephOsdSingleMetadataAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephOsdSingleMetadataWithHttpInfoAsync(node, osdid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephOsdSingleMetadata Get OSD details + /// + /// Thrown when fails to make API call + /// node + /// osdid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephOsdSingleMetadata200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephOsdSingleMetadataWithHttpInfoAsync(string node, int osdid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephOsdSingleMetadata"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("osdid", ProxmoxSharp.Client.ClientUtils.ParameterToString(osdid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephOsdSingleMetadata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/osd/{osdid}/metadata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephOsdSingleMetadata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephPool List all pools and their settings (which are settable by the POST/PUT endpoints). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephPool200Response + public GetNodesSingleCephPool200Response GetNodesSingleCephPool(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephPoolWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephPool List all pools and their settings (which are settable by the POST/PUT endpoints). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephPool200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephPoolWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephPool"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephPool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/pool", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephPool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephPool List all pools and their settings (which are settable by the POST/PUT endpoints). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephPool200Response + public async System.Threading.Tasks.Task GetNodesSingleCephPoolAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephPoolWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephPool List all pools and their settings (which are settable by the POST/PUT endpoints). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephPool200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephPoolWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephPool"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephPool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/pool", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephPool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephPoolSingle Pool index. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleCephPoolSingle(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephPoolSingleWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephPoolSingle Pool index. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephPoolSingleWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleCephPoolSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephPoolSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephPoolSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/pool/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephPoolSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephPoolSingle Pool index. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleCephPoolSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephPoolSingleWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephPoolSingle Pool index. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephPoolSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleCephPoolSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephPoolSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephPoolSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/pool/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephPoolSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephPoolSingleStatus Show the current pool status. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// GetNodesSingleCephPoolSingleStatus200Response + public GetNodesSingleCephPoolSingleStatus200Response GetNodesSingleCephPoolSingleStatus(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephPoolSingleStatusWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephPoolSingleStatus Show the current pool status. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephPoolSingleStatus200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephPoolSingleStatusWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleCephPoolSingleStatus"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephPoolSingleStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephPoolSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/pool/{name}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephPoolSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephPoolSingleStatus Show the current pool status. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephPoolSingleStatus200Response + public async System.Threading.Tasks.Task GetNodesSingleCephPoolSingleStatusAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephPoolSingleStatusWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephPoolSingleStatus Show the current pool status. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephPoolSingleStatus200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephPoolSingleStatusWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleCephPoolSingleStatus"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephPoolSingleStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephPoolSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/pool/{name}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephPoolSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephRules List ceph rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCephRules200Response + public GetNodesSingleCephRules200Response GetNodesSingleCephRules(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephRulesWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephRules List ceph rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCephRules200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephRulesWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephRules"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephRules List ceph rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCephRules200Response + public async System.Threading.Tasks.Task GetNodesSingleCephRulesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephRulesWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephRules List ceph rules. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCephRules200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephRulesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephRules"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephStatus Get ceph status. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetNodesSingleCephStatus(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCephStatusWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephStatus Get ceph status. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCephStatusWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/ceph/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCephStatus Get ceph status. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleCephStatusAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCephStatusWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCephStatus Get ceph status. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCephStatusWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCephStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCephStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/ceph/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCephStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCertificates Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleCertificates(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCertificatesWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCertificates Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCertificatesWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCertificates"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCertificates"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/certificates", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCertificates", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCertificates Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleCertificatesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCertificatesWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCertificates Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCertificatesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCertificates"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCertificates"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/certificates", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCertificates", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCertificatesAcme ACME index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleCertificatesAcme(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCertificatesAcmeWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCertificatesAcme ACME index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCertificatesAcmeWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCertificatesAcme"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCertificatesAcme"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/certificates/acme", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCertificatesAcme", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCertificatesAcme ACME index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleCertificatesAcmeAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCertificatesAcmeWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCertificatesAcme ACME index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCertificatesAcmeWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCertificatesAcme"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCertificatesAcme"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/certificates/acme", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCertificatesAcme", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCertificatesInfo Get information about node's certificates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleCertificatesInfo200Response + public GetNodesSingleCertificatesInfo200Response GetNodesSingleCertificatesInfo(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleCertificatesInfoWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCertificatesInfo Get information about node's certificates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleCertificatesInfo200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleCertificatesInfoWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCertificatesInfo"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCertificatesInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/certificates/info", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCertificatesInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleCertificatesInfo Get information about node's certificates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleCertificatesInfo200Response + public async System.Threading.Tasks.Task GetNodesSingleCertificatesInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleCertificatesInfoWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleCertificatesInfo Get information about node's certificates. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleCertificatesInfo200Response) + public async System.Threading.Tasks.Task> GetNodesSingleCertificatesInfoWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleCertificatesInfo"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleCertificatesInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/certificates/info", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleCertificatesInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleConfig Get node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleConfig200Response + public GetNodesSingleConfig200Response GetNodesSingleConfig(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleConfigWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleConfig Get node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleConfig200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleConfigWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleConfig Get node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleConfig200Response + public async System.Threading.Tasks.Task GetNodesSingleConfigAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleConfigWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleConfig Get node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleConfig200Response) + public async System.Threading.Tasks.Task> GetNodesSingleConfigWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisks Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleDisks(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDisksWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisks Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDisksWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisks"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisks"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/disks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisks Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleDisksAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDisksWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisks Node index. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDisksWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisks"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisks"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/disks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksDirectory PVE Managed Directory storages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksDirectory200Response + public GetNodesSingleDisksDirectory200Response GetNodesSingleDisksDirectory(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDisksDirectoryWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksDirectory PVE Managed Directory storages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksDirectory200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDisksDirectoryWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksDirectory"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksDirectory"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/disks/directory", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksDirectory", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksDirectory PVE Managed Directory storages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksDirectory200Response + public async System.Threading.Tasks.Task GetNodesSingleDisksDirectoryAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDisksDirectoryWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksDirectory PVE Managed Directory storages. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksDirectory200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDisksDirectoryWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksDirectory"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksDirectory"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/disks/directory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksDirectory", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksList List local disks. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksList200Response + public GetNodesSingleDisksList200Response GetNodesSingleDisksList(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDisksListWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksList List local disks. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksList200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDisksListWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksList"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksList"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/disks/list", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksList", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksList List local disks. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksList200Response + public async System.Threading.Tasks.Task GetNodesSingleDisksListAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDisksListWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksList List local disks. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksList200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDisksListWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksList"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksList"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/disks/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksList", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksLvm List LVM Volume Groups + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksLvm200Response + public GetNodesSingleDisksLvm200Response GetNodesSingleDisksLvm(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDisksLvmWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksLvm List LVM Volume Groups + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksLvm200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDisksLvmWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksLvm"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksLvm"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/disks/lvm", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksLvm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksLvm List LVM Volume Groups + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksLvm200Response + public async System.Threading.Tasks.Task GetNodesSingleDisksLvmAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDisksLvmWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksLvm List LVM Volume Groups + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksLvm200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDisksLvmWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksLvm"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksLvm"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/disks/lvm", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksLvm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksLvmthin List LVM thinpools + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksLvmthin200Response + public GetNodesSingleDisksLvmthin200Response GetNodesSingleDisksLvmthin(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDisksLvmthinWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksLvmthin List LVM thinpools + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksLvmthin200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDisksLvmthinWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksLvmthin"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksLvmthin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/disks/lvmthin", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksLvmthin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksLvmthin List LVM thinpools + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksLvmthin200Response + public async System.Threading.Tasks.Task GetNodesSingleDisksLvmthinAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDisksLvmthinWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksLvmthin List LVM thinpools + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksLvmthin200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDisksLvmthinWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksLvmthin"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksLvmthin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/disks/lvmthin", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksLvmthin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksSmart Get SMART Health of a disk. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksSmart200Response + public GetNodesSingleDisksSmart200Response GetNodesSingleDisksSmart(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDisksSmartWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksSmart Get SMART Health of a disk. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksSmart200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDisksSmartWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksSmart"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksSmart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/disks/smart", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksSmart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksSmart Get SMART Health of a disk. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksSmart200Response + public async System.Threading.Tasks.Task GetNodesSingleDisksSmartAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDisksSmartWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksSmart Get SMART Health of a disk. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksSmart200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDisksSmartWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksSmart"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksSmart"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/disks/smart", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksSmart", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksZfs List Zpools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksZfs200Response + public GetNodesSingleDisksZfs200Response GetNodesSingleDisksZfs(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDisksZfsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksZfs List Zpools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksZfs200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDisksZfsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksZfs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksZfs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/disks/zfs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksZfs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksZfs List Zpools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksZfs200Response + public async System.Threading.Tasks.Task GetNodesSingleDisksZfsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDisksZfsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksZfs List Zpools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksZfs200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDisksZfsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksZfs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksZfs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/disks/zfs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksZfs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksZfsSingle Get details about a zpool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// GetNodesSingleDisksZfsSingle200Response + public GetNodesSingleDisksZfsSingle200Response GetNodesSingleDisksZfsSingle(string name, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDisksZfsSingleWithHttpInfo(name, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksZfsSingle Get details about a zpool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDisksZfsSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDisksZfsSingleWithHttpInfo(string name, string node, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleDisksZfsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksZfsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksZfsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/disks/zfs/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksZfsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDisksZfsSingle Get details about a zpool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDisksZfsSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleDisksZfsSingleAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDisksZfsSingleWithHttpInfoAsync(name, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDisksZfsSingle Get details about a zpool. + /// + /// Thrown when fails to make API call + /// name + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDisksZfsSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDisksZfsSingleWithHttpInfoAsync(string name, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleDisksZfsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDisksZfsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDisksZfsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/disks/zfs/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDisksZfsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDns Read DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleDns200Response + public GetNodesSingleDns200Response GetNodesSingleDns(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleDnsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDns Read DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleDns200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleDnsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDns"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDns"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/dns", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDns", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleDns Read DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleDns200Response + public async System.Threading.Tasks.Task GetNodesSingleDnsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleDnsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleDns Read DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleDns200Response) + public async System.Threading.Tasks.Task> GetNodesSingleDnsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleDns"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleDns"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/dns", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleDns", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + public GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleFirewallLog(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleFirewallLogWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleFirewallLogWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleFirewallLog"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleFirewallLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/firewall/log", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleFirewallLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + public async System.Threading.Tasks.Task GetNodesSingleFirewallLogAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleFirewallLogWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + public async System.Threading.Tasks.Task> GetNodesSingleFirewallLogWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleFirewallLog"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleFirewallLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/firewall/log", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleFirewallLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardware Index of hardware types + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleHardware200Response + public GetNodesSingleHardware200Response GetNodesSingleHardware(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleHardwareWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardware Index of hardware types + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHardware200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleHardwareWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardware"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardware"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/hardware", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardware", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardware Index of hardware types + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHardware200Response + public async System.Threading.Tasks.Task GetNodesSingleHardwareAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleHardwareWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardware Index of hardware types + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHardware200Response) + public async System.Threading.Tasks.Task> GetNodesSingleHardwareWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardware"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardware"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/hardware", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardware", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardwarePci List local PCI devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleHardwarePci200Response + public GetNodesSingleHardwarePci200Response GetNodesSingleHardwarePci(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleHardwarePciWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardwarePci List local PCI devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHardwarePci200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleHardwarePciWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePci"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardwarePci"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/hardware/pci", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardwarePci", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardwarePci List local PCI devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHardwarePci200Response + public async System.Threading.Tasks.Task GetNodesSingleHardwarePciAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleHardwarePciWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardwarePci List local PCI devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHardwarePci200Response) + public async System.Threading.Tasks.Task> GetNodesSingleHardwarePciWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePci"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardwarePci"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/hardware/pci", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardwarePci", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardwarePciSingle Index of available pci methods + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// GetNodesSingleScan200Response + public GetNodesSingleScan200Response GetNodesSingleHardwarePciSingle(string node, string pciIdOrMapping, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleHardwarePciSingleWithHttpInfo(node, pciIdOrMapping); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardwarePciSingle Index of available pci methods + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScan200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleHardwarePciSingleWithHttpInfo(string node, string pciIdOrMapping, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePciSingle"); + } + + // verify the required parameter 'pciIdOrMapping' is set + if (pciIdOrMapping == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'pciIdOrMapping' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePciSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pci-id-or-mapping", ProxmoxSharp.Client.ClientUtils.ParameterToString(pciIdOrMapping)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardwarePciSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/hardware/pci/{pci-id-or-mapping}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardwarePciSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardwarePciSingle Index of available pci methods + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScan200Response + public async System.Threading.Tasks.Task GetNodesSingleHardwarePciSingleAsync(string node, string pciIdOrMapping, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleHardwarePciSingleWithHttpInfoAsync(node, pciIdOrMapping, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardwarePciSingle Index of available pci methods + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScan200Response) + public async System.Threading.Tasks.Task> GetNodesSingleHardwarePciSingleWithHttpInfoAsync(string node, string pciIdOrMapping, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePciSingle"); + } + + // verify the required parameter 'pciIdOrMapping' is set + if (pciIdOrMapping == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'pciIdOrMapping' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePciSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pci-id-or-mapping", ProxmoxSharp.Client.ClientUtils.ParameterToString(pciIdOrMapping)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardwarePciSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/hardware/pci/{pci-id-or-mapping}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardwarePciSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardwarePciSingleMdev List mediated device types for given PCI device. + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// GetNodesSingleHardwarePciSingleMdev200Response + public GetNodesSingleHardwarePciSingleMdev200Response GetNodesSingleHardwarePciSingleMdev(string node, string pciIdOrMapping, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleHardwarePciSingleMdevWithHttpInfo(node, pciIdOrMapping); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardwarePciSingleMdev List mediated device types for given PCI device. + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHardwarePciSingleMdev200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleHardwarePciSingleMdevWithHttpInfo(string node, string pciIdOrMapping, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePciSingleMdev"); + } + + // verify the required parameter 'pciIdOrMapping' is set + if (pciIdOrMapping == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'pciIdOrMapping' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePciSingleMdev"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pci-id-or-mapping", ProxmoxSharp.Client.ClientUtils.ParameterToString(pciIdOrMapping)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardwarePciSingleMdev"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/hardware/pci/{pci-id-or-mapping}/mdev", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardwarePciSingleMdev", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardwarePciSingleMdev List mediated device types for given PCI device. + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHardwarePciSingleMdev200Response + public async System.Threading.Tasks.Task GetNodesSingleHardwarePciSingleMdevAsync(string node, string pciIdOrMapping, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleHardwarePciSingleMdevWithHttpInfoAsync(node, pciIdOrMapping, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardwarePciSingleMdev List mediated device types for given PCI device. + /// + /// Thrown when fails to make API call + /// node + /// pci-id-or-mapping + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHardwarePciSingleMdev200Response) + public async System.Threading.Tasks.Task> GetNodesSingleHardwarePciSingleMdevWithHttpInfoAsync(string node, string pciIdOrMapping, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePciSingleMdev"); + } + + // verify the required parameter 'pciIdOrMapping' is set + if (pciIdOrMapping == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'pciIdOrMapping' when calling ProxmoxGeneratedApi->GetNodesSingleHardwarePciSingleMdev"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pci-id-or-mapping", ProxmoxSharp.Client.ClientUtils.ParameterToString(pciIdOrMapping)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardwarePciSingleMdev"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/hardware/pci/{pci-id-or-mapping}/mdev", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardwarePciSingleMdev", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardwareUsb List local USB devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleHardwareUsb200Response + public GetNodesSingleHardwareUsb200Response GetNodesSingleHardwareUsb(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleHardwareUsbWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardwareUsb List local USB devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHardwareUsb200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleHardwareUsbWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardwareUsb"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardwareUsb"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/hardware/usb", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardwareUsb", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHardwareUsb List local USB devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHardwareUsb200Response + public async System.Threading.Tasks.Task GetNodesSingleHardwareUsbAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleHardwareUsbWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHardwareUsb List local USB devices. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHardwareUsb200Response) + public async System.Threading.Tasks.Task> GetNodesSingleHardwareUsbWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHardwareUsb"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHardwareUsb"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/hardware/usb", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHardwareUsb", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHosts Get the content of /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleHosts200Response + public GetNodesSingleHosts200Response GetNodesSingleHosts(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleHostsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHosts Get the content of /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleHosts200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleHostsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHosts"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHosts"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/hosts", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHosts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleHosts Get the content of /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleHosts200Response + public async System.Threading.Tasks.Task GetNodesSingleHostsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleHostsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleHosts Get the content of /etc/hosts. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleHosts200Response) + public async System.Threading.Tasks.Task> GetNodesSingleHostsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleHosts"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleHosts"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/hosts", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleHosts", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleJournal Read Journal + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleJournal200Response + public GetNodesSingleJournal200Response GetNodesSingleJournal(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleJournalWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleJournal Read Journal + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleJournal200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleJournalWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleJournal"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleJournal"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/journal", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleJournal", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleJournal Read Journal + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleJournal200Response + public async System.Threading.Tasks.Task GetNodesSingleJournalAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleJournalWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleJournal Read Journal + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleJournal200Response) + public async System.Threading.Tasks.Task> GetNodesSingleJournalWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleJournal"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleJournal"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/journal", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleJournal", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxc LXC container index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleLxc200Response + public GetNodesSingleLxc200Response GetNodesSingleLxc(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxc LXC container index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxc200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxc"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxc"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxc", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxc LXC container index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxc200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxc LXC container index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxc200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxc"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxc"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxc", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingle Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetNodesSingleLxcSingle(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingle Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingle Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingle Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleConfig Get container configuration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleConfig200Response + public GetNodesSingleLxcSingleConfig200Response GetNodesSingleLxcSingleConfig(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleConfigWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleConfig Get container configuration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleConfig200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleConfigWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleConfig Get container configuration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleConfig200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleConfigAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleConfigWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleConfig Get container configuration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleConfig200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleConfigWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFeature Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleFeature200Response + public GetNodesSingleLxcSingleFeature200Response GetNodesSingleLxcSingleFeature(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFeatureWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFeature Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleFeature200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFeatureWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFeature"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFeature"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/feature", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFeature", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFeature Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleFeature200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFeatureAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFeatureWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFeature Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleFeature200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFeatureWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFeature"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFeature"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/feature", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFeature", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleLxcSingleFirewall(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewall"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewall"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallAliases200Response + public GetClusterFirewallAliases200Response GetNodesSingleLxcSingleFirewallAliases(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallAliasesWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallAliases200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallAliasesWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallAliases"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/aliases", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallAliases200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallAliasesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallAliasesWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallAliases200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallAliasesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallAliases"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/aliases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetNodesSingleLxcSingleFirewallAliasesSingle(string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(name, node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallAliasesSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallIpset List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallIPSets200Response + public GetClusterFirewallIPSets200Response GetNodesSingleLxcSingleFirewallIpset(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallIpsetWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallIpset List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSets200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallIpsetWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpset"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallIpset"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/ipset", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallIpset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallIpset List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSets200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallIpsetAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallIpsetWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallIpset List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSets200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallIpsetWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpset"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallIpset"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/ipset", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallIpset", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingle List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallIPSet200Response + public GetClusterFirewallIPSet200Response GetNodesSingleLxcSingleFirewallIpsetSingle(string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(name, node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingle List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSet200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallIpsetSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallIpsetSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingle List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSet200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallIpsetSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingle List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSet200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallIpsetSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallIpsetSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallIpsetSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingleSingle Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetNodesSingleLxcSingleFirewallIpsetSingleSingle(string cidr, string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(cidr, name, node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingleSingle Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(string cidr, string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallIpsetSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallIpsetSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingleSingle Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallIpsetSingleSingleAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(cidr, name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallIpsetSingleSingle Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallIpsetSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallIpsetSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + public GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleLxcSingleFirewallLog(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallLogWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallLogWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallLog"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/log", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallLogAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallLogWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallLogWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallLog"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/log", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallOptions Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMFirewallOptions200Response + public GetVMFirewallOptions200Response GetNodesSingleLxcSingleFirewallOptions(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallOptionsWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallOptions Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMFirewallOptions200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallOptionsWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallOptions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallOptions Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMFirewallOptions200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallOptionsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallOptionsWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallOptions Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMFirewallOptions200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallOptionsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallOptions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallRefs200Response + public GetClusterFirewallRefs200Response GetNodesSingleLxcSingleFirewallRefs(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallRefsWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallRefs200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallRefsWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallRefs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallRefs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/refs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallRefs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallRefs200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallRefsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallRefsWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallRefs200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallRefsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallRefs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallRefs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/refs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallRefs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + public GetClusterFirewallGroupRules200Response GetNodesSingleLxcSingleFirewallRules(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallRulesWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallRulesWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallRules"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallRulesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallRulesWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallRulesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallRules"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallRulesSingle Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + public GetClusterFirewallGroupRule200Response GetNodesSingleLxcSingleFirewallRulesSingle(string node, int pos, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(node, pos, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallRulesSingle Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(string node, int pos, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleFirewallRulesSingle Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleFirewallRulesSingleAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(node, pos, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleFirewallRulesSingle Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleFirewallRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleInterfaces Get IP addresses of the specified container interface. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleInterfaces200Response + public GetNodesSingleLxcSingleInterfaces200Response GetNodesSingleLxcSingleInterfaces(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleInterfacesWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleInterfaces Get IP addresses of the specified container interface. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleInterfaces200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleInterfacesWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleInterfaces"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleInterfaces"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/interfaces", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleInterfaces", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleInterfaces Get IP addresses of the specified container interface. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleInterfaces200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleInterfacesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleInterfacesWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleInterfaces Get IP addresses of the specified container interface. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleInterfaces200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleInterfacesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleInterfaces"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleInterfaces"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/interfaces", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleInterfaces", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleMigrate Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleMigrate200Response + public GetNodesSingleLxcSingleMigrate200Response GetNodesSingleLxcSingleMigrate(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleMigrateWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleMigrate Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleMigrate200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleMigrateWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleMigrate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/migrate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleMigrate Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleMigrate200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleMigrateAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleMigrateWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleMigrate Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleMigrate200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleMigrateWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleMigrate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleMigrate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/migrate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleMigrate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleMtunnelwebsocket Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleMtunnelwebsocket200Response + public GetNodesSingleQemuSingleMtunnelwebsocket200Response GetNodesSingleLxcSingleMtunnelwebsocket(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleMtunnelwebsocketWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleMtunnelwebsocket Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleMtunnelwebsocket200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleMtunnelwebsocketWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleMtunnelwebsocket"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleMtunnelwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/mtunnelwebsocket", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleMtunnelwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleMtunnelwebsocket Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleMtunnelwebsocket200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleMtunnelwebsocketAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleMtunnelwebsocketWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleMtunnelwebsocket Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleMtunnelwebsocket200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleMtunnelwebsocketWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleMtunnelwebsocket"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleMtunnelwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/mtunnelwebsocket", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleMtunnelwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSinglePending Get container configuration, including pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSinglePending200Response + public GetNodesSingleLxcSinglePending200Response GetNodesSingleLxcSinglePending(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSinglePendingWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSinglePending Get container configuration, including pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSinglePending200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSinglePendingWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSinglePending"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSinglePending"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/pending", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSinglePending", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSinglePending Get container configuration, including pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSinglePending200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSinglePendingAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSinglePendingWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSinglePending Get container configuration, including pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSinglePending200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSinglePendingWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSinglePending"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSinglePending"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/pending", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSinglePending", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleRrd Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMRRD200Response + public GetVMRRD200Response GetNodesSingleLxcSingleRrd(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleRrdWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleRrd Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMRRD200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleRrdWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleRrd"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleRrd"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/rrd", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleRrd", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleRrd Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMRRD200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleRrdAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleRrdWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleRrd Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMRRD200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleRrdWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleRrd"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleRrd"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/rrd", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleRrd", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleRrddata Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleLxcSingleRrddata(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleRrddataWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleRrddata Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleRrddataWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleRrddata"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleRrddata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/rrddata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleRrddata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleRrddata Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleRrddataAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleRrddataWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleRrddata Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleRrddataWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleRrddata"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleRrddata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/rrddata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleRrddata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleSnapshot List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleSnapshot200Response + public GetNodesSingleLxcSingleSnapshot200Response GetNodesSingleLxcSingleSnapshot(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleSnapshotWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleSnapshot List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleSnapshot200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleSnapshotWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshot"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/snapshot", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleSnapshot List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleSnapshot200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleSnapshotAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleSnapshotWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleSnapshot List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleSnapshot200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleSnapshotWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshot"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/snapshot", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleSnapshotSingle getNodesSingleLxcSingleSnapshotSingle + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleLxcSingleSnapshotSingle(string node, string snapname, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleSnapshotSingleWithHttpInfo(node, snapname, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleSnapshotSingle getNodesSingleLxcSingleSnapshotSingle + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleSnapshotSingleWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshotSingle"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshotSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleSnapshotSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleSnapshotSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleSnapshotSingle getNodesSingleLxcSingleSnapshotSingle + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleSnapshotSingleAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleSnapshotSingleWithHttpInfoAsync(node, snapname, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleSnapshotSingle getNodesSingleLxcSingleSnapshotSingle + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleSnapshotSingleWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshotSingle"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshotSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleSnapshotSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleSnapshotSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleSnapshotSingleConfig Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetNodesSingleLxcSingleSnapshotSingleConfig(string node, string snapname, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfo(node, snapname, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleSnapshotSingleConfig Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshotSingleConfig"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshotSingleConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleSnapshotSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleSnapshotSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleSnapshotSingleConfig Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleSnapshotSingleConfigAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfoAsync(node, snapname, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleSnapshotSingleConfig Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshotSingleConfig"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleSnapshotSingleConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleSnapshotSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleSnapshotSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleStatus Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetNodesSingleLxcSingleStatus(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleStatusWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleStatus Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleStatusWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleStatus Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleStatusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleStatusWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleStatus Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleStatusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleStatusCurrent Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleLxcSingleStatusCurrent200Response + public GetNodesSingleLxcSingleStatusCurrent200Response GetNodesSingleLxcSingleStatusCurrent(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleStatusCurrentWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleStatusCurrent Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleLxcSingleStatusCurrent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleStatusCurrentWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleStatusCurrent"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleStatusCurrent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/status/current", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleStatusCurrent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleStatusCurrent Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleLxcSingleStatusCurrent200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleStatusCurrentAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleStatusCurrentWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleStatusCurrent Get virtual machine status. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleLxcSingleStatusCurrent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleStatusCurrentWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleStatusCurrent"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleStatusCurrent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/status/current", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleStatusCurrent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleVncwebsocket200Response + public GetNodesSingleQemuSingleVncwebsocket200Response GetNodesSingleLxcSingleVncwebsocket(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleLxcSingleVncwebsocketWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleVncwebsocket200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleLxcSingleVncwebsocketWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleVncwebsocket"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleVncwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/lxc/{vmid}/vncwebsocket", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleVncwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleLxcSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleVncwebsocket200Response + public async System.Threading.Tasks.Task GetNodesSingleLxcSingleVncwebsocketAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleLxcSingleVncwebsocketWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleLxcSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleVncwebsocket200Response) + public async System.Threading.Tasks.Task> GetNodesSingleLxcSingleVncwebsocketWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleLxcSingleVncwebsocket"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleLxcSingleVncwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/lxc/{vmid}/vncwebsocket", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleLxcSingleVncwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleNetstat Read tap/vm network device interface counters + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleNetstat(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleNetstatWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleNetstat Read tap/vm network device interface counters + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleNetstatWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleNetstat"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleNetstat"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/netstat", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleNetstat", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleNetstat Read tap/vm network device interface counters + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleNetstatAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleNetstatWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleNetstat Read tap/vm network device interface counters + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleNetstatWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleNetstat"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleNetstat"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/netstat", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleNetstat", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleNetwork List available networks + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleNetwork200Response + public GetNodesSingleNetwork200Response GetNodesSingleNetwork(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleNetworkWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleNetwork List available networks + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleNetwork200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleNetworkWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleNetwork"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleNetwork"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/network", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleNetwork", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleNetwork List available networks + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleNetwork200Response + public async System.Threading.Tasks.Task GetNodesSingleNetworkAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleNetworkWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleNetwork List available networks + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleNetwork200Response) + public async System.Threading.Tasks.Task> GetNodesSingleNetworkWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleNetwork"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleNetwork"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/network", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleNetwork", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleNetworkSingle Read network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// GetNodesSingleNetworkSingle200Response + public GetNodesSingleNetworkSingle200Response GetNodesSingleNetworkSingle(string iface, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleNetworkSingleWithHttpInfo(iface, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleNetworkSingle Read network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleNetworkSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleNetworkSingleWithHttpInfo(string iface, string node, int operationIndex = 0) + { + // verify the required parameter 'iface' is set + if (iface == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'iface' when calling ProxmoxGeneratedApi->GetNodesSingleNetworkSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleNetworkSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("iface", ProxmoxSharp.Client.ClientUtils.ParameterToString(iface)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleNetworkSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/network/{iface}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleNetworkSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleNetworkSingle Read network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleNetworkSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleNetworkSingleAsync(string iface, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleNetworkSingleWithHttpInfoAsync(iface, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleNetworkSingle Read network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleNetworkSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleNetworkSingleWithHttpInfoAsync(string iface, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'iface' is set + if (iface == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'iface' when calling ProxmoxGeneratedApi->GetNodesSingleNetworkSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleNetworkSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("iface", ProxmoxSharp.Client.ClientUtils.ParameterToString(iface)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleNetworkSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/network/{iface}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleNetworkSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgent QEMU Guest Agent command index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleAgent200Response + public GetNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgent(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgent QEMU Guest Agent command index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgent"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgent QEMU Guest Agent command index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgent QEMU Guest Agent command index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgent"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentExecstatus Gets the status of the given pid started by the guest-agent + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleAgentExecstatus200Response + public GetNodesSingleQemuSingleAgentExecstatus200Response GetNodesSingleQemuSingleAgentExecstatus(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentExecstatusWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentExecstatus Gets the status of the given pid started by the guest-agent + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleAgentExecstatus200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentExecstatusWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentExecstatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentExecstatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/exec-status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentExecstatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentExecstatus Gets the status of the given pid started by the guest-agent + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleAgentExecstatus200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentExecstatusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentExecstatusWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentExecstatus Gets the status of the given pid started by the guest-agent + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleAgentExecstatus200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentExecstatusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentExecstatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentExecstatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/exec-status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentExecstatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentFileread Reads the given file via guest agent. Is limited to 16777216 bytes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleAgentFileread200Response + public GetNodesSingleQemuSingleAgentFileread200Response GetNodesSingleQemuSingleAgentFileread(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentFilereadWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentFileread Reads the given file via guest agent. Is limited to 16777216 bytes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleAgentFileread200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentFilereadWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentFileread"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentFileread"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/file-read", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentFileread", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentFileread Reads the given file via guest agent. Is limited to 16777216 bytes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleAgentFileread200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentFilereadAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentFilereadWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentFileread Reads the given file via guest agent. Is limited to 16777216 bytes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleAgentFileread200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentFilereadWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentFileread"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentFileread"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/file-read", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentFileread", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetfsinfo Execute get-fsinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetfsinfo(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGetfsinfoWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetfsinfo Execute get-fsinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGetfsinfoWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetfsinfo"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetfsinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-fsinfo", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetfsinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetfsinfo Execute get-fsinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetfsinfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGetfsinfoWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetfsinfo Execute get-fsinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetfsinfoWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetfsinfo"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetfsinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-fsinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetfsinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGethostname Execute get-host-name. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGethostname(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGethostnameWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGethostname Execute get-host-name. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGethostnameWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGethostname"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGethostname"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-host-name", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGethostname", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGethostname Execute get-host-name. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGethostnameAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGethostnameWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGethostname Execute get-host-name. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGethostnameWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGethostname"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGethostname"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-host-name", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGethostname", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblockinfo Execute get-memory-block-info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetmemoryblockinfo(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGetmemoryblockinfoWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblockinfo Execute get-memory-block-info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGetmemoryblockinfoWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetmemoryblockinfo"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetmemoryblockinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-memory-block-info", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetmemoryblockinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblockinfo Execute get-memory-block-info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetmemoryblockinfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGetmemoryblockinfoWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblockinfo Execute get-memory-block-info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetmemoryblockinfoWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetmemoryblockinfo"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetmemoryblockinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-memory-block-info", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetmemoryblockinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblocks Execute get-memory-blocks. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetmemoryblocks(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGetmemoryblocksWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblocks Execute get-memory-blocks. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGetmemoryblocksWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetmemoryblocks"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetmemoryblocks"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-memory-blocks", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetmemoryblocks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblocks Execute get-memory-blocks. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetmemoryblocksAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGetmemoryblocksWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetmemoryblocks Execute get-memory-blocks. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetmemoryblocksWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetmemoryblocks"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetmemoryblocks"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-memory-blocks", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetmemoryblocks", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetosinfo Execute get-osinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetosinfo(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGetosinfoWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetosinfo Execute get-osinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGetosinfoWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetosinfo"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetosinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-osinfo", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetosinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetosinfo Execute get-osinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetosinfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGetosinfoWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetosinfo Execute get-osinfo. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetosinfoWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetosinfo"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetosinfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-osinfo", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetosinfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGettime Execute get-time. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGettime(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGettimeWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGettime Execute get-time. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGettimeWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGettime"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGettime"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-time", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGettime", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGettime Execute get-time. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGettimeAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGettimeWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGettime Execute get-time. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGettimeWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGettime"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGettime"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-time", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGettime", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGettimezone Execute get-timezone. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGettimezone(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGettimezoneWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGettimezone Execute get-timezone. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGettimezoneWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGettimezone"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGettimezone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-timezone", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGettimezone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGettimezone Execute get-timezone. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGettimezoneAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGettimezoneWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGettimezone Execute get-timezone. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGettimezoneWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGettimezone"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGettimezone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-timezone", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGettimezone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetusers Execute get-users. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetusers(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGetusersWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetusers Execute get-users. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGetusersWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetusers"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetusers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-users", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetusers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetusers Execute get-users. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetusersAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGetusersWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetusers Execute get-users. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetusersWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetusers"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetusers"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-users", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetusers", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetvcpus Execute get-vcpus. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentGetvcpus(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentGetvcpusWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetvcpus Execute get-vcpus. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentGetvcpusWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetvcpus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetvcpus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/get-vcpus", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetvcpus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentGetvcpus Execute get-vcpus. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentGetvcpusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentGetvcpusWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentGetvcpus Execute get-vcpus. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentGetvcpusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentGetvcpus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentGetvcpus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/get-vcpus", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentGetvcpus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentInfo Execute info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentInfo(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentInfoWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentInfo Execute info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentInfoWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentInfo"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/info", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentInfo Execute info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentInfoWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentInfo Execute info. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentInfoWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentInfo"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentInfo"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/info", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentInfo", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentNetworkgetinterfaces Execute network-get-interfaces. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleAgent200Response + public CreateNodesSingleQemuSingleAgent200Response GetNodesSingleQemuSingleAgentNetworkgetinterfaces(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleAgentNetworkgetinterfacesWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentNetworkgetinterfaces Execute network-get-interfaces. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleAgent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleAgentNetworkgetinterfacesWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentNetworkgetinterfaces"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentNetworkgetinterfaces"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentNetworkgetinterfaces", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleAgentNetworkgetinterfaces Execute network-get-interfaces. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleAgent200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleAgentNetworkgetinterfacesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleAgentNetworkgetinterfacesWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleAgentNetworkgetinterfaces Execute network-get-interfaces. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleAgent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleAgentNetworkgetinterfacesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleAgentNetworkgetinterfaces"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleAgentNetworkgetinterfaces"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleAgentNetworkgetinterfaces", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleCloudinit Get the cloudinit configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleCloudinit200Response + public GetNodesSingleQemuSingleCloudinit200Response GetNodesSingleQemuSingleCloudinit(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleCloudinitWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleCloudinit Get the cloudinit configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleCloudinit200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleCloudinitWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleCloudinit"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleCloudinit"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/cloudinit", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleCloudinit", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleCloudinit Get the cloudinit configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleCloudinit200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleCloudinitAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleCloudinitWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleCloudinit Get the cloudinit configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleCloudinit200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleCloudinitWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleCloudinit"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleCloudinit"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/cloudinit", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleCloudinit", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleCloudinitDump Get automatically generated cloudinit config. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetNodesSingleQemuSingleCloudinitDump(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleCloudinitDumpWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleCloudinitDump Get automatically generated cloudinit config. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleCloudinitDumpWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleCloudinitDump"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleCloudinitDump"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/cloudinit/dump", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleCloudinitDump", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleCloudinitDump Get automatically generated cloudinit config. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleCloudinitDumpAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleCloudinitDumpWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleCloudinitDump Get automatically generated cloudinit config. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleCloudinitDumpWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleCloudinitDump"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleCloudinitDump"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/cloudinit/dump", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleCloudinitDump", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFeature Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFeature200Response + public GetNodesSingleQemuSingleFeature200Response GetNodesSingleQemuSingleFeature(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleFeatureWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFeature Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFeature200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleFeatureWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFeature"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFeature"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/feature", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFeature", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFeature Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFeature200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleFeatureAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleFeatureWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFeature Check if feature for virtual machine is available. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFeature200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleFeatureWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFeature"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFeature"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/feature", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFeature", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallAliases200Response + public GetClusterFirewallAliases200Response GetNodesSingleQemuSingleFirewallAliases(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleFirewallAliasesWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallAliases200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleFirewallAliasesWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallAliases"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/aliases", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallAliases200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleFirewallAliasesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleFirewallAliasesWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFirewallAliases List aliases + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallAliases200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleFirewallAliasesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallAliases"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFirewallAliases"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/aliases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFirewallAliases", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetNodesSingleQemuSingleFirewallAliasesSingle(string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(name, node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleFirewallAliasesSingleAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFirewallAliasesSingle Read alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + public GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleQemuSingleFirewallLog(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleFirewallLogWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleFirewallLogWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallLog"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFirewallLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/log", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFirewallLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleFirewallLogAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleFirewallLogWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFirewallLog Read firewall log + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleFirewallLogWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallLog"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFirewallLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/log", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFirewallLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallRefs200Response + public GetClusterFirewallRefs200Response GetNodesSingleQemuSingleFirewallRefs(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleFirewallRefsWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallRefs200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleFirewallRefsWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallRefs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFirewallRefs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/refs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFirewallRefs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallRefs200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleFirewallRefsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleFirewallRefsWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleFirewallRefs Lists possible IPSet/Alias reference which are allowed in source/dest properties. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallRefs200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleFirewallRefsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleFirewallRefs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleFirewallRefs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/refs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleFirewallRefs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleMtunnelwebsocket Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleMtunnelwebsocket200Response + public GetNodesSingleQemuSingleMtunnelwebsocket200Response GetNodesSingleQemuSingleMtunnelwebsocket(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleMtunnelwebsocketWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleMtunnelwebsocket Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleMtunnelwebsocket200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleMtunnelwebsocketWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleMtunnelwebsocket"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleMtunnelwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/mtunnelwebsocket", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleMtunnelwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleMtunnelwebsocket Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleMtunnelwebsocket200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleMtunnelwebsocketAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleMtunnelwebsocketWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleMtunnelwebsocket Migration tunnel endpoint for websocket upgrade - only for internal use by VM migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleMtunnelwebsocket200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleMtunnelwebsocketWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleMtunnelwebsocket"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleMtunnelwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/mtunnelwebsocket", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleMtunnelwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetNodesSingleQemuSingleVncwebsocket200Response + public GetNodesSingleQemuSingleVncwebsocket200Response GetNodesSingleQemuSingleVncwebsocket(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQemuSingleVncwebsocketWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleVncwebsocket200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQemuSingleVncwebsocketWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleVncwebsocket"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleVncwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/vncwebsocket", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleVncwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQemuSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleVncwebsocket200Response + public async System.Threading.Tasks.Task GetNodesSingleQemuSingleVncwebsocketAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQemuSingleVncwebsocketWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQemuSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleVncwebsocket200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQemuSingleVncwebsocketWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQemuSingleVncwebsocket"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQemuSingleVncwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/vncwebsocket", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQemuSingleVncwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQueryocirepotags List all tags for an OCI repository reference. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleJournal200Response + public GetNodesSingleJournal200Response GetNodesSingleQueryocirepotags(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQueryocirepotagsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQueryocirepotags List all tags for an OCI repository reference. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleJournal200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQueryocirepotagsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQueryocirepotags"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQueryocirepotags"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/query-oci-repo-tags", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQueryocirepotags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQueryocirepotags List all tags for an OCI repository reference. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleJournal200Response + public async System.Threading.Tasks.Task GetNodesSingleQueryocirepotagsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQueryocirepotagsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQueryocirepotags List all tags for an OCI repository reference. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleJournal200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQueryocirepotagsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQueryocirepotags"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQueryocirepotags"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/query-oci-repo-tags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQueryocirepotags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQueryurlmetadata Query metadata of an URL: file size, file name and mime type. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQueryurlmetadata200Response + public GetNodesSingleQueryurlmetadata200Response GetNodesSingleQueryurlmetadata(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleQueryurlmetadataWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQueryurlmetadata Query metadata of an URL: file size, file name and mime type. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQueryurlmetadata200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleQueryurlmetadataWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQueryurlmetadata"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQueryurlmetadata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/query-url-metadata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQueryurlmetadata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleQueryurlmetadata Query metadata of an URL: file size, file name and mime type. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQueryurlmetadata200Response + public async System.Threading.Tasks.Task GetNodesSingleQueryurlmetadataAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleQueryurlmetadataWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleQueryurlmetadata Query metadata of an URL: file size, file name and mime type. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQueryurlmetadata200Response) + public async System.Threading.Tasks.Task> GetNodesSingleQueryurlmetadataWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleQueryurlmetadata"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleQueryurlmetadata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/query-url-metadata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleQueryurlmetadata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReplication List status of all replication jobs on this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetClusterHa200Response + public GetClusterHa200Response GetNodesSingleReplication(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleReplicationWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReplication List status of all replication jobs on this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterHa200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleReplicationWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReplication"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReplication"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/replication", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReplication", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReplication List status of all replication jobs on this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterHa200Response + public async System.Threading.Tasks.Task GetNodesSingleReplicationAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleReplicationWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReplication List status of all replication jobs on this node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterHa200Response) + public async System.Threading.Tasks.Task> GetNodesSingleReplicationWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReplication"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReplication"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/replication", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReplication", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReplicationSingle Directory index. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleReplicationSingle(string id, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleReplicationSingleWithHttpInfo(id, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReplicationSingle Directory index. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleReplicationSingleWithHttpInfo(string id, string node, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReplicationSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/replication/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReplicationSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReplicationSingle Directory index. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleReplicationSingleAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleReplicationSingleWithHttpInfoAsync(id, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReplicationSingle Directory index. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleReplicationSingleWithHttpInfoAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReplicationSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/replication/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReplicationSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReplicationSingleLog Read replication job log. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + public GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleReplicationSingleLog(string id, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleReplicationSingleLogWithHttpInfo(id, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReplicationSingleLog Read replication job log. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleReplicationSingleLogWithHttpInfo(string id, string node, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingleLog"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingleLog"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReplicationSingleLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/replication/{id}/log", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReplicationSingleLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReplicationSingleLog Read replication job log. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + public async System.Threading.Tasks.Task GetNodesSingleReplicationSingleLogAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleReplicationSingleLogWithHttpInfoAsync(id, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReplicationSingleLog Read replication job log. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + public async System.Threading.Tasks.Task> GetNodesSingleReplicationSingleLogWithHttpInfoAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingleLog"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingleLog"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReplicationSingleLog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/replication/{id}/log", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReplicationSingleLog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReplicationSingleStatus Get replication job status. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetNodesSingleReplicationSingleStatus(string id, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleReplicationSingleStatusWithHttpInfo(id, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReplicationSingleStatus Get replication job status. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleReplicationSingleStatusWithHttpInfo(string id, string node, int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingleStatus"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingleStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReplicationSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/replication/{id}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReplicationSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReplicationSingleStatus Get replication job status. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleReplicationSingleStatusAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleReplicationSingleStatusWithHttpInfoAsync(id, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReplicationSingleStatus Get replication job status. + /// + /// Thrown when fails to make API call + /// id + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleReplicationSingleStatusWithHttpInfoAsync(string id, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingleStatus"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReplicationSingleStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReplicationSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/replication/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReplicationSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReport Gather various systems information about a node + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetNodesSingleReport(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleReportWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReport Gather various systems information about a node + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleReportWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReport"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReport"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/report", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleReport Gather various systems information about a node + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetNodesSingleReportAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleReportWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleReport Gather various systems information about a node + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetNodesSingleReportWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleReport"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleReport"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/report", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleReport", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScan Index of available scan methods + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScan200Response + public GetNodesSingleScan200Response GetNodesSingleScan(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleScanWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScan Index of available scan methods + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScan200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleScanWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScan"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScan"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/scan", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScan", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScan Index of available scan methods + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScan200Response + public async System.Threading.Tasks.Task GetNodesSingleScanAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleScanWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScan Index of available scan methods + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScan200Response) + public async System.Threading.Tasks.Task> GetNodesSingleScanWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScan"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScan"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/scan", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScan", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanCifs Scan remote CIFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanCifs200Response + public GetNodesSingleScanCifs200Response GetNodesSingleScanCifs(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleScanCifsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanCifs Scan remote CIFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanCifs200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleScanCifsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanCifs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanCifs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/scan/cifs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanCifs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanCifs Scan remote CIFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanCifs200Response + public async System.Threading.Tasks.Task GetNodesSingleScanCifsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleScanCifsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanCifs Scan remote CIFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanCifs200Response) + public async System.Threading.Tasks.Task> GetNodesSingleScanCifsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanCifs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanCifs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/scan/cifs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanCifs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanIscsi Scan remote iSCSI server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanIscsi200Response + public GetNodesSingleScanIscsi200Response GetNodesSingleScanIscsi(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleScanIscsiWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanIscsi Scan remote iSCSI server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanIscsi200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleScanIscsiWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanIscsi"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanIscsi"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/scan/iscsi", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanIscsi", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanIscsi Scan remote iSCSI server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanIscsi200Response + public async System.Threading.Tasks.Task GetNodesSingleScanIscsiAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleScanIscsiWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanIscsi Scan remote iSCSI server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanIscsi200Response) + public async System.Threading.Tasks.Task> GetNodesSingleScanIscsiWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanIscsi"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanIscsi"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/scan/iscsi", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanIscsi", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanLvm List local LVM volume groups. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanLvm200Response + public GetNodesSingleScanLvm200Response GetNodesSingleScanLvm(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleScanLvmWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanLvm List local LVM volume groups. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanLvm200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleScanLvmWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanLvm"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanLvm"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/scan/lvm", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanLvm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanLvm List local LVM volume groups. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanLvm200Response + public async System.Threading.Tasks.Task GetNodesSingleScanLvmAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleScanLvmWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanLvm List local LVM volume groups. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanLvm200Response) + public async System.Threading.Tasks.Task> GetNodesSingleScanLvmWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanLvm"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanLvm"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/scan/lvm", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanLvm", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanLvmthin List local LVM Thin Pools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanLvmthin200Response + public GetNodesSingleScanLvmthin200Response GetNodesSingleScanLvmthin(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleScanLvmthinWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanLvmthin List local LVM Thin Pools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanLvmthin200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleScanLvmthinWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanLvmthin"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanLvmthin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/scan/lvmthin", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanLvmthin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanLvmthin List local LVM Thin Pools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanLvmthin200Response + public async System.Threading.Tasks.Task GetNodesSingleScanLvmthinAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleScanLvmthinWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanLvmthin List local LVM Thin Pools. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanLvmthin200Response) + public async System.Threading.Tasks.Task> GetNodesSingleScanLvmthinWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanLvmthin"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanLvmthin"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/scan/lvmthin", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanLvmthin", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanNfs Scan remote NFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanNfs200Response + public GetNodesSingleScanNfs200Response GetNodesSingleScanNfs(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleScanNfsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanNfs Scan remote NFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanNfs200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleScanNfsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanNfs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanNfs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/scan/nfs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanNfs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanNfs Scan remote NFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanNfs200Response + public async System.Threading.Tasks.Task GetNodesSingleScanNfsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleScanNfsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanNfs Scan remote NFS server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanNfs200Response) + public async System.Threading.Tasks.Task> GetNodesSingleScanNfsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanNfs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanNfs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/scan/nfs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanNfs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanPbs Scan remote Proxmox Backup Server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanPbs200Response + public GetNodesSingleScanPbs200Response GetNodesSingleScanPbs(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleScanPbsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanPbs Scan remote Proxmox Backup Server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanPbs200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleScanPbsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanPbs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanPbs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/scan/pbs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanPbs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanPbs Scan remote Proxmox Backup Server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanPbs200Response + public async System.Threading.Tasks.Task GetNodesSingleScanPbsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleScanPbsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanPbs Scan remote Proxmox Backup Server. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanPbs200Response) + public async System.Threading.Tasks.Task> GetNodesSingleScanPbsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanPbs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanPbs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/scan/pbs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanPbs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanZfs Scan zfs pool list on local node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleScanZfs200Response + public GetNodesSingleScanZfs200Response GetNodesSingleScanZfs(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleScanZfsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanZfs Scan zfs pool list on local node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleScanZfs200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleScanZfsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanZfs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanZfs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/scan/zfs", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanZfs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleScanZfs Scan zfs pool list on local node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleScanZfs200Response + public async System.Threading.Tasks.Task GetNodesSingleScanZfsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleScanZfsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleScanZfs Scan zfs pool list on local node. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleScanZfs200Response) + public async System.Threading.Tasks.Task> GetNodesSingleScanZfsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleScanZfs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleScanZfs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/scan/zfs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleScanZfs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnFabricsSingle Directory index for SDN fabric status. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetNodesSingleSdnFabricsSingle(string fabric, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSdnFabricsSingleWithHttpInfo(fabric, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnFabricsSingle Directory index for SDN fabric status. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSdnFabricsSingleWithHttpInfo(string fabric, string node, int operationIndex = 0) + { + // verify the required parameter 'fabric' is set + if (fabric == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabric' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabric)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnFabricsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/fabrics/{fabric}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnFabricsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnFabricsSingle Directory index for SDN fabric status. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetNodesSingleSdnFabricsSingleAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSdnFabricsSingleWithHttpInfoAsync(fabric, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnFabricsSingle Directory index for SDN fabric status. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSdnFabricsSingleWithHttpInfoAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabric' is set + if (fabric == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabric' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabric)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnFabricsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/fabrics/{fabric}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnFabricsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnFabricsSingleInterfaces Get all interfaces for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// GetNodesSingleSdnFabricsSingleInterfaces200Response + public GetNodesSingleSdnFabricsSingleInterfaces200Response GetNodesSingleSdnFabricsSingleInterfaces(string fabric, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSdnFabricsSingleInterfacesWithHttpInfo(fabric, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnFabricsSingleInterfaces Get all interfaces for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnFabricsSingleInterfaces200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSdnFabricsSingleInterfacesWithHttpInfo(string fabric, string node, int operationIndex = 0) + { + // verify the required parameter 'fabric' is set + if (fabric == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabric' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleInterfaces"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleInterfaces"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabric)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnFabricsSingleInterfaces"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/fabrics/{fabric}/interfaces", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnFabricsSingleInterfaces", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnFabricsSingleInterfaces Get all interfaces for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnFabricsSingleInterfaces200Response + public async System.Threading.Tasks.Task GetNodesSingleSdnFabricsSingleInterfacesAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSdnFabricsSingleInterfacesWithHttpInfoAsync(fabric, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnFabricsSingleInterfaces Get all interfaces for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnFabricsSingleInterfaces200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSdnFabricsSingleInterfacesWithHttpInfoAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabric' is set + if (fabric == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabric' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleInterfaces"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleInterfaces"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabric)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnFabricsSingleInterfaces"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/fabrics/{fabric}/interfaces", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnFabricsSingleInterfaces", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnFabricsSingleNeighbors Get all neighbors for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// GetNodesSingleSdnFabricsSingleNeighbors200Response + public GetNodesSingleSdnFabricsSingleNeighbors200Response GetNodesSingleSdnFabricsSingleNeighbors(string fabric, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSdnFabricsSingleNeighborsWithHttpInfo(fabric, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnFabricsSingleNeighbors Get all neighbors for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnFabricsSingleNeighbors200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSdnFabricsSingleNeighborsWithHttpInfo(string fabric, string node, int operationIndex = 0) + { + // verify the required parameter 'fabric' is set + if (fabric == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabric' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleNeighbors"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleNeighbors"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabric)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnFabricsSingleNeighbors"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/fabrics/{fabric}/neighbors", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnFabricsSingleNeighbors", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnFabricsSingleNeighbors Get all neighbors for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnFabricsSingleNeighbors200Response + public async System.Threading.Tasks.Task GetNodesSingleSdnFabricsSingleNeighborsAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSdnFabricsSingleNeighborsWithHttpInfoAsync(fabric, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnFabricsSingleNeighbors Get all neighbors for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnFabricsSingleNeighbors200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSdnFabricsSingleNeighborsWithHttpInfoAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabric' is set + if (fabric == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabric' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleNeighbors"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleNeighbors"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabric)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnFabricsSingleNeighbors"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/fabrics/{fabric}/neighbors", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnFabricsSingleNeighbors", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnFabricsSingleRoutes Get all routes for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// GetNodesSingleSdnFabricsSingleRoutes200Response + public GetNodesSingleSdnFabricsSingleRoutes200Response GetNodesSingleSdnFabricsSingleRoutes(string fabric, string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSdnFabricsSingleRoutesWithHttpInfo(fabric, node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnFabricsSingleRoutes Get all routes for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnFabricsSingleRoutes200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSdnFabricsSingleRoutesWithHttpInfo(string fabric, string node, int operationIndex = 0) + { + // verify the required parameter 'fabric' is set + if (fabric == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabric' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleRoutes"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleRoutes"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabric)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnFabricsSingleRoutes"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/fabrics/{fabric}/routes", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnFabricsSingleRoutes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnFabricsSingleRoutes Get all routes for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnFabricsSingleRoutes200Response + public async System.Threading.Tasks.Task GetNodesSingleSdnFabricsSingleRoutesAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSdnFabricsSingleRoutesWithHttpInfoAsync(fabric, node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnFabricsSingleRoutes Get all routes for a fabric. + /// + /// Thrown when fails to make API call + /// fabric + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnFabricsSingleRoutes200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSdnFabricsSingleRoutesWithHttpInfoAsync(string fabric, string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabric' is set + if (fabric == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabric' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleRoutes"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnFabricsSingleRoutes"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabric)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnFabricsSingleRoutes"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/fabrics/{fabric}/routes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnFabricsSingleRoutes", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnVnetsSingle getNodesSingleSdnVnetsSingle + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetNodesSingleSdnVnetsSingle(string node, string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSdnVnetsSingleWithHttpInfo(node, vnet); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnVnetsSingle getNodesSingleSdnVnetsSingle + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSdnVnetsSingleWithHttpInfo(string node, string vnet, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnVnetsSingle"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetNodesSingleSdnVnetsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnVnetsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/vnets/{vnet}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnVnetsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnVnetsSingle getNodesSingleSdnVnetsSingle + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetNodesSingleSdnVnetsSingleAsync(string node, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSdnVnetsSingleWithHttpInfoAsync(node, vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnVnetsSingle getNodesSingleSdnVnetsSingle + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSdnVnetsSingleWithHttpInfoAsync(string node, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnVnetsSingle"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetNodesSingleSdnVnetsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnVnetsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/vnets/{vnet}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnVnetsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnVnetsSingleMacvrf Get the MAC VRF for a VNet in an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// GetNodesSingleSdnVnetsSingleMacvrf200Response + public GetNodesSingleSdnVnetsSingleMacvrf200Response GetNodesSingleSdnVnetsSingleMacvrf(string node, string vnet, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSdnVnetsSingleMacvrfWithHttpInfo(node, vnet); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnVnetsSingleMacvrf Get the MAC VRF for a VNet in an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnVnetsSingleMacvrf200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSdnVnetsSingleMacvrfWithHttpInfo(string node, string vnet, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnVnetsSingleMacvrf"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetNodesSingleSdnVnetsSingleMacvrf"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnVnetsSingleMacvrf"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/vnets/{vnet}/mac-vrf", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnVnetsSingleMacvrf", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnVnetsSingleMacvrf Get the MAC VRF for a VNet in an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnVnetsSingleMacvrf200Response + public async System.Threading.Tasks.Task GetNodesSingleSdnVnetsSingleMacvrfAsync(string node, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSdnVnetsSingleMacvrfWithHttpInfoAsync(node, vnet, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnVnetsSingleMacvrf Get the MAC VRF for a VNet in an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// vnet + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnVnetsSingleMacvrf200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSdnVnetsSingleMacvrfWithHttpInfoAsync(string node, string vnet, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnVnetsSingleMacvrf"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->GetNodesSingleSdnVnetsSingleMacvrf"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnVnetsSingleMacvrf"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/vnets/{vnet}/mac-vrf", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnVnetsSingleMacvrf", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnZonesSingleBridges Get a list of all bridges (vnets) that are part of a zone, as well as the ports that are members of that bridge. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// GetNodesSingleSdnZonesSingleBridges200Response + public GetNodesSingleSdnZonesSingleBridges200Response GetNodesSingleSdnZonesSingleBridges(string node, string zone, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSdnZonesSingleBridgesWithHttpInfo(node, zone); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnZonesSingleBridges Get a list of all bridges (vnets) that are part of a zone, as well as the ports that are members of that bridge. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnZonesSingleBridges200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSdnZonesSingleBridgesWithHttpInfo(string node, string zone, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnZonesSingleBridges"); + } + + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetNodesSingleSdnZonesSingleBridges"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnZonesSingleBridges"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/zones/{zone}/bridges", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnZonesSingleBridges", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnZonesSingleBridges Get a list of all bridges (vnets) that are part of a zone, as well as the ports that are members of that bridge. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnZonesSingleBridges200Response + public async System.Threading.Tasks.Task GetNodesSingleSdnZonesSingleBridgesAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSdnZonesSingleBridgesWithHttpInfoAsync(node, zone, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnZonesSingleBridges Get a list of all bridges (vnets) that are part of a zone, as well as the ports that are members of that bridge. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnZonesSingleBridges200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSdnZonesSingleBridgesWithHttpInfoAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnZonesSingleBridges"); + } + + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetNodesSingleSdnZonesSingleBridges"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnZonesSingleBridges"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/zones/{zone}/bridges", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnZonesSingleBridges", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnZonesSingleIpvrf Get the IP VRF of an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// GetNodesSingleSdnZonesSingleIpvrf200Response + public GetNodesSingleSdnZonesSingleIpvrf200Response GetNodesSingleSdnZonesSingleIpvrf(string node, string zone, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSdnZonesSingleIpvrfWithHttpInfo(node, zone); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnZonesSingleIpvrf Get the IP VRF of an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSdnZonesSingleIpvrf200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSdnZonesSingleIpvrfWithHttpInfo(string node, string zone, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnZonesSingleIpvrf"); + } + + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetNodesSingleSdnZonesSingleIpvrf"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnZonesSingleIpvrf"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/sdn/zones/{zone}/ip-vrf", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnZonesSingleIpvrf", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSdnZonesSingleIpvrf Get the IP VRF of an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSdnZonesSingleIpvrf200Response + public async System.Threading.Tasks.Task GetNodesSingleSdnZonesSingleIpvrfAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSdnZonesSingleIpvrfWithHttpInfoAsync(node, zone, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSdnZonesSingleIpvrf Get the IP VRF of an EVPN zone. + /// + /// Thrown when fails to make API call + /// node + /// zone + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSdnZonesSingleIpvrf200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSdnZonesSingleIpvrfWithHttpInfoAsync(string node, string zone, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSdnZonesSingleIpvrf"); + } + + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->GetNodesSingleSdnZonesSingleIpvrf"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSdnZonesSingleIpvrf"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/sdn/zones/{zone}/ip-vrf", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSdnZonesSingleIpvrf", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleServices Service list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleServices200Response + public GetNodesSingleServices200Response GetNodesSingleServices(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleServicesWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleServices Service list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleServices200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleServicesWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleServices"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleServices"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/services", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleServices", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleServices Service list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleServices200Response + public async System.Threading.Tasks.Task GetNodesSingleServicesAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleServicesWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleServices Service list. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleServices200Response) + public async System.Threading.Tasks.Task> GetNodesSingleServicesWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleServices"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleServices"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/services", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleServices", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleServicesSingle Directory index + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetNodesSingleServicesSingle(string node, string service, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleServicesSingleWithHttpInfo(node, service); + return localVarResponse.Data; + } + + /// + /// getNodesSingleServicesSingle Directory index + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleServicesSingleWithHttpInfo(string node, string service, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleServicesSingle"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->GetNodesSingleServicesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleServicesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/services/{service}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleServicesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleServicesSingle Directory index + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetNodesSingleServicesSingleAsync(string node, string service, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleServicesSingleWithHttpInfoAsync(node, service, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleServicesSingle Directory index + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetNodesSingleServicesSingleWithHttpInfoAsync(string node, string service, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleServicesSingle"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->GetNodesSingleServicesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleServicesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/services/{service}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleServicesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleServicesSingleState Read service properties + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// GetNodesSingleServicesSingleState200Response + public GetNodesSingleServicesSingleState200Response GetNodesSingleServicesSingleState(string node, string service, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleServicesSingleStateWithHttpInfo(node, service); + return localVarResponse.Data; + } + + /// + /// getNodesSingleServicesSingleState Read service properties + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleServicesSingleState200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleServicesSingleStateWithHttpInfo(string node, string service, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleServicesSingleState"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->GetNodesSingleServicesSingleState"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleServicesSingleState"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/services/{service}/state", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleServicesSingleState", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleServicesSingleState Read service properties + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleServicesSingleState200Response + public async System.Threading.Tasks.Task GetNodesSingleServicesSingleStateAsync(string node, string service, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleServicesSingleStateWithHttpInfoAsync(node, service, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleServicesSingleState Read service properties + /// + /// Thrown when fails to make API call + /// node + /// service + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleServicesSingleState200Response) + public async System.Threading.Tasks.Task> GetNodesSingleServicesSingleStateWithHttpInfoAsync(string node, string service, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleServicesSingleState"); + } + + // verify the required parameter 'service' is set + if (service == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'service' when calling ProxmoxGeneratedApi->GetNodesSingleServicesSingleState"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("service", ProxmoxSharp.Client.ClientUtils.ParameterToString(service)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleServicesSingleState"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/services/{service}/state", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleServicesSingleState", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStatus Read node status + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleStatus200Response + public GetNodesSingleStatus200Response GetNodesSingleStatus(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStatusWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStatus Read node status + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStatus200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStatusWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStatus Read node status + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStatus200Response + public async System.Threading.Tasks.Task GetNodesSingleStatusAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStatusWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStatus Read node status + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStatus200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStatusWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorage Get status for all datastores. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleStorage200Response + public GetNodesSingleStorage200Response GetNodesSingleStorage(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorage Get status for all datastores. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorage200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorage"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorage"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorage Get status for all datastores. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorage200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorage Get status for all datastores. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorage200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorage"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorage"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingle getNodesSingleStorageSingle + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetNodesSingleStorageSingle(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingle getNodesSingleStorageSingle + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingle getNodesSingleStorageSingle + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingle getNodesSingleStorageSingle + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleContent List storage content. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleContent200Response + public GetNodesSingleStorageSingleContent200Response GetNodesSingleStorageSingleContent(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleContentWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleContent List storage content. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleContent200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleContentWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContent"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContent"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleContent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/content", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleContent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleContent List storage content. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleContent200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleContentAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleContentWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleContent List storage content. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleContent200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleContentWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContent"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContent"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleContent"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/content", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleContent", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleContentSingle Get volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// GetNodesSingleStorageSingleContentSingle200Response + public GetNodesSingleStorageSingleContentSingle200Response GetNodesSingleStorageSingleContentSingle(string node, string storage, string volume, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleContentSingleWithHttpInfo(node, storage, volume); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleContentSingle Get volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleContentSingle200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleContentSingleWithHttpInfo(string node, string storage, string volume, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'volume' is set + if (volume == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'volume' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContentSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.PathParameters.Add("volume", ProxmoxSharp.Client.ClientUtils.ParameterToString(volume)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleContentSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/content/{volume}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleContentSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleContentSingle Get volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleContentSingle200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleContentSingleAsync(string node, string storage, string volume, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleContentSingleWithHttpInfoAsync(node, storage, volume, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleContentSingle Get volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleContentSingle200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleContentSingleWithHttpInfoAsync(string node, string storage, string volume, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'volume' is set + if (volume == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'volume' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleContentSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.PathParameters.Add("volume", ProxmoxSharp.Client.ClientUtils.ParameterToString(volume)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleContentSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/content/{volume}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleContentSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleFilerestoreDownload Extract a file or directory (as zip archive) from a PBS backup. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleFilerestoreDownload200Response + public GetNodesSingleStorageSingleFilerestoreDownload200Response GetNodesSingleStorageSingleFilerestoreDownload(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleFilerestoreDownloadWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleFilerestoreDownload Extract a file or directory (as zip archive) from a PBS backup. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleFilerestoreDownload200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleFilerestoreDownloadWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleFilerestoreDownload"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleFilerestoreDownload"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleFilerestoreDownload"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/file-restore/download", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleFilerestoreDownload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleFilerestoreDownload Extract a file or directory (as zip archive) from a PBS backup. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleFilerestoreDownload200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleFilerestoreDownloadAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleFilerestoreDownloadWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleFilerestoreDownload Extract a file or directory (as zip archive) from a PBS backup. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleFilerestoreDownload200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleFilerestoreDownloadWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleFilerestoreDownload"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleFilerestoreDownload"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleFilerestoreDownload"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/file-restore/download", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleFilerestoreDownload", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleFilerestoreList List files and directories for single file restore under the given path. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleFilerestoreList200Response + public GetNodesSingleStorageSingleFilerestoreList200Response GetNodesSingleStorageSingleFilerestoreList(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleFilerestoreListWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleFilerestoreList List files and directories for single file restore under the given path. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleFilerestoreList200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleFilerestoreListWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleFilerestoreList"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleFilerestoreList"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleFilerestoreList"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/file-restore/list", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleFilerestoreList", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleFilerestoreList List files and directories for single file restore under the given path. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleFilerestoreList200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleFilerestoreListAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleFilerestoreListWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleFilerestoreList List files and directories for single file restore under the given path. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleFilerestoreList200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleFilerestoreListWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleFilerestoreList"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleFilerestoreList"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleFilerestoreList"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/file-restore/list", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleFilerestoreList", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleImportmetadata Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleImportmetadata200Response + public GetNodesSingleStorageSingleImportmetadata200Response GetNodesSingleStorageSingleImportmetadata(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleImportmetadataWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleImportmetadata Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleImportmetadata200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleImportmetadataWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleImportmetadata"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleImportmetadata"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleImportmetadata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/import-metadata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleImportmetadata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleImportmetadata Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleImportmetadata200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleImportmetadataAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleImportmetadataWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleImportmetadata Get the base parameters for creating a guest which imports data from a foreign importable guest, like an ESXi VM + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleImportmetadata200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleImportmetadataWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleImportmetadata"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleImportmetadata"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleImportmetadata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/import-metadata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleImportmetadata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSinglePrunebackups Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSinglePrunebackups200Response + public GetNodesSingleStorageSinglePrunebackups200Response GetNodesSingleStorageSinglePrunebackups(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSinglePrunebackupsWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSinglePrunebackups Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSinglePrunebackups200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSinglePrunebackupsWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSinglePrunebackups"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSinglePrunebackups"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSinglePrunebackups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/prunebackups", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSinglePrunebackups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSinglePrunebackups Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSinglePrunebackups200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSinglePrunebackupsAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSinglePrunebackupsWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSinglePrunebackups Get prune information for backups. NOTE: this is only a preview and might not be what a subsequent prune call does if backups are removed/added in the meantime. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSinglePrunebackups200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSinglePrunebackupsWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSinglePrunebackups"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSinglePrunebackups"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSinglePrunebackups"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/prunebackups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSinglePrunebackups", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleRrd Read storage RRD statistics (returns PNG). + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetVMRRD200Response + public GetVMRRD200Response GetNodesSingleStorageSingleRrd(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleRrdWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleRrd Read storage RRD statistics (returns PNG). + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetVMRRD200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleRrdWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleRrd"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleRrd"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleRrd"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/rrd", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleRrd", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleRrd Read storage RRD statistics (returns PNG). + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMRRD200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleRrdAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleRrdWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleRrd Read storage RRD statistics (returns PNG). + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMRRD200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleRrdWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleRrd"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleRrd"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleRrd"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/rrd", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleRrd", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleRrddata Read storage RRD statistics. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetNodesSingleStorageSingleRrddata(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleRrddataWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleRrddata Read storage RRD statistics. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleRrddataWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleRrddata"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleRrddata"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleRrddata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/rrddata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleRrddata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleRrddata Read storage RRD statistics. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleRrddataAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleRrddataWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleRrddata Read storage RRD statistics. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleRrddataWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleRrddata"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleRrddata"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleRrddata"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/rrddata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleRrddata", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleStatus Read storage status. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// GetNodesSingleStorageSingleStatus200Response + public GetNodesSingleStorageSingleStatus200Response GetNodesSingleStorageSingleStatus(string node, string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleStorageSingleStatusWithHttpInfo(node, storage); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleStatus Read storage status. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleStorageSingleStatus200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleStorageSingleStatusWithHttpInfo(string node, string storage, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleStatus"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/storage/{storage}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleStorageSingleStatus Read storage status. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleStorageSingleStatus200Response + public async System.Threading.Tasks.Task GetNodesSingleStorageSingleStatusAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleStorageSingleStatusWithHttpInfoAsync(node, storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleStorageSingleStatus Read storage status. + /// + /// Thrown when fails to make API call + /// node + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleStorageSingleStatus200Response) + public async System.Threading.Tasks.Task> GetNodesSingleStorageSingleStatusWithHttpInfoAsync(string node, string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleStatus"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetNodesSingleStorageSingleStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleStorageSingleStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/storage/{storage}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleStorageSingleStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSubscription Read subscription info. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleSubscription200Response + public GetNodesSingleSubscription200Response GetNodesSingleSubscription(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSubscriptionWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSubscription Read subscription info. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleSubscription200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSubscriptionWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSubscription"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSubscription"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/subscription", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSubscription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSubscription Read subscription info. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleSubscription200Response + public async System.Threading.Tasks.Task GetNodesSingleSubscriptionAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSubscriptionWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSubscription Read subscription info. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleSubscription200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSubscriptionWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSubscription"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSubscription"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/subscription", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSubscription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSyslog Read system log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleFirewallLog200Response + public GetNodesSingleQemuSingleFirewallLog200Response GetNodesSingleSyslog(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleSyslogWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSyslog Read system log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleFirewallLog200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleSyslogWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSyslog"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSyslog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/syslog", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSyslog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleSyslog Read system log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleFirewallLog200Response + public async System.Threading.Tasks.Task GetNodesSingleSyslogAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleSyslogWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleSyslog Read system log + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleFirewallLog200Response) + public async System.Threading.Tasks.Task> GetNodesSingleSyslogWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleSyslog"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleSyslog"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/syslog", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleSyslog", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleTime Read server time and time zone settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleTime200Response + public GetNodesSingleTime200Response GetNodesSingleTime(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleTimeWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleTime Read server time and time zone settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleTime200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleTimeWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleTime"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleTime"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/time", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleTime", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleTime Read server time and time zone settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleTime200Response + public async System.Threading.Tasks.Task GetNodesSingleTimeAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleTimeWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleTime Read server time and time zone settings. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleTime200Response) + public async System.Threading.Tasks.Task> GetNodesSingleTimeWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleTime"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleTime"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/time", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleTime", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleVersion API version details + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleVersion200Response + public GetNodesSingleVersion200Response GetNodesSingleVersion(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleVersionWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleVersion API version details + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleVersion200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleVersionWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleVersion"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleVersion"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/version", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleVersion", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleVersion API version details + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleVersion200Response + public async System.Threading.Tasks.Task GetNodesSingleVersionAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleVersionWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleVersion API version details + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleVersion200Response) + public async System.Threading.Tasks.Task> GetNodesSingleVersionWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleVersion"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleVersion"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/version", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleVersion", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleQemuSingleVncwebsocket200Response + public GetNodesSingleQemuSingleVncwebsocket200Response GetNodesSingleVncwebsocket(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleVncwebsocketWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleQemuSingleVncwebsocket200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleVncwebsocketWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleVncwebsocket"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleVncwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/vncwebsocket", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleVncwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleQemuSingleVncwebsocket200Response + public async System.Threading.Tasks.Task GetNodesSingleVncwebsocketAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleVncwebsocketWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleVncwebsocket Opens a websocket for VNC traffic. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleQemuSingleVncwebsocket200Response) + public async System.Threading.Tasks.Task> GetNodesSingleVncwebsocketWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleVncwebsocket"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleVncwebsocket"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/vncwebsocket", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleVncwebsocket", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleVzdumpDefaults Get the currently configured vzdump defaults. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetNodesSingleVzdumpDefaults200Response + public GetNodesSingleVzdumpDefaults200Response GetNodesSingleVzdumpDefaults(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleVzdumpDefaultsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleVzdumpDefaults Get the currently configured vzdump defaults. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetNodesSingleVzdumpDefaults200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleVzdumpDefaultsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleVzdumpDefaults"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleVzdumpDefaults"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/vzdump/defaults", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleVzdumpDefaults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleVzdumpDefaults Get the currently configured vzdump defaults. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetNodesSingleVzdumpDefaults200Response + public async System.Threading.Tasks.Task GetNodesSingleVzdumpDefaultsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleVzdumpDefaultsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleVzdumpDefaults Get the currently configured vzdump defaults. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNodesSingleVzdumpDefaults200Response) + public async System.Threading.Tasks.Task> GetNodesSingleVzdumpDefaultsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleVzdumpDefaults"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleVzdumpDefaults"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/vzdump/defaults", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleVzdumpDefaults", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleVzdumpExtractconfig Extract configuration from vzdump backup archive. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response GetNodesSingleVzdumpExtractconfig(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetNodesSingleVzdumpExtractconfigWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getNodesSingleVzdumpExtractconfig Extract configuration from vzdump backup archive. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse GetNodesSingleVzdumpExtractconfigWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleVzdumpExtractconfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleVzdumpExtractconfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/vzdump/extractconfig", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleVzdumpExtractconfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getNodesSingleVzdumpExtractconfig Extract configuration from vzdump backup archive. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task GetNodesSingleVzdumpExtractconfigAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetNodesSingleVzdumpExtractconfigWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getNodesSingleVzdumpExtractconfig Extract configuration from vzdump backup archive. + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> GetNodesSingleVzdumpExtractconfigWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetNodesSingleVzdumpExtractconfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetNodesSingleVzdumpExtractconfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/vzdump/extractconfig", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNodesSingleVzdumpExtractconfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getPool Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// GetPool200Response + public GetPool200Response GetPool(string poolid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetPoolWithHttpInfo(poolid); + return localVarResponse.Data; + } + + /// + /// getPool Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// ApiResponse of GetPool200Response + public ProxmoxSharp.Client.ApiResponse GetPoolWithHttpInfo(string poolid, int operationIndex = 0) + { + // verify the required parameter 'poolid' is set + if (poolid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'poolid' when calling ProxmoxGeneratedApi->GetPool"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("poolid", ProxmoxSharp.Client.ClientUtils.ParameterToString(poolid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetPool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/pools/{poolid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getPool Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetPool200Response + public async System.Threading.Tasks.Task GetPoolAsync(string poolid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetPoolWithHttpInfoAsync(poolid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getPool Get pool configuration (deprecated, no support for nested pools, use 'GET /pools/?poolid={poolid}'). + /// + /// Thrown when fails to make API call + /// poolid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetPool200Response) + public async System.Threading.Tasks.Task> GetPoolWithHttpInfoAsync(string poolid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'poolid' is set + if (poolid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'poolid' when calling ProxmoxGeneratedApi->GetPool"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("poolid", ProxmoxSharp.Client.ClientUtils.ParameterToString(poolid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetPool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/pools/{poolid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getPools List pools or get pool configuration. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetPools200Response + public GetPools200Response GetPools(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetPoolsWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getPools List pools or get pool configuration. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetPools200Response + public ProxmoxSharp.Client.ApiResponse GetPoolsWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetPools"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/pools", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPools", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getPools List pools or get pool configuration. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetPools200Response + public async System.Threading.Tasks.Task GetPoolsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetPoolsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getPools List pools or get pool configuration. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetPools200Response) + public async System.Threading.Tasks.Task> GetPoolsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetPools"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/pools", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetPools", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getStorage Storage index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetStorage200Response + public GetStorage200Response GetStorage(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetStorageWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getStorage Storage index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetStorage200Response + public ProxmoxSharp.Client.ApiResponse GetStorageWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetStorage"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/storage", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetStorage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getStorage Storage index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetStorage200Response + public async System.Threading.Tasks.Task GetStorageAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetStorageWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getStorage Storage index. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetStorage200Response) + public async System.Threading.Tasks.Task> GetStorageWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetStorage"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/storage", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetStorage", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getStorageSingle Read storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetStorageSingle(string storage, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetStorageSingleWithHttpInfo(storage); + return localVarResponse.Data; + } + + /// + /// getStorageSingle Read storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetStorageSingleWithHttpInfo(string storage, int operationIndex = 0) + { + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetStorageSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetStorageSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/storage/{storage}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetStorageSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getStorageSingle Read storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetStorageSingleAsync(string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetStorageSingleWithHttpInfoAsync(storage, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getStorageSingle Read storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetStorageSingleWithHttpInfoAsync(string storage, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->GetStorageSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetStorageSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/storage/{storage}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetStorageSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVM Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetVM(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVM Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetVMWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVM Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetVMAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVM Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetVMWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMConfig Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMConfig200Response + public GetVMConfig200Response GetVMConfig(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMConfigWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMConfig Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMConfig200Response + public ProxmoxSharp.Client.ApiResponse GetVMConfigWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMConfig Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMConfig200Response + public async System.Threading.Tasks.Task GetVMConfigAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMConfigWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMConfig Get the virtual machine configuration with pending configuration changes applied. Set the 'current' parameter to get the current configuration instead. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMConfig200Response) + public async System.Threading.Tasks.Task> GetVMConfigWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMConfigPending Get the virtual machine configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMConfigPending200Response + public GetVMConfigPending200Response GetVMConfigPending(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMConfigPendingWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMConfigPending Get the virtual machine configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMConfigPending200Response + public ProxmoxSharp.Client.ApiResponse GetVMConfigPendingWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMConfigPending"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMConfigPending"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/pending", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMConfigPending", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMConfigPending Get the virtual machine configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMConfigPending200Response + public async System.Threading.Tasks.Task GetVMConfigPendingAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMConfigPendingWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMConfigPending Get the virtual machine configuration with both current and pending values. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMConfigPending200Response) + public async System.Threading.Tasks.Task> GetVMConfigPendingWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMConfigPending"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMConfigPending"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/pending", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMConfigPending", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetVMFirewall(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMFirewallWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetVMFirewallWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewall"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetVMFirewallAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMFirewallWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMFirewall Directory index. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetVMFirewallWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewall"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewall"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewall", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallIPSet List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallIPSet200Response + public GetClusterFirewallIPSet200Response GetVMFirewallIPSet(string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMFirewallIPSetWithHttpInfo(name, node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMFirewallIPSet List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSet200Response + public ProxmoxSharp.Client.ApiResponse GetVMFirewallIPSetWithHttpInfo(string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetVMFirewallIPSet"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallIPSet"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallIPSet List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSet200Response + public async System.Threading.Tasks.Task GetVMFirewallIPSetAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMFirewallIPSetWithHttpInfoAsync(name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMFirewallIPSet List IPSet content + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSet200Response) + public async System.Threading.Tasks.Task> GetVMFirewallIPSetWithHttpInfoAsync(string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetVMFirewallIPSet"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallIPSet"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallIPSet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallIPSet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallIPSetIP Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetVMFirewallIPSetIP(string cidr, string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMFirewallIPSetIPWithHttpInfo(cidr, name, node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMFirewallIPSetIP Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetVMFirewallIPSetIPWithHttpInfo(string cidr, string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->GetVMFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetVMFirewallIPSetIP"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallIPSetIP"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallIPSetIP Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetVMFirewallIPSetIPAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMFirewallIPSetIPWithHttpInfoAsync(cidr, name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMFirewallIPSetIP Read IP or Network settings from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetVMFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->GetVMFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->GetVMFirewallIPSetIP"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallIPSetIP"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallIPSets List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallIPSets200Response + public GetClusterFirewallIPSets200Response GetVMFirewallIPSets(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMFirewallIPSetsWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMFirewallIPSets List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallIPSets200Response + public ProxmoxSharp.Client.ApiResponse GetVMFirewallIPSetsWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallIPSets"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallIPSets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/ipset", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallIPSets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallIPSets List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallIPSets200Response + public async System.Threading.Tasks.Task GetVMFirewallIPSetsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMFirewallIPSetsWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMFirewallIPSets List IPSets + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallIPSets200Response) + public async System.Threading.Tasks.Task> GetVMFirewallIPSetsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallIPSets"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallIPSets"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/ipset", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallIPSets", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallOptions Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMFirewallOptions200Response + public GetVMFirewallOptions200Response GetVMFirewallOptions(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMFirewallOptionsWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMFirewallOptions Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMFirewallOptions200Response + public ProxmoxSharp.Client.ApiResponse GetVMFirewallOptionsWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallOptions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallOptions Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMFirewallOptions200Response + public async System.Threading.Tasks.Task GetVMFirewallOptionsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMFirewallOptionsWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMFirewallOptions Get VM firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMFirewallOptions200Response) + public async System.Threading.Tasks.Task> GetVMFirewallOptionsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallOptions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallGroupRule200Response + public GetClusterFirewallGroupRule200Response GetVMFirewallRule(string node, int pos, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMFirewallRuleWithHttpInfo(node, pos, vmid); + return localVarResponse.Data; + } + + /// + /// getVMFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRule200Response + public ProxmoxSharp.Client.ApiResponse GetVMFirewallRuleWithHttpInfo(string node, int pos, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRule200Response + public async System.Threading.Tasks.Task GetVMFirewallRuleAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMFirewallRuleWithHttpInfoAsync(node, pos, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMFirewallRule Get single rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRule200Response) + public async System.Threading.Tasks.Task> GetVMFirewallRuleWithHttpInfoAsync(string node, int pos, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterFirewallGroupRules200Response + public GetClusterFirewallGroupRules200Response GetVMFirewallRules(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMFirewallRulesWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterFirewallGroupRules200Response + public ProxmoxSharp.Client.ApiResponse GetVMFirewallRulesWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallRules"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/firewall/rules", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterFirewallGroupRules200Response + public async System.Threading.Tasks.Task GetVMFirewallRulesAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMFirewallRulesWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMFirewallRules List rules. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterFirewallGroupRules200Response) + public async System.Threading.Tasks.Task> GetVMFirewallRulesWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMFirewallRules"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMFirewallRules"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/firewall/rules", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMFirewallRules", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMRRD Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMRRD200Response + public GetVMRRD200Response GetVMRRD(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMRRDWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMRRD Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMRRD200Response + public ProxmoxSharp.Client.ApiResponse GetVMRRDWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMRRD"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMRRD"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/rrd", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMRRD", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMRRD Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMRRD200Response + public async System.Threading.Tasks.Task GetVMRRDAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMRRDWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMRRD Read VM RRD statistics (returns PNG) + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMRRD200Response) + public async System.Threading.Tasks.Task> GetVMRRDWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMRRD"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMRRD"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/rrd", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMRRD", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMRRDData Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetVMRRDData(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMRRDDataWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMRRDData Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetVMRRDDataWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMRRDData"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMRRDData"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/rrddata", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMRRDData", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMRRDData Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetVMRRDDataAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMRRDDataWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMRRDData Read VM RRD statistics + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetVMRRDDataWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMRRDData"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMRRDData"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/rrddata", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMRRDData", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMSnapshot getVMSnapshot + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// GetCluster200Response + public GetCluster200Response GetVMSnapshot(string node, string snapname, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMSnapshotWithHttpInfo(node, snapname, vmid); + return localVarResponse.Data; + } + + /// + /// getVMSnapshot getVMSnapshot + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetCluster200Response + public ProxmoxSharp.Client.ApiResponse GetVMSnapshotWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMSnapshot"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->GetVMSnapshot"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMSnapshot getVMSnapshot + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetCluster200Response + public async System.Threading.Tasks.Task GetVMSnapshotAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMSnapshotWithHttpInfoAsync(node, snapname, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMSnapshot getVMSnapshot + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCluster200Response) + public async System.Threading.Tasks.Task> GetVMSnapshotWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMSnapshot"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->GetVMSnapshot"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMSnapshotConfig Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// GetClusterMetricsServerSingle200Response + public GetClusterMetricsServerSingle200Response GetVMSnapshotConfig(string node, string snapname, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMSnapshotConfigWithHttpInfo(node, snapname, vmid); + return localVarResponse.Data; + } + + /// + /// getVMSnapshotConfig Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterMetricsServerSingle200Response + public ProxmoxSharp.Client.ApiResponse GetVMSnapshotConfigWithHttpInfo(string node, string snapname, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMSnapshotConfig"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->GetVMSnapshotConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMSnapshotConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMSnapshotConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMSnapshotConfig Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterMetricsServerSingle200Response + public async System.Threading.Tasks.Task GetVMSnapshotConfigAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMSnapshotConfigWithHttpInfoAsync(node, snapname, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMSnapshotConfig Get snapshot configuration + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterMetricsServerSingle200Response) + public async System.Threading.Tasks.Task> GetVMSnapshotConfigWithHttpInfoAsync(string node, string snapname, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMSnapshotConfig"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->GetVMSnapshotConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMSnapshotConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMSnapshotConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMSnapshots List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetVMSnapshots200Response + public GetVMSnapshots200Response GetVMSnapshots(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMSnapshotsWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMSnapshots List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetVMSnapshots200Response + public ProxmoxSharp.Client.ApiResponse GetVMSnapshotsWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMSnapshots"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMSnapshots"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/snapshot", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMSnapshots", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMSnapshots List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMSnapshots200Response + public async System.Threading.Tasks.Task GetVMSnapshotsAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMSnapshotsWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMSnapshots List all snapshots. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMSnapshots200Response) + public async System.Threading.Tasks.Task> GetVMSnapshotsWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMSnapshots"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMSnapshots"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/snapshot", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMSnapshots", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMStatus Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// GetClusterSdnFabrics200Response + public GetClusterSdnFabrics200Response GetVMStatus(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMStatusWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// getVMStatus Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of GetClusterSdnFabrics200Response + public ProxmoxSharp.Client.ApiResponse GetVMStatusWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMStatus"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/status", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMStatus Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterSdnFabrics200Response + public async System.Threading.Tasks.Task GetVMStatusAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMStatusWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMStatus Directory index + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterSdnFabrics200Response) + public async System.Threading.Tasks.Task> GetVMStatusWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMStatus"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMStatus"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMStatus", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMs Virtual machine index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// GetVMs200Response + public GetVMs200Response GetVMs(string node, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVMsWithHttpInfo(node); + return localVarResponse.Data; + } + + /// + /// getVMs Virtual machine index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// ApiResponse of GetVMs200Response + public ProxmoxSharp.Client.ApiResponse GetVMsWithHttpInfo(string node, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMs"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVMs Virtual machine index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVMs200Response + public async System.Threading.Tasks.Task GetVMsAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVMsWithHttpInfoAsync(node, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVMs Virtual machine index (per node). + /// + /// Thrown when fails to make API call + /// node + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVMs200Response) + public async System.Threading.Tasks.Task> GetVMsWithHttpInfoAsync(string node, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->GetVMs"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVMs"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVMs", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVersion API version details, including some parts of the global datacenter config. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// GetVersion200Response + public GetVersion200Response GetVersion(int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = GetVersionWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// getVersion API version details, including some parts of the global datacenter config. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// ApiResponse of GetVersion200Response + public ProxmoxSharp.Client.ApiResponse GetVersionWithHttpInfo(int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVersion"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/version", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVersion", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// getVersion API version details, including some parts of the global datacenter config. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetVersion200Response + public async System.Threading.Tasks.Task GetVersionAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await GetVersionWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// getVersion API version details, including some parts of the global datacenter config. + /// + /// Thrown when fails to make API call + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetVersion200Response) + public async System.Threading.Tasks.Task> GetVersionWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.GetVersion"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/version", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetVersion", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// migrateVM Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// MigrateVM200Response + public MigrateVM200Response MigrateVM(string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = MigrateVMWithHttpInfo(node, vmid); + return localVarResponse.Data; + } + + /// + /// migrateVM Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of MigrateVM200Response + public ProxmoxSharp.Client.ApiResponse MigrateVMWithHttpInfo(string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->MigrateVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.MigrateVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Get("/nodes/{node}/qemu/{vmid}/migrate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("MigrateVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// migrateVM Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of MigrateVM200Response + public async System.Threading.Tasks.Task MigrateVMAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await MigrateVMWithHttpInfoAsync(node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// migrateVM Get preconditions for migration. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MigrateVM200Response) + public async System.Threading.Tasks.Task> MigrateVMWithHttpInfoAsync(string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->MigrateVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.MigrateVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/nodes/{node}/qemu/{vmid}/migrate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("MigrateVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// rebootVM Reboot the VM by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response RebootVM(string node, int vmid, RebootVMRequest? rebootVMRequest = default(RebootVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = RebootVMWithHttpInfo(node, vmid, rebootVMRequest); + return localVarResponse.Data; + } + + /// + /// rebootVM Reboot the VM by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse RebootVMWithHttpInfo(string node, int vmid, RebootVMRequest? rebootVMRequest = default(RebootVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->RebootVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = rebootVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RebootVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/status/reboot", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RebootVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// rebootVM Reboot the VM by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task RebootVMAsync(string node, int vmid, RebootVMRequest? rebootVMRequest = default(RebootVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await RebootVMWithHttpInfoAsync(node, vmid, rebootVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// rebootVM Reboot the VM by shutting it down, and starting it again. Applies pending changes. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> RebootVMWithHttpInfoAsync(string node, int vmid, RebootVMRequest? rebootVMRequest = default(RebootVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->RebootVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = rebootVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RebootVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/status/reboot", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RebootVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// removeClusterFirewallGroupRule Delete rule. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response RemoveClusterFirewallGroupRule(string group, int pos, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = RemoveClusterFirewallGroupRuleWithHttpInfo(group, pos); + return localVarResponse.Data; + } + + /// + /// removeClusterFirewallGroupRule Delete rule. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse RemoveClusterFirewallGroupRuleWithHttpInfo(string group, int pos, int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->RemoveClusterFirewallGroupRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RemoveClusterFirewallGroupRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/firewall/groups/{group}/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveClusterFirewallGroupRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// removeClusterFirewallGroupRule Delete rule. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task RemoveClusterFirewallGroupRuleAsync(string group, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await RemoveClusterFirewallGroupRuleWithHttpInfoAsync(group, pos, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// removeClusterFirewallGroupRule Delete rule. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> RemoveClusterFirewallGroupRuleWithHttpInfoAsync(string group, int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->RemoveClusterFirewallGroupRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RemoveClusterFirewallGroupRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/firewall/groups/{group}/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveClusterFirewallGroupRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// removeClusterFirewallIPSetIP Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response RemoveClusterFirewallIPSetIP(string cidr, string name, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = RemoveClusterFirewallIPSetIPWithHttpInfo(cidr, name); + return localVarResponse.Data; + } + + /// + /// removeClusterFirewallIPSetIP Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse RemoveClusterFirewallIPSetIPWithHttpInfo(string cidr, string name, int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->RemoveClusterFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->RemoveClusterFirewallIPSetIP"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RemoveClusterFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveClusterFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// removeClusterFirewallIPSetIP Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task RemoveClusterFirewallIPSetIPAsync(string cidr, string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await RemoveClusterFirewallIPSetIPWithHttpInfoAsync(cidr, name, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// removeClusterFirewallIPSetIP Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> RemoveClusterFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->RemoveClusterFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->RemoveClusterFirewallIPSetIP"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RemoveClusterFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveClusterFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// removeClusterFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response RemoveClusterFirewallRule(int pos, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = RemoveClusterFirewallRuleWithHttpInfo(pos); + return localVarResponse.Data; + } + + /// + /// removeClusterFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse RemoveClusterFirewallRuleWithHttpInfo(int pos, int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RemoveClusterFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/cluster/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveClusterFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// removeClusterFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task RemoveClusterFirewallRuleAsync(int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await RemoveClusterFirewallRuleWithHttpInfoAsync(pos, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// removeClusterFirewallRule Delete rule. + /// + /// Thrown when fails to make API call + /// pos + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> RemoveClusterFirewallRuleWithHttpInfoAsync(int pos, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RemoveClusterFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/cluster/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveClusterFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// removeVMFirewallIPSetIP Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response RemoveVMFirewallIPSetIP(string cidr, string name, string node, int vmid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = RemoveVMFirewallIPSetIPWithHttpInfo(cidr, name, node, vmid); + return localVarResponse.Data; + } + + /// + /// removeVMFirewallIPSetIP Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse RemoveVMFirewallIPSetIPWithHttpInfo(string cidr, string name, string node, int vmid, int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->RemoveVMFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->RemoveVMFirewallIPSetIP"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->RemoveVMFirewallIPSetIP"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RemoveVMFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveVMFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// removeVMFirewallIPSetIP Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task RemoveVMFirewallIPSetIPAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await RemoveVMFirewallIPSetIPWithHttpInfoAsync(cidr, name, node, vmid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// removeVMFirewallIPSetIP Remove IP or Network from IPSet. + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> RemoveVMFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, string node, int vmid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->RemoveVMFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->RemoveVMFirewallIPSetIP"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->RemoveVMFirewallIPSetIP"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RemoveVMFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RemoveVMFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// resetVM Reset virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response ResetVM(string node, int vmid, ResetVMRequest? resetVMRequest = default(ResetVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = ResetVMWithHttpInfo(node, vmid, resetVMRequest); + return localVarResponse.Data; + } + + /// + /// resetVM Reset virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse ResetVMWithHttpInfo(string node, int vmid, ResetVMRequest? resetVMRequest = default(ResetVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->ResetVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = resetVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.ResetVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/status/reset", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ResetVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// resetVM Reset virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task ResetVMAsync(string node, int vmid, ResetVMRequest? resetVMRequest = default(ResetVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await ResetVMWithHttpInfoAsync(node, vmid, resetVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// resetVM Reset virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> ResetVMWithHttpInfoAsync(string node, int vmid, ResetVMRequest? resetVMRequest = default(ResetVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->ResetVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = resetVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.ResetVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/status/reset", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ResetVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// resizeVMDisk Extend volume size. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response ResizeVMDisk(string node, int vmid, ResizeVMDiskRequest? resizeVMDiskRequest = default(ResizeVMDiskRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = ResizeVMDiskWithHttpInfo(node, vmid, resizeVMDiskRequest); + return localVarResponse.Data; + } + + /// + /// resizeVMDisk Extend volume size. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse ResizeVMDiskWithHttpInfo(string node, int vmid, ResizeVMDiskRequest? resizeVMDiskRequest = default(ResizeVMDiskRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->ResizeVMDisk"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = resizeVMDiskRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.ResizeVMDisk"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/resize", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ResizeVMDisk", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// resizeVMDisk Extend volume size. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task ResizeVMDiskAsync(string node, int vmid, ResizeVMDiskRequest? resizeVMDiskRequest = default(ResizeVMDiskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await ResizeVMDiskWithHttpInfoAsync(node, vmid, resizeVMDiskRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// resizeVMDisk Extend volume size. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> ResizeVMDiskWithHttpInfoAsync(string node, int vmid, ResizeVMDiskRequest? resizeVMDiskRequest = default(ResizeVMDiskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->ResizeVMDisk"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = resizeVMDiskRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.ResizeVMDisk"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/resize", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ResizeVMDisk", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// resumeVM Resume virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response ResumeVM(string node, int vmid, ResumeVMRequest? resumeVMRequest = default(ResumeVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = ResumeVMWithHttpInfo(node, vmid, resumeVMRequest); + return localVarResponse.Data; + } + + /// + /// resumeVM Resume virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse ResumeVMWithHttpInfo(string node, int vmid, ResumeVMRequest? resumeVMRequest = default(ResumeVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->ResumeVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = resumeVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.ResumeVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/status/resume", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ResumeVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// resumeVM Resume virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task ResumeVMAsync(string node, int vmid, ResumeVMRequest? resumeVMRequest = default(ResumeVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await ResumeVMWithHttpInfoAsync(node, vmid, resumeVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// resumeVM Resume virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> ResumeVMWithHttpInfoAsync(string node, int vmid, ResumeVMRequest? resumeVMRequest = default(ResumeVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->ResumeVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = resumeVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.ResumeVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/status/resume", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ResumeVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// rollbackVMSnapshot Rollback VM state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response RollbackVMSnapshot(string node, string snapname, int vmid, RollbackVMSnapshotRequest? rollbackVMSnapshotRequest = default(RollbackVMSnapshotRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = RollbackVMSnapshotWithHttpInfo(node, snapname, vmid, rollbackVMSnapshotRequest); + return localVarResponse.Data; + } + + /// + /// rollbackVMSnapshot Rollback VM state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse RollbackVMSnapshotWithHttpInfo(string node, string snapname, int vmid, RollbackVMSnapshotRequest? rollbackVMSnapshotRequest = default(RollbackVMSnapshotRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->RollbackVMSnapshot"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->RollbackVMSnapshot"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = rollbackVMSnapshotRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RollbackVMSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/rollback", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RollbackVMSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// rollbackVMSnapshot Rollback VM state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task RollbackVMSnapshotAsync(string node, string snapname, int vmid, RollbackVMSnapshotRequest? rollbackVMSnapshotRequest = default(RollbackVMSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await RollbackVMSnapshotWithHttpInfoAsync(node, snapname, vmid, rollbackVMSnapshotRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// rollbackVMSnapshot Rollback VM state to specified snapshot. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> RollbackVMSnapshotWithHttpInfoAsync(string node, string snapname, int vmid, RollbackVMSnapshotRequest? rollbackVMSnapshotRequest = default(RollbackVMSnapshotRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->RollbackVMSnapshot"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->RollbackVMSnapshot"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = rollbackVMSnapshotRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.RollbackVMSnapshot"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/rollback", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RollbackVMSnapshot", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// shutdownVM Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response ShutdownVM(string node, int vmid, ShutdownVMRequest? shutdownVMRequest = default(ShutdownVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = ShutdownVMWithHttpInfo(node, vmid, shutdownVMRequest); + return localVarResponse.Data; + } + + /// + /// shutdownVM Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse ShutdownVMWithHttpInfo(string node, int vmid, ShutdownVMRequest? shutdownVMRequest = default(ShutdownVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->ShutdownVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = shutdownVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.ShutdownVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/status/shutdown", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ShutdownVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// shutdownVM Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task ShutdownVMAsync(string node, int vmid, ShutdownVMRequest? shutdownVMRequest = default(ShutdownVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await ShutdownVMWithHttpInfoAsync(node, vmid, shutdownVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// shutdownVM Shutdown virtual machine. This is similar to pressing the power button on a physical machine. This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> ShutdownVMWithHttpInfoAsync(string node, int vmid, ShutdownVMRequest? shutdownVMRequest = default(ShutdownVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->ShutdownVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = shutdownVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.ShutdownVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/status/shutdown", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ShutdownVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// startVM Start virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response StartVM(string node, int vmid, StartVMRequest? startVMRequest = default(StartVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = StartVMWithHttpInfo(node, vmid, startVMRequest); + return localVarResponse.Data; + } + + /// + /// startVM Start virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse StartVMWithHttpInfo(string node, int vmid, StartVMRequest? startVMRequest = default(StartVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->StartVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = startVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.StartVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/status/start", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("StartVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// startVM Start virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task StartVMAsync(string node, int vmid, StartVMRequest? startVMRequest = default(StartVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await StartVMWithHttpInfoAsync(node, vmid, startVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// startVM Start virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> StartVMWithHttpInfoAsync(string node, int vmid, StartVMRequest? startVMRequest = default(StartVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->StartVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = startVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.StartVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/status/start", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("StartVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// stopNodeTask Stop a task. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response StopNodeTask(string node, string upid, int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = StopNodeTaskWithHttpInfo(node, upid); + return localVarResponse.Data; + } + + /// + /// stopNodeTask Stop a task. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse StopNodeTaskWithHttpInfo(string node, string upid, int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->StopNodeTask"); + } + + // verify the required parameter 'upid' is set + if (upid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'upid' when calling ProxmoxGeneratedApi->StopNodeTask"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("upid", ProxmoxSharp.Client.ClientUtils.ParameterToString(upid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.StopNodeTask"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Delete("/nodes/{node}/tasks/{upid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("StopNodeTask", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// stopNodeTask Stop a task. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task StopNodeTaskAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await StopNodeTaskWithHttpInfoAsync(node, upid, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// stopNodeTask Stop a task. + /// + /// Thrown when fails to make API call + /// node + /// upid + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> StopNodeTaskWithHttpInfoAsync(string node, string upid, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->StopNodeTask"); + } + + // verify the required parameter 'upid' is set + if (upid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'upid' when calling ProxmoxGeneratedApi->StopNodeTask"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("upid", ProxmoxSharp.Client.ClientUtils.ParameterToString(upid)); // path parameter + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.StopNodeTask"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/nodes/{node}/tasks/{upid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("StopNodeTask", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// stopVM Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response StopVM(string node, int vmid, StopVMRequest? stopVMRequest = default(StopVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = StopVMWithHttpInfo(node, vmid, stopVMRequest); + return localVarResponse.Data; + } + + /// + /// stopVM Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse StopVMWithHttpInfo(string node, int vmid, StopVMRequest? stopVMRequest = default(StopVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->StopVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = stopVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.StopVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/status/stop", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("StopVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// stopVM Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task StopVMAsync(string node, int vmid, StopVMRequest? stopVMRequest = default(StopVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await StopVMWithHttpInfoAsync(node, vmid, stopVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// stopVM Stop virtual machine. The qemu process will exit immediately. This is akin to pulling the power plug of a running computer and may damage the VM data. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> StopVMWithHttpInfoAsync(string node, int vmid, StopVMRequest? stopVMRequest = default(StopVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->StopVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = stopVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.StopVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/status/stop", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("StopVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// suspendVM Suspend virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response SuspendVM(string node, int vmid, SuspendVMRequest? suspendVMRequest = default(SuspendVMRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = SuspendVMWithHttpInfo(node, vmid, suspendVMRequest); + return localVarResponse.Data; + } + + /// + /// suspendVM Suspend virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse SuspendVMWithHttpInfo(string node, int vmid, SuspendVMRequest? suspendVMRequest = default(SuspendVMRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->SuspendVM"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = suspendVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.SuspendVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/status/suspend", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SuspendVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// suspendVM Suspend virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task SuspendVMAsync(string node, int vmid, SuspendVMRequest? suspendVMRequest = default(SuspendVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await SuspendVMWithHttpInfoAsync(node, vmid, suspendVMRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// suspendVM Suspend virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> SuspendVMWithHttpInfoAsync(string node, int vmid, SuspendVMRequest? suspendVMRequest = default(SuspendVMRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->SuspendVM"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = suspendVMRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.SuspendVM"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/status/suspend", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SuspendVM", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// unlinkVMDiskImages Unlink/delete disk images. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UnlinkVMDiskImages(string node, int vmid, UnlinkVMDiskImagesRequest? unlinkVMDiskImagesRequest = default(UnlinkVMDiskImagesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UnlinkVMDiskImagesWithHttpInfo(node, vmid, unlinkVMDiskImagesRequest); + return localVarResponse.Data; + } + + /// + /// unlinkVMDiskImages Unlink/delete disk images. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UnlinkVMDiskImagesWithHttpInfo(string node, int vmid, UnlinkVMDiskImagesRequest? unlinkVMDiskImagesRequest = default(UnlinkVMDiskImagesRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UnlinkVMDiskImages"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = unlinkVMDiskImagesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UnlinkVMDiskImages"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/unlink", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UnlinkVMDiskImages", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// unlinkVMDiskImages Unlink/delete disk images. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UnlinkVMDiskImagesAsync(string node, int vmid, UnlinkVMDiskImagesRequest? unlinkVMDiskImagesRequest = default(UnlinkVMDiskImagesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UnlinkVMDiskImagesWithHttpInfoAsync(node, vmid, unlinkVMDiskImagesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// unlinkVMDiskImages Unlink/delete disk images. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UnlinkVMDiskImagesWithHttpInfoAsync(string node, int vmid, UnlinkVMDiskImagesRequest? unlinkVMDiskImagesRequest = default(UnlinkVMDiskImagesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UnlinkVMDiskImages"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = unlinkVMDiskImagesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UnlinkVMDiskImages"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/unlink", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UnlinkVMDiskImages", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessAcl Update Access Control List (add or remove permissions). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateAccessAcl(UpdateAccessAclRequest? updateAccessAclRequest = default(UpdateAccessAclRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessAclWithHttpInfo(updateAccessAclRequest); + return localVarResponse.Data; + } + + /// + /// updateAccessAcl Update Access Control List (add or remove permissions). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessAclWithHttpInfo(UpdateAccessAclRequest? updateAccessAclRequest = default(UpdateAccessAclRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateAccessAclRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessAcl"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/acl", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessAcl", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessAcl Update Access Control List (add or remove permissions). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateAccessAclAsync(UpdateAccessAclRequest? updateAccessAclRequest = default(UpdateAccessAclRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessAclWithHttpInfoAsync(updateAccessAclRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessAcl Update Access Control List (add or remove permissions). + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateAccessAclWithHttpInfoAsync(UpdateAccessAclRequest? updateAccessAclRequest = default(UpdateAccessAclRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateAccessAclRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessAcl"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/acl", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessAcl", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessDomainsSingle Update authentication server settings. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateAccessDomainsSingle(string realm, UpdateAccessDomainsSingleRequest? updateAccessDomainsSingleRequest = default(UpdateAccessDomainsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessDomainsSingleWithHttpInfo(realm, updateAccessDomainsSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateAccessDomainsSingle Update authentication server settings. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessDomainsSingleWithHttpInfo(string realm, UpdateAccessDomainsSingleRequest? updateAccessDomainsSingleRequest = default(UpdateAccessDomainsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'realm' is set + if (realm == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'realm' when calling ProxmoxGeneratedApi->UpdateAccessDomainsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("realm", ProxmoxSharp.Client.ClientUtils.ParameterToString(realm)); // path parameter + localVarRequestOptions.Data = updateAccessDomainsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessDomainsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/domains/{realm}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessDomainsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessDomainsSingle Update authentication server settings. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateAccessDomainsSingleAsync(string realm, UpdateAccessDomainsSingleRequest? updateAccessDomainsSingleRequest = default(UpdateAccessDomainsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessDomainsSingleWithHttpInfoAsync(realm, updateAccessDomainsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessDomainsSingle Update authentication server settings. + /// + /// Thrown when fails to make API call + /// realm + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateAccessDomainsSingleWithHttpInfoAsync(string realm, UpdateAccessDomainsSingleRequest? updateAccessDomainsSingleRequest = default(UpdateAccessDomainsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'realm' is set + if (realm == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'realm' when calling ProxmoxGeneratedApi->UpdateAccessDomainsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("realm", ProxmoxSharp.Client.ClientUtils.ParameterToString(realm)); // path parameter + localVarRequestOptions.Data = updateAccessDomainsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessDomainsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/domains/{realm}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessDomainsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessGroupsSingle Update group data. + /// + /// Thrown when fails to make API call + /// groupid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateAccessGroupsSingle(string groupid, UpdateAccessGroupsSingleRequest? updateAccessGroupsSingleRequest = default(UpdateAccessGroupsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessGroupsSingleWithHttpInfo(groupid, updateAccessGroupsSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateAccessGroupsSingle Update group data. + /// + /// Thrown when fails to make API call + /// groupid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessGroupsSingleWithHttpInfo(string groupid, UpdateAccessGroupsSingleRequest? updateAccessGroupsSingleRequest = default(UpdateAccessGroupsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'groupid' is set + if (groupid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'groupid' when calling ProxmoxGeneratedApi->UpdateAccessGroupsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupid", ProxmoxSharp.Client.ClientUtils.ParameterToString(groupid)); // path parameter + localVarRequestOptions.Data = updateAccessGroupsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/groups/{groupid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessGroupsSingle Update group data. + /// + /// Thrown when fails to make API call + /// groupid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateAccessGroupsSingleAsync(string groupid, UpdateAccessGroupsSingleRequest? updateAccessGroupsSingleRequest = default(UpdateAccessGroupsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessGroupsSingleWithHttpInfoAsync(groupid, updateAccessGroupsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessGroupsSingle Update group data. + /// + /// Thrown when fails to make API call + /// groupid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateAccessGroupsSingleWithHttpInfoAsync(string groupid, UpdateAccessGroupsSingleRequest? updateAccessGroupsSingleRequest = default(UpdateAccessGroupsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'groupid' is set + if (groupid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'groupid' when calling ProxmoxGeneratedApi->UpdateAccessGroupsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("groupid", ProxmoxSharp.Client.ClientUtils.ParameterToString(groupid)); // path parameter + localVarRequestOptions.Data = updateAccessGroupsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/groups/{groupid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessPassword Change user password. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateAccessPassword(UpdateAccessPasswordRequest? updateAccessPasswordRequest = default(UpdateAccessPasswordRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessPasswordWithHttpInfo(updateAccessPasswordRequest); + return localVarResponse.Data; + } + + /// + /// updateAccessPassword Change user password. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessPasswordWithHttpInfo(UpdateAccessPasswordRequest? updateAccessPasswordRequest = default(UpdateAccessPasswordRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateAccessPasswordRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessPassword"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/password", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessPassword", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessPassword Change user password. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateAccessPasswordAsync(UpdateAccessPasswordRequest? updateAccessPasswordRequest = default(UpdateAccessPasswordRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessPasswordWithHttpInfoAsync(updateAccessPasswordRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessPassword Change user password. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateAccessPasswordWithHttpInfoAsync(UpdateAccessPasswordRequest? updateAccessPasswordRequest = default(UpdateAccessPasswordRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateAccessPasswordRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessPassword"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/password", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessPassword", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessRolesSingle Update an existing role. + /// + /// Thrown when fails to make API call + /// roleid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateAccessRolesSingle(string roleid, UpdateAccessRolesSingleRequest? updateAccessRolesSingleRequest = default(UpdateAccessRolesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessRolesSingleWithHttpInfo(roleid, updateAccessRolesSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateAccessRolesSingle Update an existing role. + /// + /// Thrown when fails to make API call + /// roleid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessRolesSingleWithHttpInfo(string roleid, UpdateAccessRolesSingleRequest? updateAccessRolesSingleRequest = default(UpdateAccessRolesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'roleid' is set + if (roleid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'roleid' when calling ProxmoxGeneratedApi->UpdateAccessRolesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("roleid", ProxmoxSharp.Client.ClientUtils.ParameterToString(roleid)); // path parameter + localVarRequestOptions.Data = updateAccessRolesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessRolesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/roles/{roleid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessRolesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessRolesSingle Update an existing role. + /// + /// Thrown when fails to make API call + /// roleid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateAccessRolesSingleAsync(string roleid, UpdateAccessRolesSingleRequest? updateAccessRolesSingleRequest = default(UpdateAccessRolesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessRolesSingleWithHttpInfoAsync(roleid, updateAccessRolesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessRolesSingle Update an existing role. + /// + /// Thrown when fails to make API call + /// roleid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateAccessRolesSingleWithHttpInfoAsync(string roleid, UpdateAccessRolesSingleRequest? updateAccessRolesSingleRequest = default(UpdateAccessRolesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'roleid' is set + if (roleid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'roleid' when calling ProxmoxGeneratedApi->UpdateAccessRolesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("roleid", ProxmoxSharp.Client.ClientUtils.ParameterToString(roleid)); // path parameter + localVarRequestOptions.Data = updateAccessRolesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessRolesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/roles/{roleid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessRolesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessTfaSingleSingle Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateAccessTfaSingleSingle(string id, string userid, UpdateAccessTfaSingleSingleRequest? updateAccessTfaSingleSingleRequest = default(UpdateAccessTfaSingleSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessTfaSingleSingleWithHttpInfo(id, userid, updateAccessTfaSingleSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateAccessTfaSingleSingle Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessTfaSingleSingleWithHttpInfo(string id, string userid, UpdateAccessTfaSingleSingleRequest? updateAccessTfaSingleSingleRequest = default(UpdateAccessTfaSingleSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateAccessTfaSingleSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->UpdateAccessTfaSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = updateAccessTfaSingleSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessTfaSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/tfa/{userid}/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessTfaSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessTfaSingleSingle Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateAccessTfaSingleSingleAsync(string id, string userid, UpdateAccessTfaSingleSingleRequest? updateAccessTfaSingleSingleRequest = default(UpdateAccessTfaSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessTfaSingleSingleWithHttpInfoAsync(id, userid, updateAccessTfaSingleSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessTfaSingleSingle Add a TFA entry for a user. + /// + /// Thrown when fails to make API call + /// id + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateAccessTfaSingleSingleWithHttpInfoAsync(string id, string userid, UpdateAccessTfaSingleSingleRequest? updateAccessTfaSingleSingleRequest = default(UpdateAccessTfaSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateAccessTfaSingleSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->UpdateAccessTfaSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = updateAccessTfaSingleSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessTfaSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/tfa/{userid}/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessTfaSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessUsersSingle Update user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateAccessUsersSingle(string userid, UpdateAccessUsersSingleRequest? updateAccessUsersSingleRequest = default(UpdateAccessUsersSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessUsersSingleWithHttpInfo(userid, updateAccessUsersSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateAccessUsersSingle Update user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessUsersSingleWithHttpInfo(string userid, UpdateAccessUsersSingleRequest? updateAccessUsersSingleRequest = default(UpdateAccessUsersSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->UpdateAccessUsersSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = updateAccessUsersSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessUsersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/users/{userid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessUsersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessUsersSingle Update user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateAccessUsersSingleAsync(string userid, UpdateAccessUsersSingleRequest? updateAccessUsersSingleRequest = default(UpdateAccessUsersSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessUsersSingleWithHttpInfoAsync(userid, updateAccessUsersSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessUsersSingle Update user configuration. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateAccessUsersSingleWithHttpInfoAsync(string userid, UpdateAccessUsersSingleRequest? updateAccessUsersSingleRequest = default(UpdateAccessUsersSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->UpdateAccessUsersSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = updateAccessUsersSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessUsersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/users/{userid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessUsersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessUsersSingleTokenSingle Update API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// UpdateAccessUsersSingleTokenSingle200Response + public UpdateAccessUsersSingleTokenSingle200Response UpdateAccessUsersSingleTokenSingle(string tokenid, string userid, UpdateAccessUsersSingleTokenSingleRequest? updateAccessUsersSingleTokenSingleRequest = default(UpdateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessUsersSingleTokenSingleWithHttpInfo(tokenid, userid, updateAccessUsersSingleTokenSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateAccessUsersSingleTokenSingle Update API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of UpdateAccessUsersSingleTokenSingle200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessUsersSingleTokenSingleWithHttpInfo(string tokenid, string userid, UpdateAccessUsersSingleTokenSingleRequest? updateAccessUsersSingleTokenSingleRequest = default(UpdateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'tokenid' is set + if (tokenid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'tokenid' when calling ProxmoxGeneratedApi->UpdateAccessUsersSingleTokenSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->UpdateAccessUsersSingleTokenSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tokenid", ProxmoxSharp.Client.ClientUtils.ParameterToString(tokenid)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = updateAccessUsersSingleTokenSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessUsersSingleTokenSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/users/{userid}/token/{tokenid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessUsersSingleTokenSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessUsersSingleTokenSingle Update API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of UpdateAccessUsersSingleTokenSingle200Response + public async System.Threading.Tasks.Task UpdateAccessUsersSingleTokenSingleAsync(string tokenid, string userid, UpdateAccessUsersSingleTokenSingleRequest? updateAccessUsersSingleTokenSingleRequest = default(UpdateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessUsersSingleTokenSingleWithHttpInfoAsync(tokenid, userid, updateAccessUsersSingleTokenSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessUsersSingleTokenSingle Update API token for a specific user. + /// + /// Thrown when fails to make API call + /// tokenid + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UpdateAccessUsersSingleTokenSingle200Response) + public async System.Threading.Tasks.Task> UpdateAccessUsersSingleTokenSingleWithHttpInfoAsync(string tokenid, string userid, UpdateAccessUsersSingleTokenSingleRequest? updateAccessUsersSingleTokenSingleRequest = default(UpdateAccessUsersSingleTokenSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'tokenid' is set + if (tokenid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'tokenid' when calling ProxmoxGeneratedApi->UpdateAccessUsersSingleTokenSingle"); + } + + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->UpdateAccessUsersSingleTokenSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("tokenid", ProxmoxSharp.Client.ClientUtils.ParameterToString(tokenid)); // path parameter + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = updateAccessUsersSingleTokenSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessUsersSingleTokenSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/users/{userid}/token/{tokenid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessUsersSingleTokenSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessUsersSingleUnlocktfa Unlock a user's TFA authentication. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// GetClusterCephFlagsSingle200Response + public GetClusterCephFlagsSingle200Response UpdateAccessUsersSingleUnlocktfa(string userid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateAccessUsersSingleUnlocktfaWithHttpInfo(userid, body); + return localVarResponse.Data; + } + + /// + /// updateAccessUsersSingleUnlocktfa Unlock a user's TFA authentication. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of GetClusterCephFlagsSingle200Response + public ProxmoxSharp.Client.ApiResponse UpdateAccessUsersSingleUnlocktfaWithHttpInfo(string userid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->UpdateAccessUsersSingleUnlocktfa"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessUsersSingleUnlocktfa"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/access/users/{userid}/unlock-tfa", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessUsersSingleUnlocktfa", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateAccessUsersSingleUnlocktfa Unlock a user's TFA authentication. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of GetClusterCephFlagsSingle200Response + public async System.Threading.Tasks.Task UpdateAccessUsersSingleUnlocktfaAsync(string userid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateAccessUsersSingleUnlocktfaWithHttpInfoAsync(userid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateAccessUsersSingleUnlocktfa Unlock a user's TFA authentication. + /// + /// Thrown when fails to make API call + /// userid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetClusterCephFlagsSingle200Response) + public async System.Threading.Tasks.Task> UpdateAccessUsersSingleUnlocktfaWithHttpInfoAsync(string userid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userid' is set + if (userid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'userid' when calling ProxmoxGeneratedApi->UpdateAccessUsersSingleUnlocktfa"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("userid", ProxmoxSharp.Client.ClientUtils.ParameterToString(userid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateAccessUsersSingleUnlocktfa"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/access/users/{userid}/unlock-tfa", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateAccessUsersSingleUnlocktfa", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterAcmeAccountSingle Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterAcmeAccountSingle(string name, UpdateClusterAcmeAccountSingleRequest? updateClusterAcmeAccountSingleRequest = default(UpdateClusterAcmeAccountSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterAcmeAccountSingleWithHttpInfo(name, updateClusterAcmeAccountSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterAcmeAccountSingle Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterAcmeAccountSingleWithHttpInfo(string name, UpdateClusterAcmeAccountSingleRequest? updateClusterAcmeAccountSingleRequest = default(UpdateClusterAcmeAccountSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterAcmeAccountSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterAcmeAccountSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterAcmeAccountSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/acme/account/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterAcmeAccountSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterAcmeAccountSingle Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterAcmeAccountSingleAsync(string name, UpdateClusterAcmeAccountSingleRequest? updateClusterAcmeAccountSingleRequest = default(UpdateClusterAcmeAccountSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterAcmeAccountSingleWithHttpInfoAsync(name, updateClusterAcmeAccountSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterAcmeAccountSingle Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterAcmeAccountSingleWithHttpInfoAsync(string name, UpdateClusterAcmeAccountSingleRequest? updateClusterAcmeAccountSingleRequest = default(UpdateClusterAcmeAccountSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterAcmeAccountSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterAcmeAccountSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterAcmeAccountSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/acme/account/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterAcmeAccountSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterAcmePluginsSingle Update ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterAcmePluginsSingle(string id, UpdateClusterAcmePluginsSingleRequest? updateClusterAcmePluginsSingleRequest = default(UpdateClusterAcmePluginsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterAcmePluginsSingleWithHttpInfo(id, updateClusterAcmePluginsSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterAcmePluginsSingle Update ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterAcmePluginsSingleWithHttpInfo(string id, UpdateClusterAcmePluginsSingleRequest? updateClusterAcmePluginsSingleRequest = default(UpdateClusterAcmePluginsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterAcmePluginsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterAcmePluginsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterAcmePluginsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/acme/plugins/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterAcmePluginsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterAcmePluginsSingle Update ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterAcmePluginsSingleAsync(string id, UpdateClusterAcmePluginsSingleRequest? updateClusterAcmePluginsSingleRequest = default(UpdateClusterAcmePluginsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterAcmePluginsSingleWithHttpInfoAsync(id, updateClusterAcmePluginsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterAcmePluginsSingle Update ACME plugin configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterAcmePluginsSingleWithHttpInfoAsync(string id, UpdateClusterAcmePluginsSingleRequest? updateClusterAcmePluginsSingleRequest = default(UpdateClusterAcmePluginsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterAcmePluginsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterAcmePluginsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterAcmePluginsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/acme/plugins/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterAcmePluginsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterBackupSingle Update vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterBackupSingle(string id, UpdateClusterBackupSingleRequest? updateClusterBackupSingleRequest = default(UpdateClusterBackupSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterBackupSingleWithHttpInfo(id, updateClusterBackupSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterBackupSingle Update vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterBackupSingleWithHttpInfo(string id, UpdateClusterBackupSingleRequest? updateClusterBackupSingleRequest = default(UpdateClusterBackupSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterBackupSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterBackupSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterBackupSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/backup/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterBackupSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterBackupSingle Update vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterBackupSingleAsync(string id, UpdateClusterBackupSingleRequest? updateClusterBackupSingleRequest = default(UpdateClusterBackupSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterBackupSingleWithHttpInfoAsync(id, updateClusterBackupSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterBackupSingle Update vzdump backup job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterBackupSingleWithHttpInfoAsync(string id, UpdateClusterBackupSingleRequest? updateClusterBackupSingleRequest = default(UpdateClusterBackupSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterBackupSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterBackupSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterBackupSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/backup/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterBackupSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterCephFlags Set/Unset multiple ceph flags at once. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterCephFlags(UpdateClusterCephFlagsRequest? updateClusterCephFlagsRequest = default(UpdateClusterCephFlagsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterCephFlagsWithHttpInfo(updateClusterCephFlagsRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterCephFlags Set/Unset multiple ceph flags at once. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterCephFlagsWithHttpInfo(UpdateClusterCephFlagsRequest? updateClusterCephFlagsRequest = default(UpdateClusterCephFlagsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateClusterCephFlagsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterCephFlags"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/ceph/flags", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterCephFlags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterCephFlags Set/Unset multiple ceph flags at once. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterCephFlagsAsync(UpdateClusterCephFlagsRequest? updateClusterCephFlagsRequest = default(UpdateClusterCephFlagsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterCephFlagsWithHttpInfoAsync(updateClusterCephFlagsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterCephFlags Set/Unset multiple ceph flags at once. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterCephFlagsWithHttpInfoAsync(UpdateClusterCephFlagsRequest? updateClusterCephFlagsRequest = default(UpdateClusterCephFlagsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateClusterCephFlagsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterCephFlags"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/ceph/flags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterCephFlags", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterCephFlagsSingle Set or clear (unset) a specific ceph flag + /// + /// Thrown when fails to make API call + /// flag + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterCephFlagsSingle(string flag, UpdateClusterCephFlagsSingleRequest? updateClusterCephFlagsSingleRequest = default(UpdateClusterCephFlagsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterCephFlagsSingleWithHttpInfo(flag, updateClusterCephFlagsSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterCephFlagsSingle Set or clear (unset) a specific ceph flag + /// + /// Thrown when fails to make API call + /// flag + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterCephFlagsSingleWithHttpInfo(string flag, UpdateClusterCephFlagsSingleRequest? updateClusterCephFlagsSingleRequest = default(UpdateClusterCephFlagsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'flag' is set + if (flag == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'flag' when calling ProxmoxGeneratedApi->UpdateClusterCephFlagsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("flag", ProxmoxSharp.Client.ClientUtils.ParameterToString(flag)); // path parameter + localVarRequestOptions.Data = updateClusterCephFlagsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterCephFlagsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/ceph/flags/{flag}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterCephFlagsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterCephFlagsSingle Set or clear (unset) a specific ceph flag + /// + /// Thrown when fails to make API call + /// flag + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterCephFlagsSingleAsync(string flag, UpdateClusterCephFlagsSingleRequest? updateClusterCephFlagsSingleRequest = default(UpdateClusterCephFlagsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterCephFlagsSingleWithHttpInfoAsync(flag, updateClusterCephFlagsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterCephFlagsSingle Set or clear (unset) a specific ceph flag + /// + /// Thrown when fails to make API call + /// flag + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterCephFlagsSingleWithHttpInfoAsync(string flag, UpdateClusterCephFlagsSingleRequest? updateClusterCephFlagsSingleRequest = default(UpdateClusterCephFlagsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'flag' is set + if (flag == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'flag' when calling ProxmoxGeneratedApi->UpdateClusterCephFlagsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("flag", ProxmoxSharp.Client.ClientUtils.ParameterToString(flag)); // path parameter + localVarRequestOptions.Data = updateClusterCephFlagsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterCephFlagsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/ceph/flags/{flag}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterCephFlagsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterFirewallAliasesSingle(string name, UpdateClusterFirewallAliasesSingleRequest? updateClusterFirewallAliasesSingleRequest = default(UpdateClusterFirewallAliasesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterFirewallAliasesSingleWithHttpInfo(name, updateClusterFirewallAliasesSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterFirewallAliasesSingleWithHttpInfo(string name, UpdateClusterFirewallAliasesSingleRequest? updateClusterFirewallAliasesSingleRequest = default(UpdateClusterFirewallAliasesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterFirewallAliasesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterFirewallAliasesSingleAsync(string name, UpdateClusterFirewallAliasesSingleRequest? updateClusterFirewallAliasesSingleRequest = default(UpdateClusterFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterFirewallAliasesSingleWithHttpInfoAsync(name, updateClusterFirewallAliasesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterFirewallAliasesSingleWithHttpInfoAsync(string name, UpdateClusterFirewallAliasesSingleRequest? updateClusterFirewallAliasesSingleRequest = default(UpdateClusterFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterFirewallAliasesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallGroupRule Modify rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterFirewallGroupRule(string group, int pos, UpdateClusterFirewallGroupRuleRequest? updateClusterFirewallGroupRuleRequest = default(UpdateClusterFirewallGroupRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterFirewallGroupRuleWithHttpInfo(group, pos, updateClusterFirewallGroupRuleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallGroupRule Modify rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterFirewallGroupRuleWithHttpInfo(string group, int pos, UpdateClusterFirewallGroupRuleRequest? updateClusterFirewallGroupRuleRequest = default(UpdateClusterFirewallGroupRuleRequest?), int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->UpdateClusterFirewallGroupRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.Data = updateClusterFirewallGroupRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallGroupRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/firewall/groups/{group}/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallGroupRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallGroupRule Modify rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterFirewallGroupRuleAsync(string group, int pos, UpdateClusterFirewallGroupRuleRequest? updateClusterFirewallGroupRuleRequest = default(UpdateClusterFirewallGroupRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterFirewallGroupRuleWithHttpInfoAsync(group, pos, updateClusterFirewallGroupRuleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallGroupRule Modify rule data. + /// + /// Thrown when fails to make API call + /// group + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterFirewallGroupRuleWithHttpInfoAsync(string group, int pos, UpdateClusterFirewallGroupRuleRequest? updateClusterFirewallGroupRuleRequest = default(UpdateClusterFirewallGroupRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->UpdateClusterFirewallGroupRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.Data = updateClusterFirewallGroupRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallGroupRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/firewall/groups/{group}/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallGroupRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallIPSetIP Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterFirewallIPSetIP(string cidr, string name, UpdateClusterFirewallIPSetIPRequest? updateClusterFirewallIPSetIPRequest = default(UpdateClusterFirewallIPSetIPRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterFirewallIPSetIPWithHttpInfo(cidr, name, updateClusterFirewallIPSetIPRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallIPSetIP Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterFirewallIPSetIPWithHttpInfo(string cidr, string name, UpdateClusterFirewallIPSetIPRequest? updateClusterFirewallIPSetIPRequest = default(UpdateClusterFirewallIPSetIPRequest?), int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->UpdateClusterFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterFirewallIPSetIP"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterFirewallIPSetIPRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallIPSetIP Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterFirewallIPSetIPAsync(string cidr, string name, UpdateClusterFirewallIPSetIPRequest? updateClusterFirewallIPSetIPRequest = default(UpdateClusterFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterFirewallIPSetIPWithHttpInfoAsync(cidr, name, updateClusterFirewallIPSetIPRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallIPSetIP Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, UpdateClusterFirewallIPSetIPRequest? updateClusterFirewallIPSetIPRequest = default(UpdateClusterFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->UpdateClusterFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterFirewallIPSetIP"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterFirewallIPSetIPRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterFirewallOptions(UpdateClusterFirewallOptionsRequest? updateClusterFirewallOptionsRequest = default(UpdateClusterFirewallOptionsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterFirewallOptionsWithHttpInfo(updateClusterFirewallOptionsRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterFirewallOptionsWithHttpInfo(UpdateClusterFirewallOptionsRequest? updateClusterFirewallOptionsRequest = default(UpdateClusterFirewallOptionsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateClusterFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterFirewallOptionsAsync(UpdateClusterFirewallOptionsRequest? updateClusterFirewallOptionsRequest = default(UpdateClusterFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterFirewallOptionsWithHttpInfoAsync(updateClusterFirewallOptionsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterFirewallOptionsWithHttpInfoAsync(UpdateClusterFirewallOptionsRequest? updateClusterFirewallOptionsRequest = default(UpdateClusterFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateClusterFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterFirewallRule(int pos, UpdateClusterFirewallRuleRequest? updateClusterFirewallRuleRequest = default(UpdateClusterFirewallRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterFirewallRuleWithHttpInfo(pos, updateClusterFirewallRuleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterFirewallRuleWithHttpInfo(int pos, UpdateClusterFirewallRuleRequest? updateClusterFirewallRuleRequest = default(UpdateClusterFirewallRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.Data = updateClusterFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterFirewallRuleAsync(int pos, UpdateClusterFirewallRuleRequest? updateClusterFirewallRuleRequest = default(UpdateClusterFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterFirewallRuleWithHttpInfoAsync(pos, updateClusterFirewallRuleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterFirewallRuleWithHttpInfoAsync(int pos, UpdateClusterFirewallRuleRequest? updateClusterFirewallRuleRequest = default(UpdateClusterFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.Data = updateClusterFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterHaGroupsSingle Update ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterHaGroupsSingle(string group, UpdateClusterHaGroupsSingleRequest? updateClusterHaGroupsSingleRequest = default(UpdateClusterHaGroupsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterHaGroupsSingleWithHttpInfo(group, updateClusterHaGroupsSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterHaGroupsSingle Update ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterHaGroupsSingleWithHttpInfo(string group, UpdateClusterHaGroupsSingleRequest? updateClusterHaGroupsSingleRequest = default(UpdateClusterHaGroupsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->UpdateClusterHaGroupsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.Data = updateClusterHaGroupsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterHaGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/ha/groups/{group}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterHaGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterHaGroupsSingle Update ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterHaGroupsSingleAsync(string group, UpdateClusterHaGroupsSingleRequest? updateClusterHaGroupsSingleRequest = default(UpdateClusterHaGroupsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterHaGroupsSingleWithHttpInfoAsync(group, updateClusterHaGroupsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterHaGroupsSingle Update ha group configuration. (deprecated in favor of HA rules) + /// + /// Thrown when fails to make API call + /// group + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterHaGroupsSingleWithHttpInfoAsync(string group, UpdateClusterHaGroupsSingleRequest? updateClusterHaGroupsSingleRequest = default(UpdateClusterHaGroupsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'group' is set + if (group == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'group' when calling ProxmoxGeneratedApi->UpdateClusterHaGroupsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("group", ProxmoxSharp.Client.ClientUtils.ParameterToString(group)); // path parameter + localVarRequestOptions.Data = updateClusterHaGroupsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterHaGroupsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/ha/groups/{group}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterHaGroupsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterHaResourcesSingle Update resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterHaResourcesSingle(string sid, UpdateClusterHaResourcesSingleRequest? updateClusterHaResourcesSingleRequest = default(UpdateClusterHaResourcesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterHaResourcesSingleWithHttpInfo(sid, updateClusterHaResourcesSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterHaResourcesSingle Update resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterHaResourcesSingleWithHttpInfo(string sid, UpdateClusterHaResourcesSingleRequest? updateClusterHaResourcesSingleRequest = default(UpdateClusterHaResourcesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->UpdateClusterHaResourcesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + localVarRequestOptions.Data = updateClusterHaResourcesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterHaResourcesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/ha/resources/{sid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterHaResourcesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterHaResourcesSingle Update resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterHaResourcesSingleAsync(string sid, UpdateClusterHaResourcesSingleRequest? updateClusterHaResourcesSingleRequest = default(UpdateClusterHaResourcesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterHaResourcesSingleWithHttpInfoAsync(sid, updateClusterHaResourcesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterHaResourcesSingle Update resource configuration. + /// + /// Thrown when fails to make API call + /// sid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterHaResourcesSingleWithHttpInfoAsync(string sid, UpdateClusterHaResourcesSingleRequest? updateClusterHaResourcesSingleRequest = default(UpdateClusterHaResourcesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'sid' is set + if (sid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'sid' when calling ProxmoxGeneratedApi->UpdateClusterHaResourcesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("sid", ProxmoxSharp.Client.ClientUtils.ParameterToString(sid)); // path parameter + localVarRequestOptions.Data = updateClusterHaResourcesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterHaResourcesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/ha/resources/{sid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterHaResourcesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterHaRulesSingle Update HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterHaRulesSingle(string rule, UpdateClusterHaRulesSingleRequest? updateClusterHaRulesSingleRequest = default(UpdateClusterHaRulesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterHaRulesSingleWithHttpInfo(rule, updateClusterHaRulesSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterHaRulesSingle Update HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterHaRulesSingleWithHttpInfo(string rule, UpdateClusterHaRulesSingleRequest? updateClusterHaRulesSingleRequest = default(UpdateClusterHaRulesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'rule' is set + if (rule == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'rule' when calling ProxmoxGeneratedApi->UpdateClusterHaRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("rule", ProxmoxSharp.Client.ClientUtils.ParameterToString(rule)); // path parameter + localVarRequestOptions.Data = updateClusterHaRulesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterHaRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/ha/rules/{rule}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterHaRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterHaRulesSingle Update HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterHaRulesSingleAsync(string rule, UpdateClusterHaRulesSingleRequest? updateClusterHaRulesSingleRequest = default(UpdateClusterHaRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterHaRulesSingleWithHttpInfoAsync(rule, updateClusterHaRulesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterHaRulesSingle Update HA rule. + /// + /// Thrown when fails to make API call + /// rule + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterHaRulesSingleWithHttpInfoAsync(string rule, UpdateClusterHaRulesSingleRequest? updateClusterHaRulesSingleRequest = default(UpdateClusterHaRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'rule' is set + if (rule == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'rule' when calling ProxmoxGeneratedApi->UpdateClusterHaRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("rule", ProxmoxSharp.Client.ClientUtils.ParameterToString(rule)); // path parameter + localVarRequestOptions.Data = updateClusterHaRulesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterHaRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/ha/rules/{rule}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterHaRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterJobsRealmsyncSingle Update realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterJobsRealmsyncSingle(string id, UpdateClusterJobsRealmsyncSingleRequest? updateClusterJobsRealmsyncSingleRequest = default(UpdateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterJobsRealmsyncSingleWithHttpInfo(id, updateClusterJobsRealmsyncSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterJobsRealmsyncSingle Update realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterJobsRealmsyncSingleWithHttpInfo(string id, UpdateClusterJobsRealmsyncSingleRequest? updateClusterJobsRealmsyncSingleRequest = default(UpdateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterJobsRealmsyncSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterJobsRealmsyncSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterJobsRealmsyncSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/jobs/realm-sync/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterJobsRealmsyncSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterJobsRealmsyncSingle Update realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterJobsRealmsyncSingleAsync(string id, UpdateClusterJobsRealmsyncSingleRequest? updateClusterJobsRealmsyncSingleRequest = default(UpdateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterJobsRealmsyncSingleWithHttpInfoAsync(id, updateClusterJobsRealmsyncSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterJobsRealmsyncSingle Update realm-sync job definition. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterJobsRealmsyncSingleWithHttpInfoAsync(string id, UpdateClusterJobsRealmsyncSingleRequest? updateClusterJobsRealmsyncSingleRequest = default(UpdateClusterJobsRealmsyncSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterJobsRealmsyncSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterJobsRealmsyncSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterJobsRealmsyncSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/jobs/realm-sync/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterJobsRealmsyncSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterMappingDirSingle Update a directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterMappingDirSingle(string id, UpdateClusterMappingDirSingleRequest? updateClusterMappingDirSingleRequest = default(UpdateClusterMappingDirSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterMappingDirSingleWithHttpInfo(id, updateClusterMappingDirSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterMappingDirSingle Update a directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterMappingDirSingleWithHttpInfo(string id, UpdateClusterMappingDirSingleRequest? updateClusterMappingDirSingleRequest = default(UpdateClusterMappingDirSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterMappingDirSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterMappingDirSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterMappingDirSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/mapping/dir/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterMappingDirSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterMappingDirSingle Update a directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterMappingDirSingleAsync(string id, UpdateClusterMappingDirSingleRequest? updateClusterMappingDirSingleRequest = default(UpdateClusterMappingDirSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterMappingDirSingleWithHttpInfoAsync(id, updateClusterMappingDirSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterMappingDirSingle Update a directory mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterMappingDirSingleWithHttpInfoAsync(string id, UpdateClusterMappingDirSingleRequest? updateClusterMappingDirSingleRequest = default(UpdateClusterMappingDirSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterMappingDirSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterMappingDirSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterMappingDirSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/mapping/dir/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterMappingDirSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterMappingPciSingle Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterMappingPciSingle(string id, UpdateClusterMappingPciSingleRequest? updateClusterMappingPciSingleRequest = default(UpdateClusterMappingPciSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterMappingPciSingleWithHttpInfo(id, updateClusterMappingPciSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterMappingPciSingle Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterMappingPciSingleWithHttpInfo(string id, UpdateClusterMappingPciSingleRequest? updateClusterMappingPciSingleRequest = default(UpdateClusterMappingPciSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterMappingPciSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterMappingPciSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterMappingPciSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/mapping/pci/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterMappingPciSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterMappingPciSingle Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterMappingPciSingleAsync(string id, UpdateClusterMappingPciSingleRequest? updateClusterMappingPciSingleRequest = default(UpdateClusterMappingPciSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterMappingPciSingleWithHttpInfoAsync(id, updateClusterMappingPciSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterMappingPciSingle Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterMappingPciSingleWithHttpInfoAsync(string id, UpdateClusterMappingPciSingleRequest? updateClusterMappingPciSingleRequest = default(UpdateClusterMappingPciSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterMappingPciSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterMappingPciSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterMappingPciSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/mapping/pci/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterMappingPciSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterMappingUsbSingle Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterMappingUsbSingle(string id, UpdateClusterMappingUsbSingleRequest? updateClusterMappingUsbSingleRequest = default(UpdateClusterMappingUsbSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterMappingUsbSingleWithHttpInfo(id, updateClusterMappingUsbSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterMappingUsbSingle Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterMappingUsbSingleWithHttpInfo(string id, UpdateClusterMappingUsbSingleRequest? updateClusterMappingUsbSingleRequest = default(UpdateClusterMappingUsbSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterMappingUsbSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterMappingUsbSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterMappingUsbSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/mapping/usb/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterMappingUsbSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterMappingUsbSingle Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterMappingUsbSingleAsync(string id, UpdateClusterMappingUsbSingleRequest? updateClusterMappingUsbSingleRequest = default(UpdateClusterMappingUsbSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterMappingUsbSingleWithHttpInfoAsync(id, updateClusterMappingUsbSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterMappingUsbSingle Update a hardware mapping. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterMappingUsbSingleWithHttpInfoAsync(string id, UpdateClusterMappingUsbSingleRequest? updateClusterMappingUsbSingleRequest = default(UpdateClusterMappingUsbSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterMappingUsbSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterMappingUsbSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterMappingUsbSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/mapping/usb/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterMappingUsbSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterMetricsServerSingle Update metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterMetricsServerSingle(string id, UpdateClusterMetricsServerSingleRequest? updateClusterMetricsServerSingleRequest = default(UpdateClusterMetricsServerSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterMetricsServerSingleWithHttpInfo(id, updateClusterMetricsServerSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterMetricsServerSingle Update metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterMetricsServerSingleWithHttpInfo(string id, UpdateClusterMetricsServerSingleRequest? updateClusterMetricsServerSingleRequest = default(UpdateClusterMetricsServerSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterMetricsServerSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterMetricsServerSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterMetricsServerSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/metrics/server/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterMetricsServerSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterMetricsServerSingle Update metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterMetricsServerSingleAsync(string id, UpdateClusterMetricsServerSingleRequest? updateClusterMetricsServerSingleRequest = default(UpdateClusterMetricsServerSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterMetricsServerSingleWithHttpInfoAsync(id, updateClusterMetricsServerSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterMetricsServerSingle Update metric server configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterMetricsServerSingleWithHttpInfoAsync(string id, UpdateClusterMetricsServerSingleRequest? updateClusterMetricsServerSingleRequest = default(UpdateClusterMetricsServerSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterMetricsServerSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterMetricsServerSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterMetricsServerSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/metrics/server/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterMetricsServerSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsEndpointsGotifySingle Update existing gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterNotificationsEndpointsGotifySingle(string name, UpdateClusterNotificationsEndpointsGotifySingleRequest? updateClusterNotificationsEndpointsGotifySingleRequest = default(UpdateClusterNotificationsEndpointsGotifySingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterNotificationsEndpointsGotifySingleWithHttpInfo(name, updateClusterNotificationsEndpointsGotifySingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsEndpointsGotifySingle Update existing gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterNotificationsEndpointsGotifySingleWithHttpInfo(string name, UpdateClusterNotificationsEndpointsGotifySingleRequest? updateClusterNotificationsEndpointsGotifySingleRequest = default(UpdateClusterNotificationsEndpointsGotifySingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsEndpointsGotifySingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsEndpointsGotifySingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsEndpointsGotifySingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/notifications/endpoints/gotify/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsEndpointsGotifySingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsEndpointsGotifySingle Update existing gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterNotificationsEndpointsGotifySingleAsync(string name, UpdateClusterNotificationsEndpointsGotifySingleRequest? updateClusterNotificationsEndpointsGotifySingleRequest = default(UpdateClusterNotificationsEndpointsGotifySingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(name, updateClusterNotificationsEndpointsGotifySingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsEndpointsGotifySingle Update existing gotify endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterNotificationsEndpointsGotifySingleWithHttpInfoAsync(string name, UpdateClusterNotificationsEndpointsGotifySingleRequest? updateClusterNotificationsEndpointsGotifySingleRequest = default(UpdateClusterNotificationsEndpointsGotifySingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsEndpointsGotifySingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsEndpointsGotifySingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsEndpointsGotifySingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/notifications/endpoints/gotify/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsEndpointsGotifySingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsEndpointsSendmailSingle Update existing sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterNotificationsEndpointsSendmailSingle(string name, UpdateClusterNotificationsEndpointsSendmailSingleRequest? updateClusterNotificationsEndpointsSendmailSingleRequest = default(UpdateClusterNotificationsEndpointsSendmailSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterNotificationsEndpointsSendmailSingleWithHttpInfo(name, updateClusterNotificationsEndpointsSendmailSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsEndpointsSendmailSingle Update existing sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterNotificationsEndpointsSendmailSingleWithHttpInfo(string name, UpdateClusterNotificationsEndpointsSendmailSingleRequest? updateClusterNotificationsEndpointsSendmailSingleRequest = default(UpdateClusterNotificationsEndpointsSendmailSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsEndpointsSendmailSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsEndpointsSendmailSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsEndpointsSendmailSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/notifications/endpoints/sendmail/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsEndpointsSendmailSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsEndpointsSendmailSingle Update existing sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterNotificationsEndpointsSendmailSingleAsync(string name, UpdateClusterNotificationsEndpointsSendmailSingleRequest? updateClusterNotificationsEndpointsSendmailSingleRequest = default(UpdateClusterNotificationsEndpointsSendmailSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(name, updateClusterNotificationsEndpointsSendmailSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsEndpointsSendmailSingle Update existing sendmail endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterNotificationsEndpointsSendmailSingleWithHttpInfoAsync(string name, UpdateClusterNotificationsEndpointsSendmailSingleRequest? updateClusterNotificationsEndpointsSendmailSingleRequest = default(UpdateClusterNotificationsEndpointsSendmailSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsEndpointsSendmailSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsEndpointsSendmailSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsEndpointsSendmailSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/notifications/endpoints/sendmail/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsEndpointsSendmailSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsEndpointsSmtpSingle Update existing smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterNotificationsEndpointsSmtpSingle(string name, UpdateClusterNotificationsEndpointsSmtpSingleRequest? updateClusterNotificationsEndpointsSmtpSingleRequest = default(UpdateClusterNotificationsEndpointsSmtpSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterNotificationsEndpointsSmtpSingleWithHttpInfo(name, updateClusterNotificationsEndpointsSmtpSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsEndpointsSmtpSingle Update existing smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterNotificationsEndpointsSmtpSingleWithHttpInfo(string name, UpdateClusterNotificationsEndpointsSmtpSingleRequest? updateClusterNotificationsEndpointsSmtpSingleRequest = default(UpdateClusterNotificationsEndpointsSmtpSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsEndpointsSmtpSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsEndpointsSmtpSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsEndpointsSmtpSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/notifications/endpoints/smtp/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsEndpointsSmtpSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsEndpointsSmtpSingle Update existing smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterNotificationsEndpointsSmtpSingleAsync(string name, UpdateClusterNotificationsEndpointsSmtpSingleRequest? updateClusterNotificationsEndpointsSmtpSingleRequest = default(UpdateClusterNotificationsEndpointsSmtpSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(name, updateClusterNotificationsEndpointsSmtpSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsEndpointsSmtpSingle Update existing smtp endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterNotificationsEndpointsSmtpSingleWithHttpInfoAsync(string name, UpdateClusterNotificationsEndpointsSmtpSingleRequest? updateClusterNotificationsEndpointsSmtpSingleRequest = default(UpdateClusterNotificationsEndpointsSmtpSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsEndpointsSmtpSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsEndpointsSmtpSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsEndpointsSmtpSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/notifications/endpoints/smtp/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsEndpointsSmtpSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsEndpointsWebhookSingle Update existing webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterNotificationsEndpointsWebhookSingle(string name, UpdateClusterNotificationsEndpointsWebhookSingleRequest? updateClusterNotificationsEndpointsWebhookSingleRequest = default(UpdateClusterNotificationsEndpointsWebhookSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterNotificationsEndpointsWebhookSingleWithHttpInfo(name, updateClusterNotificationsEndpointsWebhookSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsEndpointsWebhookSingle Update existing webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterNotificationsEndpointsWebhookSingleWithHttpInfo(string name, UpdateClusterNotificationsEndpointsWebhookSingleRequest? updateClusterNotificationsEndpointsWebhookSingleRequest = default(UpdateClusterNotificationsEndpointsWebhookSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsEndpointsWebhookSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsEndpointsWebhookSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsEndpointsWebhookSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/notifications/endpoints/webhook/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsEndpointsWebhookSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsEndpointsWebhookSingle Update existing webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterNotificationsEndpointsWebhookSingleAsync(string name, UpdateClusterNotificationsEndpointsWebhookSingleRequest? updateClusterNotificationsEndpointsWebhookSingleRequest = default(UpdateClusterNotificationsEndpointsWebhookSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(name, updateClusterNotificationsEndpointsWebhookSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsEndpointsWebhookSingle Update existing webhook endpoint + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterNotificationsEndpointsWebhookSingleWithHttpInfoAsync(string name, UpdateClusterNotificationsEndpointsWebhookSingleRequest? updateClusterNotificationsEndpointsWebhookSingleRequest = default(UpdateClusterNotificationsEndpointsWebhookSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsEndpointsWebhookSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsEndpointsWebhookSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsEndpointsWebhookSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/notifications/endpoints/webhook/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsEndpointsWebhookSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsMatchersSingle Update existing matcher + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterNotificationsMatchersSingle(string name, UpdateClusterNotificationsMatchersSingleRequest? updateClusterNotificationsMatchersSingleRequest = default(UpdateClusterNotificationsMatchersSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterNotificationsMatchersSingleWithHttpInfo(name, updateClusterNotificationsMatchersSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsMatchersSingle Update existing matcher + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterNotificationsMatchersSingleWithHttpInfo(string name, UpdateClusterNotificationsMatchersSingleRequest? updateClusterNotificationsMatchersSingleRequest = default(UpdateClusterNotificationsMatchersSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsMatchersSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsMatchersSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsMatchersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/notifications/matchers/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsMatchersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterNotificationsMatchersSingle Update existing matcher + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterNotificationsMatchersSingleAsync(string name, UpdateClusterNotificationsMatchersSingleRequest? updateClusterNotificationsMatchersSingleRequest = default(UpdateClusterNotificationsMatchersSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterNotificationsMatchersSingleWithHttpInfoAsync(name, updateClusterNotificationsMatchersSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterNotificationsMatchersSingle Update existing matcher + /// + /// Thrown when fails to make API call + /// name + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterNotificationsMatchersSingleWithHttpInfoAsync(string name, UpdateClusterNotificationsMatchersSingleRequest? updateClusterNotificationsMatchersSingleRequest = default(UpdateClusterNotificationsMatchersSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateClusterNotificationsMatchersSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = updateClusterNotificationsMatchersSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterNotificationsMatchersSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/notifications/matchers/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterNotificationsMatchersSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterOptions Set datacenter options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterOptions(UpdateClusterOptionsRequest? updateClusterOptionsRequest = default(UpdateClusterOptionsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterOptionsWithHttpInfo(updateClusterOptionsRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterOptions Set datacenter options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterOptionsWithHttpInfo(UpdateClusterOptionsRequest? updateClusterOptionsRequest = default(UpdateClusterOptionsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateClusterOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterOptions Set datacenter options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterOptionsAsync(UpdateClusterOptionsRequest? updateClusterOptionsRequest = default(UpdateClusterOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterOptionsWithHttpInfoAsync(updateClusterOptionsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterOptions Set datacenter options. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterOptionsWithHttpInfoAsync(UpdateClusterOptionsRequest? updateClusterOptionsRequest = default(UpdateClusterOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateClusterOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterReplicationSingle Update replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterReplicationSingle(string id, UpdateClusterReplicationSingleRequest? updateClusterReplicationSingleRequest = default(UpdateClusterReplicationSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterReplicationSingleWithHttpInfo(id, updateClusterReplicationSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterReplicationSingle Update replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterReplicationSingleWithHttpInfo(string id, UpdateClusterReplicationSingleRequest? updateClusterReplicationSingleRequest = default(UpdateClusterReplicationSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterReplicationSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterReplicationSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterReplicationSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/replication/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterReplicationSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterReplicationSingle Update replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterReplicationSingleAsync(string id, UpdateClusterReplicationSingleRequest? updateClusterReplicationSingleRequest = default(UpdateClusterReplicationSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterReplicationSingleWithHttpInfoAsync(id, updateClusterReplicationSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterReplicationSingle Update replication job configuration. + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterReplicationSingleWithHttpInfoAsync(string id, UpdateClusterReplicationSingleRequest? updateClusterReplicationSingleRequest = default(UpdateClusterReplicationSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterReplicationSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterReplicationSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterReplicationSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/replication/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterReplicationSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSDN Apply sdn controller changes && reload. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSDN(UpdateClusterSDNRequest? updateClusterSDNRequest = default(UpdateClusterSDNRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSDNWithHttpInfo(updateClusterSDNRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSDN Apply sdn controller changes && reload. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSDNWithHttpInfo(UpdateClusterSDNRequest? updateClusterSDNRequest = default(UpdateClusterSDNRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateClusterSDNRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSDN"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSDN", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSDN Apply sdn controller changes && reload. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSDNAsync(UpdateClusterSDNRequest? updateClusterSDNRequest = default(UpdateClusterSDNRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSDNWithHttpInfoAsync(updateClusterSDNRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSDN Apply sdn controller changes && reload. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSDNWithHttpInfoAsync(UpdateClusterSDNRequest? updateClusterSDNRequest = default(UpdateClusterSDNRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updateClusterSDNRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSDN"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSDN", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSDNController Update sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSDNController(string controller, UpdateClusterSDNControllerRequest? updateClusterSDNControllerRequest = default(UpdateClusterSDNControllerRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSDNControllerWithHttpInfo(controller, updateClusterSDNControllerRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSDNController Update sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSDNControllerWithHttpInfo(string controller, UpdateClusterSDNControllerRequest? updateClusterSDNControllerRequest = default(UpdateClusterSDNControllerRequest?), int operationIndex = 0) + { + // verify the required parameter 'controller' is set + if (controller == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'controller' when calling ProxmoxGeneratedApi->UpdateClusterSDNController"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("controller", ProxmoxSharp.Client.ClientUtils.ParameterToString(controller)); // path parameter + localVarRequestOptions.Data = updateClusterSDNControllerRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSDNController"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/controllers/{controller}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSDNController", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSDNController Update sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSDNControllerAsync(string controller, UpdateClusterSDNControllerRequest? updateClusterSDNControllerRequest = default(UpdateClusterSDNControllerRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSDNControllerWithHttpInfoAsync(controller, updateClusterSDNControllerRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSDNController Update sdn controller object configuration. + /// + /// Thrown when fails to make API call + /// controller + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSDNControllerWithHttpInfoAsync(string controller, UpdateClusterSDNControllerRequest? updateClusterSDNControllerRequest = default(UpdateClusterSDNControllerRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'controller' is set + if (controller == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'controller' when calling ProxmoxGeneratedApi->UpdateClusterSDNController"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("controller", ProxmoxSharp.Client.ClientUtils.ParameterToString(controller)); // path parameter + localVarRequestOptions.Data = updateClusterSDNControllerRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSDNController"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/controllers/{controller}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSDNController", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSDNVnet Update sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSDNVnet(string vnet, UpdateClusterSDNVnetRequest? updateClusterSDNVnetRequest = default(UpdateClusterSDNVnetRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSDNVnetWithHttpInfo(vnet, updateClusterSDNVnetRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSDNVnet Update sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSDNVnetWithHttpInfo(string vnet, UpdateClusterSDNVnetRequest? updateClusterSDNVnetRequest = default(UpdateClusterSDNVnetRequest?), int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSDNVnet"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSDNVnetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSDNVnet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/vnets/{vnet}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSDNVnet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSDNVnet Update sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSDNVnetAsync(string vnet, UpdateClusterSDNVnetRequest? updateClusterSDNVnetRequest = default(UpdateClusterSDNVnetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSDNVnetWithHttpInfoAsync(vnet, updateClusterSDNVnetRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSDNVnet Update sdn vnet object configuration. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSDNVnetWithHttpInfoAsync(string vnet, UpdateClusterSDNVnetRequest? updateClusterSDNVnetRequest = default(UpdateClusterSDNVnetRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSDNVnet"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSDNVnetRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSDNVnet"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/vnets/{vnet}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSDNVnet", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSDNZone Update sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSDNZone(string zone, UpdateClusterSDNZoneRequest? updateClusterSDNZoneRequest = default(UpdateClusterSDNZoneRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSDNZoneWithHttpInfo(zone, updateClusterSDNZoneRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSDNZone Update sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSDNZoneWithHttpInfo(string zone, UpdateClusterSDNZoneRequest? updateClusterSDNZoneRequest = default(UpdateClusterSDNZoneRequest?), int operationIndex = 0) + { + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->UpdateClusterSDNZone"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + localVarRequestOptions.Data = updateClusterSDNZoneRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/zones/{zone}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSDNZone Update sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSDNZoneAsync(string zone, UpdateClusterSDNZoneRequest? updateClusterSDNZoneRequest = default(UpdateClusterSDNZoneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSDNZoneWithHttpInfoAsync(zone, updateClusterSDNZoneRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSDNZone Update sdn zone object configuration. + /// + /// Thrown when fails to make API call + /// zone + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSDNZoneWithHttpInfoAsync(string zone, UpdateClusterSDNZoneRequest? updateClusterSDNZoneRequest = default(UpdateClusterSDNZoneRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'zone' is set + if (zone == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'zone' when calling ProxmoxGeneratedApi->UpdateClusterSDNZone"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("zone", ProxmoxSharp.Client.ClientUtils.ParameterToString(zone)); // path parameter + localVarRequestOptions.Data = updateClusterSDNZoneRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSDNZone"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/zones/{zone}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSDNZone", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnDnsSingle Update sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSdnDnsSingle(string dns, UpdateClusterSdnDnsSingleRequest? updateClusterSdnDnsSingleRequest = default(UpdateClusterSdnDnsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSdnDnsSingleWithHttpInfo(dns, updateClusterSdnDnsSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnDnsSingle Update sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSdnDnsSingleWithHttpInfo(string dns, UpdateClusterSdnDnsSingleRequest? updateClusterSdnDnsSingleRequest = default(UpdateClusterSdnDnsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'dns' is set + if (dns == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'dns' when calling ProxmoxGeneratedApi->UpdateClusterSdnDnsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("dns", ProxmoxSharp.Client.ClientUtils.ParameterToString(dns)); // path parameter + localVarRequestOptions.Data = updateClusterSdnDnsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnDnsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/dns/{dns}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnDnsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnDnsSingle Update sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSdnDnsSingleAsync(string dns, UpdateClusterSdnDnsSingleRequest? updateClusterSdnDnsSingleRequest = default(UpdateClusterSdnDnsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSdnDnsSingleWithHttpInfoAsync(dns, updateClusterSdnDnsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnDnsSingle Update sdn dns object configuration. + /// + /// Thrown when fails to make API call + /// dns + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSdnDnsSingleWithHttpInfoAsync(string dns, UpdateClusterSdnDnsSingleRequest? updateClusterSdnDnsSingleRequest = default(UpdateClusterSdnDnsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'dns' is set + if (dns == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'dns' when calling ProxmoxGeneratedApi->UpdateClusterSdnDnsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("dns", ProxmoxSharp.Client.ClientUtils.ParameterToString(dns)); // path parameter + localVarRequestOptions.Data = updateClusterSdnDnsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnDnsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/dns/{dns}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnDnsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnFabricsFabricSingle Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSdnFabricsFabricSingle(string id, UpdateClusterSdnFabricsFabricSingleRequest? updateClusterSdnFabricsFabricSingleRequest = default(UpdateClusterSdnFabricsFabricSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSdnFabricsFabricSingleWithHttpInfo(id, updateClusterSdnFabricsFabricSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnFabricsFabricSingle Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSdnFabricsFabricSingleWithHttpInfo(string id, UpdateClusterSdnFabricsFabricSingleRequest? updateClusterSdnFabricsFabricSingleRequest = default(UpdateClusterSdnFabricsFabricSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterSdnFabricsFabricSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterSdnFabricsFabricSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnFabricsFabricSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/fabrics/fabric/{id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnFabricsFabricSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnFabricsFabricSingle Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSdnFabricsFabricSingleAsync(string id, UpdateClusterSdnFabricsFabricSingleRequest? updateClusterSdnFabricsFabricSingleRequest = default(UpdateClusterSdnFabricsFabricSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSdnFabricsFabricSingleWithHttpInfoAsync(id, updateClusterSdnFabricsFabricSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnFabricsFabricSingle Update a fabric + /// + /// Thrown when fails to make API call + /// id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSdnFabricsFabricSingleWithHttpInfoAsync(string id, UpdateClusterSdnFabricsFabricSingleRequest? updateClusterSdnFabricsFabricSingleRequest = default(UpdateClusterSdnFabricsFabricSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'id' when calling ProxmoxGeneratedApi->UpdateClusterSdnFabricsFabricSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("id", ProxmoxSharp.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = updateClusterSdnFabricsFabricSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnFabricsFabricSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/fabrics/fabric/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnFabricsFabricSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnFabricsNodeSingleSingle Update a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSdnFabricsNodeSingleSingle(string fabricId, string nodeId, UpdateClusterSdnFabricsNodeSingleSingleRequest? updateClusterSdnFabricsNodeSingleSingleRequest = default(UpdateClusterSdnFabricsNodeSingleSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSdnFabricsNodeSingleSingleWithHttpInfo(fabricId, nodeId, updateClusterSdnFabricsNodeSingleSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnFabricsNodeSingleSingle Update a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSdnFabricsNodeSingleSingleWithHttpInfo(string fabricId, string nodeId, UpdateClusterSdnFabricsNodeSingleSingleRequest? updateClusterSdnFabricsNodeSingleSingleRequest = default(UpdateClusterSdnFabricsNodeSingleSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->UpdateClusterSdnFabricsNodeSingleSingle"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'nodeId' when calling ProxmoxGeneratedApi->UpdateClusterSdnFabricsNodeSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + localVarRequestOptions.PathParameters.Add("node_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(nodeId)); // path parameter + localVarRequestOptions.Data = updateClusterSdnFabricsNodeSingleSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnFabricsNodeSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/fabrics/node/{fabric_id}/{node_id}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnFabricsNodeSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnFabricsNodeSingleSingle Update a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSdnFabricsNodeSingleSingleAsync(string fabricId, string nodeId, UpdateClusterSdnFabricsNodeSingleSingleRequest? updateClusterSdnFabricsNodeSingleSingleRequest = default(UpdateClusterSdnFabricsNodeSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(fabricId, nodeId, updateClusterSdnFabricsNodeSingleSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnFabricsNodeSingleSingle Update a node + /// + /// Thrown when fails to make API call + /// fabric_id + /// node_id + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSdnFabricsNodeSingleSingleWithHttpInfoAsync(string fabricId, string nodeId, UpdateClusterSdnFabricsNodeSingleSingleRequest? updateClusterSdnFabricsNodeSingleSingleRequest = default(UpdateClusterSdnFabricsNodeSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'fabricId' is set + if (fabricId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'fabricId' when calling ProxmoxGeneratedApi->UpdateClusterSdnFabricsNodeSingleSingle"); + } + + // verify the required parameter 'nodeId' is set + if (nodeId == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'nodeId' when calling ProxmoxGeneratedApi->UpdateClusterSdnFabricsNodeSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("fabric_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(fabricId)); // path parameter + localVarRequestOptions.PathParameters.Add("node_id", ProxmoxSharp.Client.ClientUtils.ParameterToString(nodeId)); // path parameter + localVarRequestOptions.Data = updateClusterSdnFabricsNodeSingleSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnFabricsNodeSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/fabrics/node/{fabric_id}/{node_id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnFabricsNodeSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnIpamsSingle Update sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSdnIpamsSingle(string ipam, UpdateClusterSdnIpamsSingleRequest? updateClusterSdnIpamsSingleRequest = default(UpdateClusterSdnIpamsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSdnIpamsSingleWithHttpInfo(ipam, updateClusterSdnIpamsSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnIpamsSingle Update sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSdnIpamsSingleWithHttpInfo(string ipam, UpdateClusterSdnIpamsSingleRequest? updateClusterSdnIpamsSingleRequest = default(UpdateClusterSdnIpamsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'ipam' is set + if (ipam == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'ipam' when calling ProxmoxGeneratedApi->UpdateClusterSdnIpamsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("ipam", ProxmoxSharp.Client.ClientUtils.ParameterToString(ipam)); // path parameter + localVarRequestOptions.Data = updateClusterSdnIpamsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnIpamsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/ipams/{ipam}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnIpamsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnIpamsSingle Update sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSdnIpamsSingleAsync(string ipam, UpdateClusterSdnIpamsSingleRequest? updateClusterSdnIpamsSingleRequest = default(UpdateClusterSdnIpamsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSdnIpamsSingleWithHttpInfoAsync(ipam, updateClusterSdnIpamsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnIpamsSingle Update sdn ipam object configuration. + /// + /// Thrown when fails to make API call + /// ipam + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSdnIpamsSingleWithHttpInfoAsync(string ipam, UpdateClusterSdnIpamsSingleRequest? updateClusterSdnIpamsSingleRequest = default(UpdateClusterSdnIpamsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'ipam' is set + if (ipam == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'ipam' when calling ProxmoxGeneratedApi->UpdateClusterSdnIpamsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("ipam", ProxmoxSharp.Client.ClientUtils.ParameterToString(ipam)); // path parameter + localVarRequestOptions.Data = updateClusterSdnIpamsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnIpamsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/ipams/{ipam}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnIpamsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnVnetsSingleFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSdnVnetsSingleFirewallOptions(string vnet, UpdateClusterSdnVnetsSingleFirewallOptionsRequest? updateClusterSdnVnetsSingleFirewallOptionsRequest = default(UpdateClusterSdnVnetsSingleFirewallOptionsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSdnVnetsSingleFirewallOptionsWithHttpInfo(vnet, updateClusterSdnVnetsSingleFirewallOptionsRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnVnetsSingleFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSdnVnetsSingleFirewallOptionsWithHttpInfo(string vnet, UpdateClusterSdnVnetsSingleFirewallOptionsRequest? updateClusterSdnVnetsSingleFirewallOptionsRequest = default(UpdateClusterSdnVnetsSingleFirewallOptionsRequest?), int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleFirewallOptions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSdnVnetsSingleFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnVnetsSingleFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/vnets/{vnet}/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnVnetsSingleFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnVnetsSingleFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSdnVnetsSingleFirewallOptionsAsync(string vnet, UpdateClusterSdnVnetsSingleFirewallOptionsRequest? updateClusterSdnVnetsSingleFirewallOptionsRequest = default(UpdateClusterSdnVnetsSingleFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSdnVnetsSingleFirewallOptionsWithHttpInfoAsync(vnet, updateClusterSdnVnetsSingleFirewallOptionsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnVnetsSingleFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSdnVnetsSingleFirewallOptionsWithHttpInfoAsync(string vnet, UpdateClusterSdnVnetsSingleFirewallOptionsRequest? updateClusterSdnVnetsSingleFirewallOptionsRequest = default(UpdateClusterSdnVnetsSingleFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleFirewallOptions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSdnVnetsSingleFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnVnetsSingleFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/vnets/{vnet}/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnVnetsSingleFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnVnetsSingleFirewallRulesSingle Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSdnVnetsSingleFirewallRulesSingle(int pos, string vnet, UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest? updateClusterSdnVnetsSingleFirewallRulesSingleRequest = default(UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(pos, vnet, updateClusterSdnVnetsSingleFirewallRulesSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnVnetsSingleFirewallRulesSingle Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfo(int pos, string vnet, UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest? updateClusterSdnVnetsSingleFirewallRulesSingleRequest = default(UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleFirewallRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSdnVnetsSingleFirewallRulesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnVnetsSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnVnetsSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnVnetsSingleFirewallRulesSingle Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSdnVnetsSingleFirewallRulesSingleAsync(int pos, string vnet, UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest? updateClusterSdnVnetsSingleFirewallRulesSingleRequest = default(UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(pos, vnet, updateClusterSdnVnetsSingleFirewallRulesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnVnetsSingleFirewallRulesSingle Modify rule data. + /// + /// Thrown when fails to make API call + /// pos + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSdnVnetsSingleFirewallRulesSingleWithHttpInfoAsync(int pos, string vnet, UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest? updateClusterSdnVnetsSingleFirewallRulesSingleRequest = default(UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleFirewallRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSdnVnetsSingleFirewallRulesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnVnetsSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnVnetsSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnVnetsSingleIps Update IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSdnVnetsSingleIps(string vnet, UpdateClusterSdnVnetsSingleIpsRequest? updateClusterSdnVnetsSingleIpsRequest = default(UpdateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSdnVnetsSingleIpsWithHttpInfo(vnet, updateClusterSdnVnetsSingleIpsRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnVnetsSingleIps Update IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSdnVnetsSingleIpsWithHttpInfo(string vnet, UpdateClusterSdnVnetsSingleIpsRequest? updateClusterSdnVnetsSingleIpsRequest = default(UpdateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleIps"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSdnVnetsSingleIpsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnVnetsSingleIps"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/vnets/{vnet}/ips", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnVnetsSingleIps", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnVnetsSingleIps Update IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSdnVnetsSingleIpsAsync(string vnet, UpdateClusterSdnVnetsSingleIpsRequest? updateClusterSdnVnetsSingleIpsRequest = default(UpdateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSdnVnetsSingleIpsWithHttpInfoAsync(vnet, updateClusterSdnVnetsSingleIpsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnVnetsSingleIps Update IP Mapping in a VNet + /// + /// Thrown when fails to make API call + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSdnVnetsSingleIpsWithHttpInfoAsync(string vnet, UpdateClusterSdnVnetsSingleIpsRequest? updateClusterSdnVnetsSingleIpsRequest = default(UpdateClusterSdnVnetsSingleIpsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleIps"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSdnVnetsSingleIpsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnVnetsSingleIps"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/vnets/{vnet}/ips", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnVnetsSingleIps", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnVnetsSingleSubnetsSingle Update sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateClusterSdnVnetsSingleSubnetsSingle(string subnet, string vnet, UpdateClusterSdnVnetsSingleSubnetsSingleRequest? updateClusterSdnVnetsSingleSubnetsSingleRequest = default(UpdateClusterSdnVnetsSingleSubnetsSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(subnet, vnet, updateClusterSdnVnetsSingleSubnetsSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnVnetsSingleSubnetsSingle Update sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateClusterSdnVnetsSingleSubnetsSingleWithHttpInfo(string subnet, string vnet, UpdateClusterSdnVnetsSingleSubnetsSingleRequest? updateClusterSdnVnetsSingleSubnetsSingleRequest = default(UpdateClusterSdnVnetsSingleSubnetsSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'subnet' is set + if (subnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'subnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleSubnetsSingle"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleSubnetsSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("subnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(subnet)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSdnVnetsSingleSubnetsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnVnetsSingleSubnetsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/cluster/sdn/vnets/{vnet}/subnets/{subnet}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnVnetsSingleSubnetsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateClusterSdnVnetsSingleSubnetsSingle Update sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateClusterSdnVnetsSingleSubnetsSingleAsync(string subnet, string vnet, UpdateClusterSdnVnetsSingleSubnetsSingleRequest? updateClusterSdnVnetsSingleSubnetsSingleRequest = default(UpdateClusterSdnVnetsSingleSubnetsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(subnet, vnet, updateClusterSdnVnetsSingleSubnetsSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateClusterSdnVnetsSingleSubnetsSingle Update sdn subnet object configuration. + /// + /// Thrown when fails to make API call + /// subnet + /// vnet + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateClusterSdnVnetsSingleSubnetsSingleWithHttpInfoAsync(string subnet, string vnet, UpdateClusterSdnVnetsSingleSubnetsSingleRequest? updateClusterSdnVnetsSingleSubnetsSingleRequest = default(UpdateClusterSdnVnetsSingleSubnetsSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'subnet' is set + if (subnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'subnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleSubnetsSingle"); + } + + // verify the required parameter 'vnet' is set + if (vnet == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'vnet' when calling ProxmoxGeneratedApi->UpdateClusterSdnVnetsSingleSubnetsSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("subnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(subnet)); // path parameter + localVarRequestOptions.PathParameters.Add("vnet", ProxmoxSharp.Client.ClientUtils.ParameterToString(vnet)); // path parameter + localVarRequestOptions.Data = updateClusterSdnVnetsSingleSubnetsSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateClusterSdnVnetsSingleSubnetsSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/cluster/sdn/vnets/{vnet}/subnets/{subnet}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateClusterSdnVnetsSingleSubnetsSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodeFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodeFirewallOptions(string node, UpdateNodeFirewallOptionsRequest? updateNodeFirewallOptionsRequest = default(UpdateNodeFirewallOptionsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodeFirewallOptionsWithHttpInfo(node, updateNodeFirewallOptionsRequest); + return localVarResponse.Data; + } + + /// + /// updateNodeFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodeFirewallOptionsWithHttpInfo(string node, UpdateNodeFirewallOptionsRequest? updateNodeFirewallOptionsRequest = default(UpdateNodeFirewallOptionsRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodeFirewallOptions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodeFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodeFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodeFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodeFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodeFirewallOptionsAsync(string node, UpdateNodeFirewallOptionsRequest? updateNodeFirewallOptionsRequest = default(UpdateNodeFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodeFirewallOptionsWithHttpInfoAsync(node, updateNodeFirewallOptionsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodeFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodeFirewallOptionsWithHttpInfoAsync(string node, UpdateNodeFirewallOptionsRequest? updateNodeFirewallOptionsRequest = default(UpdateNodeFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodeFirewallOptions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodeFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodeFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodeFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodeFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodeFirewallRule(string node, int pos, UpdateNodeFirewallRuleRequest? updateNodeFirewallRuleRequest = default(UpdateNodeFirewallRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodeFirewallRuleWithHttpInfo(node, pos, updateNodeFirewallRuleRequest); + return localVarResponse.Data; + } + + /// + /// updateNodeFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodeFirewallRuleWithHttpInfo(string node, int pos, UpdateNodeFirewallRuleRequest? updateNodeFirewallRuleRequest = default(UpdateNodeFirewallRuleRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodeFirewallRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.Data = updateNodeFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodeFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodeFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodeFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodeFirewallRuleAsync(string node, int pos, UpdateNodeFirewallRuleRequest? updateNodeFirewallRuleRequest = default(UpdateNodeFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodeFirewallRuleWithHttpInfoAsync(node, pos, updateNodeFirewallRuleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodeFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodeFirewallRuleWithHttpInfoAsync(string node, int pos, UpdateNodeFirewallRuleRequest? updateNodeFirewallRuleRequest = default(UpdateNodeFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodeFirewallRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.Data = updateNodeFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodeFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodeFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleAptRepositories Add a standard repository to the configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleAptRepositories(string node, UpdateNodesSingleAptRepositoriesRequest? updateNodesSingleAptRepositoriesRequest = default(UpdateNodesSingleAptRepositoriesRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleAptRepositoriesWithHttpInfo(node, updateNodesSingleAptRepositoriesRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleAptRepositories Add a standard repository to the configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleAptRepositoriesWithHttpInfo(string node, UpdateNodesSingleAptRepositoriesRequest? updateNodesSingleAptRepositoriesRequest = default(UpdateNodesSingleAptRepositoriesRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleAptRepositories"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleAptRepositoriesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleAptRepositories"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/apt/repositories", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleAptRepositories", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleAptRepositories Add a standard repository to the configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleAptRepositoriesAsync(string node, UpdateNodesSingleAptRepositoriesRequest? updateNodesSingleAptRepositoriesRequest = default(UpdateNodesSingleAptRepositoriesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleAptRepositoriesWithHttpInfoAsync(node, updateNodesSingleAptRepositoriesRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleAptRepositories Add a standard repository to the configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleAptRepositoriesWithHttpInfoAsync(string node, UpdateNodesSingleAptRepositoriesRequest? updateNodesSingleAptRepositoriesRequest = default(UpdateNodesSingleAptRepositoriesRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleAptRepositories"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleAptRepositoriesRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleAptRepositories"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/apt/repositories", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleAptRepositories", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleCephPoolSingle Change POOL settings + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleCephPoolSingle(string name, string node, UpdateNodesSingleCephPoolSingleRequest? updateNodesSingleCephPoolSingleRequest = default(UpdateNodesSingleCephPoolSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleCephPoolSingleWithHttpInfo(name, node, updateNodesSingleCephPoolSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleCephPoolSingle Change POOL settings + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleCephPoolSingleWithHttpInfo(string name, string node, UpdateNodesSingleCephPoolSingleRequest? updateNodesSingleCephPoolSingleRequest = default(UpdateNodesSingleCephPoolSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateNodesSingleCephPoolSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleCephPoolSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleCephPoolSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleCephPoolSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/ceph/pool/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleCephPoolSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleCephPoolSingle Change POOL settings + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleCephPoolSingleAsync(string name, string node, UpdateNodesSingleCephPoolSingleRequest? updateNodesSingleCephPoolSingleRequest = default(UpdateNodesSingleCephPoolSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleCephPoolSingleWithHttpInfoAsync(name, node, updateNodesSingleCephPoolSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleCephPoolSingle Change POOL settings + /// + /// Thrown when fails to make API call + /// name + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleCephPoolSingleWithHttpInfoAsync(string name, string node, UpdateNodesSingleCephPoolSingleRequest? updateNodesSingleCephPoolSingleRequest = default(UpdateNodesSingleCephPoolSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateNodesSingleCephPoolSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleCephPoolSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleCephPoolSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleCephPoolSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/ceph/pool/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleCephPoolSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleCertificatesAcmeCertificate Renew existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleCertificatesAcmeCertificate(string node, UpdateNodesSingleCertificatesAcmeCertificateRequest? updateNodesSingleCertificatesAcmeCertificateRequest = default(UpdateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleCertificatesAcmeCertificateWithHttpInfo(node, updateNodesSingleCertificatesAcmeCertificateRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleCertificatesAcmeCertificate Renew existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleCertificatesAcmeCertificateWithHttpInfo(string node, UpdateNodesSingleCertificatesAcmeCertificateRequest? updateNodesSingleCertificatesAcmeCertificateRequest = default(UpdateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleCertificatesAcmeCertificate"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleCertificatesAcmeCertificateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleCertificatesAcmeCertificate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/certificates/acme/certificate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleCertificatesAcmeCertificate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleCertificatesAcmeCertificate Renew existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleCertificatesAcmeCertificateAsync(string node, UpdateNodesSingleCertificatesAcmeCertificateRequest? updateNodesSingleCertificatesAcmeCertificateRequest = default(UpdateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(node, updateNodesSingleCertificatesAcmeCertificateRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleCertificatesAcmeCertificate Renew existing certificate from CA. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleCertificatesAcmeCertificateWithHttpInfoAsync(string node, UpdateNodesSingleCertificatesAcmeCertificateRequest? updateNodesSingleCertificatesAcmeCertificateRequest = default(UpdateNodesSingleCertificatesAcmeCertificateRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleCertificatesAcmeCertificate"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleCertificatesAcmeCertificateRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleCertificatesAcmeCertificate"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/certificates/acme/certificate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleCertificatesAcmeCertificate", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleConfig Set node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleConfig(string node, UpdateNodesSingleConfigRequest? updateNodesSingleConfigRequest = default(UpdateNodesSingleConfigRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleConfigWithHttpInfo(node, updateNodesSingleConfigRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleConfig Set node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleConfigWithHttpInfo(string node, UpdateNodesSingleConfigRequest? updateNodesSingleConfigRequest = default(UpdateNodesSingleConfigRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleConfig Set node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleConfigAsync(string node, UpdateNodesSingleConfigRequest? updateNodesSingleConfigRequest = default(UpdateNodesSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleConfigWithHttpInfoAsync(node, updateNodesSingleConfigRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleConfig Set node configuration options. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleConfigWithHttpInfoAsync(string node, UpdateNodesSingleConfigRequest? updateNodesSingleConfigRequest = default(UpdateNodesSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleDisksWipedisk Wipe a disk or partition. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleDisksWipedisk(string node, UpdateNodesSingleDisksWipediskRequest? updateNodesSingleDisksWipediskRequest = default(UpdateNodesSingleDisksWipediskRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleDisksWipediskWithHttpInfo(node, updateNodesSingleDisksWipediskRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleDisksWipedisk Wipe a disk or partition. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleDisksWipediskWithHttpInfo(string node, UpdateNodesSingleDisksWipediskRequest? updateNodesSingleDisksWipediskRequest = default(UpdateNodesSingleDisksWipediskRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleDisksWipedisk"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleDisksWipediskRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleDisksWipedisk"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/disks/wipedisk", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleDisksWipedisk", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleDisksWipedisk Wipe a disk or partition. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleDisksWipediskAsync(string node, UpdateNodesSingleDisksWipediskRequest? updateNodesSingleDisksWipediskRequest = default(UpdateNodesSingleDisksWipediskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleDisksWipediskWithHttpInfoAsync(node, updateNodesSingleDisksWipediskRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleDisksWipedisk Wipe a disk or partition. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleDisksWipediskWithHttpInfoAsync(string node, UpdateNodesSingleDisksWipediskRequest? updateNodesSingleDisksWipediskRequest = default(UpdateNodesSingleDisksWipediskRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleDisksWipedisk"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleDisksWipediskRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleDisksWipedisk"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/disks/wipedisk", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleDisksWipedisk", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleDns Write DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleDns(string node, UpdateNodesSingleDnsRequest? updateNodesSingleDnsRequest = default(UpdateNodesSingleDnsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleDnsWithHttpInfo(node, updateNodesSingleDnsRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleDns Write DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleDnsWithHttpInfo(string node, UpdateNodesSingleDnsRequest? updateNodesSingleDnsRequest = default(UpdateNodesSingleDnsRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleDns"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleDnsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleDns"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/dns", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleDns", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleDns Write DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleDnsAsync(string node, UpdateNodesSingleDnsRequest? updateNodesSingleDnsRequest = default(UpdateNodesSingleDnsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleDnsWithHttpInfoAsync(node, updateNodesSingleDnsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleDns Write DNS settings. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleDnsWithHttpInfoAsync(string node, UpdateNodesSingleDnsRequest? updateNodesSingleDnsRequest = default(UpdateNodesSingleDnsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleDns"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleDnsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleDns"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/dns", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleDns", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleConfig Set container options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleLxcSingleConfig(string node, int vmid, UpdateNodesSingleLxcSingleConfigRequest? updateNodesSingleLxcSingleConfigRequest = default(UpdateNodesSingleLxcSingleConfigRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleLxcSingleConfigWithHttpInfo(node, vmid, updateNodesSingleLxcSingleConfigRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleConfig Set container options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleLxcSingleConfigWithHttpInfo(string node, int vmid, UpdateNodesSingleLxcSingleConfigRequest? updateNodesSingleLxcSingleConfigRequest = default(UpdateNodesSingleLxcSingleConfigRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/lxc/{vmid}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleConfig Set container options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleLxcSingleConfigAsync(string node, int vmid, UpdateNodesSingleLxcSingleConfigRequest? updateNodesSingleLxcSingleConfigRequest = default(UpdateNodesSingleLxcSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleLxcSingleConfigWithHttpInfoAsync(node, vmid, updateNodesSingleLxcSingleConfigRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleConfig Set container options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleConfigWithHttpInfoAsync(string node, int vmid, UpdateNodesSingleLxcSingleConfigRequest? updateNodesSingleLxcSingleConfigRequest = default(UpdateNodesSingleLxcSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/lxc/{vmid}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleLxcSingleFirewallAliasesSingle(string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest? updateNodesSingleLxcSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(name, node, vmid, updateNodesSingleLxcSingleFirewallAliasesSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest? updateNodesSingleLxcSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleFirewallAliasesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/lxc/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleLxcSingleFirewallAliasesSingleAsync(string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest? updateNodesSingleLxcSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(name, node, vmid, updateNodesSingleLxcSingleFirewallAliasesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest? updateNodesSingleLxcSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleFirewallAliasesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/lxc/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleFirewallIpsetSingleSingle Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle(string cidr, string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest? updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest = default(UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(cidr, name, node, vmid, updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleFirewallIpsetSingleSingle Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfo(string cidr, string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest? updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest = default(UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleFirewallIpsetSingleSingle Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleAsync(string cidr, string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest? updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest = default(UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(cidr, name, node, vmid, updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleFirewallIpsetSingleSingle Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleWithHttpInfoAsync(string cidr, string name, string node, int vmid, UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest? updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest = default(UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleFirewallIpsetSingleSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleLxcSingleFirewallOptions(string node, int vmid, UpdateNodesSingleLxcSingleFirewallOptionsRequest? updateNodesSingleLxcSingleFirewallOptionsRequest = default(UpdateNodesSingleLxcSingleFirewallOptionsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleLxcSingleFirewallOptionsWithHttpInfo(node, vmid, updateNodesSingleLxcSingleFirewallOptionsRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleLxcSingleFirewallOptionsWithHttpInfo(string node, int vmid, UpdateNodesSingleLxcSingleFirewallOptionsRequest? updateNodesSingleLxcSingleFirewallOptionsRequest = default(UpdateNodesSingleLxcSingleFirewallOptionsRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallOptions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/lxc/{vmid}/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleLxcSingleFirewallOptionsAsync(string node, int vmid, UpdateNodesSingleLxcSingleFirewallOptionsRequest? updateNodesSingleLxcSingleFirewallOptionsRequest = default(UpdateNodesSingleLxcSingleFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleLxcSingleFirewallOptionsWithHttpInfoAsync(node, vmid, updateNodesSingleLxcSingleFirewallOptionsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleFirewallOptionsWithHttpInfoAsync(string node, int vmid, UpdateNodesSingleLxcSingleFirewallOptionsRequest? updateNodesSingleLxcSingleFirewallOptionsRequest = default(UpdateNodesSingleLxcSingleFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallOptions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/lxc/{vmid}/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleFirewallRulesSingle Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleLxcSingleFirewallRulesSingle(string node, int pos, int vmid, UpdateNodesSingleLxcSingleFirewallRulesSingleRequest? updateNodesSingleLxcSingleFirewallRulesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallRulesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(node, pos, vmid, updateNodesSingleLxcSingleFirewallRulesSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleFirewallRulesSingle Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleLxcSingleFirewallRulesSingleWithHttpInfo(string node, int pos, int vmid, UpdateNodesSingleLxcSingleFirewallRulesSingleRequest? updateNodesSingleLxcSingleFirewallRulesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallRulesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallRulesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleFirewallRulesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/lxc/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleFirewallRulesSingle Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleLxcSingleFirewallRulesSingleAsync(string node, int pos, int vmid, UpdateNodesSingleLxcSingleFirewallRulesSingleRequest? updateNodesSingleLxcSingleFirewallRulesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(node, pos, vmid, updateNodesSingleLxcSingleFirewallRulesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleFirewallRulesSingle Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleFirewallRulesSingleWithHttpInfoAsync(string node, int pos, int vmid, UpdateNodesSingleLxcSingleFirewallRulesSingleRequest? updateNodesSingleLxcSingleFirewallRulesSingleRequest = default(UpdateNodesSingleLxcSingleFirewallRulesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleFirewallRulesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleFirewallRulesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleFirewallRulesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/lxc/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleFirewallRulesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleResize Resize a container mount point. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateNodesSingleQemuSingleMovedisk200Response + public CreateNodesSingleQemuSingleMovedisk200Response UpdateNodesSingleLxcSingleResize(string node, int vmid, UpdateNodesSingleLxcSingleResizeRequest? updateNodesSingleLxcSingleResizeRequest = default(UpdateNodesSingleLxcSingleResizeRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleLxcSingleResizeWithHttpInfo(node, vmid, updateNodesSingleLxcSingleResizeRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleResize Resize a container mount point. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateNodesSingleQemuSingleMovedisk200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleLxcSingleResizeWithHttpInfo(string node, int vmid, UpdateNodesSingleLxcSingleResizeRequest? updateNodesSingleLxcSingleResizeRequest = default(UpdateNodesSingleLxcSingleResizeRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleResize"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleResizeRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleResize"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/lxc/{vmid}/resize", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleResize", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleResize Resize a container mount point. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateNodesSingleQemuSingleMovedisk200Response + public async System.Threading.Tasks.Task UpdateNodesSingleLxcSingleResizeAsync(string node, int vmid, UpdateNodesSingleLxcSingleResizeRequest? updateNodesSingleLxcSingleResizeRequest = default(UpdateNodesSingleLxcSingleResizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleLxcSingleResizeWithHttpInfoAsync(node, vmid, updateNodesSingleLxcSingleResizeRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleResize Resize a container mount point. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateNodesSingleQemuSingleMovedisk200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleResizeWithHttpInfoAsync(string node, int vmid, UpdateNodesSingleLxcSingleResizeRequest? updateNodesSingleLxcSingleResizeRequest = default(UpdateNodesSingleLxcSingleResizeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleResize"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleResizeRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleResize"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/lxc/{vmid}/resize", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleResize", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleSnapshotSingleConfig Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleLxcSingleSnapshotSingleConfig(string node, string snapname, int vmid, UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest? updateNodesSingleLxcSingleSnapshotSingleConfigRequest = default(UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfo(node, snapname, vmid, updateNodesSingleLxcSingleSnapshotSingleConfigRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleSnapshotSingleConfig Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfo(string node, string snapname, int vmid, UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest? updateNodesSingleLxcSingleSnapshotSingleConfigRequest = default(UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleSnapshotSingleConfig"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleSnapshotSingleConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleSnapshotSingleConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleSnapshotSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleSnapshotSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleLxcSingleSnapshotSingleConfig Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleLxcSingleSnapshotSingleConfigAsync(string node, string snapname, int vmid, UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest? updateNodesSingleLxcSingleSnapshotSingleConfigRequest = default(UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfoAsync(node, snapname, vmid, updateNodesSingleLxcSingleSnapshotSingleConfigRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleLxcSingleSnapshotSingleConfig Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleLxcSingleSnapshotSingleConfigWithHttpInfoAsync(string node, string snapname, int vmid, UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest? updateNodesSingleLxcSingleSnapshotSingleConfigRequest = default(UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleSnapshotSingleConfig"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->UpdateNodesSingleLxcSingleSnapshotSingleConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleLxcSingleSnapshotSingleConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleLxcSingleSnapshotSingleConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleLxcSingleSnapshotSingleConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleNetwork Reload network configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleNetwork(string node, UpdateNodesSingleNetworkRequest? updateNodesSingleNetworkRequest = default(UpdateNodesSingleNetworkRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleNetworkWithHttpInfo(node, updateNodesSingleNetworkRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleNetwork Reload network configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleNetworkWithHttpInfo(string node, UpdateNodesSingleNetworkRequest? updateNodesSingleNetworkRequest = default(UpdateNodesSingleNetworkRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleNetwork"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleNetworkRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleNetwork"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/network", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleNetwork", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleNetwork Reload network configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleNetworkAsync(string node, UpdateNodesSingleNetworkRequest? updateNodesSingleNetworkRequest = default(UpdateNodesSingleNetworkRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleNetworkWithHttpInfoAsync(node, updateNodesSingleNetworkRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleNetwork Reload network configuration + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleNetworkWithHttpInfoAsync(string node, UpdateNodesSingleNetworkRequest? updateNodesSingleNetworkRequest = default(UpdateNodesSingleNetworkRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleNetwork"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleNetworkRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleNetwork"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/network", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleNetwork", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleNetworkSingle Update network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleNetworkSingle(string iface, string node, UpdateNodesSingleNetworkSingleRequest? updateNodesSingleNetworkSingleRequest = default(UpdateNodesSingleNetworkSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleNetworkSingleWithHttpInfo(iface, node, updateNodesSingleNetworkSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleNetworkSingle Update network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleNetworkSingleWithHttpInfo(string iface, string node, UpdateNodesSingleNetworkSingleRequest? updateNodesSingleNetworkSingleRequest = default(UpdateNodesSingleNetworkSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'iface' is set + if (iface == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'iface' when calling ProxmoxGeneratedApi->UpdateNodesSingleNetworkSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleNetworkSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("iface", ProxmoxSharp.Client.ClientUtils.ParameterToString(iface)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleNetworkSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleNetworkSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/network/{iface}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleNetworkSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleNetworkSingle Update network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleNetworkSingleAsync(string iface, string node, UpdateNodesSingleNetworkSingleRequest? updateNodesSingleNetworkSingleRequest = default(UpdateNodesSingleNetworkSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleNetworkSingleWithHttpInfoAsync(iface, node, updateNodesSingleNetworkSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleNetworkSingle Update network device configuration + /// + /// Thrown when fails to make API call + /// iface + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleNetworkSingleWithHttpInfoAsync(string iface, string node, UpdateNodesSingleNetworkSingleRequest? updateNodesSingleNetworkSingleRequest = default(UpdateNodesSingleNetworkSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'iface' is set + if (iface == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'iface' when calling ProxmoxGeneratedApi->UpdateNodesSingleNetworkSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleNetworkSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("iface", ProxmoxSharp.Client.ClientUtils.ParameterToString(iface)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleNetworkSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleNetworkSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/network/{iface}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleNetworkSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleQemuSingleCloudinit Regenerate and change cloudinit config drive. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleQemuSingleCloudinit(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleQemuSingleCloudinitWithHttpInfo(node, vmid, body); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleQemuSingleCloudinit Regenerate and change cloudinit config drive. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleQemuSingleCloudinitWithHttpInfo(string node, int vmid, Object? body = default(Object?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleQemuSingleCloudinit"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleQemuSingleCloudinit"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/cloudinit", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleQemuSingleCloudinit", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleQemuSingleCloudinit Regenerate and change cloudinit config drive. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleQemuSingleCloudinitAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleQemuSingleCloudinitWithHttpInfoAsync(node, vmid, body, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleQemuSingleCloudinit Regenerate and change cloudinit config drive. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleQemuSingleCloudinitWithHttpInfoAsync(string node, int vmid, Object? body = default(Object?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleQemuSingleCloudinit"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = body; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleQemuSingleCloudinit"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/cloudinit", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleQemuSingleCloudinit", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleQemuSingleFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleQemuSingleFirewallAliasesSingle(string name, string node, int vmid, UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest? updateNodesSingleQemuSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(name, node, vmid, updateNodesSingleQemuSingleFirewallAliasesSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleQemuSingleFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfo(string name, string node, int vmid, UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest? updateNodesSingleQemuSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateNodesSingleQemuSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleQemuSingleFirewallAliasesSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleQemuSingleFirewallAliasesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleQemuSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleQemuSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleQemuSingleFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleQemuSingleFirewallAliasesSingleAsync(string name, string node, int vmid, UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest? updateNodesSingleQemuSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(name, node, vmid, updateNodesSingleQemuSingleFirewallAliasesSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleQemuSingleFirewallAliasesSingle Update IP or Network alias. + /// + /// Thrown when fails to make API call + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleQemuSingleFirewallAliasesSingleWithHttpInfoAsync(string name, string node, int vmid, UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest? updateNodesSingleQemuSingleFirewallAliasesSingleRequest = default(UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateNodesSingleQemuSingleFirewallAliasesSingle"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleQemuSingleFirewallAliasesSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleQemuSingleFirewallAliasesSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleQemuSingleFirewallAliasesSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/firewall/aliases/{name}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleQemuSingleFirewallAliasesSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleQemuSingleSendkey Send key event to virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleQemuSingleSendkey(string node, int vmid, UpdateNodesSingleQemuSingleSendkeyRequest? updateNodesSingleQemuSingleSendkeyRequest = default(UpdateNodesSingleQemuSingleSendkeyRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleQemuSingleSendkeyWithHttpInfo(node, vmid, updateNodesSingleQemuSingleSendkeyRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleQemuSingleSendkey Send key event to virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleQemuSingleSendkeyWithHttpInfo(string node, int vmid, UpdateNodesSingleQemuSingleSendkeyRequest? updateNodesSingleQemuSingleSendkeyRequest = default(UpdateNodesSingleQemuSingleSendkeyRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleQemuSingleSendkey"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleQemuSingleSendkeyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleQemuSingleSendkey"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/sendkey", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleQemuSingleSendkey", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleQemuSingleSendkey Send key event to virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleQemuSingleSendkeyAsync(string node, int vmid, UpdateNodesSingleQemuSingleSendkeyRequest? updateNodesSingleQemuSingleSendkeyRequest = default(UpdateNodesSingleQemuSingleSendkeyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleQemuSingleSendkeyWithHttpInfoAsync(node, vmid, updateNodesSingleQemuSingleSendkeyRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleQemuSingleSendkey Send key event to virtual machine. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleQemuSingleSendkeyWithHttpInfoAsync(string node, int vmid, UpdateNodesSingleQemuSingleSendkeyRequest? updateNodesSingleQemuSingleSendkeyRequest = default(UpdateNodesSingleQemuSingleSendkeyRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleQemuSingleSendkey"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateNodesSingleQemuSingleSendkeyRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleQemuSingleSendkey"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/sendkey", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleQemuSingleSendkey", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleStorageSingleContentSingle Update volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleStorageSingleContentSingle(string node, string storage, string volume, UpdateNodesSingleStorageSingleContentSingleRequest? updateNodesSingleStorageSingleContentSingleRequest = default(UpdateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleStorageSingleContentSingleWithHttpInfo(node, storage, volume, updateNodesSingleStorageSingleContentSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleStorageSingleContentSingle Update volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleStorageSingleContentSingleWithHttpInfo(string node, string storage, string volume, UpdateNodesSingleStorageSingleContentSingleRequest? updateNodesSingleStorageSingleContentSingleRequest = default(UpdateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->UpdateNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'volume' is set + if (volume == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'volume' when calling ProxmoxGeneratedApi->UpdateNodesSingleStorageSingleContentSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.PathParameters.Add("volume", ProxmoxSharp.Client.ClientUtils.ParameterToString(volume)); // path parameter + localVarRequestOptions.Data = updateNodesSingleStorageSingleContentSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleStorageSingleContentSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/storage/{storage}/content/{volume}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleStorageSingleContentSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleStorageSingleContentSingle Update volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleStorageSingleContentSingleAsync(string node, string storage, string volume, UpdateNodesSingleStorageSingleContentSingleRequest? updateNodesSingleStorageSingleContentSingleRequest = default(UpdateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleStorageSingleContentSingleWithHttpInfoAsync(node, storage, volume, updateNodesSingleStorageSingleContentSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleStorageSingleContentSingle Update volume attributes + /// + /// Thrown when fails to make API call + /// node + /// storage + /// volume + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleStorageSingleContentSingleWithHttpInfoAsync(string node, string storage, string volume, UpdateNodesSingleStorageSingleContentSingleRequest? updateNodesSingleStorageSingleContentSingleRequest = default(UpdateNodesSingleStorageSingleContentSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->UpdateNodesSingleStorageSingleContentSingle"); + } + + // verify the required parameter 'volume' is set + if (volume == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'volume' when calling ProxmoxGeneratedApi->UpdateNodesSingleStorageSingleContentSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.PathParameters.Add("volume", ProxmoxSharp.Client.ClientUtils.ParameterToString(volume)); // path parameter + localVarRequestOptions.Data = updateNodesSingleStorageSingleContentSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleStorageSingleContentSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/storage/{storage}/content/{volume}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleStorageSingleContentSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleSubscription Set subscription key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleSubscription(string node, UpdateNodesSingleSubscriptionRequest? updateNodesSingleSubscriptionRequest = default(UpdateNodesSingleSubscriptionRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleSubscriptionWithHttpInfo(node, updateNodesSingleSubscriptionRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleSubscription Set subscription key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleSubscriptionWithHttpInfo(string node, UpdateNodesSingleSubscriptionRequest? updateNodesSingleSubscriptionRequest = default(UpdateNodesSingleSubscriptionRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleSubscription"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleSubscriptionRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleSubscription"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/subscription", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleSubscription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleSubscription Set subscription key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleSubscriptionAsync(string node, UpdateNodesSingleSubscriptionRequest? updateNodesSingleSubscriptionRequest = default(UpdateNodesSingleSubscriptionRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleSubscriptionWithHttpInfoAsync(node, updateNodesSingleSubscriptionRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleSubscription Set subscription key. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleSubscriptionWithHttpInfoAsync(string node, UpdateNodesSingleSubscriptionRequest? updateNodesSingleSubscriptionRequest = default(UpdateNodesSingleSubscriptionRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleSubscription"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleSubscriptionRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleSubscription"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/subscription", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleSubscription", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleTime Set time zone. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateNodesSingleTime(string node, UpdateNodesSingleTimeRequest? updateNodesSingleTimeRequest = default(UpdateNodesSingleTimeRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateNodesSingleTimeWithHttpInfo(node, updateNodesSingleTimeRequest); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleTime Set time zone. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateNodesSingleTimeWithHttpInfo(string node, UpdateNodesSingleTimeRequest? updateNodesSingleTimeRequest = default(UpdateNodesSingleTimeRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleTime"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleTimeRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleTime"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/time", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleTime", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateNodesSingleTime Set time zone. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateNodesSingleTimeAsync(string node, UpdateNodesSingleTimeRequest? updateNodesSingleTimeRequest = default(UpdateNodesSingleTimeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateNodesSingleTimeWithHttpInfoAsync(node, updateNodesSingleTimeRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateNodesSingleTime Set time zone. + /// + /// Thrown when fails to make API call + /// node + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateNodesSingleTimeWithHttpInfoAsync(string node, UpdateNodesSingleTimeRequest? updateNodesSingleTimeRequest = default(UpdateNodesSingleTimeRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateNodesSingleTime"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.Data = updateNodesSingleTimeRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateNodesSingleTime"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/time", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateNodesSingleTime", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updatePool Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). + /// + /// Thrown when fails to make API call + /// poolid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdatePool(string poolid, UpdatePoolRequest? updatePoolRequest = default(UpdatePoolRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdatePoolWithHttpInfo(poolid, updatePoolRequest); + return localVarResponse.Data; + } + + /// + /// updatePool Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). + /// + /// Thrown when fails to make API call + /// poolid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdatePoolWithHttpInfo(string poolid, UpdatePoolRequest? updatePoolRequest = default(UpdatePoolRequest?), int operationIndex = 0) + { + // verify the required parameter 'poolid' is set + if (poolid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'poolid' when calling ProxmoxGeneratedApi->UpdatePool"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("poolid", ProxmoxSharp.Client.ClientUtils.ParameterToString(poolid)); // path parameter + localVarRequestOptions.Data = updatePoolRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdatePool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/pools/{poolid}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdatePool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updatePool Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). + /// + /// Thrown when fails to make API call + /// poolid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdatePoolAsync(string poolid, UpdatePoolRequest? updatePoolRequest = default(UpdatePoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdatePoolWithHttpInfoAsync(poolid, updatePoolRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updatePool Update pool data (deprecated, no support for nested pools - use 'PUT /pools/?poolid={poolid}' instead). + /// + /// Thrown when fails to make API call + /// poolid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdatePoolWithHttpInfoAsync(string poolid, UpdatePoolRequest? updatePoolRequest = default(UpdatePoolRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'poolid' is set + if (poolid == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'poolid' when calling ProxmoxGeneratedApi->UpdatePool"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("poolid", ProxmoxSharp.Client.ClientUtils.ParameterToString(poolid)); // path parameter + localVarRequestOptions.Data = updatePoolRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdatePool"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/pools/{poolid}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdatePool", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updatePools Update pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdatePools(UpdatePoolsRequest? updatePoolsRequest = default(UpdatePoolsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdatePoolsWithHttpInfo(updatePoolsRequest); + return localVarResponse.Data; + } + + /// + /// updatePools Update pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdatePoolsWithHttpInfo(UpdatePoolsRequest? updatePoolsRequest = default(UpdatePoolsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updatePoolsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdatePools"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/pools", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdatePools", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updatePools Update pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdatePoolsAsync(UpdatePoolsRequest? updatePoolsRequest = default(UpdatePoolsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdatePoolsWithHttpInfoAsync(updatePoolsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updatePools Update pool. + /// + /// Thrown when fails to make API call + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdatePoolsWithHttpInfoAsync(UpdatePoolsRequest? updatePoolsRequest = default(UpdatePoolsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.Data = updatePoolsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdatePools"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/pools", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdatePools", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateStorageSingle Update storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// (optional) + /// Index associated with the operation. + /// CreateStorage200Response + public CreateStorage200Response UpdateStorageSingle(string storage, UpdateStorageSingleRequest? updateStorageSingleRequest = default(UpdateStorageSingleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateStorageSingleWithHttpInfo(storage, updateStorageSingleRequest); + return localVarResponse.Data; + } + + /// + /// updateStorageSingle Update storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateStorage200Response + public ProxmoxSharp.Client.ApiResponse UpdateStorageSingleWithHttpInfo(string storage, UpdateStorageSingleRequest? updateStorageSingleRequest = default(UpdateStorageSingleRequest?), int operationIndex = 0) + { + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->UpdateStorageSingle"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = updateStorageSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateStorageSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/storage/{storage}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateStorageSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateStorageSingle Update storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateStorage200Response + public async System.Threading.Tasks.Task UpdateStorageSingleAsync(string storage, UpdateStorageSingleRequest? updateStorageSingleRequest = default(UpdateStorageSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateStorageSingleWithHttpInfoAsync(storage, updateStorageSingleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateStorageSingle Update storage configuration. + /// + /// Thrown when fails to make API call + /// storage + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateStorage200Response) + public async System.Threading.Tasks.Task> UpdateStorageSingleWithHttpInfoAsync(string storage, UpdateStorageSingleRequest? updateStorageSingleRequest = default(UpdateStorageSingleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'storage' is set + if (storage == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'storage' when calling ProxmoxGeneratedApi->UpdateStorageSingle"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("storage", ProxmoxSharp.Client.ClientUtils.ParameterToString(storage)); // path parameter + localVarRequestOptions.Data = updateStorageSingleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateStorageSingle"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/storage/{storage}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateStorageSingle", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMConfig Set virtual machine options (asynchronous API). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateVMConfig(string node, int vmid, UpdateVMConfigRequest? updateVMConfigRequest = default(UpdateVMConfigRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateVMConfigWithHttpInfo(node, vmid, updateVMConfigRequest); + return localVarResponse.Data; + } + + /// + /// updateVMConfig Set virtual machine options (asynchronous API). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateVMConfigWithHttpInfo(string node, int vmid, UpdateVMConfigRequest? updateVMConfigRequest = default(UpdateVMConfigRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/nodes/{node}/qemu/{vmid}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMConfig Set virtual machine options (asynchronous API). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateVMConfigAsync(string node, int vmid, UpdateVMConfigRequest? updateVMConfigRequest = default(UpdateVMConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateVMConfigWithHttpInfoAsync(node, vmid, updateVMConfigRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateVMConfig Set virtual machine options (asynchronous API). + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateVMConfigWithHttpInfoAsync(string node, int vmid, UpdateVMConfigRequest? updateVMConfigRequest = default(UpdateVMConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/nodes/{node}/qemu/{vmid}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMConfigSync Set virtual machine options (synchronous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateVMConfigSync(string node, int vmid, UpdateVMConfigSyncRequest? updateVMConfigSyncRequest = default(UpdateVMConfigSyncRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateVMConfigSyncWithHttpInfo(node, vmid, updateVMConfigSyncRequest); + return localVarResponse.Data; + } + + /// + /// updateVMConfigSync Set virtual machine options (synchronous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateVMConfigSyncWithHttpInfo(string node, int vmid, UpdateVMConfigSyncRequest? updateVMConfigSyncRequest = default(UpdateVMConfigSyncRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMConfigSync"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMConfigSyncRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMConfigSync"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMConfigSync", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMConfigSync Set virtual machine options (synchronous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateVMConfigSyncAsync(string node, int vmid, UpdateVMConfigSyncRequest? updateVMConfigSyncRequest = default(UpdateVMConfigSyncRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateVMConfigSyncWithHttpInfoAsync(node, vmid, updateVMConfigSyncRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateVMConfigSync Set virtual machine options (synchronous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateVMConfigSyncWithHttpInfoAsync(string node, int vmid, UpdateVMConfigSyncRequest? updateVMConfigSyncRequest = default(UpdateVMConfigSyncRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMConfigSync"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMConfigSyncRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMConfigSync"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMConfigSync", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMFirewallIPSetIP Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateVMFirewallIPSetIP(string cidr, string name, string node, int vmid, UpdateVMFirewallIPSetIPRequest? updateVMFirewallIPSetIPRequest = default(UpdateVMFirewallIPSetIPRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateVMFirewallIPSetIPWithHttpInfo(cidr, name, node, vmid, updateVMFirewallIPSetIPRequest); + return localVarResponse.Data; + } + + /// + /// updateVMFirewallIPSetIP Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateVMFirewallIPSetIPWithHttpInfo(string cidr, string name, string node, int vmid, UpdateVMFirewallIPSetIPRequest? updateVMFirewallIPSetIPRequest = default(UpdateVMFirewallIPSetIPRequest?), int operationIndex = 0) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->UpdateVMFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateVMFirewallIPSetIP"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMFirewallIPSetIP"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMFirewallIPSetIPRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMFirewallIPSetIP Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateVMFirewallIPSetIPAsync(string cidr, string name, string node, int vmid, UpdateVMFirewallIPSetIPRequest? updateVMFirewallIPSetIPRequest = default(UpdateVMFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateVMFirewallIPSetIPWithHttpInfoAsync(cidr, name, node, vmid, updateVMFirewallIPSetIPRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateVMFirewallIPSetIP Update IP or Network settings + /// + /// Thrown when fails to make API call + /// cidr + /// name + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateVMFirewallIPSetIPWithHttpInfoAsync(string cidr, string name, string node, int vmid, UpdateVMFirewallIPSetIPRequest? updateVMFirewallIPSetIPRequest = default(UpdateVMFirewallIPSetIPRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'cidr' is set + if (cidr == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'cidr' when calling ProxmoxGeneratedApi->UpdateVMFirewallIPSetIP"); + } + + // verify the required parameter 'name' is set + if (name == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'name' when calling ProxmoxGeneratedApi->UpdateVMFirewallIPSetIP"); + } + + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMFirewallIPSetIP"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("cidr", ProxmoxSharp.Client.ClientUtils.ParameterToString(cidr)); // path parameter + localVarRequestOptions.PathParameters.Add("name", ProxmoxSharp.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMFirewallIPSetIPRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMFirewallIPSetIP"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMFirewallIPSetIP", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateVMFirewallOptions(string node, int vmid, UpdateVMFirewallOptionsRequest? updateVMFirewallOptionsRequest = default(UpdateVMFirewallOptionsRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateVMFirewallOptionsWithHttpInfo(node, vmid, updateVMFirewallOptionsRequest); + return localVarResponse.Data; + } + + /// + /// updateVMFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateVMFirewallOptionsWithHttpInfo(string node, int vmid, UpdateVMFirewallOptionsRequest? updateVMFirewallOptionsRequest = default(UpdateVMFirewallOptionsRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMFirewallOptions"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/firewall/options", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateVMFirewallOptionsAsync(string node, int vmid, UpdateVMFirewallOptionsRequest? updateVMFirewallOptionsRequest = default(UpdateVMFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateVMFirewallOptionsWithHttpInfoAsync(node, vmid, updateVMFirewallOptionsRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateVMFirewallOptions Set Firewall options. + /// + /// Thrown when fails to make API call + /// node + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateVMFirewallOptionsWithHttpInfoAsync(string node, int vmid, UpdateVMFirewallOptionsRequest? updateVMFirewallOptionsRequest = default(UpdateVMFirewallOptionsRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMFirewallOptions"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMFirewallOptionsRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMFirewallOptions"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/firewall/options", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMFirewallOptions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateVMFirewallRule(string node, int pos, int vmid, UpdateVMFirewallRuleRequest? updateVMFirewallRuleRequest = default(UpdateVMFirewallRuleRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateVMFirewallRuleWithHttpInfo(node, pos, vmid, updateVMFirewallRuleRequest); + return localVarResponse.Data; + } + + /// + /// updateVMFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateVMFirewallRuleWithHttpInfo(string node, int pos, int vmid, UpdateVMFirewallRuleRequest? updateVMFirewallRuleRequest = default(UpdateVMFirewallRuleRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMFirewallRule"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateVMFirewallRuleAsync(string node, int pos, int vmid, UpdateVMFirewallRuleRequest? updateVMFirewallRuleRequest = default(UpdateVMFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateVMFirewallRuleWithHttpInfoAsync(node, pos, vmid, updateVMFirewallRuleRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateVMFirewallRule Modify rule data. + /// + /// Thrown when fails to make API call + /// node + /// pos + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateVMFirewallRuleWithHttpInfoAsync(string node, int pos, int vmid, UpdateVMFirewallRuleRequest? updateVMFirewallRuleRequest = default(UpdateVMFirewallRuleRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMFirewallRule"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("pos", ProxmoxSharp.Client.ClientUtils.ParameterToString(pos)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMFirewallRuleRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMFirewallRule"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/firewall/rules/{pos}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMFirewallRule", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMSnapshotConfig Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// CreateClusterReplication200Response + public CreateClusterReplication200Response UpdateVMSnapshotConfig(string node, string snapname, int vmid, UpdateVMSnapshotConfigRequest? updateVMSnapshotConfigRequest = default(UpdateVMSnapshotConfigRequest?), int operationIndex = 0) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = UpdateVMSnapshotConfigWithHttpInfo(node, snapname, vmid, updateVMSnapshotConfigRequest); + return localVarResponse.Data; + } + + /// + /// updateVMSnapshotConfig Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// ApiResponse of CreateClusterReplication200Response + public ProxmoxSharp.Client.ApiResponse UpdateVMSnapshotConfigWithHttpInfo(string node, string snapname, int vmid, UpdateVMSnapshotConfigRequest? updateVMSnapshotConfigRequest = default(UpdateVMSnapshotConfigRequest?), int operationIndex = 0) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMSnapshotConfig"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->UpdateVMSnapshotConfig"); + } + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + var localVarMultipartFormData = localVarContentType == "multipart/form-data"; + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMSnapshotConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMSnapshotConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = this.Client.Put("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/config", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMSnapshotConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// updateVMSnapshotConfig Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of CreateClusterReplication200Response + public async System.Threading.Tasks.Task UpdateVMSnapshotConfigAsync(string node, string snapname, int vmid, UpdateVMSnapshotConfigRequest? updateVMSnapshotConfigRequest = default(UpdateVMSnapshotConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + ProxmoxSharp.Client.ApiResponse localVarResponse = await UpdateVMSnapshotConfigWithHttpInfoAsync(node, snapname, vmid, updateVMSnapshotConfigRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// updateVMSnapshotConfig Update snapshot metadata. + /// + /// Thrown when fails to make API call + /// node + /// snapname + /// vmid + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateClusterReplication200Response) + public async System.Threading.Tasks.Task> UpdateVMSnapshotConfigWithHttpInfoAsync(string node, string snapname, int vmid, UpdateVMSnapshotConfigRequest? updateVMSnapshotConfigRequest = default(UpdateVMSnapshotConfigRequest?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'node' is set + if (node == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'node' when calling ProxmoxGeneratedApi->UpdateVMSnapshotConfig"); + } + + // verify the required parameter 'snapname' is set + if (snapname == null) + { + throw new ProxmoxSharp.Client.ApiException(400, "Missing required parameter 'snapname' when calling ProxmoxGeneratedApi->UpdateVMSnapshotConfig"); + } + + + ProxmoxSharp.Client.RequestOptions localVarRequestOptions = new ProxmoxSharp.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = ProxmoxSharp.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = ProxmoxSharp.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("node", ProxmoxSharp.Client.ClientUtils.ParameterToString(node)); // path parameter + localVarRequestOptions.PathParameters.Add("snapname", ProxmoxSharp.Client.ClientUtils.ParameterToString(snapname)); // path parameter + localVarRequestOptions.PathParameters.Add("vmid", ProxmoxSharp.Client.ClientUtils.ParameterToString(vmid)); // path parameter + localVarRequestOptions.Data = updateVMSnapshotConfigRequest; + + localVarRequestOptions.Operation = "ProxmoxGeneratedApi.UpdateVMSnapshotConfig"; + localVarRequestOptions.OperationIndex = operationIndex; + + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/config", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateVMSnapshotConfig", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/ProxmoxSharp/Client/ApiClient.cs b/src/ProxmoxSharp/Client/ApiClient.cs new file mode 100644 index 0000000..d937d29 --- /dev/null +++ b/src/ProxmoxSharp/Client/ApiClient.cs @@ -0,0 +1,823 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters; +using System.Text; +using System.Threading; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; +using RestSharp; +using RestSharp.Serializers; +using RestSharpMethod = RestSharp.Method; +using FileIO = System.IO.File; +using Polly; +using ProxmoxSharp.Model; + +namespace ProxmoxSharp.Client +{ + /// + /// Allows RestSharp to Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. + /// + internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer + { + private readonly IReadableConfiguration _configuration; + private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + public CustomJsonCodec(IReadableConfiguration configuration) + { + _configuration = configuration; + } + + public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) + { + _serializerSettings = serializerSettings; + _configuration = configuration; + } + + /// + /// Serialize the object into a JSON string. + /// + /// Object to be serialized. + /// A JSON string. + public string Serialize(object obj) + { + if (obj != null && obj is AbstractOpenAPISchema) + { + // the object to be serialized is an oneOf/anyOf schema + return ((AbstractOpenAPISchema)obj).ToJson(); + } + else + { + return JsonConvert.SerializeObject(obj, _serializerSettings); + } + } + + public string Serialize(Parameter bodyParameter) => Serialize(bodyParameter.Value); + + public T Deserialize(RestResponse response) + { + var result = (T)Deserialize(response, typeof(T)); + return result; + } + + /// + /// Deserialize the JSON string into a proper object. + /// + /// The HTTP response. + /// Object type. + /// Object representation of the JSON string. + internal object Deserialize(RestResponse response, Type type) + { + if (type == typeof(byte[])) // return byte array + { + return response.RawBytes; + } + + // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) + if (type == typeof(Stream)) + { + var bytes = response.RawBytes; + if (response.Headers != null) + { + var filePath = string.IsNullOrEmpty(_configuration.TempFolderPath) + ? global::System.IO.Path.GetTempPath() + : _configuration.TempFolderPath; + var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$"); + foreach (var header in response.Headers) + { + var match = regex.Match(header.ToString()); + if (match.Success) + { + string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", "")); + FileIO.WriteAllBytes(fileName, bytes); + return new FileStream(fileName, FileMode.Open); + } + } + } + var stream = new MemoryStream(bytes); + return stream; + } + + if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object + { + return DateTime.Parse(response.Content, null, DateTimeStyles.RoundtripKind); + } + + if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type + { + return Convert.ChangeType(response.Content, type); + } + + // at this point, it must be a model (json) + try + { + return JsonConvert.DeserializeObject(response.Content, type, _serializerSettings); + } + catch (Exception e) + { + throw new ApiException(500, e.Message); + } + } + + public ISerializer Serializer => this; + public IDeserializer Deserializer => this; + + public string[] AcceptedContentTypes => ContentType.JsonAccept; + + public SupportsContentType SupportsContentType => contentType => + contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) || + contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase); + + public ContentType ContentType { get; set; } = ContentType.Json; + + public DataFormat DataFormat => DataFormat.Json; + } + /// + /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), + /// encapsulating general REST accessor use cases. + /// + public partial class ApiClient : ISynchronousClient, IAsynchronousClient + { + private readonly string _baseUrl; + + /// + /// Specifies the settings on a object. + /// These settings can be adjusted to accommodate custom serialization rules. + /// + public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Allows for extending request processing for generated code. + /// + /// The RestSharp request object + partial void InterceptRequest(RestRequest request); + + /// + /// Allows for extending response processing for generated code. + /// + /// The RestSharp request object + /// The RestSharp response object + partial void InterceptResponse(RestRequest request, RestResponse response); + + /// + /// Initializes a new instance of the , defaulting to the global configurations' base url. + /// + public ApiClient() + { + _baseUrl = GlobalConfiguration.Instance.BasePath; + } + + /// + /// Initializes a new instance of the + /// + /// The target service's base path in URL format. + /// + public ApiClient(string basePath) + { + if (string.IsNullOrEmpty(basePath)) + throw new ArgumentException("basePath cannot be empty"); + + _baseUrl = basePath; + } + + /// + /// Constructs the RestSharp version of an http method + /// + /// Swagger Client Custom HttpMethod + /// RestSharp's HttpMethod instance. + /// + private RestSharpMethod Method(HttpMethod method) + { + RestSharpMethod other; + switch (method) + { + case HttpMethod.Get: + other = RestSharpMethod.Get; + break; + case HttpMethod.Post: + other = RestSharpMethod.Post; + break; + case HttpMethod.Put: + other = RestSharpMethod.Put; + break; + case HttpMethod.Delete: + other = RestSharpMethod.Delete; + break; + case HttpMethod.Head: + other = RestSharpMethod.Head; + break; + case HttpMethod.Options: + other = RestSharpMethod.Options; + break; + case HttpMethod.Patch: + other = RestSharpMethod.Patch; + break; + default: + throw new ArgumentOutOfRangeException("method", method, null); + } + + return other; + } + + /// + /// Provides all logic for constructing a new RestSharp . + /// At this point, all information for querying the service is known. + /// Here, it is simply mapped into the RestSharp request. + /// + /// The http verb. + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. + /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. + /// [private] A new RestRequest instance. + /// + private RestRequest NewRequest( + HttpMethod method, + string path, + RequestOptions options, + IReadableConfiguration configuration) + { + if (path == null) throw new ArgumentNullException("path"); + if (options == null) throw new ArgumentNullException("options"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + RestRequest request = new RestRequest(path, Method(method)); + + if (options.PathParameters != null) + { + foreach (var pathParam in options.PathParameters) + { + request.AddParameter(pathParam.Key, pathParam.Value, ParameterType.UrlSegment); + } + } + + if (options.QueryParameters != null) + { + foreach (var queryParam in options.QueryParameters) + { + foreach (var value in queryParam.Value) + { + request.AddQueryParameter(queryParam.Key, value); + } + } + } + + if (configuration.DefaultHeaders != null) + { + foreach (var headerParam in configuration.DefaultHeaders) + { + request.AddHeader(headerParam.Key, headerParam.Value); + } + } + + if (options.HeaderParameters != null) + { + foreach (var headerParam in options.HeaderParameters) + { + foreach (var value in headerParam.Value) + { + request.AddOrUpdateHeader(headerParam.Key, value); + } + } + } + + if (options.FormParameters != null) + { + foreach (var formParam in options.FormParameters) + { + request.AddParameter(formParam.Key, formParam.Value); + } + } + + if (options.Data != null) + { + if (options.Data is Stream stream) + { + var contentType = "application/octet-stream"; + if (options.HeaderParameters != null) + { + var contentTypes = options.HeaderParameters["Content-Type"]; + contentType = contentTypes[0]; + } + + var bytes = ClientUtils.ReadAsBytes(stream); + request.AddParameter(contentType, bytes, ParameterType.RequestBody); + } + else + { + if (options.HeaderParameters != null) + { + var contentTypes = options.HeaderParameters["Content-Type"]; + if (contentTypes == null || contentTypes.Any(header => header.Contains("application/json"))) + { + request.RequestFormat = DataFormat.Json; + } + else + { + // TODO: Generated client user should add additional handlers. RestSharp only supports XML and JSON, with XML as default. + } + } + else + { + // Here, we'll assume JSON APIs are more common. XML can be forced by adding produces/consumes to openapi spec explicitly. + request.RequestFormat = DataFormat.Json; + } + + request.AddJsonBody(options.Data); + } + } + + if (options.FileParameters != null) + { + foreach (var fileParam in options.FileParameters) + { + foreach (var file in fileParam.Value) + { + var bytes = ClientUtils.ReadAsBytes(file); + var fileStream = file as FileStream; + if (fileStream != null) + request.AddFile(fileParam.Key, bytes, global::System.IO.Path.GetFileName(fileStream.Name)); + else + request.AddFile(fileParam.Key, bytes, "no_file_name_provided"); + } + } + } + + if (options.HeaderParameters != null) + { + if (options.HeaderParameters.TryGetValue("Content-Type", out var contentTypes) && contentTypes.Any(header => header.Contains("multipart/form-data"))) + { + request.AlwaysMultipartFormData = true; + } + } + + return request; + } + + /// + /// Transforms a RestResponse instance into a new ApiResponse instance. + /// At this point, we have a concrete http response from the service. + /// Here, it is simply mapped into the [public] ApiResponse object. + /// + /// The RestSharp response object + /// A new ApiResponse instance. + private ApiResponse ToApiResponse(RestResponse response) + { + T result = response.Data; + string rawContent = response.Content; + + var transformed = new ApiResponse(response.StatusCode, new Multimap(), result, rawContent) + { + ErrorText = response.ErrorMessage, + Cookies = new List() + }; + + if (response.Headers != null) + { + foreach (var responseHeader in response.Headers) + { + transformed.Headers.Add(responseHeader.Name, ClientUtils.ParameterToString(responseHeader.Value)); + } + } + + if (response.ContentHeaders != null) + { + foreach (var responseHeader in response.ContentHeaders) + { + transformed.Headers.Add(responseHeader.Name, ClientUtils.ParameterToString(responseHeader.Value)); + } + } + + if (response.Cookies != null) + { + foreach (var responseCookies in response.Cookies.Cast()) + { + transformed.Cookies.Add( + new Cookie( + responseCookies.Name, + responseCookies.Value, + responseCookies.Path, + responseCookies.Domain) + ); + } + } + + return transformed; + } + + /// + /// Executes the HTTP request for the current service. + /// Based on functions received it can be async or sync. + /// + /// Local function that executes http request and returns http response. + /// Local function to specify options for the service. + /// The RestSharp request object + /// The RestSharp options object + /// A per-request configuration object. + /// It is assumed that any merge with GlobalConfiguration has been done before calling this method. + /// A new ApiResponse instance. + private async Task> ExecClientAsync(Func>> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration) + { + var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl; + var clientOptions = new RestClientOptions(baseUrl) + { + ClientCertificates = configuration.ClientCertificates, + Timeout = configuration.Timeout, + Proxy = configuration.Proxy, + UserAgent = configuration.UserAgent, + UseDefaultCredentials = configuration.UseDefaultCredentials, + RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback + }; + setOptions(clientOptions); + + using (RestClient client = new RestClient(clientOptions, + configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)))) + { + InterceptRequest(request); + + RestResponse response = await getResponse(client); + + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + { + try + { + response.Data = (T)typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + } + catch (Exception ex) + { + throw ex.InnerException != null ? ex.InnerException : ex; + } + } + else if (typeof(T).Name == "Stream") // for binary response + { + response.Data = (T)(object)new MemoryStream(response.RawBytes); + } + else if (typeof(T).Name == "Byte[]") // for byte response + { + response.Data = (T)(object)response.RawBytes; + } + else if (typeof(T).Name == "String") // for string response + { + response.Data = (T)(object)response.Content; + } + + InterceptResponse(request, response); + + var result = ToApiResponse(response); + if (response.ErrorMessage != null) + { + result.ErrorText = response.ErrorMessage; + } + + if (response.Cookies != null && response.Cookies.Count > 0) + { + if (result.Cookies == null) result.Cookies = new List(); + foreach (var restResponseCookie in response.Cookies.Cast()) + { + var cookie = new Cookie( + restResponseCookie.Name, + restResponseCookie.Value, + restResponseCookie.Path, + restResponseCookie.Domain + ) + { + Comment = restResponseCookie.Comment, + CommentUri = restResponseCookie.CommentUri, + Discard = restResponseCookie.Discard, + Expired = restResponseCookie.Expired, + Expires = restResponseCookie.Expires, + HttpOnly = restResponseCookie.HttpOnly, + Port = restResponseCookie.Port, + Secure = restResponseCookie.Secure, + Version = restResponseCookie.Version + }; + + result.Cookies.Add(cookie); + } + } + return result; + } + } + + private async Task> DeserializeRestResponseFromPolicyAsync(RestClient client, RestRequest request, PolicyResult policyResult, CancellationToken cancellationToken = default) + { + if (policyResult.Outcome == OutcomeType.Successful) + { + return await client.Deserialize(policyResult.Result, cancellationToken); + } + else + { + return new RestResponse(request) + { + ErrorException = policyResult.FinalException + }; + } + } + + private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration) + { + Action setOptions = (clientOptions) => + { + var cookies = new CookieContainer(); + + if (options.Cookies != null && options.Cookies.Count > 0) + { + foreach (var cookie in options.Cookies) + { + cookies.Add(new Cookie(cookie.Name, cookie.Value)); + } + } + clientOptions.CookieContainer = cookies; + }; + + Func>> getResponse = (client) => + { + if (RetryConfiguration.RetryPolicy != null) + { + var policy = RetryConfiguration.RetryPolicy; + var policyResult = policy.ExecuteAndCapture(() => client.Execute(request)); + return DeserializeRestResponseFromPolicyAsync(client, request, policyResult); + } + else + { + return Task.FromResult(client.Execute(request)); + } + }; + + return ExecClientAsync(getResponse, setOptions, request, options, configuration).GetAwaiter().GetResult(); + } + + private Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken)) + { + Action setOptions = (clientOptions) => + { + //no extra options + }; + + Func>> getResponse = async (client) => + { + if (RetryConfiguration.AsyncRetryPolicy != null) + { + var policy = RetryConfiguration.AsyncRetryPolicy; + var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false); + return await DeserializeRestResponseFromPolicyAsync(client, request, policyResult, cancellationToken); + } + else + { + return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false); + } + }; + + return ExecClientAsync(getResponse, setOptions, request, options, configuration); + } + + #region IAsynchronousClient + /// + /// Make a HTTP GET request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP POST request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP PUT request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP DELETE request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP HEAD request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP OPTION request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), options, config, cancellationToken); + } + + /// + /// Make a HTTP PATCH request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), options, config, cancellationToken); + } + #endregion IAsynchronousClient + + #region ISynchronousClient + /// + /// Make a HTTP GET request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Get, path, options, config), options, config); + } + + /// + /// Make a HTTP POST request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Post, path, options, config), options, config); + } + + /// + /// Make a HTTP PUT request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Put, path, options, config), options, config); + } + + /// + /// Make a HTTP DELETE request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Delete, path, options, config), options, config); + } + + /// + /// Make a HTTP HEAD request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Head, path, options, config), options, config); + } + + /// + /// Make a HTTP OPTION request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Options, path, options, config), options, config); + } + + /// + /// Make a HTTP PATCH request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + var config = configuration ?? GlobalConfiguration.Instance; + return Exec(NewRequest(HttpMethod.Patch, path, options, config), options, config); + } + #endregion ISynchronousClient + } +} diff --git a/src/ProxmoxSharp/Client/ApiException.cs b/src/ProxmoxSharp/Client/ApiException.cs new file mode 100644 index 0000000..dda6424 --- /dev/null +++ b/src/ProxmoxSharp/Client/ApiException.cs @@ -0,0 +1,69 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace ProxmoxSharp.Client +{ + /// + /// API Exception + /// + public class ApiException : Exception + { + /// + /// Gets or sets the error code (HTTP status code) + /// + /// The error code (HTTP status code). + public int ErrorCode { get; set; } + + /// + /// Gets or sets the error content (body json object) + /// + /// The error content (Http response body). + public object ErrorContent { get; private set; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public Multimap Headers { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + public ApiException() { } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + public ApiException(int errorCode, string message) : base(message) + { + this.ErrorCode = errorCode; + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + /// Error content. + /// HTTP Headers. + public ApiException(int errorCode, string message, object errorContent = null, Multimap headers = null) : base(message) + { + this.ErrorCode = errorCode; + this.ErrorContent = errorContent; + this.Headers = headers; + } + } + +} diff --git a/src/ProxmoxSharp/Client/ApiResponse.cs b/src/ProxmoxSharp/Client/ApiResponse.cs new file mode 100644 index 0000000..aaefb05 --- /dev/null +++ b/src/ProxmoxSharp/Client/ApiResponse.cs @@ -0,0 +1,167 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Net; + +namespace ProxmoxSharp.Client +{ + /// + /// Provides a non-generic contract for the ApiResponse wrapper. + /// + public interface IApiResponse + { + /// + /// The data type of + /// + Type ResponseType { get; } + + /// + /// The content of this response + /// + Object Content { get; } + + /// + /// Gets or sets the status code (HTTP status code) + /// + /// The status code. + HttpStatusCode StatusCode { get; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + Multimap Headers { get; } + + /// + /// Gets or sets any error text defined by the calling client. + /// + string ErrorText { get; set; } + + /// + /// Gets or sets any cookies passed along on the response. + /// + List Cookies { get; set; } + + /// + /// The raw content of this response + /// + string RawContent { get; } + } + + /// + /// API Response + /// + public class ApiResponse : IApiResponse + { + #region Properties + + /// + /// Gets or sets the status code (HTTP status code) + /// + /// The status code. + public HttpStatusCode StatusCode { get; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public Multimap Headers { get; } + + /// + /// Gets or sets the data (parsed HTTP body) + /// + /// The data. + public T Data { get; } + + /// + /// Gets or sets any error text defined by the calling client. + /// + public string ErrorText { get; set; } + + /// + /// Gets or sets any cookies passed along on the response. + /// + public List Cookies { get; set; } + + /// + /// The content of this response + /// + public Type ResponseType + { + get { return typeof(T); } + } + + /// + /// The data type of + /// + public object Content + { + get { return Data; } + } + + /// + /// The raw content + /// + public string RawContent { get; } + + #endregion Properties + + #region Constructors + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// HTTP headers. + /// Data (parsed HTTP body) + /// Raw content. + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data, string rawContent) + { + StatusCode = statusCode; + Headers = headers; + Data = data; + RawContent = rawContent; + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// HTTP headers. + /// Data (parsed HTTP body) + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) : this(statusCode, headers, data, null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Data (parsed HTTP body) + /// Raw content. + public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) : this(statusCode, null, data, rawContent) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Data (parsed HTTP body) + public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, null) + { + } + + #endregion Constructors + } +} diff --git a/src/ProxmoxSharp/Client/ClientUtils.cs b/src/ProxmoxSharp/Client/ClientUtils.cs new file mode 100644 index 0000000..aaff80e --- /dev/null +++ b/src/ProxmoxSharp/Client/ClientUtils.cs @@ -0,0 +1,254 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; + +namespace ProxmoxSharp.Client +{ + /// + /// Utility functions providing some benefit to API client consumers. + /// + public static class ClientUtils + { + /// + /// Sanitize filename by removing the path + /// + /// Filename + /// Filename + public static string SanitizeFilename(string filename) + { + Match match = Regex.Match(filename, @".*[/\\](.*)$"); + return match.Success ? match.Groups[1].Value : filename; + } + + /// + /// Convert params to key/value pairs. + /// Use collectionFormat to properly format lists and collections. + /// + /// The swagger-supported collection format, one of: csv, tsv, ssv, pipes, multi + /// Key name. + /// Value object. + /// A multimap of keys with 1..n associated values. + public static Multimap ParameterToMultiMap(string collectionFormat, string name, object value) + { + var parameters = new Multimap(); + + if (value is ICollection collection && collectionFormat == "multi") + { + foreach (var item in collection) + { + parameters.Add(name, ParameterToString(item)); + } + } + else if (value is IDictionary dictionary) + { + if(collectionFormat == "deepObject") { + foreach (DictionaryEntry entry in dictionary) + { + parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); + } + } + else { + foreach (DictionaryEntry entry in dictionary) + { + parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); + } + } + } + else + { + parameters.Add(name, ParameterToString(value)); + } + + return parameters; + } + + /// + /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. + /// If parameter is a list, join the list with ",". + /// Otherwise just return the string. + /// + /// The parameter (header, path, query, form). + /// An optional configuration instance, providing formatting options used in processing. + /// Formatted string. + public static string ParameterToString(object obj, IReadableConfiguration configuration = null) + { + if (obj is DateTime dateTime) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return dateTime.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + if (obj is DateTimeOffset dateTimeOffset) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + if (obj is DateOnly dateOnly) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15 + return dateOnly.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + if (obj is bool boolean) + return boolean ? "true" : "false"; + if (obj is ICollection collection) { + List entries = new List(); + foreach (var entry in collection) + entries.Add(ParameterToString(entry, configuration)); + return string.Join(",", entries); + } + if (obj is Enum && HasEnumMemberAttrValue(obj)) + return GetEnumMemberAttrValue(obj); + + return Convert.ToString(obj, CultureInfo.InvariantCulture); + } + + /// + /// Serializes the given object when not null. Otherwise return null. + /// + /// The object to serialize. + /// Serialized string. + public static string Serialize(object obj) + { + return obj != null ? Newtonsoft.Json.JsonConvert.SerializeObject(obj) : null; + } + + /// + /// Encode string in base64 format. + /// + /// string to be encoded. + /// Encoded string. + public static string Base64Encode(string text) + { + return Convert.ToBase64String(global::System.Text.Encoding.UTF8.GetBytes(text)); + } + + /// + /// Convert stream to byte array + /// + /// Input stream to be converted + /// Byte array + public static byte[] ReadAsBytes(Stream inputStream) + { + using (var ms = new MemoryStream()) + { + inputStream.CopyTo(ms); + return ms.ToArray(); + } + } + + /// + /// Select the Content-Type header's value from the given content-type array: + /// if JSON type exists in the given array, use it; + /// otherwise use the first one defined in 'consumes' + /// + /// The Content-Type array to select from. + /// The Content-Type header to use. + public static string SelectHeaderContentType(string[] contentTypes) + { + if (contentTypes.Length == 0) + return null; + + foreach (var contentType in contentTypes) + { + if (IsJsonMime(contentType)) + return contentType; + } + + return contentTypes[0]; // use the first content type specified in 'consumes' + } + + /// + /// Select the Accept header's value from the given accepts array: + /// if JSON exists in the given array, use it; + /// otherwise use all of them (joining into a string) + /// + /// The accepts array to select from. + /// The Accept header to use. + public static string SelectHeaderAccept(string[] accepts) + { + if (accepts.Length == 0) + return null; + + if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) + return "application/json"; + + return string.Join(",", accepts); + } + + /// + /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. + /// + public static readonly Regex JsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + + /// + /// Check if the given MIME is a JSON MIME. + /// JSON MIME examples: + /// application/json + /// application/json; charset=UTF8 + /// APPLICATION/JSON + /// application/vnd.company+json + /// + /// MIME + /// Returns True if MIME type is json. + public static bool IsJsonMime(string mime) + { + if (string.IsNullOrWhiteSpace(mime)) return false; + + return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); + } + + /// + /// Is the Enum decorated with EnumMember Attribute + /// + /// + /// true if found + private static bool HasEnumMemberAttrValue(object enumVal) + { + if (enumVal == null) + throw new ArgumentNullException(nameof(enumVal)); + var enumType = enumVal.GetType(); + var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + if (attr != null) return true; + return false; + } + + /// + /// Get the EnumMember value + /// + /// + /// EnumMember value as string otherwise null + private static string GetEnumMemberAttrValue(object enumVal) + { + if (enumVal == null) + throw new ArgumentNullException(nameof(enumVal)); + var enumType = enumVal.GetType(); + var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + if (attr != null) + { + return attr.Value; + } + return null; + } + } +} diff --git a/src/ProxmoxSharp/Client/Configuration.cs b/src/ProxmoxSharp/Client/Configuration.cs new file mode 100644 index 0000000..0baab9d --- /dev/null +++ b/src/ProxmoxSharp/Client/Configuration.cs @@ -0,0 +1,613 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Net.Http; +using System.Net.Security; + +namespace ProxmoxSharp.Client +{ + /// + /// Represents a set of configuration settings + /// + public class Configuration : IReadableConfiguration + { + #region Constants + + /// + /// Version of the package. + /// + /// Version of the package. + public const string Version = "1.0.0"; + + /// + /// Identifier for ISO 8601 DateTime Format + /// + /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. + // ReSharper disable once InconsistentNaming + public const string ISO8601_DATETIME_FORMAT = "o"; + + #endregion Constants + + #region Static Members + + /// + /// Default creation of exceptions for a given method name and response object + /// + public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => + { + var status = (int)response.StatusCode; + if (status >= 400) + { + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.RawContent), + response.RawContent, response.Headers); + } + if (status == 0) + { + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.ErrorText), response.ErrorText); + } + return null; + }; + + #endregion Static Members + + #region Private Members + + /// + /// Defines the base path of the target API server. + /// Example: http://localhost:3000/v1/ + /// + private string _basePath; + + private bool _useDefaultCredentials = false; + + /// + /// Gets or sets the API key based on the authentication name. + /// This is the key and value comprising the "secret" for accessing an API. + /// + /// The API key. + private IDictionary _apiKey; + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// The prefix of the API key. + private IDictionary _apiKeyPrefix; + + private string _dateTimeFormat = ISO8601_DATETIME_FORMAT; + private string _tempFolderPath = Path.GetTempPath(); + + /// + /// Gets or sets the servers defined in the OpenAPI spec. + /// + /// The servers + private IList> _servers; + + /// + /// Gets or sets the operation servers defined in the OpenAPI spec. + /// + /// The operation servers + private IReadOnlyDictionary>> _operationServers; + + #endregion Private Members + + #region Constructors + + /// + /// Initializes a new instance of the class + /// + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + public Configuration() + { + Proxy = null; + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.0.0/csharp"); + BasePath = "https://cluster.local:8006/api2/json"; + DefaultHeaders = new ConcurrentDictionary(); + ApiKey = new ConcurrentDictionary(); + ApiKeyPrefix = new ConcurrentDictionary(); + Servers = new List>() + { + { + new Dictionary { + {"url", "https://cluster.local:8006/api2/json"}, + {"description", "local"}, + } + } + }; + OperationServers = new Dictionary>>() + { + }; + + // Setting Timeout has side effects (forces ApiClient creation). + Timeout = TimeSpan.FromSeconds(100); + } + + /// + /// Initializes a new instance of the class + /// + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + public Configuration( + IDictionary defaultHeaders, + IDictionary apiKey, + IDictionary apiKeyPrefix, + string basePath = "https://cluster.local:8006/api2/json") : this() + { + if (string.IsNullOrWhiteSpace(basePath)) + throw new ArgumentException("The provided basePath is invalid.", "basePath"); + if (defaultHeaders == null) + throw new ArgumentNullException("defaultHeaders"); + if (apiKey == null) + throw new ArgumentNullException("apiKey"); + if (apiKeyPrefix == null) + throw new ArgumentNullException("apiKeyPrefix"); + + BasePath = basePath; + + foreach (var keyValuePair in defaultHeaders) + { + DefaultHeaders.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKey) + { + ApiKey.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKeyPrefix) + { + ApiKeyPrefix.Add(keyValuePair); + } + } + + #endregion Constructors + + #region Properties + + /// + /// Gets or sets the base path for API access. + /// + public virtual string BasePath + { + get { return _basePath; } + set { _basePath = value; } + } + + /// + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. + /// + public virtual bool UseDefaultCredentials + { + get { return _useDefaultCredentials; } + set { _useDefaultCredentials = value; } + } + + /// + /// Gets or sets the default header. + /// + [Obsolete("Use DefaultHeaders instead.")] + public virtual IDictionary DefaultHeader + { + get + { + return DefaultHeaders; + } + set + { + DefaultHeaders = value; + } + } + + /// + /// Gets or sets the default headers. + /// + public virtual IDictionary DefaultHeaders { get; set; } + + /// + /// Gets or sets the HTTP timeout of ApiClient. Defaults to 100 seconds. + /// + public virtual TimeSpan Timeout { get; set; } + + /// + /// Gets or sets the proxy + /// + /// Proxy. + public virtual WebProxy Proxy { get; set; } + + /// + /// Gets or sets the HTTP user agent. + /// + /// Http user agent. + public virtual string UserAgent { get; set; } + + /// + /// Gets or sets the username (HTTP basic authentication). + /// + /// The username. + public virtual string Username { get; set; } + + /// + /// Gets or sets the password (HTTP basic authentication). + /// + /// The password. + public virtual string Password { get; set; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + public string GetApiKeyWithPrefix(string apiKeyIdentifier) + { + string apiKeyValue; + ApiKey.TryGetValue(apiKeyIdentifier, out apiKeyValue); + string apiKeyPrefix; + if (ApiKeyPrefix.TryGetValue(apiKeyIdentifier, out apiKeyPrefix)) + { + return apiKeyPrefix + " " + apiKeyValue; + } + + return apiKeyValue; + } + + /// + /// Gets or sets certificate collection to be sent with requests. + /// + /// X509 Certificate collection. + public X509CertificateCollection ClientCertificates { get; set; } + + /// + /// Gets or sets the access token for OAuth2 authentication. + /// + /// This helper property simplifies code generation. + /// + /// The access token. + public virtual string AccessToken { get; set; } + + /// + /// Gets or sets the temporary folder path to store the files downloaded from the server. + /// + /// Folder path. + public virtual string TempFolderPath + { + get { return _tempFolderPath; } + + set + { + if (string.IsNullOrEmpty(value)) + { + _tempFolderPath = Path.GetTempPath(); + return; + } + + // create the directory if it does not exist + if (!Directory.Exists(value)) + { + Directory.CreateDirectory(value); + } + + // check if the path contains directory separator at the end + if (value[value.Length - 1] == Path.DirectorySeparatorChar) + { + _tempFolderPath = value; + } + else + { + _tempFolderPath = value + Path.DirectorySeparatorChar; + } + } + } + + /// + /// Gets or sets the date time format used when serializing in the ApiClient + /// By default, it's set to ISO 8601 - "o", for others see: + /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx + /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx + /// No validation is done to ensure that the string you're providing is valid + /// + /// The DateTimeFormat string + public virtual string DateTimeFormat + { + get { return _dateTimeFormat; } + set + { + if (string.IsNullOrEmpty(value)) + { + // Never allow a blank or null string, go back to the default + _dateTimeFormat = ISO8601_DATETIME_FORMAT; + return; + } + + // Caution, no validation when you choose date time format other than ISO 8601 + // Take a look at the above links + _dateTimeFormat = value; + } + } + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// Whatever you set here will be prepended to the value defined in AddApiKey. + /// + /// An example invocation here might be: + /// + /// ApiKeyPrefix["Authorization"] = "Bearer"; + /// + /// … where ApiKey["Authorization"] would then be used to set the value of your bearer token. + /// + /// + /// OAuth2 workflows should set tokens via AccessToken. + /// + /// + /// The prefix of the API key. + public virtual IDictionary ApiKeyPrefix + { + get { return _apiKeyPrefix; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); + } + _apiKeyPrefix = value; + } + } + + /// + /// Gets or sets the API key based on the authentication name. + /// + /// The API key. + public virtual IDictionary ApiKey + { + get { return _apiKey; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKey collection may not be null."); + } + _apiKey = value; + } + } + + /// + /// Gets or sets the servers. + /// + /// The servers. + public virtual IList> Servers + { + get { return _servers; } + set + { + if (value == null) + { + throw new InvalidOperationException("Servers may not be null."); + } + _servers = value; + } + } + + /// + /// Gets or sets the operation servers. + /// + /// The operation servers. + public virtual IReadOnlyDictionary>> OperationServers + { + get { return _operationServers; } + set + { + if (value == null) + { + throw new InvalidOperationException("Operation servers may not be null."); + } + _operationServers = value; + } + } + + /// + /// Returns URL based on server settings without providing values + /// for the variables + /// + /// Array index of the server settings. + /// The server URL. + public string GetServerUrl(int index) + { + return GetServerUrl(Servers, index, null); + } + + /// + /// Returns URL based on server settings. + /// + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The server URL. + public string GetServerUrl(int index, Dictionary inputVariables) + { + return GetServerUrl(Servers, index, inputVariables); + } + + /// + /// Returns URL based on operation server settings. + /// + /// Operation associated with the request path. + /// Array index of the server settings. + /// The operation server URL. + public string GetOperationServerUrl(string operation, int index) + { + return GetOperationServerUrl(operation, index, null); + } + + /// + /// Returns URL based on operation server settings. + /// + /// Operation associated with the request path. + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The operation server URL. + public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) + { + if (operation != null && OperationServers.TryGetValue(operation, out var operationServer)) + { + return GetServerUrl(operationServer, index, inputVariables); + } + + return null; + } + + /// + /// Returns URL based on server settings. + /// + /// Dictionary of server settings. + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The server URL. + private string GetServerUrl(IList> servers, int index, Dictionary inputVariables) + { + if (index < 0 || index >= servers.Count) + { + throw new InvalidOperationException($"Invalid index {index} when selecting the server. Must be less than {servers.Count}."); + } + + if (inputVariables == null) + { + inputVariables = new Dictionary(); + } + + IReadOnlyDictionary server = servers[index]; + string url = (string)server["url"]; + + if (server.ContainsKey("variables")) + { + // go through each variable and assign a value + foreach (KeyValuePair variable in (IReadOnlyDictionary)server["variables"]) + { + + IReadOnlyDictionary serverVariables = (IReadOnlyDictionary)(variable.Value); + + if (inputVariables.ContainsKey(variable.Key)) + { + if (((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) + { + url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]); + } + else + { + throw new InvalidOperationException($"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}"); + } + } + else + { + // use default value + url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); + } + } + } + + return url; + } + + /// + /// Gets and Sets the RemoteCertificateValidationCallback + /// + public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; } + + #endregion Properties + + #region Methods + + /// + /// Returns a string with essential information for debugging. + /// + public static string ToDebugReport() + { + string report = "C# SDK (ProxmoxSharp) Debug Report:\n"; + report += " OS: " + System.Environment.OSVersion + "\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; + report += " Version of the API: 2.0\n"; + report += " SDK Package Version: 1.0.0\n"; + + return report; + } + + /// + /// Add Api Key Header. + /// + /// Api Key name. + /// Api Key value. + /// + public void AddApiKey(string key, string value) + { + ApiKey[key] = value; + } + + /// + /// Sets the API key prefix. + /// + /// Api Key name. + /// Api Key value. + public void AddApiKeyPrefix(string key, string value) + { + ApiKeyPrefix[key] = value; + } + + #endregion Methods + + #region Static Members + /// + /// Merge configurations. + /// + /// First configuration. + /// Second configuration. + /// Merged configuration. + public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, IReadableConfiguration second) + { + if (second == null) return first ?? GlobalConfiguration.Instance; + + Dictionary apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + + foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value; + foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value; + foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value; + + var config = new Configuration + { + ApiKey = apiKey, + ApiKeyPrefix = apiKeyPrefix, + DefaultHeaders = defaultHeaders, + BasePath = second.BasePath ?? first.BasePath, + Timeout = second.Timeout, + Proxy = second.Proxy ?? first.Proxy, + UserAgent = second.UserAgent ?? first.UserAgent, + Username = second.Username ?? first.Username, + Password = second.Password ?? first.Password, + AccessToken = second.AccessToken ?? first.AccessToken, + TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, + UseDefaultCredentials = second.UseDefaultCredentials, + RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? first.RemoteCertificateValidationCallback, + }; + return config; + } + #endregion Static Members + } +} diff --git a/src/ProxmoxSharp/Client/ExceptionFactory.cs b/src/ProxmoxSharp/Client/ExceptionFactory.cs new file mode 100644 index 0000000..3dfef07 --- /dev/null +++ b/src/ProxmoxSharp/Client/ExceptionFactory.cs @@ -0,0 +1,23 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace ProxmoxSharp.Client +{ + /// + /// A delegate to ExceptionFactory method + /// + /// Method name + /// Response + /// Exceptions + public delegate Exception ExceptionFactory(string methodName, IApiResponse response); +} diff --git a/src/ProxmoxSharp/Client/GlobalConfiguration.cs b/src/ProxmoxSharp/Client/GlobalConfiguration.cs new file mode 100644 index 0000000..b00603a --- /dev/null +++ b/src/ProxmoxSharp/Client/GlobalConfiguration.cs @@ -0,0 +1,68 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System.Collections.Generic; + +namespace ProxmoxSharp.Client +{ + /// + /// provides a compile-time extension point for globally configuring + /// API Clients. + /// + /// + /// A customized implementation via partial class may reside in another file and may + /// be excluded from automatic generation via a .openapi-generator-ignore file. + /// + public partial class GlobalConfiguration : Configuration + { + #region Private Members + + private static readonly object GlobalConfigSync = new { }; + private static IReadableConfiguration _globalConfiguration; + + #endregion Private Members + + #region Constructors + + /// + private GlobalConfiguration() + { + } + + /// + public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base(defaultHeader, apiKey, apiKeyPrefix, basePath) + { + } + + static GlobalConfiguration() + { + Instance = new GlobalConfiguration(); + } + + #endregion Constructors + + /// + /// Gets or sets the default Configuration. + /// + /// Configuration. + public static IReadableConfiguration Instance + { + get { return _globalConfiguration; } + set + { + lock (GlobalConfigSync) + { + _globalConfiguration = value; + } + } + } + } +} diff --git a/src/ProxmoxSharp/Client/HttpMethod.cs b/src/ProxmoxSharp/Client/HttpMethod.cs new file mode 100644 index 0000000..50c49e3 --- /dev/null +++ b/src/ProxmoxSharp/Client/HttpMethod.cs @@ -0,0 +1,34 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +namespace ProxmoxSharp.Client +{ + /// + /// Http methods supported by swagger + /// + public enum HttpMethod + { + /// HTTP GET request. + Get, + /// HTTP POST request. + Post, + /// HTTP PUT request. + Put, + /// HTTP DELETE request. + Delete, + /// HTTP HEAD request. + Head, + /// HTTP OPTIONS request. + Options, + /// HTTP PATCH request. + Patch + } +} diff --git a/src/ProxmoxSharp/Client/IApiAccessor.cs b/src/ProxmoxSharp/Client/IApiAccessor.cs new file mode 100644 index 0000000..91be6ad --- /dev/null +++ b/src/ProxmoxSharp/Client/IApiAccessor.cs @@ -0,0 +1,38 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace ProxmoxSharp.Client +{ + /// + /// Represents configuration aspects required to interact with the API endpoints. + /// + public interface IApiAccessor + { + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + IReadableConfiguration Configuration { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + string GetBasePath(); + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + ExceptionFactory ExceptionFactory { get; set; } + } +} diff --git a/src/ProxmoxSharp/Client/IAsynchronousClient.cs b/src/ProxmoxSharp/Client/IAsynchronousClient.cs new file mode 100644 index 0000000..40cddb3 --- /dev/null +++ b/src/ProxmoxSharp/Client/IAsynchronousClient.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Threading.Tasks; + +namespace ProxmoxSharp.Client +{ + /// + /// Contract for Asynchronous RESTful API interactions. + /// + /// This interface allows consumers to provide a custom API accessor client. + /// + public interface IAsynchronousClient + { + /// + /// Executes a non-blocking call to some using the GET http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the POST http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the PUT http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the DELETE http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the HEAD http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the OPTIONS http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the PATCH http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + } +} diff --git a/src/ProxmoxSharp/Client/IReadableConfiguration.cs b/src/ProxmoxSharp/Client/IReadableConfiguration.cs new file mode 100644 index 0000000..a04070f --- /dev/null +++ b/src/ProxmoxSharp/Client/IReadableConfiguration.cs @@ -0,0 +1,142 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Net; +using System.Net.Security; +using System.Security.Cryptography.X509Certificates; + +namespace ProxmoxSharp.Client +{ + /// + /// Represents a readable-only configuration contract. + /// + public interface IReadableConfiguration + { + /// + /// Gets the access token. + /// + /// Access token. + string AccessToken { get; } + + /// + /// Gets the API key. + /// + /// API key. + IDictionary ApiKey { get; } + + /// + /// Gets the API key prefix. + /// + /// API key prefix. + IDictionary ApiKeyPrefix { get; } + + /// + /// Gets the base path. + /// + /// Base path. + string BasePath { get; } + + /// + /// Gets the date time format. + /// + /// Date time format. + string DateTimeFormat { get; } + + /// + /// Gets the default header. + /// + /// Default header. + [Obsolete("Use DefaultHeaders instead.")] + IDictionary DefaultHeader { get; } + + /// + /// Gets the default headers. + /// + /// Default headers. + IDictionary DefaultHeaders { get; } + + /// + /// Gets the temp folder path. + /// + /// Temp folder path. + string TempFolderPath { get; } + + /// + /// Gets the HTTP connection timeout. + /// + /// HTTP connection timeout. + TimeSpan Timeout { get; } + + /// + /// Gets the proxy. + /// + /// Proxy. + WebProxy Proxy { get; } + + /// + /// Gets the user agent. + /// + /// User agent. + string UserAgent { get; } + + /// + /// Gets the username. + /// + /// Username. + string Username { get; } + + /// + /// Gets the password. + /// + /// Password. + string Password { get; } + + /// + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. + /// + bool UseDefaultCredentials { get; } + + /// + /// Get the servers associated with the operation. + /// + /// Operation servers. + IReadOnlyDictionary>> OperationServers { get; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + string GetApiKeyWithPrefix(string apiKeyIdentifier); + + /// + /// Gets the Operation server url at the provided index. + /// + /// Operation server name. + /// Index of the operation server settings. + /// + string GetOperationServerUrl(string operation, int index); + + /// + /// Gets certificate collection to be sent with requests. + /// + /// X509 Certificate collection. + X509CertificateCollection ClientCertificates { get; } + + /// + /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and + /// overriding certificate errors in the scope of a request. + /// + RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; } + } +} diff --git a/src/ProxmoxSharp/Client/ISynchronousClient.cs b/src/ProxmoxSharp/Client/ISynchronousClient.cs new file mode 100644 index 0000000..466e6c0 --- /dev/null +++ b/src/ProxmoxSharp/Client/ISynchronousClient.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.IO; + +namespace ProxmoxSharp.Client +{ + /// + /// Contract for Synchronous RESTful API interactions. + /// + /// This interface allows consumers to provide a custom API accessor client. + /// + public interface ISynchronousClient + { + /// + /// Executes a blocking call to some using the GET http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the POST http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the PUT http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the DELETE http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the HEAD http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the OPTIONS http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the PATCH http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); + } +} diff --git a/src/ProxmoxSharp/Client/Multimap.cs b/src/ProxmoxSharp/Client/Multimap.cs new file mode 100644 index 0000000..dc3a611 --- /dev/null +++ b/src/ProxmoxSharp/Client/Multimap.cs @@ -0,0 +1,296 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace ProxmoxSharp.Client +{ + /// + /// A dictionary in which one key has many associated values. + /// + /// The type of the key + /// The type of the value associated with the key. + public class Multimap : IDictionary> + { + #region Private Fields + + private readonly Dictionary> _dictionary; + + #endregion Private Fields + + #region Constructors + + /// + /// Empty Constructor. + /// + public Multimap() + { + _dictionary = new Dictionary>(); + } + + /// + /// Constructor with comparer. + /// + /// + public Multimap(IEqualityComparer comparer) + { + _dictionary = new Dictionary>(comparer); + } + + #endregion Constructors + + #region Enumerators + + /// + /// To get the enumerator. + /// + /// Enumerator + public IEnumerator>> GetEnumerator() + { + return _dictionary.GetEnumerator(); + } + + /// + /// To get the enumerator. + /// + /// Enumerator + IEnumerator IEnumerable.GetEnumerator() + { + return _dictionary.GetEnumerator(); + } + + #endregion Enumerators + + #region Public Members + /// + /// Add values to Multimap + /// + /// Key value pair + public void Add(KeyValuePair> item) + { + if (!TryAdd(item.Key, item.Value)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + + /// + /// Add Multimap to Multimap + /// + /// Multimap + public void Add(Multimap multimap) + { + foreach (var item in multimap) + { + if (!TryAdd(item.Key, item.Value)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + } + + /// + /// Clear Multimap + /// + public void Clear() + { + _dictionary.Clear(); + } + + /// + /// Determines whether Multimap contains the specified item. + /// + /// Key value pair + /// Method needs to be implemented + /// true if the Multimap contains the item; otherwise, false. + public bool Contains(KeyValuePair> item) + { + throw new NotImplementedException(); + } + + /// + /// Copy items of the Multimap to an array, + /// starting at a particular array index. + /// + /// The array that is the destination of the items copied + /// from Multimap. The array must have zero-based indexing. + /// The zero-based index in array at which copying begins. + /// Method needs to be implemented + public void CopyTo(KeyValuePair>[] array, int arrayIndex) + { + throw new NotImplementedException(); + } + + /// + /// Removes the specified item from the Multimap. + /// + /// Key value pair + /// true if the item is successfully removed; otherwise, false. + /// Method needs to be implemented + public bool Remove(KeyValuePair> item) + { + throw new NotImplementedException(); + } + + /// + /// Gets the number of items contained in the Multimap. + /// + public int Count => _dictionary.Count; + + /// + /// Gets a value indicating whether the Multimap is read-only. + /// + public bool IsReadOnly => false; + + /// + /// Adds an item with the provided key and value to the Multimap. + /// + /// The object to use as the key of the item to add. + /// The object to use as the value of the item to add. + /// Thrown when couldn't add the value to Multimap. + public void Add(TKey key, IList value) + { + if (value != null && value.Count > 0) + { + if (_dictionary.TryGetValue(key, out var list)) + { + foreach (var k in value) list.Add(k); + } + else + { + list = new List(value); + if (!TryAdd(key, list)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + } + } + + /// + /// Determines whether the Multimap contains an item with the specified key. + /// + /// The key to locate in the Multimap. + /// true if the Multimap contains an item with + /// the key; otherwise, false. + public bool ContainsKey(TKey key) + { + return _dictionary.ContainsKey(key); + } + + /// + /// Removes item with the specified key from the Multimap. + /// + /// The key to locate in the Multimap. + /// true if the item is successfully removed; otherwise, false. + public bool Remove(TKey key) + { + return TryRemove(key, out var _); + } + + /// + /// Gets the value associated with the specified key. + /// + /// The key whose value to get. + /// When this method returns, the value associated with the specified key, if the + /// key is found; otherwise, the default value for the type of the value parameter. + /// This parameter is passed uninitialized. + /// true if the object that implements Multimap contains + /// an item with the specified key; otherwise, false. + public bool TryGetValue(TKey key, out IList value) + { + return _dictionary.TryGetValue(key, out value); + } + + /// + /// Gets or sets the item with the specified key. + /// + /// The key of the item to get or set. + /// The value of the specified key. + public IList this[TKey key] + { + get => _dictionary[key]; + set => _dictionary[key] = value; + } + + /// + /// Gets a System.Collections.Generic.ICollection containing the keys of the Multimap. + /// + public ICollection Keys => _dictionary.Keys; + + /// + /// Gets a System.Collections.Generic.ICollection containing the values of the Multimap. + /// + public ICollection> Values => _dictionary.Values; + + /// + /// Copy the items of the Multimap to an System.Array, + /// starting at a particular System.Array index. + /// + /// The one-dimensional System.Array that is the destination of the items copied + /// from Multimap. The System.Array must have zero-based indexing. + /// The zero-based index in array at which copying begins. + public void CopyTo(Array array, int index) + { + ((ICollection)_dictionary).CopyTo(array, index); + } + + /// + /// Adds an item with the provided key and value to the Multimap. + /// + /// The object to use as the key of the item to add. + /// The object to use as the value of the item to add. + /// Thrown when couldn't add value to Multimap. + public void Add(TKey key, TValue value) + { + if (value != null) + { + if (_dictionary.TryGetValue(key, out var list)) + { + list.Add(value); + } + else + { + list = new List { value }; + if (!TryAdd(key, list)) + throw new InvalidOperationException("Could not add value to Multimap."); + } + } + } + + #endregion Public Members + + #region Private Members + + /** + * Helper method to encapsulate generator differences between dictionary types. + */ + private bool TryRemove(TKey key, out IList value) + { + _dictionary.TryGetValue(key, out value); + return _dictionary.Remove(key); + } + + /** + * Helper method to encapsulate generator differences between dictionary types. + */ + private bool TryAdd(TKey key, IList value) + { + try + { + _dictionary.Add(key, value); + } + catch (ArgumentException) + { + return false; + } + + return true; + } + #endregion Private Members + } +} diff --git a/src/ProxmoxSharp/Client/OpenAPIDateConverter.cs b/src/ProxmoxSharp/Client/OpenAPIDateConverter.cs new file mode 100644 index 0000000..901340d --- /dev/null +++ b/src/ProxmoxSharp/Client/OpenAPIDateConverter.cs @@ -0,0 +1,30 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using Newtonsoft.Json.Converters; + +namespace ProxmoxSharp.Client +{ + /// + /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types + /// + public class OpenAPIDateConverter : IsoDateTimeConverter + { + /// + /// Initializes a new instance of the class. + /// + public OpenAPIDateConverter() + { + // full-date = date-fullyear "-" date-month "-" date-mday + DateTimeFormat = "yyyy-MM-dd"; + } + } +} diff --git a/src/ProxmoxSharp/Client/RequestOptions.cs b/src/ProxmoxSharp/Client/RequestOptions.cs new file mode 100644 index 0000000..43e94cc --- /dev/null +++ b/src/ProxmoxSharp/Client/RequestOptions.cs @@ -0,0 +1,85 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; + +namespace ProxmoxSharp.Client +{ + /// + /// A container for generalized request inputs. This type allows consumers to extend the request functionality + /// by abstracting away from the default (built-in) request framework (e.g. RestSharp). + /// + public class RequestOptions + { + /// + /// Parameters to be bound to path parts of the Request's URL + /// + public Dictionary PathParameters { get; set; } + + /// + /// Query parameters to be applied to the request. + /// Keys may have 1 or more values associated. + /// + public Multimap QueryParameters { get; set; } + + /// + /// Header parameters to be applied to the request. + /// Keys may have 1 or more values associated. + /// + public Multimap HeaderParameters { get; set; } + + /// + /// Form parameters to be sent along with the request. + /// + public Dictionary FormParameters { get; set; } + + /// + /// File parameters to be sent along with the request. + /// + public Multimap FileParameters { get; set; } + + /// + /// Cookies to be sent along with the request. + /// + public List Cookies { get; set; } + + /// + /// Operation associated with the request path. + /// + public string Operation { get; set; } + + /// + /// Index associated with the operation. + /// + public int OperationIndex { get; set; } + + /// + /// Any data associated with a request body. + /// + public Object Data { get; set; } + + /// + /// Constructs a new instance of + /// + public RequestOptions() + { + PathParameters = new Dictionary(); + QueryParameters = new Multimap(); + HeaderParameters = new Multimap(); + FormParameters = new Dictionary(); + FileParameters = new Multimap(); + Cookies = new List(); + } + } +} diff --git a/src/ProxmoxSharp/Client/RetryConfiguration.cs b/src/ProxmoxSharp/Client/RetryConfiguration.cs new file mode 100644 index 0000000..cc8b8b2 --- /dev/null +++ b/src/ProxmoxSharp/Client/RetryConfiguration.cs @@ -0,0 +1,32 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Polly; +using RestSharp; + +namespace ProxmoxSharp.Client +{ + /// + /// Configuration class to set the polly retry policies to be applied to the requests. + /// + public static class RetryConfiguration + { + /// + /// Retry policy + /// + public static Policy RetryPolicy { get; set; } + + /// + /// Async retry policy + /// + public static AsyncPolicy AsyncRetryPolicy { get; set; } + } +} diff --git a/src/ProxmoxSharp/Interfaces/IProxmoxClient.cs b/src/ProxmoxSharp/Interfaces/IProxmoxClient.cs deleted file mode 100644 index 258304e..0000000 --- a/src/ProxmoxSharp/Interfaces/IProxmoxClient.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using ProxmoxSharp.Models; -using System.Collections.Generic; -using System.Threading.Tasks; - -namespace ProxmoxSharp.Interfaces -{ - public interface IProxmoxClient - { - Task LoginAsync(string username, string password); - - Task> ListNodesAsync(); - - Task GetNodeStatusAsync(string node); - - Task> ListVirtualMachinesAsync(string node); - - Task GetVirtualMachineStatusAsync(string node, int vmid); - - Task CreateVirtualMachineAsync(string node, int vmid, string name, int memoryMb, int cores, string storage, string iso, string netConfig = "virtio,bridge=vmbr0"); - - Task StartVirtualMachineAsync(string node, int vmid); - - Task RebootVirtualMachineAsync(string node, int vmid); - - Task ResetVirtualMachineAsync(string node, int vmid); - - Task SuspendVirtualMachineAsync(string node, int vmid); - - Task ResumeVirtualMachineAsync(string node, int vmid); - - Task ShutdownVirtualMachineAsync(string node, int vmid); - - Task StopVirtualMachineAsync(string node, int vmid); - - Task> ListContainersAsync(string node); - } -} diff --git a/src/ProxmoxSharp/Model/AbstractOpenAPISchema.cs b/src/ProxmoxSharp/Model/AbstractOpenAPISchema.cs new file mode 100644 index 0000000..3a4c9bf --- /dev/null +++ b/src/ProxmoxSharp/Model/AbstractOpenAPISchema.cs @@ -0,0 +1,77 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; + +namespace ProxmoxSharp.Model +{ + /// + /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification + /// + public abstract partial class AbstractOpenAPISchema + { + /// + /// Custom JSON serializer + /// + static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Error, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Custom JSON serializer for objects with additional properties + /// + static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Ignore, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Gets or Sets the actual instance + /// + public abstract Object ActualInstance { get; set; } + + /// + /// Gets or Sets IsNullable to indicate whether the instance is nullable + /// + public bool IsNullable { get; protected set; } + + /// + /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` + /// + public string SchemaType { get; protected set; } + + /// + /// Converts the instance into JSON string. + /// + public abstract string ToJson(); + } +} diff --git a/src/ProxmoxSharp/Model/AddClusterFirewallGroupRuleRequest.cs b/src/ProxmoxSharp/Model/AddClusterFirewallGroupRuleRequest.cs new file mode 100644 index 0000000..5cb171a --- /dev/null +++ b/src/ProxmoxSharp/Model/AddClusterFirewallGroupRuleRequest.cs @@ -0,0 +1,224 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// AddClusterFirewallGroupRuleRequest + /// + [DataContract(Name = "AddClusterFirewallGroupRuleRequest")] + public partial class AddClusterFirewallGroupRuleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AddClusterFirewallGroupRuleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// action (required). + /// comment. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// pos. + /// proto. + /// source. + /// sport. + /// type (required). + public AddClusterFirewallGroupRuleRequest(string action = default(string), string comment = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int pos = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + // to ensure "action" is required (not null) + if (action == null) + { + throw new ArgumentNullException("action is a required property for AddClusterFirewallGroupRuleRequest and cannot be null"); + } + this.Action = action; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for AddClusterFirewallGroupRuleRequest and cannot be null"); + } + this.Type = type; + this.Comment = comment; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Pos = pos; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Pos + /// + [DataMember(Name = "pos", EmitDefaultValue = false)] + public int Pos { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AddClusterFirewallGroupRuleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Pos: ").Append(Pos).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/AddClusterFirewallIPSetIPRequest.cs b/src/ProxmoxSharp/Model/AddClusterFirewallIPSetIPRequest.cs new file mode 100644 index 0000000..20b9ad1 --- /dev/null +++ b/src/ProxmoxSharp/Model/AddClusterFirewallIPSetIPRequest.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// AddClusterFirewallIPSetIPRequest + /// + [DataContract(Name = "AddClusterFirewallIPSetIPRequest")] + public partial class AddClusterFirewallIPSetIPRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AddClusterFirewallIPSetIPRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// nomatch. + public AddClusterFirewallIPSetIPRequest(string cidr = default(string), string comment = default(string), bool nomatch = default(bool)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for AddClusterFirewallIPSetIPRequest and cannot be null"); + } + this.Cidr = cidr; + this.Comment = comment; + this.Nomatch = nomatch; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Nomatch + /// + [DataMember(Name = "nomatch", EmitDefaultValue = true)] + public bool Nomatch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AddClusterFirewallIPSetIPRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Nomatch: ").Append(Nomatch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/AddClusterFirewallRuleRequest.cs b/src/ProxmoxSharp/Model/AddClusterFirewallRuleRequest.cs new file mode 100644 index 0000000..e09ee2f --- /dev/null +++ b/src/ProxmoxSharp/Model/AddClusterFirewallRuleRequest.cs @@ -0,0 +1,224 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// AddClusterFirewallRuleRequest + /// + [DataContract(Name = "AddClusterFirewallRuleRequest")] + public partial class AddClusterFirewallRuleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AddClusterFirewallRuleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// action (required). + /// comment. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// pos. + /// proto. + /// source. + /// sport. + /// type (required). + public AddClusterFirewallRuleRequest(string action = default(string), string comment = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int pos = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + // to ensure "action" is required (not null) + if (action == null) + { + throw new ArgumentNullException("action is a required property for AddClusterFirewallRuleRequest and cannot be null"); + } + this.Action = action; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for AddClusterFirewallRuleRequest and cannot be null"); + } + this.Type = type; + this.Comment = comment; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Pos = pos; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Pos + /// + [DataMember(Name = "pos", EmitDefaultValue = false)] + public int Pos { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AddClusterFirewallRuleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Pos: ").Append(Pos).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/AddVMFirewallIPSetIPRequest.cs b/src/ProxmoxSharp/Model/AddVMFirewallIPSetIPRequest.cs new file mode 100644 index 0000000..f5487ff --- /dev/null +++ b/src/ProxmoxSharp/Model/AddVMFirewallIPSetIPRequest.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// AddVMFirewallIPSetIPRequest + /// + [DataContract(Name = "AddVMFirewallIPSetIPRequest")] + public partial class AddVMFirewallIPSetIPRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AddVMFirewallIPSetIPRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// nomatch. + public AddVMFirewallIPSetIPRequest(string cidr = default(string), string comment = default(string), bool nomatch = default(bool)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for AddVMFirewallIPSetIPRequest and cannot be null"); + } + this.Cidr = cidr; + this.Comment = comment; + this.Nomatch = nomatch; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Nomatch + /// + [DataMember(Name = "nomatch", EmitDefaultValue = true)] + public bool Nomatch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AddVMFirewallIPSetIPRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Nomatch: ").Append(Nomatch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CloneVMRequest.cs b/src/ProxmoxSharp/Model/CloneVMRequest.cs new file mode 100644 index 0000000..a939299 --- /dev/null +++ b/src/ProxmoxSharp/Model/CloneVMRequest.cs @@ -0,0 +1,169 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CloneVMRequest + /// + [DataContract(Name = "CloneVMRequest")] + public partial class CloneVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CloneVMRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// description. + /// format. + /// full. + /// name. + /// newid (required). + /// pool. + /// snapname. + /// storage. + /// target. + public CloneVMRequest(int bwlimit = default(int), string description = default(string), string format = default(string), bool full = default(bool), string name = default(string), int newid = default(int), string pool = default(string), string snapname = default(string), string storage = default(string), string target = default(string)) + { + this.Newid = newid; + this.Bwlimit = bwlimit; + this.Description = description; + this.Format = format; + this.Full = full; + this.Name = name; + this.Pool = pool; + this.Snapname = snapname; + this.Storage = storage; + this.Target = target; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public int Bwlimit { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Format + /// + [DataMember(Name = "format", EmitDefaultValue = false)] + public string Format { get; set; } + + /// + /// Gets or Sets Full + /// + [DataMember(Name = "full", EmitDefaultValue = true)] + public bool Full { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Newid + /// + [DataMember(Name = "newid", IsRequired = true, EmitDefaultValue = true)] + public int Newid { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Snapname + /// + [DataMember(Name = "snapname", EmitDefaultValue = false)] + public string Snapname { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", EmitDefaultValue = false)] + public string Target { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CloneVMRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Full: ").Append(Full).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Newid: ").Append(Newid).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Snapname: ").Append(Snapname).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessDomainsRequest.cs b/src/ProxmoxSharp/Model/CreateAccessDomainsRequest.cs new file mode 100644 index 0000000..0da6dac --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessDomainsRequest.cs @@ -0,0 +1,467 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessDomainsRequest + /// + [DataContract(Name = "CreateAccessDomainsRequest")] + public partial class CreateAccessDomainsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessDomainsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// acrValues. + /// autocreate. + /// baseDn. + /// bindDn. + /// capath. + /// caseSensitive. + /// cert. + /// certkey. + /// checkConnection. + /// clientId. + /// clientKey. + /// comment. + /// varDefault. + /// domain. + /// filter. + /// groupClasses. + /// groupDn. + /// groupFilter. + /// groupNameAttr. + /// groupsAutocreate. + /// groupsClaim. + /// groupsOverwrite. + /// issuerUrl. + /// mode. + /// password. + /// port. + /// prompt. + /// queryUserinfo. + /// realm (required). + /// scopes. + /// secure. + /// server1. + /// server2. + /// sslversion. + /// syncDefaultsOptions. + /// syncAttributes. + /// tfa. + /// type (required). + /// userAttr. + /// userClasses. + /// usernameClaim. + /// verify. + public CreateAccessDomainsRequest(string acrValues = default(string), bool autocreate = default(bool), string baseDn = default(string), string bindDn = default(string), string capath = default(string), bool caseSensitive = default(bool), string cert = default(string), string certkey = default(string), bool checkConnection = default(bool), string clientId = default(string), string clientKey = default(string), string comment = default(string), bool varDefault = default(bool), string domain = default(string), string filter = default(string), string groupClasses = default(string), string groupDn = default(string), string groupFilter = default(string), string groupNameAttr = default(string), bool groupsAutocreate = default(bool), string groupsClaim = default(string), bool groupsOverwrite = default(bool), string issuerUrl = default(string), string mode = default(string), string password = default(string), int port = default(int), string prompt = default(string), bool queryUserinfo = default(bool), string realm = default(string), string scopes = default(string), bool secure = default(bool), string server1 = default(string), string server2 = default(string), string sslversion = default(string), string syncDefaultsOptions = default(string), string syncAttributes = default(string), string tfa = default(string), string type = default(string), string userAttr = default(string), string userClasses = default(string), string usernameClaim = default(string), bool verify = default(bool)) + { + // to ensure "realm" is required (not null) + if (realm == null) + { + throw new ArgumentNullException("realm is a required property for CreateAccessDomainsRequest and cannot be null"); + } + this.Realm = realm; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateAccessDomainsRequest and cannot be null"); + } + this.Type = type; + this.AcrValues = acrValues; + this.Autocreate = autocreate; + this.BaseDn = baseDn; + this.BindDn = bindDn; + this.Capath = capath; + this.CaseSensitive = caseSensitive; + this.Cert = cert; + this.Certkey = certkey; + this.CheckConnection = checkConnection; + this.ClientId = clientId; + this.ClientKey = clientKey; + this.Comment = comment; + this.Default = varDefault; + this.Domain = domain; + this.Filter = filter; + this.GroupClasses = groupClasses; + this.GroupDn = groupDn; + this.GroupFilter = groupFilter; + this.GroupNameAttr = groupNameAttr; + this.GroupsAutocreate = groupsAutocreate; + this.GroupsClaim = groupsClaim; + this.GroupsOverwrite = groupsOverwrite; + this.IssuerUrl = issuerUrl; + this.Mode = mode; + this.Password = password; + this.Port = port; + this.Prompt = prompt; + this.QueryUserinfo = queryUserinfo; + this.Scopes = scopes; + this.Secure = secure; + this.Server1 = server1; + this.Server2 = server2; + this.Sslversion = sslversion; + this.SyncDefaultsOptions = syncDefaultsOptions; + this.SyncAttributes = syncAttributes; + this.Tfa = tfa; + this.UserAttr = userAttr; + this.UserClasses = userClasses; + this.UsernameClaim = usernameClaim; + this.Verify = verify; + } + + /// + /// Gets or Sets AcrValues + /// + [DataMember(Name = "acr-values", EmitDefaultValue = false)] + public string AcrValues { get; set; } + + /// + /// Gets or Sets Autocreate + /// + [DataMember(Name = "autocreate", EmitDefaultValue = true)] + public bool Autocreate { get; set; } + + /// + /// Gets or Sets BaseDn + /// + [DataMember(Name = "base_dn", EmitDefaultValue = false)] + public string BaseDn { get; set; } + + /// + /// Gets or Sets BindDn + /// + [DataMember(Name = "bind_dn", EmitDefaultValue = false)] + public string BindDn { get; set; } + + /// + /// Gets or Sets Capath + /// + [DataMember(Name = "capath", EmitDefaultValue = false)] + public string Capath { get; set; } + + /// + /// Gets or Sets CaseSensitive + /// + [DataMember(Name = "case-sensitive", EmitDefaultValue = true)] + public bool CaseSensitive { get; set; } + + /// + /// Gets or Sets Cert + /// + [DataMember(Name = "cert", EmitDefaultValue = false)] + public string Cert { get; set; } + + /// + /// Gets or Sets Certkey + /// + [DataMember(Name = "certkey", EmitDefaultValue = false)] + public string Certkey { get; set; } + + /// + /// Gets or Sets CheckConnection + /// + [DataMember(Name = "check-connection", EmitDefaultValue = true)] + public bool CheckConnection { get; set; } + + /// + /// Gets or Sets ClientId + /// + [DataMember(Name = "client-id", EmitDefaultValue = false)] + public string ClientId { get; set; } + + /// + /// Gets or Sets ClientKey + /// + [DataMember(Name = "client-key", EmitDefaultValue = false)] + public string ClientKey { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Default + /// + [DataMember(Name = "default", EmitDefaultValue = true)] + public bool Default { get; set; } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", EmitDefaultValue = false)] + public string Domain { get; set; } + + /// + /// Gets or Sets Filter + /// + [DataMember(Name = "filter", EmitDefaultValue = false)] + public string Filter { get; set; } + + /// + /// Gets or Sets GroupClasses + /// + [DataMember(Name = "group_classes", EmitDefaultValue = false)] + public string GroupClasses { get; set; } + + /// + /// Gets or Sets GroupDn + /// + [DataMember(Name = "group_dn", EmitDefaultValue = false)] + public string GroupDn { get; set; } + + /// + /// Gets or Sets GroupFilter + /// + [DataMember(Name = "group_filter", EmitDefaultValue = false)] + public string GroupFilter { get; set; } + + /// + /// Gets or Sets GroupNameAttr + /// + [DataMember(Name = "group_name_attr", EmitDefaultValue = false)] + public string GroupNameAttr { get; set; } + + /// + /// Gets or Sets GroupsAutocreate + /// + [DataMember(Name = "groups-autocreate", EmitDefaultValue = true)] + public bool GroupsAutocreate { get; set; } + + /// + /// Gets or Sets GroupsClaim + /// + [DataMember(Name = "groups-claim", EmitDefaultValue = false)] + public string GroupsClaim { get; set; } + + /// + /// Gets or Sets GroupsOverwrite + /// + [DataMember(Name = "groups-overwrite", EmitDefaultValue = true)] + public bool GroupsOverwrite { get; set; } + + /// + /// Gets or Sets IssuerUrl + /// + [DataMember(Name = "issuer-url", EmitDefaultValue = false)] + public string IssuerUrl { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public int Port { get; set; } + + /// + /// Gets or Sets Prompt + /// + [DataMember(Name = "prompt", EmitDefaultValue = false)] + public string Prompt { get; set; } + + /// + /// Gets or Sets QueryUserinfo + /// + [DataMember(Name = "query-userinfo", EmitDefaultValue = true)] + public bool QueryUserinfo { get; set; } + + /// + /// Gets or Sets Realm + /// + [DataMember(Name = "realm", IsRequired = true, EmitDefaultValue = true)] + public string Realm { get; set; } + + /// + /// Gets or Sets Scopes + /// + [DataMember(Name = "scopes", EmitDefaultValue = false)] + public string Scopes { get; set; } + + /// + /// Gets or Sets Secure + /// + [DataMember(Name = "secure", EmitDefaultValue = true)] + public bool Secure { get; set; } + + /// + /// Gets or Sets Server1 + /// + [DataMember(Name = "server1", EmitDefaultValue = false)] + public string Server1 { get; set; } + + /// + /// Gets or Sets Server2 + /// + [DataMember(Name = "server2", EmitDefaultValue = false)] + public string Server2 { get; set; } + + /// + /// Gets or Sets Sslversion + /// + [DataMember(Name = "sslversion", EmitDefaultValue = false)] + public string Sslversion { get; set; } + + /// + /// Gets or Sets SyncDefaultsOptions + /// + [DataMember(Name = "sync-defaults-options", EmitDefaultValue = false)] + public string SyncDefaultsOptions { get; set; } + + /// + /// Gets or Sets SyncAttributes + /// + [DataMember(Name = "sync_attributes", EmitDefaultValue = false)] + public string SyncAttributes { get; set; } + + /// + /// Gets or Sets Tfa + /// + [DataMember(Name = "tfa", EmitDefaultValue = false)] + public string Tfa { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets UserAttr + /// + [DataMember(Name = "user_attr", EmitDefaultValue = false)] + public string UserAttr { get; set; } + + /// + /// Gets or Sets UserClasses + /// + [DataMember(Name = "user_classes", EmitDefaultValue = false)] + public string UserClasses { get; set; } + + /// + /// Gets or Sets UsernameClaim + /// + [DataMember(Name = "username-claim", EmitDefaultValue = false)] + public string UsernameClaim { get; set; } + + /// + /// Gets or Sets Verify + /// + [DataMember(Name = "verify", EmitDefaultValue = true)] + public bool Verify { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessDomainsRequest {\n"); + sb.Append(" AcrValues: ").Append(AcrValues).Append("\n"); + sb.Append(" Autocreate: ").Append(Autocreate).Append("\n"); + sb.Append(" BaseDn: ").Append(BaseDn).Append("\n"); + sb.Append(" BindDn: ").Append(BindDn).Append("\n"); + sb.Append(" Capath: ").Append(Capath).Append("\n"); + sb.Append(" CaseSensitive: ").Append(CaseSensitive).Append("\n"); + sb.Append(" Cert: ").Append(Cert).Append("\n"); + sb.Append(" Certkey: ").Append(Certkey).Append("\n"); + sb.Append(" CheckConnection: ").Append(CheckConnection).Append("\n"); + sb.Append(" ClientId: ").Append(ClientId).Append("\n"); + sb.Append(" ClientKey: ").Append(ClientKey).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Default: ").Append(Default).Append("\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" Filter: ").Append(Filter).Append("\n"); + sb.Append(" GroupClasses: ").Append(GroupClasses).Append("\n"); + sb.Append(" GroupDn: ").Append(GroupDn).Append("\n"); + sb.Append(" GroupFilter: ").Append(GroupFilter).Append("\n"); + sb.Append(" GroupNameAttr: ").Append(GroupNameAttr).Append("\n"); + sb.Append(" GroupsAutocreate: ").Append(GroupsAutocreate).Append("\n"); + sb.Append(" GroupsClaim: ").Append(GroupsClaim).Append("\n"); + sb.Append(" GroupsOverwrite: ").Append(GroupsOverwrite).Append("\n"); + sb.Append(" IssuerUrl: ").Append(IssuerUrl).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Prompt: ").Append(Prompt).Append("\n"); + sb.Append(" QueryUserinfo: ").Append(QueryUserinfo).Append("\n"); + sb.Append(" Realm: ").Append(Realm).Append("\n"); + sb.Append(" Scopes: ").Append(Scopes).Append("\n"); + sb.Append(" Secure: ").Append(Secure).Append("\n"); + sb.Append(" Server1: ").Append(Server1).Append("\n"); + sb.Append(" Server2: ").Append(Server2).Append("\n"); + sb.Append(" Sslversion: ").Append(Sslversion).Append("\n"); + sb.Append(" SyncDefaultsOptions: ").Append(SyncDefaultsOptions).Append("\n"); + sb.Append(" SyncAttributes: ").Append(SyncAttributes).Append("\n"); + sb.Append(" Tfa: ").Append(Tfa).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" UserAttr: ").Append(UserAttr).Append("\n"); + sb.Append(" UserClasses: ").Append(UserClasses).Append("\n"); + sb.Append(" UsernameClaim: ").Append(UsernameClaim).Append("\n"); + sb.Append(" Verify: ").Append(Verify).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessDomainsSingleSync200Response.cs b/src/ProxmoxSharp/Model/CreateAccessDomainsSingleSync200Response.cs new file mode 100644 index 0000000..6a13974 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessDomainsSingleSync200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessDomainsSingleSync200Response + /// + [DataContract(Name = "createAccessDomainsSingleSync_200_response")] + public partial class CreateAccessDomainsSingleSync200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Worker Task-UPID. + public CreateAccessDomainsSingleSync200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Worker Task-UPID + /// + /// Worker Task-UPID + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessDomainsSingleSync200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessDomainsSingleSyncRequest.cs b/src/ProxmoxSharp/Model/CreateAccessDomainsSingleSyncRequest.cs new file mode 100644 index 0000000..7752f3f --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessDomainsSingleSyncRequest.cs @@ -0,0 +1,143 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessDomainsSingleSyncRequest + /// + [DataContract(Name = "CreateAccessDomainsSingleSyncRequest")] + public partial class CreateAccessDomainsSingleSyncRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessDomainsSingleSyncRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// dryRun. + /// enableNew (required). + /// full (required). + /// purge (required). + /// removeVanished (required). + /// scope (required). + public CreateAccessDomainsSingleSyncRequest(bool dryRun = default(bool), bool enableNew = default(bool), bool full = default(bool), bool purge = default(bool), string removeVanished = default(string), string scope = default(string)) + { + this.EnableNew = enableNew; + this.Full = full; + this.Purge = purge; + // to ensure "removeVanished" is required (not null) + if (removeVanished == null) + { + throw new ArgumentNullException("removeVanished is a required property for CreateAccessDomainsSingleSyncRequest and cannot be null"); + } + this.RemoveVanished = removeVanished; + // to ensure "scope" is required (not null) + if (scope == null) + { + throw new ArgumentNullException("scope is a required property for CreateAccessDomainsSingleSyncRequest and cannot be null"); + } + this.Scope = scope; + this.DryRun = dryRun; + } + + /// + /// Gets or Sets DryRun + /// + [DataMember(Name = "dry-run", EmitDefaultValue = true)] + public bool DryRun { get; set; } + + /// + /// Gets or Sets EnableNew + /// + [DataMember(Name = "enable-new", IsRequired = true, EmitDefaultValue = true)] + public bool EnableNew { get; set; } + + /// + /// Gets or Sets Full + /// + [DataMember(Name = "full", IsRequired = true, EmitDefaultValue = true)] + public bool Full { get; set; } + + /// + /// Gets or Sets Purge + /// + [DataMember(Name = "purge", IsRequired = true, EmitDefaultValue = true)] + public bool Purge { get; set; } + + /// + /// Gets or Sets RemoveVanished + /// + [DataMember(Name = "remove-vanished", IsRequired = true, EmitDefaultValue = true)] + public string RemoveVanished { get; set; } + + /// + /// Gets or Sets Scope + /// + [DataMember(Name = "scope", IsRequired = true, EmitDefaultValue = true)] + public string Scope { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessDomainsSingleSyncRequest {\n"); + sb.Append(" DryRun: ").Append(DryRun).Append("\n"); + sb.Append(" EnableNew: ").Append(EnableNew).Append("\n"); + sb.Append(" Full: ").Append(Full).Append("\n"); + sb.Append(" Purge: ").Append(Purge).Append("\n"); + sb.Append(" RemoveVanished: ").Append(RemoveVanished).Append("\n"); + sb.Append(" Scope: ").Append(Scope).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessGroupsRequest.cs b/src/ProxmoxSharp/Model/CreateAccessGroupsRequest.cs new file mode 100644 index 0000000..5e5267f --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessGroupsRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessGroupsRequest + /// + [DataContract(Name = "CreateAccessGroupsRequest")] + public partial class CreateAccessGroupsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessGroupsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// groupid (required). + public CreateAccessGroupsRequest(string comment = default(string), string groupid = default(string)) + { + // to ensure "groupid" is required (not null) + if (groupid == null) + { + throw new ArgumentNullException("groupid is a required property for CreateAccessGroupsRequest and cannot be null"); + } + this.Groupid = groupid; + this.Comment = comment; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Groupid + /// + [DataMember(Name = "groupid", IsRequired = true, EmitDefaultValue = true)] + public string Groupid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessGroupsRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Groupid: ").Append(Groupid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessOpenidAuthurl200Response.cs b/src/ProxmoxSharp/Model/CreateAccessOpenidAuthurl200Response.cs new file mode 100644 index 0000000..83c3d3e --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessOpenidAuthurl200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessOpenidAuthurl200Response + /// + [DataContract(Name = "createAccessOpenidAuthurl_200_response")] + public partial class CreateAccessOpenidAuthurl200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Redirection URL.. + public CreateAccessOpenidAuthurl200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Redirection URL. + /// + /// Redirection URL. + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessOpenidAuthurl200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessOpenidAuthurlRequest.cs b/src/ProxmoxSharp/Model/CreateAccessOpenidAuthurlRequest.cs new file mode 100644 index 0000000..8ae817b --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessOpenidAuthurlRequest.cs @@ -0,0 +1,107 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessOpenidAuthurlRequest + /// + [DataContract(Name = "CreateAccessOpenidAuthurlRequest")] + public partial class CreateAccessOpenidAuthurlRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessOpenidAuthurlRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// realm (required). + /// redirectUrl (required). + public CreateAccessOpenidAuthurlRequest(string realm = default(string), string redirectUrl = default(string)) + { + // to ensure "realm" is required (not null) + if (realm == null) + { + throw new ArgumentNullException("realm is a required property for CreateAccessOpenidAuthurlRequest and cannot be null"); + } + this.Realm = realm; + // to ensure "redirectUrl" is required (not null) + if (redirectUrl == null) + { + throw new ArgumentNullException("redirectUrl is a required property for CreateAccessOpenidAuthurlRequest and cannot be null"); + } + this.RedirectUrl = redirectUrl; + } + + /// + /// Gets or Sets Realm + /// + [DataMember(Name = "realm", IsRequired = true, EmitDefaultValue = true)] + public string Realm { get; set; } + + /// + /// Gets or Sets RedirectUrl + /// + [DataMember(Name = "redirect-url", IsRequired = true, EmitDefaultValue = true)] + public string RedirectUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessOpenidAuthurlRequest {\n"); + sb.Append(" Realm: ").Append(Realm).Append("\n"); + sb.Append(" RedirectUrl: ").Append(RedirectUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessOpenidLoginRequest.cs b/src/ProxmoxSharp/Model/CreateAccessOpenidLoginRequest.cs new file mode 100644 index 0000000..c49617a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessOpenidLoginRequest.cs @@ -0,0 +1,121 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessOpenidLoginRequest + /// + [DataContract(Name = "CreateAccessOpenidLoginRequest")] + public partial class CreateAccessOpenidLoginRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessOpenidLoginRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// code (required). + /// redirectUrl (required). + /// state (required). + public CreateAccessOpenidLoginRequest(string code = default(string), string redirectUrl = default(string), string state = default(string)) + { + // to ensure "code" is required (not null) + if (code == null) + { + throw new ArgumentNullException("code is a required property for CreateAccessOpenidLoginRequest and cannot be null"); + } + this.Code = code; + // to ensure "redirectUrl" is required (not null) + if (redirectUrl == null) + { + throw new ArgumentNullException("redirectUrl is a required property for CreateAccessOpenidLoginRequest and cannot be null"); + } + this.RedirectUrl = redirectUrl; + // to ensure "state" is required (not null) + if (state == null) + { + throw new ArgumentNullException("state is a required property for CreateAccessOpenidLoginRequest and cannot be null"); + } + this.State = state; + } + + /// + /// Gets or Sets Code + /// + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public string Code { get; set; } + + /// + /// Gets or Sets RedirectUrl + /// + [DataMember(Name = "redirect-url", IsRequired = true, EmitDefaultValue = true)] + public string RedirectUrl { get; set; } + + /// + /// Gets or Sets State + /// + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public string State { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessOpenidLoginRequest {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" RedirectUrl: ").Append(RedirectUrl).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessRolesRequest.cs b/src/ProxmoxSharp/Model/CreateAccessRolesRequest.cs new file mode 100644 index 0000000..e001802 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessRolesRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessRolesRequest + /// + [DataContract(Name = "CreateAccessRolesRequest")] + public partial class CreateAccessRolesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessRolesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// privs. + /// roleid (required). + public CreateAccessRolesRequest(string privs = default(string), string roleid = default(string)) + { + // to ensure "roleid" is required (not null) + if (roleid == null) + { + throw new ArgumentNullException("roleid is a required property for CreateAccessRolesRequest and cannot be null"); + } + this.Roleid = roleid; + this.Privs = privs; + } + + /// + /// Gets or Sets Privs + /// + [DataMember(Name = "privs", EmitDefaultValue = false)] + public string Privs { get; set; } + + /// + /// Gets or Sets Roleid + /// + [DataMember(Name = "roleid", IsRequired = true, EmitDefaultValue = true)] + public string Roleid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessRolesRequest {\n"); + sb.Append(" Privs: ").Append(Privs).Append("\n"); + sb.Append(" Roleid: ").Append(Roleid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessTfaSingle200Response.cs b/src/ProxmoxSharp/Model/CreateAccessTfaSingle200Response.cs new file mode 100644 index 0000000..ee20a31 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessTfaSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessTfaSingle200Response + /// + [DataContract(Name = "createAccessTfaSingle_200_response")] + public partial class CreateAccessTfaSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateAccessTfaSingle200Response(List errors = default(List), CreateAccessTfaSingle200ResponseData data = default(CreateAccessTfaSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public CreateAccessTfaSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessTfaSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessTfaSingle200ResponseData.cs b/src/ProxmoxSharp/Model/CreateAccessTfaSingle200ResponseData.cs new file mode 100644 index 0000000..d1e5213 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessTfaSingle200ResponseData.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessTfaSingle200ResponseData + /// + [DataContract(Name = "createAccessTfaSingle_200_response_data")] + public partial class CreateAccessTfaSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// When adding u2f entries, this contains a challenge the user must respond to in order to finish the registration.. + /// The id of a newly added TFA entry.. + /// When adding recovery codes, this contains the list of codes to be displayed to the user. + public CreateAccessTfaSingle200ResponseData(string challenge = default(string), string id = default(string), List recovery = default(List)) + { + this.Challenge = challenge; + this.Id = id; + this.Recovery = recovery; + } + + /// + /// When adding u2f entries, this contains a challenge the user must respond to in order to finish the registration. + /// + /// When adding u2f entries, this contains a challenge the user must respond to in order to finish the registration. + [DataMember(Name = "challenge", EmitDefaultValue = false)] + public string Challenge { get; set; } + + /// + /// The id of a newly added TFA entry. + /// + /// The id of a newly added TFA entry. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// When adding recovery codes, this contains the list of codes to be displayed to the user + /// + /// When adding recovery codes, this contains the list of codes to be displayed to the user + [DataMember(Name = "recovery", EmitDefaultValue = false)] + public List Recovery { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessTfaSingle200ResponseData {\n"); + sb.Append(" Challenge: ").Append(Challenge).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Recovery: ").Append(Recovery).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessTfaSingleRequest.cs b/src/ProxmoxSharp/Model/CreateAccessTfaSingleRequest.cs new file mode 100644 index 0000000..ac9db10 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessTfaSingleRequest.cs @@ -0,0 +1,138 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessTfaSingleRequest + /// + [DataContract(Name = "CreateAccessTfaSingleRequest")] + public partial class CreateAccessTfaSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessTfaSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// challenge. + /// description. + /// password. + /// totp. + /// type (required). + /// value. + public CreateAccessTfaSingleRequest(string challenge = default(string), string description = default(string), string password = default(string), string totp = default(string), string type = default(string), string value = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateAccessTfaSingleRequest and cannot be null"); + } + this.Type = type; + this.Challenge = challenge; + this.Description = description; + this.Password = password; + this.Totp = totp; + this.Value = value; + } + + /// + /// Gets or Sets Challenge + /// + [DataMember(Name = "challenge", EmitDefaultValue = false)] + public string Challenge { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Totp + /// + [DataMember(Name = "totp", EmitDefaultValue = false)] + public string Totp { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", EmitDefaultValue = false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessTfaSingleRequest {\n"); + sb.Append(" Challenge: ").Append(Challenge).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Totp: ").Append(Totp).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessTicket200Response.cs b/src/ProxmoxSharp/Model/CreateAccessTicket200Response.cs new file mode 100644 index 0000000..da9c180 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessTicket200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessTicket200Response + /// + [DataContract(Name = "createAccessTicket_200_response")] + public partial class CreateAccessTicket200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateAccessTicket200Response(List errors = default(List), CreateAccessTicket200ResponseData data = default(CreateAccessTicket200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public CreateAccessTicket200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessTicket200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessTicket200ResponseData.cs b/src/ProxmoxSharp/Model/CreateAccessTicket200ResponseData.cs new file mode 100644 index 0000000..ea81af0 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessTicket200ResponseData.cs @@ -0,0 +1,110 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessTicket200ResponseData + /// + [DataContract(Name = "createAccessTicket_200_response_data")] + public partial class CreateAccessTicket200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cSRFPreventionToken. + /// clustername. + /// ticket. + /// username. + public CreateAccessTicket200ResponseData(string cSRFPreventionToken = default(string), string clustername = default(string), string ticket = default(string), string username = default(string)) + { + this.CSRFPreventionToken = cSRFPreventionToken; + this.Clustername = clustername; + this.Ticket = ticket; + this.Username = username; + } + + /// + /// Gets or Sets CSRFPreventionToken + /// + [DataMember(Name = "CSRFPreventionToken", EmitDefaultValue = false)] + public string CSRFPreventionToken { get; set; } + + /// + /// Gets or Sets Clustername + /// + [DataMember(Name = "clustername", EmitDefaultValue = false)] + public string Clustername { get; set; } + + /// + /// Gets or Sets Ticket + /// + [DataMember(Name = "ticket", EmitDefaultValue = false)] + public string Ticket { get; set; } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", EmitDefaultValue = false)] + public string Username { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessTicket200ResponseData {\n"); + sb.Append(" CSRFPreventionToken: ").Append(CSRFPreventionToken).Append("\n"); + sb.Append(" Clustername: ").Append(Clustername).Append("\n"); + sb.Append(" Ticket: ").Append(Ticket).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessTicketRequest.cs b/src/ProxmoxSharp/Model/CreateAccessTicketRequest.cs new file mode 100644 index 0000000..2aaed2e --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessTicketRequest.cs @@ -0,0 +1,161 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessTicketRequest + /// + [DataContract(Name = "CreateAccessTicketRequest")] + public partial class CreateAccessTicketRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessTicketRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// newFormat. + /// otp. + /// password (required). + /// path. + /// privs. + /// realm. + /// tfaChallenge. + /// username (required). + public CreateAccessTicketRequest(bool newFormat = default(bool), string otp = default(string), string password = default(string), string path = default(string), string privs = default(string), string realm = default(string), string tfaChallenge = default(string), string username = default(string)) + { + // to ensure "password" is required (not null) + if (password == null) + { + throw new ArgumentNullException("password is a required property for CreateAccessTicketRequest and cannot be null"); + } + this.Password = password; + // to ensure "username" is required (not null) + if (username == null) + { + throw new ArgumentNullException("username is a required property for CreateAccessTicketRequest and cannot be null"); + } + this.Username = username; + this.NewFormat = newFormat; + this.Otp = otp; + this.Path = path; + this.Privs = privs; + this.Realm = realm; + this.TfaChallenge = tfaChallenge; + } + + /// + /// Gets or Sets NewFormat + /// + [DataMember(Name = "new-format", EmitDefaultValue = true)] + public bool NewFormat { get; set; } + + /// + /// Gets or Sets Otp + /// + [DataMember(Name = "otp", EmitDefaultValue = false)] + public string Otp { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] + public string Password { get; set; } + + /// + /// Gets or Sets Path + /// + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Gets or Sets Privs + /// + [DataMember(Name = "privs", EmitDefaultValue = false)] + public string Privs { get; set; } + + /// + /// Gets or Sets Realm + /// + [DataMember(Name = "realm", EmitDefaultValue = false)] + public string Realm { get; set; } + + /// + /// Gets or Sets TfaChallenge + /// + [DataMember(Name = "tfa-challenge", EmitDefaultValue = false)] + public string TfaChallenge { get; set; } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)] + public string Username { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessTicketRequest {\n"); + sb.Append(" NewFormat: ").Append(NewFormat).Append("\n"); + sb.Append(" Otp: ").Append(Otp).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Privs: ").Append(Privs).Append("\n"); + sb.Append(" Realm: ").Append(Realm).Append("\n"); + sb.Append(" TfaChallenge: ").Append(TfaChallenge).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessUsersRequest.cs b/src/ProxmoxSharp/Model/CreateAccessUsersRequest.cs new file mode 100644 index 0000000..a9ebc68 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessUsersRequest.cs @@ -0,0 +1,174 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessUsersRequest + /// + [DataContract(Name = "CreateAccessUsersRequest")] + public partial class CreateAccessUsersRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessUsersRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// email. + /// enable. + /// expire. + /// firstname. + /// groups. + /// keys. + /// lastname. + /// password. + /// userid (required). + public CreateAccessUsersRequest(string comment = default(string), string email = default(string), bool enable = default(bool), int expire = default(int), string firstname = default(string), string groups = default(string), string keys = default(string), string lastname = default(string), string password = default(string), string userid = default(string)) + { + // to ensure "userid" is required (not null) + if (userid == null) + { + throw new ArgumentNullException("userid is a required property for CreateAccessUsersRequest and cannot be null"); + } + this.Userid = userid; + this.Comment = comment; + this.Email = email; + this.Enable = enable; + this.Expire = expire; + this.Firstname = firstname; + this.Groups = groups; + this.Keys = keys; + this.Lastname = lastname; + this.Password = password; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Email + /// + [DataMember(Name = "email", EmitDefaultValue = false)] + public string Email { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = true)] + public bool Enable { get; set; } + + /// + /// Gets or Sets Expire + /// + [DataMember(Name = "expire", EmitDefaultValue = false)] + public int Expire { get; set; } + + /// + /// Gets or Sets Firstname + /// + [DataMember(Name = "firstname", EmitDefaultValue = false)] + public string Firstname { get; set; } + + /// + /// Gets or Sets Groups + /// + [DataMember(Name = "groups", EmitDefaultValue = false)] + public string Groups { get; set; } + + /// + /// Gets or Sets Keys + /// + [DataMember(Name = "keys", EmitDefaultValue = false)] + public string Keys { get; set; } + + /// + /// Gets or Sets Lastname + /// + [DataMember(Name = "lastname", EmitDefaultValue = false)] + public string Lastname { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Userid + /// + [DataMember(Name = "userid", IsRequired = true, EmitDefaultValue = true)] + public string Userid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessUsersRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Firstname: ").Append(Firstname).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Keys: ").Append(Keys).Append("\n"); + sb.Append(" Lastname: ").Append(Lastname).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Userid: ").Append(Userid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingle200Response.cs b/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingle200Response.cs new file mode 100644 index 0000000..119a829 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessUsersSingleTokenSingle200Response + /// + [DataContract(Name = "createAccessUsersSingleTokenSingle_200_response")] + public partial class CreateAccessUsersSingleTokenSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateAccessUsersSingleTokenSingle200Response(List errors = default(List), CreateAccessUsersSingleTokenSingle200ResponseData data = default(CreateAccessUsersSingleTokenSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public CreateAccessUsersSingleTokenSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessUsersSingleTokenSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingle200ResponseData.cs b/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingle200ResponseData.cs new file mode 100644 index 0000000..57f4476 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingle200ResponseData.cs @@ -0,0 +1,103 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessUsersSingleTokenSingle200ResponseData + /// + [DataContract(Name = "createAccessUsersSingleTokenSingle_200_response_data")] + public partial class CreateAccessUsersSingleTokenSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The full token id.. + /// info. + /// API token value used for authentication.. + public CreateAccessUsersSingleTokenSingle200ResponseData(string fullTokenid = default(string), GetAccessUsersSingleTokenSingle200ResponseData info = default(GetAccessUsersSingleTokenSingle200ResponseData), string value = default(string)) + { + this.FullTokenid = fullTokenid; + this.Info = info; + this.Value = value; + } + + /// + /// The full token id. + /// + /// The full token id. + [DataMember(Name = "full-tokenid", EmitDefaultValue = false)] + public string FullTokenid { get; set; } + + /// + /// Gets or Sets Info + /// + [DataMember(Name = "info", EmitDefaultValue = false)] + public GetAccessUsersSingleTokenSingle200ResponseData Info { get; set; } + + /// + /// API token value used for authentication. + /// + /// API token value used for authentication. + [DataMember(Name = "value", EmitDefaultValue = false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessUsersSingleTokenSingle200ResponseData {\n"); + sb.Append(" FullTokenid: ").Append(FullTokenid).Append("\n"); + sb.Append(" Info: ").Append(Info).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingleRequest.cs b/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingleRequest.cs new file mode 100644 index 0000000..8fbee9b --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessUsersSingleTokenSingleRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessUsersSingleTokenSingleRequest + /// + [DataContract(Name = "CreateAccessUsersSingleTokenSingleRequest")] + public partial class CreateAccessUsersSingleTokenSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// expire. + /// privsep. + public CreateAccessUsersSingleTokenSingleRequest(string comment = default(string), int expire = default(int), bool privsep = default(bool)) + { + this.Comment = comment; + this.Expire = expire; + this.Privsep = privsep; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Expire + /// + [DataMember(Name = "expire", EmitDefaultValue = false)] + public int Expire { get; set; } + + /// + /// Gets or Sets Privsep + /// + [DataMember(Name = "privsep", EmitDefaultValue = true)] + public bool Privsep { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessUsersSingleTokenSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Privsep: ").Append(Privsep).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateAccessVncticketRequest.cs b/src/ProxmoxSharp/Model/CreateAccessVncticketRequest.cs new file mode 100644 index 0000000..c8db98a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateAccessVncticketRequest.cs @@ -0,0 +1,135 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateAccessVncticketRequest + /// + [DataContract(Name = "CreateAccessVncticketRequest")] + public partial class CreateAccessVncticketRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateAccessVncticketRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// authid (required). + /// path (required). + /// privs (required). + /// vncticket (required). + public CreateAccessVncticketRequest(string authid = default(string), string path = default(string), string privs = default(string), string vncticket = default(string)) + { + // to ensure "authid" is required (not null) + if (authid == null) + { + throw new ArgumentNullException("authid is a required property for CreateAccessVncticketRequest and cannot be null"); + } + this.Authid = authid; + // to ensure "path" is required (not null) + if (path == null) + { + throw new ArgumentNullException("path is a required property for CreateAccessVncticketRequest and cannot be null"); + } + this.Path = path; + // to ensure "privs" is required (not null) + if (privs == null) + { + throw new ArgumentNullException("privs is a required property for CreateAccessVncticketRequest and cannot be null"); + } + this.Privs = privs; + // to ensure "vncticket" is required (not null) + if (vncticket == null) + { + throw new ArgumentNullException("vncticket is a required property for CreateAccessVncticketRequest and cannot be null"); + } + this.Vncticket = vncticket; + } + + /// + /// Gets or Sets Authid + /// + [DataMember(Name = "authid", IsRequired = true, EmitDefaultValue = true)] + public string Authid { get; set; } + + /// + /// Gets or Sets Path + /// + [DataMember(Name = "path", IsRequired = true, EmitDefaultValue = true)] + public string Path { get; set; } + + /// + /// Gets or Sets Privs + /// + [DataMember(Name = "privs", IsRequired = true, EmitDefaultValue = true)] + public string Privs { get; set; } + + /// + /// Gets or Sets Vncticket + /// + [DataMember(Name = "vncticket", IsRequired = true, EmitDefaultValue = true)] + public string Vncticket { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateAccessVncticketRequest {\n"); + sb.Append(" Authid: ").Append(Authid).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Privs: ").Append(Privs).Append("\n"); + sb.Append(" Vncticket: ").Append(Vncticket).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterAcmeAccountRequest.cs b/src/ProxmoxSharp/Model/CreateClusterAcmeAccountRequest.cs new file mode 100644 index 0000000..8d80f3a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterAcmeAccountRequest.cs @@ -0,0 +1,138 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterAcmeAccountRequest + /// + [DataContract(Name = "CreateClusterAcmeAccountRequest")] + public partial class CreateClusterAcmeAccountRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterAcmeAccountRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// contact (required). + /// directory. + /// eabHmacKey. + /// eabKid. + /// name. + /// tosUrl. + public CreateClusterAcmeAccountRequest(string contact = default(string), string directory = default(string), string eabHmacKey = default(string), string eabKid = default(string), string name = default(string), string tosUrl = default(string)) + { + // to ensure "contact" is required (not null) + if (contact == null) + { + throw new ArgumentNullException("contact is a required property for CreateClusterAcmeAccountRequest and cannot be null"); + } + this.Contact = contact; + this.Directory = directory; + this.EabHmacKey = eabHmacKey; + this.EabKid = eabKid; + this.Name = name; + this.TosUrl = tosUrl; + } + + /// + /// Gets or Sets Contact + /// + [DataMember(Name = "contact", IsRequired = true, EmitDefaultValue = true)] + public string Contact { get; set; } + + /// + /// Gets or Sets Directory + /// + [DataMember(Name = "directory", EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// Gets or Sets EabHmacKey + /// + [DataMember(Name = "eab-hmac-key", EmitDefaultValue = false)] + public string EabHmacKey { get; set; } + + /// + /// Gets or Sets EabKid + /// + [DataMember(Name = "eab-kid", EmitDefaultValue = false)] + public string EabKid { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets TosUrl + /// + [DataMember(Name = "tos_url", EmitDefaultValue = false)] + public string TosUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterAcmeAccountRequest {\n"); + sb.Append(" Contact: ").Append(Contact).Append("\n"); + sb.Append(" Directory: ").Append(Directory).Append("\n"); + sb.Append(" EabHmacKey: ").Append(EabHmacKey).Append("\n"); + sb.Append(" EabKid: ").Append(EabKid).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" TosUrl: ").Append(TosUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterAcmePluginsRequest.cs b/src/ProxmoxSharp/Model/CreateClusterAcmePluginsRequest.cs new file mode 100644 index 0000000..4006d14 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterAcmePluginsRequest.cs @@ -0,0 +1,152 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterAcmePluginsRequest + /// + [DataContract(Name = "CreateClusterAcmePluginsRequest")] + public partial class CreateClusterAcmePluginsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterAcmePluginsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// api. + /// data. + /// disable. + /// id (required). + /// nodes. + /// type (required). + /// validationDelay. + public CreateClusterAcmePluginsRequest(string api = default(string), string data = default(string), bool disable = default(bool), string id = default(string), string nodes = default(string), string type = default(string), int validationDelay = default(int)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for CreateClusterAcmePluginsRequest and cannot be null"); + } + this.Id = id; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterAcmePluginsRequest and cannot be null"); + } + this.Type = type; + this.Api = api; + this.Data = data; + this.Disable = disable; + this.Nodes = nodes; + this.ValidationDelay = validationDelay; + } + + /// + /// Gets or Sets Api + /// + [DataMember(Name = "api", EmitDefaultValue = false)] + public string Api { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets ValidationDelay + /// + [DataMember(Name = "validation-delay", EmitDefaultValue = false)] + public int ValidationDelay { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterAcmePluginsRequest {\n"); + sb.Append(" Api: ").Append(Api).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ValidationDelay: ").Append(ValidationDelay).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterBackupRequest.cs b/src/ProxmoxSharp/Model/CreateClusterBackupRequest.cs new file mode 100644 index 0000000..4ce10ec --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterBackupRequest.cs @@ -0,0 +1,425 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterBackupRequest + /// + [DataContract(Name = "CreateClusterBackupRequest")] + public partial class CreateClusterBackupRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// all. + /// bwlimit. + /// comment. + /// compress. + /// dow. + /// dumpdir. + /// enabled. + /// exclude. + /// excludePath. + /// fleecing. + /// id. + /// ionice. + /// lockwait. + /// mailnotification. + /// mailto. + /// maxfiles. + /// mode. + /// node. + /// notesTemplate. + /// notificationMode. + /// pbsChangeDetectionMode. + /// performance. + /// pigz. + /// pool. + /// varProtected. + /// pruneBackups. + /// quiet. + /// remove. + /// repeatMissed. + /// schedule. + /// script. + /// starttime. + /// stdexcludes. + /// stop. + /// stopwait. + /// storage. + /// tmpdir. + /// vmid. + /// zstd. + public CreateClusterBackupRequest(bool all = default(bool), int bwlimit = default(int), string comment = default(string), string compress = default(string), string dow = default(string), string dumpdir = default(string), bool enabled = default(bool), string exclude = default(string), List excludePath = default(List), string fleecing = default(string), string id = default(string), int ionice = default(int), int lockwait = default(int), string mailnotification = default(string), string mailto = default(string), int maxfiles = default(int), string mode = default(string), string node = default(string), string notesTemplate = default(string), string notificationMode = default(string), string pbsChangeDetectionMode = default(string), string performance = default(string), int pigz = default(int), string pool = default(string), bool varProtected = default(bool), string pruneBackups = default(string), bool quiet = default(bool), bool remove = default(bool), bool repeatMissed = default(bool), string schedule = default(string), string script = default(string), string starttime = default(string), bool stdexcludes = default(bool), bool stop = default(bool), int stopwait = default(int), string storage = default(string), string tmpdir = default(string), string vmid = default(string), int zstd = default(int)) + { + this.All = all; + this.Bwlimit = bwlimit; + this.Comment = comment; + this.Compress = compress; + this.Dow = dow; + this.Dumpdir = dumpdir; + this.Enabled = enabled; + this.Exclude = exclude; + this.ExcludePath = excludePath; + this.Fleecing = fleecing; + this.Id = id; + this.Ionice = ionice; + this.Lockwait = lockwait; + this.Mailnotification = mailnotification; + this.Mailto = mailto; + this.Maxfiles = maxfiles; + this.Mode = mode; + this.Node = node; + this.NotesTemplate = notesTemplate; + this.NotificationMode = notificationMode; + this.PbsChangeDetectionMode = pbsChangeDetectionMode; + this.Performance = performance; + this.Pigz = pigz; + this.Pool = pool; + this.Protected = varProtected; + this.PruneBackups = pruneBackups; + this.Quiet = quiet; + this.Remove = remove; + this.RepeatMissed = repeatMissed; + this.Schedule = schedule; + this.Script = script; + this.Starttime = starttime; + this.Stdexcludes = stdexcludes; + this.Stop = stop; + this.Stopwait = stopwait; + this.Storage = storage; + this.Tmpdir = tmpdir; + this.Vmid = vmid; + this.Zstd = zstd; + } + + /// + /// Gets or Sets All + /// + [DataMember(Name = "all", EmitDefaultValue = true)] + public bool All { get; set; } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public int Bwlimit { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Compress + /// + [DataMember(Name = "compress", EmitDefaultValue = false)] + public string Compress { get; set; } + + /// + /// Gets or Sets Dow + /// + [DataMember(Name = "dow", EmitDefaultValue = false)] + public string Dow { get; set; } + + /// + /// Gets or Sets Dumpdir + /// + [DataMember(Name = "dumpdir", EmitDefaultValue = false)] + public string Dumpdir { get; set; } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets Exclude + /// + [DataMember(Name = "exclude", EmitDefaultValue = false)] + public string Exclude { get; set; } + + /// + /// Gets or Sets ExcludePath + /// + [DataMember(Name = "exclude-path", EmitDefaultValue = false)] + public List ExcludePath { get; set; } + + /// + /// Gets or Sets Fleecing + /// + [DataMember(Name = "fleecing", EmitDefaultValue = false)] + public string Fleecing { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Ionice + /// + [DataMember(Name = "ionice", EmitDefaultValue = false)] + public int Ionice { get; set; } + + /// + /// Gets or Sets Lockwait + /// + [DataMember(Name = "lockwait", EmitDefaultValue = false)] + public int Lockwait { get; set; } + + /// + /// Gets or Sets Mailnotification + /// + [DataMember(Name = "mailnotification", EmitDefaultValue = false)] + public string Mailnotification { get; set; } + + /// + /// Gets or Sets Mailto + /// + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public string Mailto { get; set; } + + /// + /// Gets or Sets Maxfiles + /// + [DataMember(Name = "maxfiles", EmitDefaultValue = false)] + public int Maxfiles { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Gets or Sets NotesTemplate + /// + [DataMember(Name = "notes-template", EmitDefaultValue = false)] + public string NotesTemplate { get; set; } + + /// + /// Gets or Sets NotificationMode + /// + [DataMember(Name = "notification-mode", EmitDefaultValue = false)] + public string NotificationMode { get; set; } + + /// + /// Gets or Sets PbsChangeDetectionMode + /// + [DataMember(Name = "pbs-change-detection-mode", EmitDefaultValue = false)] + public string PbsChangeDetectionMode { get; set; } + + /// + /// Gets or Sets Performance + /// + [DataMember(Name = "performance", EmitDefaultValue = false)] + public string Performance { get; set; } + + /// + /// Gets or Sets Pigz + /// + [DataMember(Name = "pigz", EmitDefaultValue = false)] + public int Pigz { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Protected + /// + [DataMember(Name = "protected", EmitDefaultValue = true)] + public bool Protected { get; set; } + + /// + /// Gets or Sets PruneBackups + /// + [DataMember(Name = "prune-backups", EmitDefaultValue = false)] + public string PruneBackups { get; set; } + + /// + /// Gets or Sets Quiet + /// + [DataMember(Name = "quiet", EmitDefaultValue = true)] + public bool Quiet { get; set; } + + /// + /// Gets or Sets Remove + /// + [DataMember(Name = "remove", EmitDefaultValue = true)] + public bool Remove { get; set; } + + /// + /// Gets or Sets RepeatMissed + /// + [DataMember(Name = "repeat-missed", EmitDefaultValue = true)] + public bool RepeatMissed { get; set; } + + /// + /// Gets or Sets Schedule + /// + [DataMember(Name = "schedule", EmitDefaultValue = false)] + public string Schedule { get; set; } + + /// + /// Gets or Sets Script + /// + [DataMember(Name = "script", EmitDefaultValue = false)] + public string Script { get; set; } + + /// + /// Gets or Sets Starttime + /// + [DataMember(Name = "starttime", EmitDefaultValue = false)] + public string Starttime { get; set; } + + /// + /// Gets or Sets Stdexcludes + /// + [DataMember(Name = "stdexcludes", EmitDefaultValue = true)] + public bool Stdexcludes { get; set; } + + /// + /// Gets or Sets Stop + /// + [DataMember(Name = "stop", EmitDefaultValue = true)] + public bool Stop { get; set; } + + /// + /// Gets or Sets Stopwait + /// + [DataMember(Name = "stopwait", EmitDefaultValue = false)] + public int Stopwait { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Tmpdir + /// + [DataMember(Name = "tmpdir", EmitDefaultValue = false)] + public string Tmpdir { get; set; } + + /// + /// Gets or Sets Vmid + /// + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public string Vmid { get; set; } + + /// + /// Gets or Sets Zstd + /// + [DataMember(Name = "zstd", EmitDefaultValue = false)] + public int Zstd { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterBackupRequest {\n"); + sb.Append(" All: ").Append(All).Append("\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Compress: ").Append(Compress).Append("\n"); + sb.Append(" Dow: ").Append(Dow).Append("\n"); + sb.Append(" Dumpdir: ").Append(Dumpdir).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Exclude: ").Append(Exclude).Append("\n"); + sb.Append(" ExcludePath: ").Append(ExcludePath).Append("\n"); + sb.Append(" Fleecing: ").Append(Fleecing).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Ionice: ").Append(Ionice).Append("\n"); + sb.Append(" Lockwait: ").Append(Lockwait).Append("\n"); + sb.Append(" Mailnotification: ").Append(Mailnotification).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" Maxfiles: ").Append(Maxfiles).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" NotesTemplate: ").Append(NotesTemplate).Append("\n"); + sb.Append(" NotificationMode: ").Append(NotificationMode).Append("\n"); + sb.Append(" PbsChangeDetectionMode: ").Append(PbsChangeDetectionMode).Append("\n"); + sb.Append(" Performance: ").Append(Performance).Append("\n"); + sb.Append(" Pigz: ").Append(Pigz).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" PruneBackups: ").Append(PruneBackups).Append("\n"); + sb.Append(" Quiet: ").Append(Quiet).Append("\n"); + sb.Append(" Remove: ").Append(Remove).Append("\n"); + sb.Append(" RepeatMissed: ").Append(RepeatMissed).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Script: ").Append(Script).Append("\n"); + sb.Append(" Starttime: ").Append(Starttime).Append("\n"); + sb.Append(" Stdexcludes: ").Append(Stdexcludes).Append("\n"); + sb.Append(" Stop: ").Append(Stop).Append("\n"); + sb.Append(" Stopwait: ").Append(Stopwait).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Tmpdir: ").Append(Tmpdir).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" Zstd: ").Append(Zstd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestMigrateRequest.cs b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestMigrateRequest.cs new file mode 100644 index 0000000..01142c4 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestMigrateRequest.cs @@ -0,0 +1,129 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterBulkactionGuestMigrateRequest + /// + [DataContract(Name = "CreateClusterBulkactionGuestMigrateRequest")] + public partial class CreateClusterBulkactionGuestMigrateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterBulkactionGuestMigrateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// maxworkers. + /// online. + /// target (required). + /// vms. + /// withLocalDisks. + public CreateClusterBulkactionGuestMigrateRequest(int maxworkers = default(int), bool online = default(bool), string target = default(string), List vms = default(List), bool withLocalDisks = default(bool)) + { + // to ensure "target" is required (not null) + if (target == null) + { + throw new ArgumentNullException("target is a required property for CreateClusterBulkactionGuestMigrateRequest and cannot be null"); + } + this.Target = target; + this.Maxworkers = maxworkers; + this.Online = online; + this.Vms = vms; + this.WithLocalDisks = withLocalDisks; + } + + /// + /// Gets or Sets Maxworkers + /// + [DataMember(Name = "maxworkers", EmitDefaultValue = false)] + public int Maxworkers { get; set; } + + /// + /// Gets or Sets Online + /// + [DataMember(Name = "online", EmitDefaultValue = true)] + public bool Online { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)] + public string Target { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public List Vms { get; set; } + + /// + /// Gets or Sets WithLocalDisks + /// + [DataMember(Name = "with-local-disks", EmitDefaultValue = true)] + public bool WithLocalDisks { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterBulkactionGuestMigrateRequest {\n"); + sb.Append(" Maxworkers: ").Append(Maxworkers).Append("\n"); + sb.Append(" Online: ").Append(Online).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append(" WithLocalDisks: ").Append(WithLocalDisks).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestShutdownRequest.cs b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestShutdownRequest.cs new file mode 100644 index 0000000..3cf27f2 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestShutdownRequest.cs @@ -0,0 +1,110 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterBulkactionGuestShutdownRequest + /// + [DataContract(Name = "CreateClusterBulkactionGuestShutdownRequest")] + public partial class CreateClusterBulkactionGuestShutdownRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// forceStop. + /// maxworkers. + /// timeout. + /// vms. + public CreateClusterBulkactionGuestShutdownRequest(bool forceStop = default(bool), int maxworkers = default(int), int timeout = default(int), List vms = default(List)) + { + this.ForceStop = forceStop; + this.Maxworkers = maxworkers; + this.Timeout = timeout; + this.Vms = vms; + } + + /// + /// Gets or Sets ForceStop + /// + [DataMember(Name = "force-stop", EmitDefaultValue = true)] + public bool ForceStop { get; set; } + + /// + /// Gets or Sets Maxworkers + /// + [DataMember(Name = "maxworkers", EmitDefaultValue = false)] + public int Maxworkers { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public List Vms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterBulkactionGuestShutdownRequest {\n"); + sb.Append(" ForceStop: ").Append(ForceStop).Append("\n"); + sb.Append(" Maxworkers: ").Append(Maxworkers).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestStart200Response.cs b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestStart200Response.cs new file mode 100644 index 0000000..1eea4e6 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestStart200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterBulkactionGuestStart200Response + /// + [DataContract(Name = "createClusterBulkactionGuestStart_200_response")] + public partial class CreateClusterBulkactionGuestStart200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// UPID of the worker. + public CreateClusterBulkactionGuestStart200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// UPID of the worker + /// + /// UPID of the worker + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterBulkactionGuestStart200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestStartRequest.cs b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestStartRequest.cs new file mode 100644 index 0000000..c409520 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestStartRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterBulkactionGuestStartRequest + /// + [DataContract(Name = "CreateClusterBulkactionGuestStartRequest")] + public partial class CreateClusterBulkactionGuestStartRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// maxworkers. + /// timeout. + /// vms. + public CreateClusterBulkactionGuestStartRequest(int maxworkers = default(int), int timeout = default(int), List vms = default(List)) + { + this.Maxworkers = maxworkers; + this.Timeout = timeout; + this.Vms = vms; + } + + /// + /// Gets or Sets Maxworkers + /// + [DataMember(Name = "maxworkers", EmitDefaultValue = false)] + public int Maxworkers { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public List Vms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterBulkactionGuestStartRequest {\n"); + sb.Append(" Maxworkers: ").Append(Maxworkers).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestSuspendRequest.cs b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestSuspendRequest.cs new file mode 100644 index 0000000..4f5cde4 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterBulkactionGuestSuspendRequest.cs @@ -0,0 +1,110 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterBulkactionGuestSuspendRequest + /// + [DataContract(Name = "CreateClusterBulkactionGuestSuspendRequest")] + public partial class CreateClusterBulkactionGuestSuspendRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// maxworkers. + /// statestorage. + /// toDisk. + /// vms. + public CreateClusterBulkactionGuestSuspendRequest(int maxworkers = default(int), string statestorage = default(string), bool toDisk = default(bool), List vms = default(List)) + { + this.Maxworkers = maxworkers; + this.Statestorage = statestorage; + this.ToDisk = toDisk; + this.Vms = vms; + } + + /// + /// Gets or Sets Maxworkers + /// + [DataMember(Name = "maxworkers", EmitDefaultValue = false)] + public int Maxworkers { get; set; } + + /// + /// Gets or Sets Statestorage + /// + [DataMember(Name = "statestorage", EmitDefaultValue = false)] + public string Statestorage { get; set; } + + /// + /// Gets or Sets ToDisk + /// + [DataMember(Name = "to-disk", EmitDefaultValue = true)] + public bool ToDisk { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public List Vms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterBulkactionGuestSuspendRequest {\n"); + sb.Append(" Maxworkers: ").Append(Maxworkers).Append("\n"); + sb.Append(" Statestorage: ").Append(Statestorage).Append("\n"); + sb.Append(" ToDisk: ").Append(ToDisk).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterConfigJoinRequest.cs b/src/ProxmoxSharp/Model/CreateClusterConfigJoinRequest.cs new file mode 100644 index 0000000..1783337 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterConfigJoinRequest.cs @@ -0,0 +1,418 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterConfigJoinRequest + /// + [DataContract(Name = "CreateClusterConfigJoinRequest")] + public partial class CreateClusterConfigJoinRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterConfigJoinRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// fingerprint (required). + /// force. + /// hostname (required). + /// link0. + /// link1. + /// link2. + /// link3. + /// link4. + /// link5. + /// link6. + /// link7. + /// link8. + /// link9. + /// link10. + /// link11. + /// link12. + /// link13. + /// link14. + /// link15. + /// link16. + /// link17. + /// link18. + /// link19. + /// link20. + /// link21. + /// link22. + /// link23. + /// link24. + /// link25. + /// link26. + /// link27. + /// link28. + /// link29. + /// nodeid. + /// password (required). + /// votes. + public CreateClusterConfigJoinRequest(string fingerprint = default(string), bool force = default(bool), string hostname = default(string), string link0 = default(string), string link1 = default(string), string link2 = default(string), string link3 = default(string), string link4 = default(string), string link5 = default(string), string link6 = default(string), string link7 = default(string), string link8 = default(string), string link9 = default(string), string link10 = default(string), string link11 = default(string), string link12 = default(string), string link13 = default(string), string link14 = default(string), string link15 = default(string), string link16 = default(string), string link17 = default(string), string link18 = default(string), string link19 = default(string), string link20 = default(string), string link21 = default(string), string link22 = default(string), string link23 = default(string), string link24 = default(string), string link25 = default(string), string link26 = default(string), string link27 = default(string), string link28 = default(string), string link29 = default(string), int nodeid = default(int), string password = default(string), int votes = default(int)) + { + // to ensure "fingerprint" is required (not null) + if (fingerprint == null) + { + throw new ArgumentNullException("fingerprint is a required property for CreateClusterConfigJoinRequest and cannot be null"); + } + this.Fingerprint = fingerprint; + // to ensure "hostname" is required (not null) + if (hostname == null) + { + throw new ArgumentNullException("hostname is a required property for CreateClusterConfigJoinRequest and cannot be null"); + } + this.Hostname = hostname; + // to ensure "password" is required (not null) + if (password == null) + { + throw new ArgumentNullException("password is a required property for CreateClusterConfigJoinRequest and cannot be null"); + } + this.Password = password; + this.Force = force; + this.Link0 = link0; + this.Link1 = link1; + this.Link2 = link2; + this.Link3 = link3; + this.Link4 = link4; + this.Link5 = link5; + this.Link6 = link6; + this.Link7 = link7; + this.Link8 = link8; + this.Link9 = link9; + this.Link10 = link10; + this.Link11 = link11; + this.Link12 = link12; + this.Link13 = link13; + this.Link14 = link14; + this.Link15 = link15; + this.Link16 = link16; + this.Link17 = link17; + this.Link18 = link18; + this.Link19 = link19; + this.Link20 = link20; + this.Link21 = link21; + this.Link22 = link22; + this.Link23 = link23; + this.Link24 = link24; + this.Link25 = link25; + this.Link26 = link26; + this.Link27 = link27; + this.Link28 = link28; + this.Link29 = link29; + this.Nodeid = nodeid; + this.Votes = votes; + } + + /// + /// Gets or Sets Fingerprint + /// + [DataMember(Name = "fingerprint", IsRequired = true, EmitDefaultValue = true)] + public string Fingerprint { get; set; } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets Hostname + /// + [DataMember(Name = "hostname", IsRequired = true, EmitDefaultValue = true)] + public string Hostname { get; set; } + + /// + /// Gets or Sets Link0 + /// + [DataMember(Name = "link0", EmitDefaultValue = false)] + public string Link0 { get; set; } + + /// + /// Gets or Sets Link1 + /// + [DataMember(Name = "link1", EmitDefaultValue = false)] + public string Link1 { get; set; } + + /// + /// Gets or Sets Link2 + /// + [DataMember(Name = "link2", EmitDefaultValue = false)] + public string Link2 { get; set; } + + /// + /// Gets or Sets Link3 + /// + [DataMember(Name = "link3", EmitDefaultValue = false)] + public string Link3 { get; set; } + + /// + /// Gets or Sets Link4 + /// + [DataMember(Name = "link4", EmitDefaultValue = false)] + public string Link4 { get; set; } + + /// + /// Gets or Sets Link5 + /// + [DataMember(Name = "link5", EmitDefaultValue = false)] + public string Link5 { get; set; } + + /// + /// Gets or Sets Link6 + /// + [DataMember(Name = "link6", EmitDefaultValue = false)] + public string Link6 { get; set; } + + /// + /// Gets or Sets Link7 + /// + [DataMember(Name = "link7", EmitDefaultValue = false)] + public string Link7 { get; set; } + + /// + /// Gets or Sets Link8 + /// + [DataMember(Name = "link8", EmitDefaultValue = false)] + public string Link8 { get; set; } + + /// + /// Gets or Sets Link9 + /// + [DataMember(Name = "link9", EmitDefaultValue = false)] + public string Link9 { get; set; } + + /// + /// Gets or Sets Link10 + /// + [DataMember(Name = "link10", EmitDefaultValue = false)] + public string Link10 { get; set; } + + /// + /// Gets or Sets Link11 + /// + [DataMember(Name = "link11", EmitDefaultValue = false)] + public string Link11 { get; set; } + + /// + /// Gets or Sets Link12 + /// + [DataMember(Name = "link12", EmitDefaultValue = false)] + public string Link12 { get; set; } + + /// + /// Gets or Sets Link13 + /// + [DataMember(Name = "link13", EmitDefaultValue = false)] + public string Link13 { get; set; } + + /// + /// Gets or Sets Link14 + /// + [DataMember(Name = "link14", EmitDefaultValue = false)] + public string Link14 { get; set; } + + /// + /// Gets or Sets Link15 + /// + [DataMember(Name = "link15", EmitDefaultValue = false)] + public string Link15 { get; set; } + + /// + /// Gets or Sets Link16 + /// + [DataMember(Name = "link16", EmitDefaultValue = false)] + public string Link16 { get; set; } + + /// + /// Gets or Sets Link17 + /// + [DataMember(Name = "link17", EmitDefaultValue = false)] + public string Link17 { get; set; } + + /// + /// Gets or Sets Link18 + /// + [DataMember(Name = "link18", EmitDefaultValue = false)] + public string Link18 { get; set; } + + /// + /// Gets or Sets Link19 + /// + [DataMember(Name = "link19", EmitDefaultValue = false)] + public string Link19 { get; set; } + + /// + /// Gets or Sets Link20 + /// + [DataMember(Name = "link20", EmitDefaultValue = false)] + public string Link20 { get; set; } + + /// + /// Gets or Sets Link21 + /// + [DataMember(Name = "link21", EmitDefaultValue = false)] + public string Link21 { get; set; } + + /// + /// Gets or Sets Link22 + /// + [DataMember(Name = "link22", EmitDefaultValue = false)] + public string Link22 { get; set; } + + /// + /// Gets or Sets Link23 + /// + [DataMember(Name = "link23", EmitDefaultValue = false)] + public string Link23 { get; set; } + + /// + /// Gets or Sets Link24 + /// + [DataMember(Name = "link24", EmitDefaultValue = false)] + public string Link24 { get; set; } + + /// + /// Gets or Sets Link25 + /// + [DataMember(Name = "link25", EmitDefaultValue = false)] + public string Link25 { get; set; } + + /// + /// Gets or Sets Link26 + /// + [DataMember(Name = "link26", EmitDefaultValue = false)] + public string Link26 { get; set; } + + /// + /// Gets or Sets Link27 + /// + [DataMember(Name = "link27", EmitDefaultValue = false)] + public string Link27 { get; set; } + + /// + /// Gets or Sets Link28 + /// + [DataMember(Name = "link28", EmitDefaultValue = false)] + public string Link28 { get; set; } + + /// + /// Gets or Sets Link29 + /// + [DataMember(Name = "link29", EmitDefaultValue = false)] + public string Link29 { get; set; } + + /// + /// Gets or Sets Nodeid + /// + [DataMember(Name = "nodeid", EmitDefaultValue = false)] + public int Nodeid { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] + public string Password { get; set; } + + /// + /// Gets or Sets Votes + /// + [DataMember(Name = "votes", EmitDefaultValue = false)] + public int Votes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterConfigJoinRequest {\n"); + sb.Append(" Fingerprint: ").Append(Fingerprint).Append("\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" Link0: ").Append(Link0).Append("\n"); + sb.Append(" Link1: ").Append(Link1).Append("\n"); + sb.Append(" Link2: ").Append(Link2).Append("\n"); + sb.Append(" Link3: ").Append(Link3).Append("\n"); + sb.Append(" Link4: ").Append(Link4).Append("\n"); + sb.Append(" Link5: ").Append(Link5).Append("\n"); + sb.Append(" Link6: ").Append(Link6).Append("\n"); + sb.Append(" Link7: ").Append(Link7).Append("\n"); + sb.Append(" Link8: ").Append(Link8).Append("\n"); + sb.Append(" Link9: ").Append(Link9).Append("\n"); + sb.Append(" Link10: ").Append(Link10).Append("\n"); + sb.Append(" Link11: ").Append(Link11).Append("\n"); + sb.Append(" Link12: ").Append(Link12).Append("\n"); + sb.Append(" Link13: ").Append(Link13).Append("\n"); + sb.Append(" Link14: ").Append(Link14).Append("\n"); + sb.Append(" Link15: ").Append(Link15).Append("\n"); + sb.Append(" Link16: ").Append(Link16).Append("\n"); + sb.Append(" Link17: ").Append(Link17).Append("\n"); + sb.Append(" Link18: ").Append(Link18).Append("\n"); + sb.Append(" Link19: ").Append(Link19).Append("\n"); + sb.Append(" Link20: ").Append(Link20).Append("\n"); + sb.Append(" Link21: ").Append(Link21).Append("\n"); + sb.Append(" Link22: ").Append(Link22).Append("\n"); + sb.Append(" Link23: ").Append(Link23).Append("\n"); + sb.Append(" Link24: ").Append(Link24).Append("\n"); + sb.Append(" Link25: ").Append(Link25).Append("\n"); + sb.Append(" Link26: ").Append(Link26).Append("\n"); + sb.Append(" Link27: ").Append(Link27).Append("\n"); + sb.Append(" Link28: ").Append(Link28).Append("\n"); + sb.Append(" Link29: ").Append(Link29).Append("\n"); + sb.Append(" Nodeid: ").Append(Nodeid).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Votes: ").Append(Votes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingle200Response.cs b/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingle200Response.cs new file mode 100644 index 0000000..7cbf766 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterConfigNodesSingle200Response + /// + [DataContract(Name = "createClusterConfigNodesSingle_200_response")] + public partial class CreateClusterConfigNodesSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateClusterConfigNodesSingle200Response(List errors = default(List), CreateClusterConfigNodesSingle200ResponseData data = default(CreateClusterConfigNodesSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public CreateClusterConfigNodesSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterConfigNodesSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingle200ResponseData.cs b/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingle200ResponseData.cs new file mode 100644 index 0000000..3df0824 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingle200ResponseData.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterConfigNodesSingle200ResponseData + /// + [DataContract(Name = "createClusterConfigNodesSingle_200_response_data")] + public partial class CreateClusterConfigNodesSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// corosyncAuthkey. + /// corosyncConf. + /// warnings. + public CreateClusterConfigNodesSingle200ResponseData(string corosyncAuthkey = default(string), string corosyncConf = default(string), List warnings = default(List)) + { + this.CorosyncAuthkey = corosyncAuthkey; + this.CorosyncConf = corosyncConf; + this.Warnings = warnings; + } + + /// + /// Gets or Sets CorosyncAuthkey + /// + [DataMember(Name = "corosync_authkey", EmitDefaultValue = false)] + public string CorosyncAuthkey { get; set; } + + /// + /// Gets or Sets CorosyncConf + /// + [DataMember(Name = "corosync_conf", EmitDefaultValue = false)] + public string CorosyncConf { get; set; } + + /// + /// Gets or Sets Warnings + /// + [DataMember(Name = "warnings", EmitDefaultValue = false)] + public List Warnings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterConfigNodesSingle200ResponseData {\n"); + sb.Append(" CorosyncAuthkey: ").Append(CorosyncAuthkey).Append("\n"); + sb.Append(" CorosyncConf: ").Append(CorosyncConf).Append("\n"); + sb.Append(" Warnings: ").Append(Warnings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingleRequest.cs b/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingleRequest.cs new file mode 100644 index 0000000..80bced9 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterConfigNodesSingleRequest.cs @@ -0,0 +1,389 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterConfigNodesSingleRequest + /// + [DataContract(Name = "CreateClusterConfigNodesSingleRequest")] + public partial class CreateClusterConfigNodesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// apiversion. + /// force. + /// link0. + /// link1. + /// link2. + /// link3. + /// link4. + /// link5. + /// link6. + /// link7. + /// link8. + /// link9. + /// link10. + /// link11. + /// link12. + /// link13. + /// link14. + /// link15. + /// link16. + /// link17. + /// link18. + /// link19. + /// link20. + /// link21. + /// link22. + /// link23. + /// link24. + /// link25. + /// link26. + /// link27. + /// link28. + /// link29. + /// newNodeIp. + /// nodeid. + /// votes. + public CreateClusterConfigNodesSingleRequest(int apiversion = default(int), bool force = default(bool), string link0 = default(string), string link1 = default(string), string link2 = default(string), string link3 = default(string), string link4 = default(string), string link5 = default(string), string link6 = default(string), string link7 = default(string), string link8 = default(string), string link9 = default(string), string link10 = default(string), string link11 = default(string), string link12 = default(string), string link13 = default(string), string link14 = default(string), string link15 = default(string), string link16 = default(string), string link17 = default(string), string link18 = default(string), string link19 = default(string), string link20 = default(string), string link21 = default(string), string link22 = default(string), string link23 = default(string), string link24 = default(string), string link25 = default(string), string link26 = default(string), string link27 = default(string), string link28 = default(string), string link29 = default(string), string newNodeIp = default(string), int nodeid = default(int), int votes = default(int)) + { + this.Apiversion = apiversion; + this.Force = force; + this.Link0 = link0; + this.Link1 = link1; + this.Link2 = link2; + this.Link3 = link3; + this.Link4 = link4; + this.Link5 = link5; + this.Link6 = link6; + this.Link7 = link7; + this.Link8 = link8; + this.Link9 = link9; + this.Link10 = link10; + this.Link11 = link11; + this.Link12 = link12; + this.Link13 = link13; + this.Link14 = link14; + this.Link15 = link15; + this.Link16 = link16; + this.Link17 = link17; + this.Link18 = link18; + this.Link19 = link19; + this.Link20 = link20; + this.Link21 = link21; + this.Link22 = link22; + this.Link23 = link23; + this.Link24 = link24; + this.Link25 = link25; + this.Link26 = link26; + this.Link27 = link27; + this.Link28 = link28; + this.Link29 = link29; + this.NewNodeIp = newNodeIp; + this.Nodeid = nodeid; + this.Votes = votes; + } + + /// + /// Gets or Sets Apiversion + /// + [DataMember(Name = "apiversion", EmitDefaultValue = false)] + public int Apiversion { get; set; } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets Link0 + /// + [DataMember(Name = "link0", EmitDefaultValue = false)] + public string Link0 { get; set; } + + /// + /// Gets or Sets Link1 + /// + [DataMember(Name = "link1", EmitDefaultValue = false)] + public string Link1 { get; set; } + + /// + /// Gets or Sets Link2 + /// + [DataMember(Name = "link2", EmitDefaultValue = false)] + public string Link2 { get; set; } + + /// + /// Gets or Sets Link3 + /// + [DataMember(Name = "link3", EmitDefaultValue = false)] + public string Link3 { get; set; } + + /// + /// Gets or Sets Link4 + /// + [DataMember(Name = "link4", EmitDefaultValue = false)] + public string Link4 { get; set; } + + /// + /// Gets or Sets Link5 + /// + [DataMember(Name = "link5", EmitDefaultValue = false)] + public string Link5 { get; set; } + + /// + /// Gets or Sets Link6 + /// + [DataMember(Name = "link6", EmitDefaultValue = false)] + public string Link6 { get; set; } + + /// + /// Gets or Sets Link7 + /// + [DataMember(Name = "link7", EmitDefaultValue = false)] + public string Link7 { get; set; } + + /// + /// Gets or Sets Link8 + /// + [DataMember(Name = "link8", EmitDefaultValue = false)] + public string Link8 { get; set; } + + /// + /// Gets or Sets Link9 + /// + [DataMember(Name = "link9", EmitDefaultValue = false)] + public string Link9 { get; set; } + + /// + /// Gets or Sets Link10 + /// + [DataMember(Name = "link10", EmitDefaultValue = false)] + public string Link10 { get; set; } + + /// + /// Gets or Sets Link11 + /// + [DataMember(Name = "link11", EmitDefaultValue = false)] + public string Link11 { get; set; } + + /// + /// Gets or Sets Link12 + /// + [DataMember(Name = "link12", EmitDefaultValue = false)] + public string Link12 { get; set; } + + /// + /// Gets or Sets Link13 + /// + [DataMember(Name = "link13", EmitDefaultValue = false)] + public string Link13 { get; set; } + + /// + /// Gets or Sets Link14 + /// + [DataMember(Name = "link14", EmitDefaultValue = false)] + public string Link14 { get; set; } + + /// + /// Gets or Sets Link15 + /// + [DataMember(Name = "link15", EmitDefaultValue = false)] + public string Link15 { get; set; } + + /// + /// Gets or Sets Link16 + /// + [DataMember(Name = "link16", EmitDefaultValue = false)] + public string Link16 { get; set; } + + /// + /// Gets or Sets Link17 + /// + [DataMember(Name = "link17", EmitDefaultValue = false)] + public string Link17 { get; set; } + + /// + /// Gets or Sets Link18 + /// + [DataMember(Name = "link18", EmitDefaultValue = false)] + public string Link18 { get; set; } + + /// + /// Gets or Sets Link19 + /// + [DataMember(Name = "link19", EmitDefaultValue = false)] + public string Link19 { get; set; } + + /// + /// Gets or Sets Link20 + /// + [DataMember(Name = "link20", EmitDefaultValue = false)] + public string Link20 { get; set; } + + /// + /// Gets or Sets Link21 + /// + [DataMember(Name = "link21", EmitDefaultValue = false)] + public string Link21 { get; set; } + + /// + /// Gets or Sets Link22 + /// + [DataMember(Name = "link22", EmitDefaultValue = false)] + public string Link22 { get; set; } + + /// + /// Gets or Sets Link23 + /// + [DataMember(Name = "link23", EmitDefaultValue = false)] + public string Link23 { get; set; } + + /// + /// Gets or Sets Link24 + /// + [DataMember(Name = "link24", EmitDefaultValue = false)] + public string Link24 { get; set; } + + /// + /// Gets or Sets Link25 + /// + [DataMember(Name = "link25", EmitDefaultValue = false)] + public string Link25 { get; set; } + + /// + /// Gets or Sets Link26 + /// + [DataMember(Name = "link26", EmitDefaultValue = false)] + public string Link26 { get; set; } + + /// + /// Gets or Sets Link27 + /// + [DataMember(Name = "link27", EmitDefaultValue = false)] + public string Link27 { get; set; } + + /// + /// Gets or Sets Link28 + /// + [DataMember(Name = "link28", EmitDefaultValue = false)] + public string Link28 { get; set; } + + /// + /// Gets or Sets Link29 + /// + [DataMember(Name = "link29", EmitDefaultValue = false)] + public string Link29 { get; set; } + + /// + /// Gets or Sets NewNodeIp + /// + [DataMember(Name = "new_node_ip", EmitDefaultValue = false)] + public string NewNodeIp { get; set; } + + /// + /// Gets or Sets Nodeid + /// + [DataMember(Name = "nodeid", EmitDefaultValue = false)] + public int Nodeid { get; set; } + + /// + /// Gets or Sets Votes + /// + [DataMember(Name = "votes", EmitDefaultValue = false)] + public int Votes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterConfigNodesSingleRequest {\n"); + sb.Append(" Apiversion: ").Append(Apiversion).Append("\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" Link0: ").Append(Link0).Append("\n"); + sb.Append(" Link1: ").Append(Link1).Append("\n"); + sb.Append(" Link2: ").Append(Link2).Append("\n"); + sb.Append(" Link3: ").Append(Link3).Append("\n"); + sb.Append(" Link4: ").Append(Link4).Append("\n"); + sb.Append(" Link5: ").Append(Link5).Append("\n"); + sb.Append(" Link6: ").Append(Link6).Append("\n"); + sb.Append(" Link7: ").Append(Link7).Append("\n"); + sb.Append(" Link8: ").Append(Link8).Append("\n"); + sb.Append(" Link9: ").Append(Link9).Append("\n"); + sb.Append(" Link10: ").Append(Link10).Append("\n"); + sb.Append(" Link11: ").Append(Link11).Append("\n"); + sb.Append(" Link12: ").Append(Link12).Append("\n"); + sb.Append(" Link13: ").Append(Link13).Append("\n"); + sb.Append(" Link14: ").Append(Link14).Append("\n"); + sb.Append(" Link15: ").Append(Link15).Append("\n"); + sb.Append(" Link16: ").Append(Link16).Append("\n"); + sb.Append(" Link17: ").Append(Link17).Append("\n"); + sb.Append(" Link18: ").Append(Link18).Append("\n"); + sb.Append(" Link19: ").Append(Link19).Append("\n"); + sb.Append(" Link20: ").Append(Link20).Append("\n"); + sb.Append(" Link21: ").Append(Link21).Append("\n"); + sb.Append(" Link22: ").Append(Link22).Append("\n"); + sb.Append(" Link23: ").Append(Link23).Append("\n"); + sb.Append(" Link24: ").Append(Link24).Append("\n"); + sb.Append(" Link25: ").Append(Link25).Append("\n"); + sb.Append(" Link26: ").Append(Link26).Append("\n"); + sb.Append(" Link27: ").Append(Link27).Append("\n"); + sb.Append(" Link28: ").Append(Link28).Append("\n"); + sb.Append(" Link29: ").Append(Link29).Append("\n"); + sb.Append(" NewNodeIp: ").Append(NewNodeIp).Append("\n"); + sb.Append(" Nodeid: ").Append(Nodeid).Append("\n"); + sb.Append(" Votes: ").Append(Votes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterConfigRequest.cs b/src/ProxmoxSharp/Model/CreateClusterConfigRequest.cs new file mode 100644 index 0000000..f847e31 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterConfigRequest.cs @@ -0,0 +1,381 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterConfigRequest + /// + [DataContract(Name = "CreateClusterConfigRequest")] + public partial class CreateClusterConfigRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterConfigRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// clustername (required). + /// link0. + /// link1. + /// link2. + /// link3. + /// link4. + /// link5. + /// link6. + /// link7. + /// link8. + /// link9. + /// link10. + /// link11. + /// link12. + /// link13. + /// link14. + /// link15. + /// link16. + /// link17. + /// link18. + /// link19. + /// link20. + /// link21. + /// link22. + /// link23. + /// link24. + /// link25. + /// link26. + /// link27. + /// link28. + /// link29. + /// nodeid. + /// votes. + public CreateClusterConfigRequest(string clustername = default(string), string link0 = default(string), string link1 = default(string), string link2 = default(string), string link3 = default(string), string link4 = default(string), string link5 = default(string), string link6 = default(string), string link7 = default(string), string link8 = default(string), string link9 = default(string), string link10 = default(string), string link11 = default(string), string link12 = default(string), string link13 = default(string), string link14 = default(string), string link15 = default(string), string link16 = default(string), string link17 = default(string), string link18 = default(string), string link19 = default(string), string link20 = default(string), string link21 = default(string), string link22 = default(string), string link23 = default(string), string link24 = default(string), string link25 = default(string), string link26 = default(string), string link27 = default(string), string link28 = default(string), string link29 = default(string), int nodeid = default(int), int votes = default(int)) + { + // to ensure "clustername" is required (not null) + if (clustername == null) + { + throw new ArgumentNullException("clustername is a required property for CreateClusterConfigRequest and cannot be null"); + } + this.Clustername = clustername; + this.Link0 = link0; + this.Link1 = link1; + this.Link2 = link2; + this.Link3 = link3; + this.Link4 = link4; + this.Link5 = link5; + this.Link6 = link6; + this.Link7 = link7; + this.Link8 = link8; + this.Link9 = link9; + this.Link10 = link10; + this.Link11 = link11; + this.Link12 = link12; + this.Link13 = link13; + this.Link14 = link14; + this.Link15 = link15; + this.Link16 = link16; + this.Link17 = link17; + this.Link18 = link18; + this.Link19 = link19; + this.Link20 = link20; + this.Link21 = link21; + this.Link22 = link22; + this.Link23 = link23; + this.Link24 = link24; + this.Link25 = link25; + this.Link26 = link26; + this.Link27 = link27; + this.Link28 = link28; + this.Link29 = link29; + this.Nodeid = nodeid; + this.Votes = votes; + } + + /// + /// Gets or Sets Clustername + /// + [DataMember(Name = "clustername", IsRequired = true, EmitDefaultValue = true)] + public string Clustername { get; set; } + + /// + /// Gets or Sets Link0 + /// + [DataMember(Name = "link0", EmitDefaultValue = false)] + public string Link0 { get; set; } + + /// + /// Gets or Sets Link1 + /// + [DataMember(Name = "link1", EmitDefaultValue = false)] + public string Link1 { get; set; } + + /// + /// Gets or Sets Link2 + /// + [DataMember(Name = "link2", EmitDefaultValue = false)] + public string Link2 { get; set; } + + /// + /// Gets or Sets Link3 + /// + [DataMember(Name = "link3", EmitDefaultValue = false)] + public string Link3 { get; set; } + + /// + /// Gets or Sets Link4 + /// + [DataMember(Name = "link4", EmitDefaultValue = false)] + public string Link4 { get; set; } + + /// + /// Gets or Sets Link5 + /// + [DataMember(Name = "link5", EmitDefaultValue = false)] + public string Link5 { get; set; } + + /// + /// Gets or Sets Link6 + /// + [DataMember(Name = "link6", EmitDefaultValue = false)] + public string Link6 { get; set; } + + /// + /// Gets or Sets Link7 + /// + [DataMember(Name = "link7", EmitDefaultValue = false)] + public string Link7 { get; set; } + + /// + /// Gets or Sets Link8 + /// + [DataMember(Name = "link8", EmitDefaultValue = false)] + public string Link8 { get; set; } + + /// + /// Gets or Sets Link9 + /// + [DataMember(Name = "link9", EmitDefaultValue = false)] + public string Link9 { get; set; } + + /// + /// Gets or Sets Link10 + /// + [DataMember(Name = "link10", EmitDefaultValue = false)] + public string Link10 { get; set; } + + /// + /// Gets or Sets Link11 + /// + [DataMember(Name = "link11", EmitDefaultValue = false)] + public string Link11 { get; set; } + + /// + /// Gets or Sets Link12 + /// + [DataMember(Name = "link12", EmitDefaultValue = false)] + public string Link12 { get; set; } + + /// + /// Gets or Sets Link13 + /// + [DataMember(Name = "link13", EmitDefaultValue = false)] + public string Link13 { get; set; } + + /// + /// Gets or Sets Link14 + /// + [DataMember(Name = "link14", EmitDefaultValue = false)] + public string Link14 { get; set; } + + /// + /// Gets or Sets Link15 + /// + [DataMember(Name = "link15", EmitDefaultValue = false)] + public string Link15 { get; set; } + + /// + /// Gets or Sets Link16 + /// + [DataMember(Name = "link16", EmitDefaultValue = false)] + public string Link16 { get; set; } + + /// + /// Gets or Sets Link17 + /// + [DataMember(Name = "link17", EmitDefaultValue = false)] + public string Link17 { get; set; } + + /// + /// Gets or Sets Link18 + /// + [DataMember(Name = "link18", EmitDefaultValue = false)] + public string Link18 { get; set; } + + /// + /// Gets or Sets Link19 + /// + [DataMember(Name = "link19", EmitDefaultValue = false)] + public string Link19 { get; set; } + + /// + /// Gets or Sets Link20 + /// + [DataMember(Name = "link20", EmitDefaultValue = false)] + public string Link20 { get; set; } + + /// + /// Gets or Sets Link21 + /// + [DataMember(Name = "link21", EmitDefaultValue = false)] + public string Link21 { get; set; } + + /// + /// Gets or Sets Link22 + /// + [DataMember(Name = "link22", EmitDefaultValue = false)] + public string Link22 { get; set; } + + /// + /// Gets or Sets Link23 + /// + [DataMember(Name = "link23", EmitDefaultValue = false)] + public string Link23 { get; set; } + + /// + /// Gets or Sets Link24 + /// + [DataMember(Name = "link24", EmitDefaultValue = false)] + public string Link24 { get; set; } + + /// + /// Gets or Sets Link25 + /// + [DataMember(Name = "link25", EmitDefaultValue = false)] + public string Link25 { get; set; } + + /// + /// Gets or Sets Link26 + /// + [DataMember(Name = "link26", EmitDefaultValue = false)] + public string Link26 { get; set; } + + /// + /// Gets or Sets Link27 + /// + [DataMember(Name = "link27", EmitDefaultValue = false)] + public string Link27 { get; set; } + + /// + /// Gets or Sets Link28 + /// + [DataMember(Name = "link28", EmitDefaultValue = false)] + public string Link28 { get; set; } + + /// + /// Gets or Sets Link29 + /// + [DataMember(Name = "link29", EmitDefaultValue = false)] + public string Link29 { get; set; } + + /// + /// Gets or Sets Nodeid + /// + [DataMember(Name = "nodeid", EmitDefaultValue = false)] + public int Nodeid { get; set; } + + /// + /// Gets or Sets Votes + /// + [DataMember(Name = "votes", EmitDefaultValue = false)] + public int Votes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterConfigRequest {\n"); + sb.Append(" Clustername: ").Append(Clustername).Append("\n"); + sb.Append(" Link0: ").Append(Link0).Append("\n"); + sb.Append(" Link1: ").Append(Link1).Append("\n"); + sb.Append(" Link2: ").Append(Link2).Append("\n"); + sb.Append(" Link3: ").Append(Link3).Append("\n"); + sb.Append(" Link4: ").Append(Link4).Append("\n"); + sb.Append(" Link5: ").Append(Link5).Append("\n"); + sb.Append(" Link6: ").Append(Link6).Append("\n"); + sb.Append(" Link7: ").Append(Link7).Append("\n"); + sb.Append(" Link8: ").Append(Link8).Append("\n"); + sb.Append(" Link9: ").Append(Link9).Append("\n"); + sb.Append(" Link10: ").Append(Link10).Append("\n"); + sb.Append(" Link11: ").Append(Link11).Append("\n"); + sb.Append(" Link12: ").Append(Link12).Append("\n"); + sb.Append(" Link13: ").Append(Link13).Append("\n"); + sb.Append(" Link14: ").Append(Link14).Append("\n"); + sb.Append(" Link15: ").Append(Link15).Append("\n"); + sb.Append(" Link16: ").Append(Link16).Append("\n"); + sb.Append(" Link17: ").Append(Link17).Append("\n"); + sb.Append(" Link18: ").Append(Link18).Append("\n"); + sb.Append(" Link19: ").Append(Link19).Append("\n"); + sb.Append(" Link20: ").Append(Link20).Append("\n"); + sb.Append(" Link21: ").Append(Link21).Append("\n"); + sb.Append(" Link22: ").Append(Link22).Append("\n"); + sb.Append(" Link23: ").Append(Link23).Append("\n"); + sb.Append(" Link24: ").Append(Link24).Append("\n"); + sb.Append(" Link25: ").Append(Link25).Append("\n"); + sb.Append(" Link26: ").Append(Link26).Append("\n"); + sb.Append(" Link27: ").Append(Link27).Append("\n"); + sb.Append(" Link28: ").Append(Link28).Append("\n"); + sb.Append(" Link29: ").Append(Link29).Append("\n"); + sb.Append(" Nodeid: ").Append(Nodeid).Append("\n"); + sb.Append(" Votes: ").Append(Votes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterFirewallAliasesRequest.cs b/src/ProxmoxSharp/Model/CreateClusterFirewallAliasesRequest.cs new file mode 100644 index 0000000..2466557 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterFirewallAliasesRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterFirewallAliasesRequest + /// + [DataContract(Name = "CreateClusterFirewallAliasesRequest")] + public partial class CreateClusterFirewallAliasesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterFirewallAliasesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// name (required). + public CreateClusterFirewallAliasesRequest(string cidr = default(string), string comment = default(string), string name = default(string)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for CreateClusterFirewallAliasesRequest and cannot be null"); + } + this.Cidr = cidr; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateClusterFirewallAliasesRequest and cannot be null"); + } + this.Name = name; + this.Comment = comment; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterFirewallAliasesRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterFirewallGroupRequest.cs b/src/ProxmoxSharp/Model/CreateClusterFirewallGroupRequest.cs new file mode 100644 index 0000000..7736bc3 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterFirewallGroupRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterFirewallGroupRequest + /// + [DataContract(Name = "CreateClusterFirewallGroupRequest")] + public partial class CreateClusterFirewallGroupRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterFirewallGroupRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// digest. + /// group (required). + /// rename. + public CreateClusterFirewallGroupRequest(string comment = default(string), string digest = default(string), string group = default(string), string rename = default(string)) + { + // to ensure "group" is required (not null) + if (group == null) + { + throw new ArgumentNullException("group is a required property for CreateClusterFirewallGroupRequest and cannot be null"); + } + this.Group = group; + this.Comment = comment; + this.Digest = digest; + this.Rename = rename; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Group + /// + [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] + public string Group { get; set; } + + /// + /// Gets or Sets Rename + /// + [DataMember(Name = "rename", EmitDefaultValue = false)] + public string Rename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterFirewallGroupRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" Rename: ").Append(Rename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterFirewallIPSetRequest.cs b/src/ProxmoxSharp/Model/CreateClusterFirewallIPSetRequest.cs new file mode 100644 index 0000000..3f251c3 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterFirewallIPSetRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterFirewallIPSetRequest + /// + [DataContract(Name = "CreateClusterFirewallIPSetRequest")] + public partial class CreateClusterFirewallIPSetRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterFirewallIPSetRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// digest. + /// name (required). + /// rename. + public CreateClusterFirewallIPSetRequest(string comment = default(string), string digest = default(string), string name = default(string), string rename = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateClusterFirewallIPSetRequest and cannot be null"); + } + this.Name = name; + this.Comment = comment; + this.Digest = digest; + this.Rename = rename; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Rename + /// + [DataMember(Name = "rename", EmitDefaultValue = false)] + public string Rename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterFirewallIPSetRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Rename: ").Append(Rename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaGroupsRequest.cs b/src/ProxmoxSharp/Model/CreateClusterHaGroupsRequest.cs new file mode 100644 index 0000000..ae8d5e7 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaGroupsRequest.cs @@ -0,0 +1,143 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaGroupsRequest + /// + [DataContract(Name = "CreateClusterHaGroupsRequest")] + public partial class CreateClusterHaGroupsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterHaGroupsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// group (required). + /// nodes (required). + /// nofailback. + /// restricted. + /// type. + public CreateClusterHaGroupsRequest(string comment = default(string), string group = default(string), string nodes = default(string), bool nofailback = default(bool), bool restricted = default(bool), string type = default(string)) + { + // to ensure "group" is required (not null) + if (group == null) + { + throw new ArgumentNullException("group is a required property for CreateClusterHaGroupsRequest and cannot be null"); + } + this.Group = group; + // to ensure "nodes" is required (not null) + if (nodes == null) + { + throw new ArgumentNullException("nodes is a required property for CreateClusterHaGroupsRequest and cannot be null"); + } + this.Nodes = nodes; + this.Comment = comment; + this.Nofailback = nofailback; + this.Restricted = restricted; + this.Type = type; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Group + /// + [DataMember(Name = "group", IsRequired = true, EmitDefaultValue = true)] + public string Group { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", IsRequired = true, EmitDefaultValue = true)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Nofailback + /// + [DataMember(Name = "nofailback", EmitDefaultValue = true)] + public bool Nofailback { get; set; } + + /// + /// Gets or Sets Restricted + /// + [DataMember(Name = "restricted", EmitDefaultValue = true)] + public bool Restricted { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaGroupsRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Nofailback: ").Append(Nofailback).Append("\n"); + sb.Append(" Restricted: ").Append(Restricted).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesRequest.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesRequest.cs new file mode 100644 index 0000000..9219893 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesRequest.cs @@ -0,0 +1,156 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaResourcesRequest + /// + [DataContract(Name = "CreateClusterHaResourcesRequest")] + public partial class CreateClusterHaResourcesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterHaResourcesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// failback. + /// group. + /// maxRelocate. + /// maxRestart. + /// sid (required). + /// state. + /// type. + public CreateClusterHaResourcesRequest(string comment = default(string), bool failback = default(bool), string group = default(string), int maxRelocate = default(int), int maxRestart = default(int), string sid = default(string), string state = default(string), string type = default(string)) + { + // to ensure "sid" is required (not null) + if (sid == null) + { + throw new ArgumentNullException("sid is a required property for CreateClusterHaResourcesRequest and cannot be null"); + } + this.Sid = sid; + this.Comment = comment; + this.Failback = failback; + this.Group = group; + this.MaxRelocate = maxRelocate; + this.MaxRestart = maxRestart; + this.State = state; + this.Type = type; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Failback + /// + [DataMember(Name = "failback", EmitDefaultValue = true)] + public bool Failback { get; set; } + + /// + /// Gets or Sets Group + /// + [DataMember(Name = "group", EmitDefaultValue = false)] + public string Group { get; set; } + + /// + /// Gets or Sets MaxRelocate + /// + [DataMember(Name = "max_relocate", EmitDefaultValue = false)] + public int MaxRelocate { get; set; } + + /// + /// Gets or Sets MaxRestart + /// + [DataMember(Name = "max_restart", EmitDefaultValue = false)] + public int MaxRestart { get; set; } + + /// + /// Gets or Sets Sid + /// + [DataMember(Name = "sid", IsRequired = true, EmitDefaultValue = true)] + public string Sid { get; set; } + + /// + /// Gets or Sets State + /// + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Failback: ").Append(Failback).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" MaxRelocate: ").Append(MaxRelocate).Append("\n"); + sb.Append(" MaxRestart: ").Append(MaxRestart).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200Response.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200Response.cs new file mode 100644 index 0000000..b1fcb05 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaResourcesSingleMigrate200Response + /// + [DataContract(Name = "createClusterHaResourcesSingleMigrate_200_response")] + public partial class CreateClusterHaResourcesSingleMigrate200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateClusterHaResourcesSingleMigrate200Response(List errors = default(List), CreateClusterHaResourcesSingleMigrate200ResponseData data = default(CreateClusterHaResourcesSingleMigrate200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public CreateClusterHaResourcesSingleMigrate200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesSingleMigrate200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200ResponseData.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200ResponseData.cs new file mode 100644 index 0000000..1ffaf1f --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200ResponseData.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaResourcesSingleMigrate200ResponseData + /// + [DataContract(Name = "createClusterHaResourcesSingleMigrate_200_response_data")] + public partial class CreateClusterHaResourcesSingleMigrate200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// HA resources, which are blocking the given HA resource from being migrated to the requested target node.. + /// HA resources, which are migrated to the same requested target node as the given HA resource, because these are in positive affinity with the HA resource.. + /// Node, which was requested to be migrated to.. + /// HA resource, which is requested to be migrated.. + public CreateClusterHaResourcesSingleMigrate200ResponseData(List blockingResources = default(List), List comigratedResources = default(List), string requestedNode = default(string), string sid = default(string)) + { + this.BlockingResources = blockingResources; + this.ComigratedResources = comigratedResources; + this.RequestedNode = requestedNode; + this.Sid = sid; + } + + /// + /// HA resources, which are blocking the given HA resource from being migrated to the requested target node. + /// + /// HA resources, which are blocking the given HA resource from being migrated to the requested target node. + [DataMember(Name = "blocking-resources", EmitDefaultValue = false)] + public List BlockingResources { get; set; } + + /// + /// HA resources, which are migrated to the same requested target node as the given HA resource, because these are in positive affinity with the HA resource. + /// + /// HA resources, which are migrated to the same requested target node as the given HA resource, because these are in positive affinity with the HA resource. + [DataMember(Name = "comigrated-resources", EmitDefaultValue = false)] + public List ComigratedResources { get; set; } + + /// + /// Node, which was requested to be migrated to. + /// + /// Node, which was requested to be migrated to. + [DataMember(Name = "requested-node", EmitDefaultValue = false)] + public string RequestedNode { get; set; } + + /// + /// HA resource, which is requested to be migrated. + /// + /// HA resource, which is requested to be migrated. + [DataMember(Name = "sid", EmitDefaultValue = false)] + public string Sid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesSingleMigrate200ResponseData {\n"); + sb.Append(" BlockingResources: ").Append(BlockingResources).Append("\n"); + sb.Append(" ComigratedResources: ").Append(ComigratedResources).Append("\n"); + sb.Append(" RequestedNode: ").Append(RequestedNode).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200ResponseDataBlockingResourcesInner.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200ResponseDataBlockingResourcesInner.cs new file mode 100644 index 0000000..2b4ac6e --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrate200ResponseDataBlockingResourcesInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// A blocking HA resource + /// + [DataContract(Name = "createClusterHaResourcesSingleMigrate_200_response_data_blocking_resources_inner")] + public partial class CreateClusterHaResourcesSingleMigrate200ResponseDataBlockingResourcesInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The reason why the HA resource is blocking the migration.. + /// The blocking HA resource id. + public CreateClusterHaResourcesSingleMigrate200ResponseDataBlockingResourcesInner(string cause = default(string), string sid = default(string)) + { + this.Cause = cause; + this.Sid = sid; + } + + /// + /// The reason why the HA resource is blocking the migration. + /// + /// The reason why the HA resource is blocking the migration. + [DataMember(Name = "cause", EmitDefaultValue = false)] + public string Cause { get; set; } + + /// + /// The blocking HA resource id + /// + /// The blocking HA resource id + [DataMember(Name = "sid", EmitDefaultValue = false)] + public string Sid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesSingleMigrate200ResponseDataBlockingResourcesInner {\n"); + sb.Append(" Cause: ").Append(Cause).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrateRequest.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrateRequest.cs new file mode 100644 index 0000000..7950a8b --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleMigrateRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaResourcesSingleMigrateRequest + /// + [DataContract(Name = "CreateClusterHaResourcesSingleMigrateRequest")] + public partial class CreateClusterHaResourcesSingleMigrateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterHaResourcesSingleMigrateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// node (required). + public CreateClusterHaResourcesSingleMigrateRequest(string node = default(string)) + { + // to ensure "node" is required (not null) + if (node == null) + { + throw new ArgumentNullException("node is a required property for CreateClusterHaResourcesSingleMigrateRequest and cannot be null"); + } + this.Node = node; + } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", IsRequired = true, EmitDefaultValue = true)] + public string Node { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesSingleMigrateRequest {\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200Response.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200Response.cs new file mode 100644 index 0000000..fd6bf5c --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaResourcesSingleRelocate200Response + /// + [DataContract(Name = "createClusterHaResourcesSingleRelocate_200_response")] + public partial class CreateClusterHaResourcesSingleRelocate200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateClusterHaResourcesSingleRelocate200Response(List errors = default(List), CreateClusterHaResourcesSingleRelocate200ResponseData data = default(CreateClusterHaResourcesSingleRelocate200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public CreateClusterHaResourcesSingleRelocate200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesSingleRelocate200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200ResponseData.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200ResponseData.cs new file mode 100644 index 0000000..dfd7d4d --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200ResponseData.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaResourcesSingleRelocate200ResponseData + /// + [DataContract(Name = "createClusterHaResourcesSingleRelocate_200_response_data")] + public partial class CreateClusterHaResourcesSingleRelocate200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// HA resources, which are blocking the given HA resource from being relocated to the requested target node.. + /// HA resources, which are relocated to the same requested target node as the given HA resource, because these are in positive affinity with the HA resource.. + /// Node, which was requested to be relocated to.. + /// HA resource, which is requested to be relocated.. + public CreateClusterHaResourcesSingleRelocate200ResponseData(List blockingResources = default(List), List comigratedResources = default(List), string requestedNode = default(string), string sid = default(string)) + { + this.BlockingResources = blockingResources; + this.ComigratedResources = comigratedResources; + this.RequestedNode = requestedNode; + this.Sid = sid; + } + + /// + /// HA resources, which are blocking the given HA resource from being relocated to the requested target node. + /// + /// HA resources, which are blocking the given HA resource from being relocated to the requested target node. + [DataMember(Name = "blocking-resources", EmitDefaultValue = false)] + public List BlockingResources { get; set; } + + /// + /// HA resources, which are relocated to the same requested target node as the given HA resource, because these are in positive affinity with the HA resource. + /// + /// HA resources, which are relocated to the same requested target node as the given HA resource, because these are in positive affinity with the HA resource. + [DataMember(Name = "comigrated-resources", EmitDefaultValue = false)] + public List ComigratedResources { get; set; } + + /// + /// Node, which was requested to be relocated to. + /// + /// Node, which was requested to be relocated to. + [DataMember(Name = "requested-node", EmitDefaultValue = false)] + public string RequestedNode { get; set; } + + /// + /// HA resource, which is requested to be relocated. + /// + /// HA resource, which is requested to be relocated. + [DataMember(Name = "sid", EmitDefaultValue = false)] + public string Sid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesSingleRelocate200ResponseData {\n"); + sb.Append(" BlockingResources: ").Append(BlockingResources).Append("\n"); + sb.Append(" ComigratedResources: ").Append(ComigratedResources).Append("\n"); + sb.Append(" RequestedNode: ").Append(RequestedNode).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200ResponseDataBlockingResourcesInner.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200ResponseDataBlockingResourcesInner.cs new file mode 100644 index 0000000..b7a7c38 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocate200ResponseDataBlockingResourcesInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// A blocking HA resource + /// + [DataContract(Name = "createClusterHaResourcesSingleRelocate_200_response_data_blocking_resources_inner")] + public partial class CreateClusterHaResourcesSingleRelocate200ResponseDataBlockingResourcesInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The reason why the HA resource is blocking the relocation.. + /// The blocking HA resource id. + public CreateClusterHaResourcesSingleRelocate200ResponseDataBlockingResourcesInner(string cause = default(string), string sid = default(string)) + { + this.Cause = cause; + this.Sid = sid; + } + + /// + /// The reason why the HA resource is blocking the relocation. + /// + /// The reason why the HA resource is blocking the relocation. + [DataMember(Name = "cause", EmitDefaultValue = false)] + public string Cause { get; set; } + + /// + /// The blocking HA resource id + /// + /// The blocking HA resource id + [DataMember(Name = "sid", EmitDefaultValue = false)] + public string Sid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesSingleRelocate200ResponseDataBlockingResourcesInner {\n"); + sb.Append(" Cause: ").Append(Cause).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocateRequest.cs b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocateRequest.cs new file mode 100644 index 0000000..f86c766 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaResourcesSingleRelocateRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaResourcesSingleRelocateRequest + /// + [DataContract(Name = "CreateClusterHaResourcesSingleRelocateRequest")] + public partial class CreateClusterHaResourcesSingleRelocateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterHaResourcesSingleRelocateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// node (required). + public CreateClusterHaResourcesSingleRelocateRequest(string node = default(string)) + { + // to ensure "node" is required (not null) + if (node == null) + { + throw new ArgumentNullException("node is a required property for CreateClusterHaResourcesSingleRelocateRequest and cannot be null"); + } + this.Node = node; + } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", IsRequired = true, EmitDefaultValue = true)] + public string Node { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaResourcesSingleRelocateRequest {\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterHaRulesRequest.cs b/src/ProxmoxSharp/Model/CreateClusterHaRulesRequest.cs new file mode 100644 index 0000000..9f9872f --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterHaRulesRequest.cs @@ -0,0 +1,166 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterHaRulesRequest + /// + [DataContract(Name = "CreateClusterHaRulesRequest")] + public partial class CreateClusterHaRulesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterHaRulesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// affinity. + /// comment. + /// disable. + /// nodes. + /// resources (required). + /// rule (required). + /// strict. + /// type (required). + public CreateClusterHaRulesRequest(string affinity = default(string), string comment = default(string), bool disable = default(bool), string nodes = default(string), string resources = default(string), string rule = default(string), bool strict = default(bool), string type = default(string)) + { + // to ensure "resources" is required (not null) + if (resources == null) + { + throw new ArgumentNullException("resources is a required property for CreateClusterHaRulesRequest and cannot be null"); + } + this.Resources = resources; + // to ensure "rule" is required (not null) + if (rule == null) + { + throw new ArgumentNullException("rule is a required property for CreateClusterHaRulesRequest and cannot be null"); + } + this.Rule = rule; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterHaRulesRequest and cannot be null"); + } + this.Type = type; + this.Affinity = affinity; + this.Comment = comment; + this.Disable = disable; + this.Nodes = nodes; + this.Strict = strict; + } + + /// + /// Gets or Sets Affinity + /// + [DataMember(Name = "affinity", EmitDefaultValue = false)] + public string Affinity { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Resources + /// + [DataMember(Name = "resources", IsRequired = true, EmitDefaultValue = true)] + public string Resources { get; set; } + + /// + /// Gets or Sets Rule + /// + [DataMember(Name = "rule", IsRequired = true, EmitDefaultValue = true)] + public string Rule { get; set; } + + /// + /// Gets or Sets Strict + /// + [DataMember(Name = "strict", EmitDefaultValue = true)] + public bool Strict { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterHaRulesRequest {\n"); + sb.Append(" Affinity: ").Append(Affinity).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Resources: ").Append(Resources).Append("\n"); + sb.Append(" Rule: ").Append(Rule).Append("\n"); + sb.Append(" Strict: ").Append(Strict).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterJobsRealmsyncSingleRequest.cs b/src/ProxmoxSharp/Model/CreateClusterJobsRealmsyncSingleRequest.cs new file mode 100644 index 0000000..e066f53 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterJobsRealmsyncSingleRequest.cs @@ -0,0 +1,147 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterJobsRealmsyncSingleRequest + /// + [DataContract(Name = "CreateClusterJobsRealmsyncSingleRequest")] + public partial class CreateClusterJobsRealmsyncSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterJobsRealmsyncSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// enableNew. + /// enabled. + /// realm. + /// removeVanished. + /// schedule (required). + /// scope. + public CreateClusterJobsRealmsyncSingleRequest(string comment = default(string), bool enableNew = default(bool), bool enabled = default(bool), string realm = default(string), string removeVanished = default(string), string schedule = default(string), string scope = default(string)) + { + // to ensure "schedule" is required (not null) + if (schedule == null) + { + throw new ArgumentNullException("schedule is a required property for CreateClusterJobsRealmsyncSingleRequest and cannot be null"); + } + this.Schedule = schedule; + this.Comment = comment; + this.EnableNew = enableNew; + this.Enabled = enabled; + this.Realm = realm; + this.RemoveVanished = removeVanished; + this.Scope = scope; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets EnableNew + /// + [DataMember(Name = "enable-new", EmitDefaultValue = true)] + public bool EnableNew { get; set; } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets Realm + /// + [DataMember(Name = "realm", EmitDefaultValue = false)] + public string Realm { get; set; } + + /// + /// Gets or Sets RemoveVanished + /// + [DataMember(Name = "remove-vanished", EmitDefaultValue = false)] + public string RemoveVanished { get; set; } + + /// + /// Gets or Sets Schedule + /// + [DataMember(Name = "schedule", IsRequired = true, EmitDefaultValue = true)] + public string Schedule { get; set; } + + /// + /// Gets or Sets Scope + /// + [DataMember(Name = "scope", EmitDefaultValue = false)] + public string Scope { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterJobsRealmsyncSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" EnableNew: ").Append(EnableNew).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Realm: ").Append(Realm).Append("\n"); + sb.Append(" RemoveVanished: ").Append(RemoveVanished).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Scope: ").Append(Scope).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterMappingDirRequest.cs b/src/ProxmoxSharp/Model/CreateClusterMappingDirRequest.cs new file mode 100644 index 0000000..12b4817 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterMappingDirRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterMappingDirRequest + /// + [DataContract(Name = "CreateClusterMappingDirRequest")] + public partial class CreateClusterMappingDirRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterMappingDirRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// description. + /// id (required). + /// map (required). + public CreateClusterMappingDirRequest(string description = default(string), string id = default(string), List map = default(List)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for CreateClusterMappingDirRequest and cannot be null"); + } + this.Id = id; + // to ensure "map" is required (not null) + if (map == null) + { + throw new ArgumentNullException("map is a required property for CreateClusterMappingDirRequest and cannot be null"); + } + this.Map = map; + this.Description = description; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets Map + /// + [DataMember(Name = "map", IsRequired = true, EmitDefaultValue = true)] + public List Map { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterMappingDirRequest {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterMappingPciRequest.cs b/src/ProxmoxSharp/Model/CreateClusterMappingPciRequest.cs new file mode 100644 index 0000000..e6e1ad8 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterMappingPciRequest.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterMappingPciRequest + /// + [DataContract(Name = "CreateClusterMappingPciRequest")] + public partial class CreateClusterMappingPciRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterMappingPciRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// description. + /// id (required). + /// liveMigrationCapable. + /// map (required). + /// mdev. + public CreateClusterMappingPciRequest(string description = default(string), string id = default(string), bool liveMigrationCapable = default(bool), List map = default(List), bool mdev = default(bool)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for CreateClusterMappingPciRequest and cannot be null"); + } + this.Id = id; + // to ensure "map" is required (not null) + if (map == null) + { + throw new ArgumentNullException("map is a required property for CreateClusterMappingPciRequest and cannot be null"); + } + this.Map = map; + this.Description = description; + this.LiveMigrationCapable = liveMigrationCapable; + this.Mdev = mdev; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets LiveMigrationCapable + /// + [DataMember(Name = "live-migration-capable", EmitDefaultValue = true)] + public bool LiveMigrationCapable { get; set; } + + /// + /// Gets or Sets Map + /// + [DataMember(Name = "map", IsRequired = true, EmitDefaultValue = true)] + public List Map { get; set; } + + /// + /// Gets or Sets Mdev + /// + [DataMember(Name = "mdev", EmitDefaultValue = true)] + public bool Mdev { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterMappingPciRequest {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" LiveMigrationCapable: ").Append(LiveMigrationCapable).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append(" Mdev: ").Append(Mdev).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterMappingUsbRequest.cs b/src/ProxmoxSharp/Model/CreateClusterMappingUsbRequest.cs new file mode 100644 index 0000000..b4378a5 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterMappingUsbRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterMappingUsbRequest + /// + [DataContract(Name = "CreateClusterMappingUsbRequest")] + public partial class CreateClusterMappingUsbRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterMappingUsbRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// description. + /// id (required). + /// map (required). + public CreateClusterMappingUsbRequest(string description = default(string), string id = default(string), List map = default(List)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for CreateClusterMappingUsbRequest and cannot be null"); + } + this.Id = id; + // to ensure "map" is required (not null) + if (map == null) + { + throw new ArgumentNullException("map is a required property for CreateClusterMappingUsbRequest and cannot be null"); + } + this.Map = map; + this.Description = description; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets Map + /// + [DataMember(Name = "map", IsRequired = true, EmitDefaultValue = true)] + public List Map { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterMappingUsbRequest {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterMetricsServerSingleRequest.cs b/src/ProxmoxSharp/Model/CreateClusterMetricsServerSingleRequest.cs new file mode 100644 index 0000000..be8dcfa --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterMetricsServerSingleRequest.cs @@ -0,0 +1,296 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterMetricsServerSingleRequest + /// + [DataContract(Name = "CreateClusterMetricsServerSingleRequest")] + public partial class CreateClusterMetricsServerSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterMetricsServerSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// apiPathPrefix. + /// bucket. + /// disable. + /// influxdbproto. + /// maxBodySize. + /// mtu. + /// organization. + /// otelCompression. + /// otelHeaders. + /// otelMaxBodySize. + /// otelPath. + /// otelProtocol. + /// otelResourceAttributes. + /// otelTimeout. + /// otelVerifySsl. + /// path. + /// port (required). + /// proto. + /// server (required). + /// timeout. + /// token. + /// type (required). + /// verifyCertificate. + public CreateClusterMetricsServerSingleRequest(string apiPathPrefix = default(string), string bucket = default(string), bool disable = default(bool), string influxdbproto = default(string), int maxBodySize = default(int), int mtu = default(int), string organization = default(string), string otelCompression = default(string), string otelHeaders = default(string), int otelMaxBodySize = default(int), string otelPath = default(string), string otelProtocol = default(string), string otelResourceAttributes = default(string), int otelTimeout = default(int), bool otelVerifySsl = default(bool), string path = default(string), int port = default(int), string proto = default(string), string server = default(string), int timeout = default(int), string token = default(string), string type = default(string), bool verifyCertificate = default(bool)) + { + this.Port = port; + // to ensure "server" is required (not null) + if (server == null) + { + throw new ArgumentNullException("server is a required property for CreateClusterMetricsServerSingleRequest and cannot be null"); + } + this.Server = server; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterMetricsServerSingleRequest and cannot be null"); + } + this.Type = type; + this.ApiPathPrefix = apiPathPrefix; + this.Bucket = bucket; + this.Disable = disable; + this.Influxdbproto = influxdbproto; + this.MaxBodySize = maxBodySize; + this.Mtu = mtu; + this.Organization = organization; + this.OtelCompression = otelCompression; + this.OtelHeaders = otelHeaders; + this.OtelMaxBodySize = otelMaxBodySize; + this.OtelPath = otelPath; + this.OtelProtocol = otelProtocol; + this.OtelResourceAttributes = otelResourceAttributes; + this.OtelTimeout = otelTimeout; + this.OtelVerifySsl = otelVerifySsl; + this.Path = path; + this.Proto = proto; + this.Timeout = timeout; + this.Token = token; + this.VerifyCertificate = verifyCertificate; + } + + /// + /// Gets or Sets ApiPathPrefix + /// + [DataMember(Name = "api-path-prefix", EmitDefaultValue = false)] + public string ApiPathPrefix { get; set; } + + /// + /// Gets or Sets Bucket + /// + [DataMember(Name = "bucket", EmitDefaultValue = false)] + public string Bucket { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Influxdbproto + /// + [DataMember(Name = "influxdbproto", EmitDefaultValue = false)] + public string Influxdbproto { get; set; } + + /// + /// Gets or Sets MaxBodySize + /// + [DataMember(Name = "max-body-size", EmitDefaultValue = false)] + public int MaxBodySize { get; set; } + + /// + /// Gets or Sets Mtu + /// + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public int Mtu { get; set; } + + /// + /// Gets or Sets Organization + /// + [DataMember(Name = "organization", EmitDefaultValue = false)] + public string Organization { get; set; } + + /// + /// Gets or Sets OtelCompression + /// + [DataMember(Name = "otel-compression", EmitDefaultValue = false)] + public string OtelCompression { get; set; } + + /// + /// Gets or Sets OtelHeaders + /// + [DataMember(Name = "otel-headers", EmitDefaultValue = false)] + public string OtelHeaders { get; set; } + + /// + /// Gets or Sets OtelMaxBodySize + /// + [DataMember(Name = "otel-max-body-size", EmitDefaultValue = false)] + public int OtelMaxBodySize { get; set; } + + /// + /// Gets or Sets OtelPath + /// + [DataMember(Name = "otel-path", EmitDefaultValue = false)] + public string OtelPath { get; set; } + + /// + /// Gets or Sets OtelProtocol + /// + [DataMember(Name = "otel-protocol", EmitDefaultValue = false)] + public string OtelProtocol { get; set; } + + /// + /// Gets or Sets OtelResourceAttributes + /// + [DataMember(Name = "otel-resource-attributes", EmitDefaultValue = false)] + public string OtelResourceAttributes { get; set; } + + /// + /// Gets or Sets OtelTimeout + /// + [DataMember(Name = "otel-timeout", EmitDefaultValue = false)] + public int OtelTimeout { get; set; } + + /// + /// Gets or Sets OtelVerifySsl + /// + [DataMember(Name = "otel-verify-ssl", EmitDefaultValue = true)] + public bool OtelVerifySsl { get; set; } + + /// + /// Gets or Sets Path + /// + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)] + public int Port { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Server + /// + [DataMember(Name = "server", IsRequired = true, EmitDefaultValue = true)] + public string Server { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets VerifyCertificate + /// + [DataMember(Name = "verify-certificate", EmitDefaultValue = true)] + public bool VerifyCertificate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterMetricsServerSingleRequest {\n"); + sb.Append(" ApiPathPrefix: ").Append(ApiPathPrefix).Append("\n"); + sb.Append(" Bucket: ").Append(Bucket).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Influxdbproto: ").Append(Influxdbproto).Append("\n"); + sb.Append(" MaxBodySize: ").Append(MaxBodySize).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Organization: ").Append(Organization).Append("\n"); + sb.Append(" OtelCompression: ").Append(OtelCompression).Append("\n"); + sb.Append(" OtelHeaders: ").Append(OtelHeaders).Append("\n"); + sb.Append(" OtelMaxBodySize: ").Append(OtelMaxBodySize).Append("\n"); + sb.Append(" OtelPath: ").Append(OtelPath).Append("\n"); + sb.Append(" OtelProtocol: ").Append(OtelProtocol).Append("\n"); + sb.Append(" OtelResourceAttributes: ").Append(OtelResourceAttributes).Append("\n"); + sb.Append(" OtelTimeout: ").Append(OtelTimeout).Append("\n"); + sb.Append(" OtelVerifySsl: ").Append(OtelVerifySsl).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" VerifyCertificate: ").Append(VerifyCertificate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsGotifyRequest.cs b/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsGotifyRequest.cs new file mode 100644 index 0000000..8976e21 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsGotifyRequest.cs @@ -0,0 +1,139 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterNotificationsEndpointsGotifyRequest + /// + [DataContract(Name = "CreateClusterNotificationsEndpointsGotifyRequest")] + public partial class CreateClusterNotificationsEndpointsGotifyRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterNotificationsEndpointsGotifyRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// disable. + /// name (required). + /// server (required). + /// token (required). + public CreateClusterNotificationsEndpointsGotifyRequest(string comment = default(string), bool disable = default(bool), string name = default(string), string server = default(string), string token = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateClusterNotificationsEndpointsGotifyRequest and cannot be null"); + } + this.Name = name; + // to ensure "server" is required (not null) + if (server == null) + { + throw new ArgumentNullException("server is a required property for CreateClusterNotificationsEndpointsGotifyRequest and cannot be null"); + } + this.Server = server; + // to ensure "token" is required (not null) + if (token == null) + { + throw new ArgumentNullException("token is a required property for CreateClusterNotificationsEndpointsGotifyRequest and cannot be null"); + } + this.Token = token; + this.Comment = comment; + this.Disable = disable; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Server + /// + [DataMember(Name = "server", IsRequired = true, EmitDefaultValue = true)] + public string Server { get; set; } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] + public string Token { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterNotificationsEndpointsGotifyRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsSendmailRequest.cs b/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsSendmailRequest.cs new file mode 100644 index 0000000..9db0b06 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsSendmailRequest.cs @@ -0,0 +1,147 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterNotificationsEndpointsSendmailRequest + /// + [DataContract(Name = "CreateClusterNotificationsEndpointsSendmailRequest")] + public partial class CreateClusterNotificationsEndpointsSendmailRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterNotificationsEndpointsSendmailRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// author. + /// comment. + /// disable. + /// fromAddress. + /// mailto. + /// mailtoUser. + /// name (required). + public CreateClusterNotificationsEndpointsSendmailRequest(string author = default(string), string comment = default(string), bool disable = default(bool), string fromAddress = default(string), List mailto = default(List), List mailtoUser = default(List), string name = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateClusterNotificationsEndpointsSendmailRequest and cannot be null"); + } + this.Name = name; + this.Author = author; + this.Comment = comment; + this.Disable = disable; + this.FromAddress = fromAddress; + this.Mailto = mailto; + this.MailtoUser = mailtoUser; + } + + /// + /// Gets or Sets Author + /// + [DataMember(Name = "author", EmitDefaultValue = false)] + public string Author { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets FromAddress + /// + [DataMember(Name = "from-address", EmitDefaultValue = false)] + public string FromAddress { get; set; } + + /// + /// Gets or Sets Mailto + /// + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public List Mailto { get; set; } + + /// + /// Gets or Sets MailtoUser + /// + [DataMember(Name = "mailto-user", EmitDefaultValue = false)] + public List MailtoUser { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterNotificationsEndpointsSendmailRequest {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" FromAddress: ").Append(FromAddress).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" MailtoUser: ").Append(MailtoUser).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsSmtpRequest.cs b/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsSmtpRequest.cs new file mode 100644 index 0000000..26b1fa0 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsSmtpRequest.cs @@ -0,0 +1,202 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterNotificationsEndpointsSmtpRequest + /// + [DataContract(Name = "CreateClusterNotificationsEndpointsSmtpRequest")] + public partial class CreateClusterNotificationsEndpointsSmtpRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterNotificationsEndpointsSmtpRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// author. + /// comment. + /// disable. + /// fromAddress (required). + /// mailto. + /// mailtoUser. + /// mode. + /// name (required). + /// password. + /// port. + /// server (required). + /// username. + public CreateClusterNotificationsEndpointsSmtpRequest(string author = default(string), string comment = default(string), bool disable = default(bool), string fromAddress = default(string), List mailto = default(List), List mailtoUser = default(List), string mode = default(string), string name = default(string), string password = default(string), int port = default(int), string server = default(string), string username = default(string)) + { + // to ensure "fromAddress" is required (not null) + if (fromAddress == null) + { + throw new ArgumentNullException("fromAddress is a required property for CreateClusterNotificationsEndpointsSmtpRequest and cannot be null"); + } + this.FromAddress = fromAddress; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateClusterNotificationsEndpointsSmtpRequest and cannot be null"); + } + this.Name = name; + // to ensure "server" is required (not null) + if (server == null) + { + throw new ArgumentNullException("server is a required property for CreateClusterNotificationsEndpointsSmtpRequest and cannot be null"); + } + this.Server = server; + this.Author = author; + this.Comment = comment; + this.Disable = disable; + this.Mailto = mailto; + this.MailtoUser = mailtoUser; + this.Mode = mode; + this.Password = password; + this.Port = port; + this.Username = username; + } + + /// + /// Gets or Sets Author + /// + [DataMember(Name = "author", EmitDefaultValue = false)] + public string Author { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets FromAddress + /// + [DataMember(Name = "from-address", IsRequired = true, EmitDefaultValue = true)] + public string FromAddress { get; set; } + + /// + /// Gets or Sets Mailto + /// + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public List Mailto { get; set; } + + /// + /// Gets or Sets MailtoUser + /// + [DataMember(Name = "mailto-user", EmitDefaultValue = false)] + public List MailtoUser { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public int Port { get; set; } + + /// + /// Gets or Sets Server + /// + [DataMember(Name = "server", IsRequired = true, EmitDefaultValue = true)] + public string Server { get; set; } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", EmitDefaultValue = false)] + public string Username { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterNotificationsEndpointsSmtpRequest {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" FromAddress: ").Append(FromAddress).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" MailtoUser: ").Append(MailtoUser).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsWebhookRequest.cs b/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsWebhookRequest.cs new file mode 100644 index 0000000..204edba --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterNotificationsEndpointsWebhookRequest.cs @@ -0,0 +1,166 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterNotificationsEndpointsWebhookRequest + /// + [DataContract(Name = "CreateClusterNotificationsEndpointsWebhookRequest")] + public partial class CreateClusterNotificationsEndpointsWebhookRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterNotificationsEndpointsWebhookRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// body. + /// comment. + /// disable. + /// header. + /// method (required). + /// name (required). + /// secret. + /// url (required). + public CreateClusterNotificationsEndpointsWebhookRequest(string body = default(string), string comment = default(string), bool disable = default(bool), List header = default(List), string method = default(string), string name = default(string), List secret = default(List), string url = default(string)) + { + // to ensure "method" is required (not null) + if (method == null) + { + throw new ArgumentNullException("method is a required property for CreateClusterNotificationsEndpointsWebhookRequest and cannot be null"); + } + this.Method = method; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateClusterNotificationsEndpointsWebhookRequest and cannot be null"); + } + this.Name = name; + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for CreateClusterNotificationsEndpointsWebhookRequest and cannot be null"); + } + this.Url = url; + this.Body = body; + this.Comment = comment; + this.Disable = disable; + this.Header = header; + this.Secret = secret; + } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", EmitDefaultValue = false)] + public string Body { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Header + /// + [DataMember(Name = "header", EmitDefaultValue = false)] + public List Header { get; set; } + + /// + /// Gets or Sets Method + /// + [DataMember(Name = "method", IsRequired = true, EmitDefaultValue = true)] + public string Method { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Secret + /// + [DataMember(Name = "secret", EmitDefaultValue = false)] + public List Secret { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterNotificationsEndpointsWebhookRequest {\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Header: ").Append(Header).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Secret: ").Append(Secret).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterNotificationsMatchersRequest.cs b/src/ProxmoxSharp/Model/CreateClusterNotificationsMatchersRequest.cs new file mode 100644 index 0000000..0f1b782 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterNotificationsMatchersRequest.cs @@ -0,0 +1,165 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterNotificationsMatchersRequest + /// + [DataContract(Name = "CreateClusterNotificationsMatchersRequest")] + public partial class CreateClusterNotificationsMatchersRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterNotificationsMatchersRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// disable. + /// invertMatch. + /// matchCalendar. + /// matchField. + /// matchSeverity. + /// mode. + /// name (required). + /// target. + public CreateClusterNotificationsMatchersRequest(string comment = default(string), bool disable = default(bool), bool invertMatch = default(bool), List matchCalendar = default(List), List matchField = default(List), List matchSeverity = default(List), string mode = default(string), string name = default(string), List target = default(List)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateClusterNotificationsMatchersRequest and cannot be null"); + } + this.Name = name; + this.Comment = comment; + this.Disable = disable; + this.InvertMatch = invertMatch; + this.MatchCalendar = matchCalendar; + this.MatchField = matchField; + this.MatchSeverity = matchSeverity; + this.Mode = mode; + this.Target = target; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets InvertMatch + /// + [DataMember(Name = "invert-match", EmitDefaultValue = true)] + public bool InvertMatch { get; set; } + + /// + /// Gets or Sets MatchCalendar + /// + [DataMember(Name = "match-calendar", EmitDefaultValue = false)] + public List MatchCalendar { get; set; } + + /// + /// Gets or Sets MatchField + /// + [DataMember(Name = "match-field", EmitDefaultValue = false)] + public List MatchField { get; set; } + + /// + /// Gets or Sets MatchSeverity + /// + [DataMember(Name = "match-severity", EmitDefaultValue = false)] + public List MatchSeverity { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", EmitDefaultValue = false)] + public List Target { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterNotificationsMatchersRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" InvertMatch: ").Append(InvertMatch).Append("\n"); + sb.Append(" MatchCalendar: ").Append(MatchCalendar).Append("\n"); + sb.Append(" MatchField: ").Append(MatchField).Append("\n"); + sb.Append(" MatchSeverity: ").Append(MatchSeverity).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterReplication200Response.cs b/src/ProxmoxSharp/Model/CreateClusterReplication200Response.cs new file mode 100644 index 0000000..4fc461d --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterReplication200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterReplication200Response + /// + [DataContract(Name = "createClusterReplication_200_response")] + public partial class CreateClusterReplication200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateClusterReplication200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterReplication200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterReplicationRequest.cs b/src/ProxmoxSharp/Model/CreateClusterReplicationRequest.cs new file mode 100644 index 0000000..48740eb --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterReplicationRequest.cs @@ -0,0 +1,175 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterReplicationRequest + /// + [DataContract(Name = "CreateClusterReplicationRequest")] + public partial class CreateClusterReplicationRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterReplicationRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// disable. + /// id (required). + /// rate. + /// removeJob. + /// schedule. + /// source. + /// target (required). + /// type (required). + public CreateClusterReplicationRequest(string comment = default(string), bool disable = default(bool), string id = default(string), decimal rate = default(decimal), string removeJob = default(string), string schedule = default(string), string source = default(string), string target = default(string), string type = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for CreateClusterReplicationRequest and cannot be null"); + } + this.Id = id; + // to ensure "target" is required (not null) + if (target == null) + { + throw new ArgumentNullException("target is a required property for CreateClusterReplicationRequest and cannot be null"); + } + this.Target = target; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterReplicationRequest and cannot be null"); + } + this.Type = type; + this.Comment = comment; + this.Disable = disable; + this.Rate = rate; + this.RemoveJob = removeJob; + this.Schedule = schedule; + this.Source = source; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets Rate + /// + [DataMember(Name = "rate", EmitDefaultValue = false)] + public decimal Rate { get; set; } + + /// + /// Gets or Sets RemoveJob + /// + [DataMember(Name = "remove_job", EmitDefaultValue = false)] + public string RemoveJob { get; set; } + + /// + /// Gets or Sets Schedule + /// + [DataMember(Name = "schedule", EmitDefaultValue = false)] + public string Schedule { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)] + public string Target { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterReplicationRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Rate: ").Append(Rate).Append("\n"); + sb.Append(" RemoveJob: ").Append(RemoveJob).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSDNControllerRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSDNControllerRequest.cs new file mode 100644 index 0000000..828b5a8 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSDNControllerRequest.cs @@ -0,0 +1,215 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSDNControllerRequest + /// + [DataContract(Name = "CreateClusterSDNControllerRequest")] + public partial class CreateClusterSDNControllerRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSDNControllerRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// asn. + /// bgpMultipathAsPathRelax. + /// controller (required). + /// ebgp. + /// ebgpMultihop. + /// fabric. + /// isisDomain. + /// isisIfaces. + /// isisNet. + /// lockToken. + /// loopback. + /// node. + /// peers. + /// type (required). + public CreateClusterSDNControllerRequest(int asn = default(int), bool bgpMultipathAsPathRelax = default(bool), string controller = default(string), bool ebgp = default(bool), int ebgpMultihop = default(int), string fabric = default(string), string isisDomain = default(string), string isisIfaces = default(string), string isisNet = default(string), string lockToken = default(string), string loopback = default(string), string node = default(string), string peers = default(string), string type = default(string)) + { + // to ensure "controller" is required (not null) + if (controller == null) + { + throw new ArgumentNullException("controller is a required property for CreateClusterSDNControllerRequest and cannot be null"); + } + this.Controller = controller; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterSDNControllerRequest and cannot be null"); + } + this.Type = type; + this.Asn = asn; + this.BgpMultipathAsPathRelax = bgpMultipathAsPathRelax; + this.Ebgp = ebgp; + this.EbgpMultihop = ebgpMultihop; + this.Fabric = fabric; + this.IsisDomain = isisDomain; + this.IsisIfaces = isisIfaces; + this.IsisNet = isisNet; + this.LockToken = lockToken; + this.Loopback = loopback; + this.Node = node; + this.Peers = peers; + } + + /// + /// Gets or Sets Asn + /// + [DataMember(Name = "asn", EmitDefaultValue = false)] + public int Asn { get; set; } + + /// + /// Gets or Sets BgpMultipathAsPathRelax + /// + [DataMember(Name = "bgp-multipath-as-path-relax", EmitDefaultValue = true)] + public bool BgpMultipathAsPathRelax { get; set; } + + /// + /// Gets or Sets Controller + /// + [DataMember(Name = "controller", IsRequired = true, EmitDefaultValue = true)] + public string Controller { get; set; } + + /// + /// Gets or Sets Ebgp + /// + [DataMember(Name = "ebgp", EmitDefaultValue = true)] + public bool Ebgp { get; set; } + + /// + /// Gets or Sets EbgpMultihop + /// + [DataMember(Name = "ebgp-multihop", EmitDefaultValue = false)] + public int EbgpMultihop { get; set; } + + /// + /// Gets or Sets Fabric + /// + [DataMember(Name = "fabric", EmitDefaultValue = false)] + public string Fabric { get; set; } + + /// + /// Gets or Sets IsisDomain + /// + [DataMember(Name = "isis-domain", EmitDefaultValue = false)] + public string IsisDomain { get; set; } + + /// + /// Gets or Sets IsisIfaces + /// + [DataMember(Name = "isis-ifaces", EmitDefaultValue = false)] + public string IsisIfaces { get; set; } + + /// + /// Gets or Sets IsisNet + /// + [DataMember(Name = "isis-net", EmitDefaultValue = false)] + public string IsisNet { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Loopback + /// + [DataMember(Name = "loopback", EmitDefaultValue = false)] + public string Loopback { get; set; } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Gets or Sets Peers + /// + [DataMember(Name = "peers", EmitDefaultValue = false)] + public string Peers { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSDNControllerRequest {\n"); + sb.Append(" Asn: ").Append(Asn).Append("\n"); + sb.Append(" BgpMultipathAsPathRelax: ").Append(BgpMultipathAsPathRelax).Append("\n"); + sb.Append(" Controller: ").Append(Controller).Append("\n"); + sb.Append(" Ebgp: ").Append(Ebgp).Append("\n"); + sb.Append(" EbgpMultihop: ").Append(EbgpMultihop).Append("\n"); + sb.Append(" Fabric: ").Append(Fabric).Append("\n"); + sb.Append(" IsisDomain: ").Append(IsisDomain).Append("\n"); + sb.Append(" IsisIfaces: ").Append(IsisIfaces).Append("\n"); + sb.Append(" IsisNet: ").Append(IsisNet).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Loopback: ").Append(Loopback).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Peers: ").Append(Peers).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSDNVnetRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSDNVnetRequest.cs new file mode 100644 index 0000000..20a90c7 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSDNVnetRequest.cs @@ -0,0 +1,161 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSDNVnetRequest + /// + [DataContract(Name = "CreateClusterSDNVnetRequest")] + public partial class CreateClusterSDNVnetRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSDNVnetRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// alias. + /// isolatePorts. + /// lockToken. + /// tag. + /// type. + /// vlanaware. + /// vnet (required). + /// zone (required). + public CreateClusterSDNVnetRequest(string alias = default(string), bool isolatePorts = default(bool), string lockToken = default(string), int tag = default(int), string type = default(string), bool vlanaware = default(bool), string vnet = default(string), string zone = default(string)) + { + // to ensure "vnet" is required (not null) + if (vnet == null) + { + throw new ArgumentNullException("vnet is a required property for CreateClusterSDNVnetRequest and cannot be null"); + } + this.Vnet = vnet; + // to ensure "zone" is required (not null) + if (zone == null) + { + throw new ArgumentNullException("zone is a required property for CreateClusterSDNVnetRequest and cannot be null"); + } + this.Zone = zone; + this.Alias = alias; + this.IsolatePorts = isolatePorts; + this.LockToken = lockToken; + this.Tag = tag; + this.Type = type; + this.Vlanaware = vlanaware; + } + + /// + /// Gets or Sets Alias + /// + [DataMember(Name = "alias", EmitDefaultValue = false)] + public string Alias { get; set; } + + /// + /// Gets or Sets IsolatePorts + /// + [DataMember(Name = "isolate-ports", EmitDefaultValue = true)] + public bool IsolatePorts { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Tag + /// + [DataMember(Name = "tag", EmitDefaultValue = false)] + public int Tag { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Gets or Sets Vlanaware + /// + [DataMember(Name = "vlanaware", EmitDefaultValue = true)] + public bool Vlanaware { get; set; } + + /// + /// Gets or Sets Vnet + /// + [DataMember(Name = "vnet", IsRequired = true, EmitDefaultValue = true)] + public string Vnet { get; set; } + + /// + /// Gets or Sets Zone + /// + [DataMember(Name = "zone", IsRequired = true, EmitDefaultValue = true)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSDNVnetRequest {\n"); + sb.Append(" Alias: ").Append(Alias).Append("\n"); + sb.Append(" IsolatePorts: ").Append(IsolatePorts).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Vlanaware: ").Append(Vlanaware).Append("\n"); + sb.Append(" Vnet: ").Append(Vnet).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSDNZoneRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSDNZoneRequest.cs new file mode 100644 index 0000000..79f8efa --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSDNZoneRequest.cs @@ -0,0 +1,332 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSDNZoneRequest + /// + [DataContract(Name = "CreateClusterSDNZoneRequest")] + public partial class CreateClusterSDNZoneRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSDNZoneRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// advertiseSubnets. + /// bridge. + /// bridgeDisableMacLearning. + /// controller. + /// dhcp. + /// disableArpNdSuppression. + /// dns. + /// dnszone. + /// dpId. + /// exitnodes. + /// exitnodesLocalRouting. + /// exitnodesPrimary. + /// fabric. + /// ipam. + /// lockToken. + /// mac. + /// mtu. + /// nodes. + /// peers. + /// reversedns. + /// rtImport. + /// tag. + /// type (required). + /// vlanProtocol. + /// vrfVxlan. + /// vxlanPort. + /// zone (required). + public CreateClusterSDNZoneRequest(bool advertiseSubnets = default(bool), string bridge = default(string), bool bridgeDisableMacLearning = default(bool), string controller = default(string), string dhcp = default(string), bool disableArpNdSuppression = default(bool), string dns = default(string), string dnszone = default(string), int dpId = default(int), string exitnodes = default(string), bool exitnodesLocalRouting = default(bool), string exitnodesPrimary = default(string), string fabric = default(string), string ipam = default(string), string lockToken = default(string), string mac = default(string), int mtu = default(int), string nodes = default(string), string peers = default(string), string reversedns = default(string), string rtImport = default(string), int tag = default(int), string type = default(string), string vlanProtocol = default(string), int vrfVxlan = default(int), int vxlanPort = default(int), string zone = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterSDNZoneRequest and cannot be null"); + } + this.Type = type; + // to ensure "zone" is required (not null) + if (zone == null) + { + throw new ArgumentNullException("zone is a required property for CreateClusterSDNZoneRequest and cannot be null"); + } + this.Zone = zone; + this.AdvertiseSubnets = advertiseSubnets; + this.Bridge = bridge; + this.BridgeDisableMacLearning = bridgeDisableMacLearning; + this.Controller = controller; + this.Dhcp = dhcp; + this.DisableArpNdSuppression = disableArpNdSuppression; + this.Dns = dns; + this.Dnszone = dnszone; + this.DpId = dpId; + this.Exitnodes = exitnodes; + this.ExitnodesLocalRouting = exitnodesLocalRouting; + this.ExitnodesPrimary = exitnodesPrimary; + this.Fabric = fabric; + this.Ipam = ipam; + this.LockToken = lockToken; + this.Mac = mac; + this.Mtu = mtu; + this.Nodes = nodes; + this.Peers = peers; + this.Reversedns = reversedns; + this.RtImport = rtImport; + this.Tag = tag; + this.VlanProtocol = vlanProtocol; + this.VrfVxlan = vrfVxlan; + this.VxlanPort = vxlanPort; + } + + /// + /// Gets or Sets AdvertiseSubnets + /// + [DataMember(Name = "advertise-subnets", EmitDefaultValue = true)] + public bool AdvertiseSubnets { get; set; } + + /// + /// Gets or Sets Bridge + /// + [DataMember(Name = "bridge", EmitDefaultValue = false)] + public string Bridge { get; set; } + + /// + /// Gets or Sets BridgeDisableMacLearning + /// + [DataMember(Name = "bridge-disable-mac-learning", EmitDefaultValue = true)] + public bool BridgeDisableMacLearning { get; set; } + + /// + /// Gets or Sets Controller + /// + [DataMember(Name = "controller", EmitDefaultValue = false)] + public string Controller { get; set; } + + /// + /// Gets or Sets Dhcp + /// + [DataMember(Name = "dhcp", EmitDefaultValue = false)] + public string Dhcp { get; set; } + + /// + /// Gets or Sets DisableArpNdSuppression + /// + [DataMember(Name = "disable-arp-nd-suppression", EmitDefaultValue = true)] + public bool DisableArpNdSuppression { get; set; } + + /// + /// Gets or Sets Dns + /// + [DataMember(Name = "dns", EmitDefaultValue = false)] + public string Dns { get; set; } + + /// + /// Gets or Sets Dnszone + /// + [DataMember(Name = "dnszone", EmitDefaultValue = false)] + public string Dnszone { get; set; } + + /// + /// Gets or Sets DpId + /// + [DataMember(Name = "dp-id", EmitDefaultValue = false)] + public int DpId { get; set; } + + /// + /// Gets or Sets Exitnodes + /// + [DataMember(Name = "exitnodes", EmitDefaultValue = false)] + public string Exitnodes { get; set; } + + /// + /// Gets or Sets ExitnodesLocalRouting + /// + [DataMember(Name = "exitnodes-local-routing", EmitDefaultValue = true)] + public bool ExitnodesLocalRouting { get; set; } + + /// + /// Gets or Sets ExitnodesPrimary + /// + [DataMember(Name = "exitnodes-primary", EmitDefaultValue = false)] + public string ExitnodesPrimary { get; set; } + + /// + /// Gets or Sets Fabric + /// + [DataMember(Name = "fabric", EmitDefaultValue = false)] + public string Fabric { get; set; } + + /// + /// Gets or Sets Ipam + /// + [DataMember(Name = "ipam", EmitDefaultValue = false)] + public string Ipam { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Mac + /// + [DataMember(Name = "mac", EmitDefaultValue = false)] + public string Mac { get; set; } + + /// + /// Gets or Sets Mtu + /// + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public int Mtu { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Peers + /// + [DataMember(Name = "peers", EmitDefaultValue = false)] + public string Peers { get; set; } + + /// + /// Gets or Sets Reversedns + /// + [DataMember(Name = "reversedns", EmitDefaultValue = false)] + public string Reversedns { get; set; } + + /// + /// Gets or Sets RtImport + /// + [DataMember(Name = "rt-import", EmitDefaultValue = false)] + public string RtImport { get; set; } + + /// + /// Gets or Sets Tag + /// + [DataMember(Name = "tag", EmitDefaultValue = false)] + public int Tag { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets VlanProtocol + /// + [DataMember(Name = "vlan-protocol", EmitDefaultValue = false)] + public string VlanProtocol { get; set; } + + /// + /// Gets or Sets VrfVxlan + /// + [DataMember(Name = "vrf-vxlan", EmitDefaultValue = false)] + public int VrfVxlan { get; set; } + + /// + /// Gets or Sets VxlanPort + /// + [DataMember(Name = "vxlan-port", EmitDefaultValue = false)] + public int VxlanPort { get; set; } + + /// + /// Gets or Sets Zone + /// + [DataMember(Name = "zone", IsRequired = true, EmitDefaultValue = true)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSDNZoneRequest {\n"); + sb.Append(" AdvertiseSubnets: ").Append(AdvertiseSubnets).Append("\n"); + sb.Append(" Bridge: ").Append(Bridge).Append("\n"); + sb.Append(" BridgeDisableMacLearning: ").Append(BridgeDisableMacLearning).Append("\n"); + sb.Append(" Controller: ").Append(Controller).Append("\n"); + sb.Append(" Dhcp: ").Append(Dhcp).Append("\n"); + sb.Append(" DisableArpNdSuppression: ").Append(DisableArpNdSuppression).Append("\n"); + sb.Append(" Dns: ").Append(Dns).Append("\n"); + sb.Append(" Dnszone: ").Append(Dnszone).Append("\n"); + sb.Append(" DpId: ").Append(DpId).Append("\n"); + sb.Append(" Exitnodes: ").Append(Exitnodes).Append("\n"); + sb.Append(" ExitnodesLocalRouting: ").Append(ExitnodesLocalRouting).Append("\n"); + sb.Append(" ExitnodesPrimary: ").Append(ExitnodesPrimary).Append("\n"); + sb.Append(" Fabric: ").Append(Fabric).Append("\n"); + sb.Append(" Ipam: ").Append(Ipam).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Mac: ").Append(Mac).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Peers: ").Append(Peers).Append("\n"); + sb.Append(" Reversedns: ").Append(Reversedns).Append("\n"); + sb.Append(" RtImport: ").Append(RtImport).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" VlanProtocol: ").Append(VlanProtocol).Append("\n"); + sb.Append(" VrfVxlan: ").Append(VrfVxlan).Append("\n"); + sb.Append(" VxlanPort: ").Append(VxlanPort).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnDnsRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnDnsRequest.cs new file mode 100644 index 0000000..6931571 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnDnsRequest.cs @@ -0,0 +1,180 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnDnsRequest + /// + [DataContract(Name = "CreateClusterSdnDnsRequest")] + public partial class CreateClusterSdnDnsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSdnDnsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// dns (required). + /// fingerprint. + /// key (required). + /// lockToken. + /// reversemaskv6. + /// reversev6mask. + /// ttl. + /// type (required). + /// url (required). + public CreateClusterSdnDnsRequest(string dns = default(string), string fingerprint = default(string), string key = default(string), string lockToken = default(string), int reversemaskv6 = default(int), int reversev6mask = default(int), int ttl = default(int), string type = default(string), string url = default(string)) + { + // to ensure "dns" is required (not null) + if (dns == null) + { + throw new ArgumentNullException("dns is a required property for CreateClusterSdnDnsRequest and cannot be null"); + } + this.Dns = dns; + // to ensure "key" is required (not null) + if (key == null) + { + throw new ArgumentNullException("key is a required property for CreateClusterSdnDnsRequest and cannot be null"); + } + this.Key = key; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterSdnDnsRequest and cannot be null"); + } + this.Type = type; + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for CreateClusterSdnDnsRequest and cannot be null"); + } + this.Url = url; + this.Fingerprint = fingerprint; + this.LockToken = lockToken; + this.Reversemaskv6 = reversemaskv6; + this.Reversev6mask = reversev6mask; + this.Ttl = ttl; + } + + /// + /// Gets or Sets Dns + /// + [DataMember(Name = "dns", IsRequired = true, EmitDefaultValue = true)] + public string Dns { get; set; } + + /// + /// Gets or Sets Fingerprint + /// + [DataMember(Name = "fingerprint", EmitDefaultValue = false)] + public string Fingerprint { get; set; } + + /// + /// Gets or Sets Key + /// + [DataMember(Name = "key", IsRequired = true, EmitDefaultValue = true)] + public string Key { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Reversemaskv6 + /// + [DataMember(Name = "reversemaskv6", EmitDefaultValue = false)] + public int Reversemaskv6 { get; set; } + + /// + /// Gets or Sets Reversev6mask + /// + [DataMember(Name = "reversev6mask", EmitDefaultValue = false)] + public int Reversev6mask { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", EmitDefaultValue = false)] + public int Ttl { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnDnsRequest {\n"); + sb.Append(" Dns: ").Append(Dns).Append("\n"); + sb.Append(" Fingerprint: ").Append(Fingerprint).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Reversemaskv6: ").Append(Reversemaskv6).Append("\n"); + sb.Append(" Reversev6mask: ").Append(Reversev6mask).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnFabricsFabricRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnFabricsFabricRequest.cs new file mode 100644 index 0000000..ab7f268 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnFabricsFabricRequest.cs @@ -0,0 +1,170 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnFabricsFabricRequest + /// + [DataContract(Name = "CreateClusterSdnFabricsFabricRequest")] + public partial class CreateClusterSdnFabricsFabricRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSdnFabricsFabricRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// area. + /// csnpInterval. + /// digest. + /// helloInterval. + /// id (required). + /// ip6Prefix. + /// ipPrefix. + /// lockToken. + /// protocol (required). + public CreateClusterSdnFabricsFabricRequest(string area = default(string), decimal csnpInterval = default(decimal), string digest = default(string), decimal helloInterval = default(decimal), string id = default(string), string ip6Prefix = default(string), string ipPrefix = default(string), string lockToken = default(string), string protocol = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for CreateClusterSdnFabricsFabricRequest and cannot be null"); + } + this.Id = id; + // to ensure "protocol" is required (not null) + if (protocol == null) + { + throw new ArgumentNullException("protocol is a required property for CreateClusterSdnFabricsFabricRequest and cannot be null"); + } + this.Protocol = protocol; + this.Area = area; + this.CsnpInterval = csnpInterval; + this.Digest = digest; + this.HelloInterval = helloInterval; + this.Ip6Prefix = ip6Prefix; + this.IpPrefix = ipPrefix; + this.LockToken = lockToken; + } + + /// + /// Gets or Sets Area + /// + [DataMember(Name = "area", EmitDefaultValue = false)] + public string Area { get; set; } + + /// + /// Gets or Sets CsnpInterval + /// + [DataMember(Name = "csnp_interval", EmitDefaultValue = false)] + public decimal CsnpInterval { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets HelloInterval + /// + [DataMember(Name = "hello_interval", EmitDefaultValue = false)] + public decimal HelloInterval { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets Ip6Prefix + /// + [DataMember(Name = "ip6_prefix", EmitDefaultValue = false)] + public string Ip6Prefix { get; set; } + + /// + /// Gets or Sets IpPrefix + /// + [DataMember(Name = "ip_prefix", EmitDefaultValue = false)] + public string IpPrefix { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Protocol + /// + [DataMember(Name = "protocol", IsRequired = true, EmitDefaultValue = true)] + public string Protocol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnFabricsFabricRequest {\n"); + sb.Append(" Area: ").Append(Area).Append("\n"); + sb.Append(" CsnpInterval: ").Append(CsnpInterval).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" HelloInterval: ").Append(HelloInterval).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Ip6Prefix: ").Append(Ip6Prefix).Append("\n"); + sb.Append(" IpPrefix: ").Append(IpPrefix).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Protocol: ").Append(Protocol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnFabricsNodeSingleRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnFabricsNodeSingleRequest.cs new file mode 100644 index 0000000..d4e74ac --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnFabricsNodeSingleRequest.cs @@ -0,0 +1,157 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnFabricsNodeSingleRequest + /// + [DataContract(Name = "CreateClusterSdnFabricsNodeSingleRequest")] + public partial class CreateClusterSdnFabricsNodeSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSdnFabricsNodeSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// digest. + /// interfaces (required). + /// ip. + /// ip6. + /// lockToken. + /// nodeId (required). + /// protocol (required). + public CreateClusterSdnFabricsNodeSingleRequest(string digest = default(string), List interfaces = default(List), string ip = default(string), string ip6 = default(string), string lockToken = default(string), string nodeId = default(string), string protocol = default(string)) + { + // to ensure "interfaces" is required (not null) + if (interfaces == null) + { + throw new ArgumentNullException("interfaces is a required property for CreateClusterSdnFabricsNodeSingleRequest and cannot be null"); + } + this.Interfaces = interfaces; + // to ensure "nodeId" is required (not null) + if (nodeId == null) + { + throw new ArgumentNullException("nodeId is a required property for CreateClusterSdnFabricsNodeSingleRequest and cannot be null"); + } + this.NodeId = nodeId; + // to ensure "protocol" is required (not null) + if (protocol == null) + { + throw new ArgumentNullException("protocol is a required property for CreateClusterSdnFabricsNodeSingleRequest and cannot be null"); + } + this.Protocol = protocol; + this.Digest = digest; + this.Ip = ip; + this.Ip6 = ip6; + this.LockToken = lockToken; + } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Interfaces + /// + [DataMember(Name = "interfaces", IsRequired = true, EmitDefaultValue = true)] + public List Interfaces { get; set; } + + /// + /// Gets or Sets Ip + /// + [DataMember(Name = "ip", EmitDefaultValue = false)] + public string Ip { get; set; } + + /// + /// Gets or Sets Ip6 + /// + [DataMember(Name = "ip6", EmitDefaultValue = false)] + public string Ip6 { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets NodeId + /// + [DataMember(Name = "node_id", IsRequired = true, EmitDefaultValue = true)] + public string NodeId { get; set; } + + /// + /// Gets or Sets Protocol + /// + [DataMember(Name = "protocol", IsRequired = true, EmitDefaultValue = true)] + public string Protocol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnFabricsNodeSingleRequest {\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Interfaces: ").Append(Interfaces).Append("\n"); + sb.Append(" Ip: ").Append(Ip).Append("\n"); + sb.Append(" Ip6: ").Append(Ip6).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" NodeId: ").Append(NodeId).Append("\n"); + sb.Append(" Protocol: ").Append(Protocol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnIpamsRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnIpamsRequest.cs new file mode 100644 index 0000000..6d66cf4 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnIpamsRequest.cs @@ -0,0 +1,152 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnIpamsRequest + /// + [DataContract(Name = "CreateClusterSdnIpamsRequest")] + public partial class CreateClusterSdnIpamsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSdnIpamsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// fingerprint. + /// ipam (required). + /// lockToken. + /// section. + /// token. + /// type (required). + /// url. + public CreateClusterSdnIpamsRequest(string fingerprint = default(string), string ipam = default(string), string lockToken = default(string), int section = default(int), string token = default(string), string type = default(string), string url = default(string)) + { + // to ensure "ipam" is required (not null) + if (ipam == null) + { + throw new ArgumentNullException("ipam is a required property for CreateClusterSdnIpamsRequest and cannot be null"); + } + this.Ipam = ipam; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterSdnIpamsRequest and cannot be null"); + } + this.Type = type; + this.Fingerprint = fingerprint; + this.LockToken = lockToken; + this.Section = section; + this.Token = token; + this.Url = url; + } + + /// + /// Gets or Sets Fingerprint + /// + [DataMember(Name = "fingerprint", EmitDefaultValue = false)] + public string Fingerprint { get; set; } + + /// + /// Gets or Sets Ipam + /// + [DataMember(Name = "ipam", IsRequired = true, EmitDefaultValue = true)] + public string Ipam { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Section + /// + [DataMember(Name = "section", EmitDefaultValue = false)] + public int Section { get; set; } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnIpamsRequest {\n"); + sb.Append(" Fingerprint: ").Append(Fingerprint).Append("\n"); + sb.Append(" Ipam: ").Append(Ipam).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Section: ").Append(Section).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnLockRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnLockRequest.cs new file mode 100644 index 0000000..16b34ac --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnLockRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnLockRequest + /// + [DataContract(Name = "CreateClusterSdnLockRequest")] + public partial class CreateClusterSdnLockRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// allowPending. + public CreateClusterSdnLockRequest(bool allowPending = default(bool)) + { + this.AllowPending = allowPending; + } + + /// + /// Gets or Sets AllowPending + /// + [DataMember(Name = "allow-pending", EmitDefaultValue = true)] + public bool AllowPending { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnLockRequest {\n"); + sb.Append(" AllowPending: ").Append(AllowPending).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnRollbackRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnRollbackRequest.cs new file mode 100644 index 0000000..a100c40 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnRollbackRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnRollbackRequest + /// + [DataContract(Name = "CreateClusterSdnRollbackRequest")] + public partial class CreateClusterSdnRollbackRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// lockToken. + /// releaseLock. + public CreateClusterSdnRollbackRequest(string lockToken = default(string), bool releaseLock = default(bool)) + { + this.LockToken = lockToken; + this.ReleaseLock = releaseLock; + } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets ReleaseLock + /// + [DataMember(Name = "release-lock", EmitDefaultValue = true)] + public bool ReleaseLock { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnRollbackRequest {\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" ReleaseLock: ").Append(ReleaseLock).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleFirewallRulesRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleFirewallRulesRequest.cs new file mode 100644 index 0000000..6e930e4 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleFirewallRulesRequest.cs @@ -0,0 +1,224 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnVnetsSingleFirewallRulesRequest + /// + [DataContract(Name = "CreateClusterSdnVnetsSingleFirewallRulesRequest")] + public partial class CreateClusterSdnVnetsSingleFirewallRulesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSdnVnetsSingleFirewallRulesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// action (required). + /// comment. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// pos. + /// proto. + /// source. + /// sport. + /// type (required). + public CreateClusterSdnVnetsSingleFirewallRulesRequest(string action = default(string), string comment = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int pos = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + // to ensure "action" is required (not null) + if (action == null) + { + throw new ArgumentNullException("action is a required property for CreateClusterSdnVnetsSingleFirewallRulesRequest and cannot be null"); + } + this.Action = action; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterSdnVnetsSingleFirewallRulesRequest and cannot be null"); + } + this.Type = type; + this.Comment = comment; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Pos = pos; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Pos + /// + [DataMember(Name = "pos", EmitDefaultValue = false)] + public int Pos { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnVnetsSingleFirewallRulesRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Pos: ").Append(Pos).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleIpsRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleIpsRequest.cs new file mode 100644 index 0000000..ca71991 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleIpsRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnVnetsSingleIpsRequest + /// + [DataContract(Name = "CreateClusterSdnVnetsSingleIpsRequest")] + public partial class CreateClusterSdnVnetsSingleIpsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSdnVnetsSingleIpsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// ip (required). + /// mac. + /// zone (required). + public CreateClusterSdnVnetsSingleIpsRequest(string ip = default(string), string mac = default(string), string zone = default(string)) + { + // to ensure "ip" is required (not null) + if (ip == null) + { + throw new ArgumentNullException("ip is a required property for CreateClusterSdnVnetsSingleIpsRequest and cannot be null"); + } + this.Ip = ip; + // to ensure "zone" is required (not null) + if (zone == null) + { + throw new ArgumentNullException("zone is a required property for CreateClusterSdnVnetsSingleIpsRequest and cannot be null"); + } + this.Zone = zone; + this.Mac = mac; + } + + /// + /// Gets or Sets Ip + /// + [DataMember(Name = "ip", IsRequired = true, EmitDefaultValue = true)] + public string Ip { get; set; } + + /// + /// Gets or Sets Mac + /// + [DataMember(Name = "mac", EmitDefaultValue = false)] + public string Mac { get; set; } + + /// + /// Gets or Sets Zone + /// + [DataMember(Name = "zone", IsRequired = true, EmitDefaultValue = true)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnVnetsSingleIpsRequest {\n"); + sb.Append(" Ip: ").Append(Ip).Append("\n"); + sb.Append(" Mac: ").Append(Mac).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleSubnetsRequest.cs b/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleSubnetsRequest.cs new file mode 100644 index 0000000..bdbd0df --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateClusterSdnVnetsSingleSubnetsRequest.cs @@ -0,0 +1,161 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateClusterSdnVnetsSingleSubnetsRequest + /// + [DataContract(Name = "CreateClusterSdnVnetsSingleSubnetsRequest")] + public partial class CreateClusterSdnVnetsSingleSubnetsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateClusterSdnVnetsSingleSubnetsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// dhcpDnsServer. + /// dhcpRange. + /// dnszoneprefix. + /// gateway. + /// lockToken. + /// snat. + /// subnet (required). + /// type (required). + public CreateClusterSdnVnetsSingleSubnetsRequest(string dhcpDnsServer = default(string), List dhcpRange = default(List), string dnszoneprefix = default(string), string gateway = default(string), string lockToken = default(string), bool snat = default(bool), string subnet = default(string), string type = default(string)) + { + // to ensure "subnet" is required (not null) + if (subnet == null) + { + throw new ArgumentNullException("subnet is a required property for CreateClusterSdnVnetsSingleSubnetsRequest and cannot be null"); + } + this.Subnet = subnet; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateClusterSdnVnetsSingleSubnetsRequest and cannot be null"); + } + this.Type = type; + this.DhcpDnsServer = dhcpDnsServer; + this.DhcpRange = dhcpRange; + this.Dnszoneprefix = dnszoneprefix; + this.Gateway = gateway; + this.LockToken = lockToken; + this.Snat = snat; + } + + /// + /// Gets or Sets DhcpDnsServer + /// + [DataMember(Name = "dhcp-dns-server", EmitDefaultValue = false)] + public string DhcpDnsServer { get; set; } + + /// + /// Gets or Sets DhcpRange + /// + [DataMember(Name = "dhcp-range", EmitDefaultValue = false)] + public List DhcpRange { get; set; } + + /// + /// Gets or Sets Dnszoneprefix + /// + [DataMember(Name = "dnszoneprefix", EmitDefaultValue = false)] + public string Dnszoneprefix { get; set; } + + /// + /// Gets or Sets Gateway + /// + [DataMember(Name = "gateway", EmitDefaultValue = false)] + public string Gateway { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Snat + /// + [DataMember(Name = "snat", EmitDefaultValue = true)] + public bool Snat { get; set; } + + /// + /// Gets or Sets Subnet + /// + [DataMember(Name = "subnet", IsRequired = true, EmitDefaultValue = true)] + public string Subnet { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateClusterSdnVnetsSingleSubnetsRequest {\n"); + sb.Append(" DhcpDnsServer: ").Append(DhcpDnsServer).Append("\n"); + sb.Append(" DhcpRange: ").Append(DhcpRange).Append("\n"); + sb.Append(" Dnszoneprefix: ").Append(Dnszoneprefix).Append("\n"); + sb.Append(" Gateway: ").Append(Gateway).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Snat: ").Append(Snat).Append("\n"); + sb.Append(" Subnet: ").Append(Subnet).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodeFirewallRuleRequest.cs b/src/ProxmoxSharp/Model/CreateNodeFirewallRuleRequest.cs new file mode 100644 index 0000000..bd81961 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodeFirewallRuleRequest.cs @@ -0,0 +1,224 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodeFirewallRuleRequest + /// + [DataContract(Name = "CreateNodeFirewallRuleRequest")] + public partial class CreateNodeFirewallRuleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodeFirewallRuleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// action (required). + /// comment. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// pos. + /// proto. + /// source. + /// sport. + /// type (required). + public CreateNodeFirewallRuleRequest(string action = default(string), string comment = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int pos = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + // to ensure "action" is required (not null) + if (action == null) + { + throw new ArgumentNullException("action is a required property for CreateNodeFirewallRuleRequest and cannot be null"); + } + this.Action = action; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateNodeFirewallRuleRequest and cannot be null"); + } + this.Type = type; + this.Comment = comment; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Pos = pos; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Pos + /// + [DataMember(Name = "pos", EmitDefaultValue = false)] + public int Pos { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodeFirewallRuleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Pos: ").Append(Pos).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleAplinfoRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleAplinfoRequest.cs new file mode 100644 index 0000000..12d83d7 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleAplinfoRequest.cs @@ -0,0 +1,107 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleAplinfoRequest + /// + [DataContract(Name = "CreateNodesSingleAplinfoRequest")] + public partial class CreateNodesSingleAplinfoRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleAplinfoRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// storage (required). + /// template (required). + public CreateNodesSingleAplinfoRequest(string storage = default(string), string template = default(string)) + { + // to ensure "storage" is required (not null) + if (storage == null) + { + throw new ArgumentNullException("storage is a required property for CreateNodesSingleAplinfoRequest and cannot be null"); + } + this.Storage = storage; + // to ensure "template" is required (not null) + if (template == null) + { + throw new ArgumentNullException("template is a required property for CreateNodesSingleAplinfoRequest and cannot be null"); + } + this.Template = template; + } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", IsRequired = true, EmitDefaultValue = true)] + public string Storage { get; set; } + + /// + /// Gets or Sets Template + /// + [DataMember(Name = "template", IsRequired = true, EmitDefaultValue = true)] + public string Template { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleAplinfoRequest {\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleAptRepositoriesRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleAptRepositoriesRequest.cs new file mode 100644 index 0000000..fd8d86b --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleAptRepositoriesRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleAptRepositoriesRequest + /// + [DataContract(Name = "CreateNodesSingleAptRepositoriesRequest")] + public partial class CreateNodesSingleAptRepositoriesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleAptRepositoriesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// digest. + /// enabled. + /// index (required). + /// path (required). + public CreateNodesSingleAptRepositoriesRequest(string digest = default(string), bool enabled = default(bool), int index = default(int), string path = default(string)) + { + this.Index = index; + // to ensure "path" is required (not null) + if (path == null) + { + throw new ArgumentNullException("path is a required property for CreateNodesSingleAptRepositoriesRequest and cannot be null"); + } + this.Path = path; + this.Digest = digest; + this.Enabled = enabled; + } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets Index + /// + [DataMember(Name = "index", IsRequired = true, EmitDefaultValue = true)] + public int Index { get; set; } + + /// + /// Gets or Sets Path + /// + [DataMember(Name = "path", IsRequired = true, EmitDefaultValue = true)] + public string Path { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleAptRepositoriesRequest {\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Index: ").Append(Index).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleAptUpdateRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleAptUpdateRequest.cs new file mode 100644 index 0000000..3476874 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleAptUpdateRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleAptUpdateRequest + /// + [DataContract(Name = "CreateNodesSingleAptUpdateRequest")] + public partial class CreateNodesSingleAptUpdateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// notify. + /// quiet. + public CreateNodesSingleAptUpdateRequest(bool notify = default(bool), bool quiet = default(bool)) + { + this.Notify = notify; + this.Quiet = quiet; + } + + /// + /// Gets or Sets Notify + /// + [DataMember(Name = "notify", EmitDefaultValue = true)] + public bool Notify { get; set; } + + /// + /// Gets or Sets Quiet + /// + [DataMember(Name = "quiet", EmitDefaultValue = true)] + public bool Quiet { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleAptUpdateRequest {\n"); + sb.Append(" Notify: ").Append(Notify).Append("\n"); + sb.Append(" Quiet: ").Append(Quiet).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephFsSingleRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephFsSingleRequest.cs new file mode 100644 index 0000000..095a4d6 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephFsSingleRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephFsSingleRequest + /// + [DataContract(Name = "CreateNodesSingleCephFsSingleRequest")] + public partial class CreateNodesSingleCephFsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// addStorage. + /// pgNum. + public CreateNodesSingleCephFsSingleRequest(bool addStorage = default(bool), int pgNum = default(int)) + { + this.AddStorage = addStorage; + this.PgNum = pgNum; + } + + /// + /// Gets or Sets AddStorage + /// + [DataMember(Name = "add-storage", EmitDefaultValue = true)] + public bool AddStorage { get; set; } + + /// + /// Gets or Sets PgNum + /// + [DataMember(Name = "pg_num", EmitDefaultValue = false)] + public int PgNum { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephFsSingleRequest {\n"); + sb.Append(" AddStorage: ").Append(AddStorage).Append("\n"); + sb.Append(" PgNum: ").Append(PgNum).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephInitRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephInitRequest.cs new file mode 100644 index 0000000..9a3da5a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephInitRequest.cs @@ -0,0 +1,128 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephInitRequest + /// + [DataContract(Name = "CreateNodesSingleCephInitRequest")] + public partial class CreateNodesSingleCephInitRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// clusterNetwork. + /// disableCephx. + /// minSize. + /// network. + /// pgBits. + /// size. + public CreateNodesSingleCephInitRequest(string clusterNetwork = default(string), bool disableCephx = default(bool), int minSize = default(int), string network = default(string), int pgBits = default(int), int size = default(int)) + { + this.ClusterNetwork = clusterNetwork; + this.DisableCephx = disableCephx; + this.MinSize = minSize; + this.Network = network; + this.PgBits = pgBits; + this.Size = size; + } + + /// + /// Gets or Sets ClusterNetwork + /// + [DataMember(Name = "cluster-network", EmitDefaultValue = false)] + public string ClusterNetwork { get; set; } + + /// + /// Gets or Sets DisableCephx + /// + [DataMember(Name = "disable_cephx", EmitDefaultValue = true)] + public bool DisableCephx { get; set; } + + /// + /// Gets or Sets MinSize + /// + [DataMember(Name = "min_size", EmitDefaultValue = false)] + public int MinSize { get; set; } + + /// + /// Gets or Sets Network + /// + [DataMember(Name = "network", EmitDefaultValue = false)] + public string Network { get; set; } + + /// + /// Gets or Sets PgBits + /// + [DataMember(Name = "pg_bits", EmitDefaultValue = false)] + public int PgBits { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephInitRequest {\n"); + sb.Append(" ClusterNetwork: ").Append(ClusterNetwork).Append("\n"); + sb.Append(" DisableCephx: ").Append(DisableCephx).Append("\n"); + sb.Append(" MinSize: ").Append(MinSize).Append("\n"); + sb.Append(" Network: ").Append(Network).Append("\n"); + sb.Append(" PgBits: ").Append(PgBits).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephMdsSingleRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephMdsSingleRequest.cs new file mode 100644 index 0000000..e27a954 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephMdsSingleRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephMdsSingleRequest + /// + [DataContract(Name = "CreateNodesSingleCephMdsSingleRequest")] + public partial class CreateNodesSingleCephMdsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// hotstandby. + public CreateNodesSingleCephMdsSingleRequest(bool hotstandby = default(bool)) + { + this.Hotstandby = hotstandby; + } + + /// + /// Gets or Sets Hotstandby + /// + [DataMember(Name = "hotstandby", EmitDefaultValue = true)] + public bool Hotstandby { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephMdsSingleRequest {\n"); + sb.Append(" Hotstandby: ").Append(Hotstandby).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephMonSingleRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephMonSingleRequest.cs new file mode 100644 index 0000000..8173cce --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephMonSingleRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephMonSingleRequest + /// + [DataContract(Name = "CreateNodesSingleCephMonSingleRequest")] + public partial class CreateNodesSingleCephMonSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// monAddress. + public CreateNodesSingleCephMonSingleRequest(string monAddress = default(string)) + { + this.MonAddress = monAddress; + } + + /// + /// Gets or Sets MonAddress + /// + [DataMember(Name = "mon-address", EmitDefaultValue = false)] + public string MonAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephMonSingleRequest {\n"); + sb.Append(" MonAddress: ").Append(MonAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephOsdRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephOsdRequest.cs new file mode 100644 index 0000000..07af174 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephOsdRequest.cs @@ -0,0 +1,156 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephOsdRequest + /// + [DataContract(Name = "CreateNodesSingleCephOsdRequest")] + public partial class CreateNodesSingleCephOsdRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleCephOsdRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// crushDeviceClass. + /// dbDev. + /// dbDevSize. + /// dev (required). + /// encrypted. + /// osdsPerDevice. + /// walDev. + /// walDevSize. + public CreateNodesSingleCephOsdRequest(string crushDeviceClass = default(string), string dbDev = default(string), decimal dbDevSize = default(decimal), string dev = default(string), bool encrypted = default(bool), int osdsPerDevice = default(int), string walDev = default(string), decimal walDevSize = default(decimal)) + { + // to ensure "dev" is required (not null) + if (dev == null) + { + throw new ArgumentNullException("dev is a required property for CreateNodesSingleCephOsdRequest and cannot be null"); + } + this.Dev = dev; + this.CrushDeviceClass = crushDeviceClass; + this.DbDev = dbDev; + this.DbDevSize = dbDevSize; + this.Encrypted = encrypted; + this.OsdsPerDevice = osdsPerDevice; + this.WalDev = walDev; + this.WalDevSize = walDevSize; + } + + /// + /// Gets or Sets CrushDeviceClass + /// + [DataMember(Name = "crush-device-class", EmitDefaultValue = false)] + public string CrushDeviceClass { get; set; } + + /// + /// Gets or Sets DbDev + /// + [DataMember(Name = "db_dev", EmitDefaultValue = false)] + public string DbDev { get; set; } + + /// + /// Gets or Sets DbDevSize + /// + [DataMember(Name = "db_dev_size", EmitDefaultValue = false)] + public decimal DbDevSize { get; set; } + + /// + /// Gets or Sets Dev + /// + [DataMember(Name = "dev", IsRequired = true, EmitDefaultValue = true)] + public string Dev { get; set; } + + /// + /// Gets or Sets Encrypted + /// + [DataMember(Name = "encrypted", EmitDefaultValue = true)] + public bool Encrypted { get; set; } + + /// + /// Gets or Sets OsdsPerDevice + /// + [DataMember(Name = "osds-per-device", EmitDefaultValue = false)] + public int OsdsPerDevice { get; set; } + + /// + /// Gets or Sets WalDev + /// + [DataMember(Name = "wal_dev", EmitDefaultValue = false)] + public string WalDev { get; set; } + + /// + /// Gets or Sets WalDevSize + /// + [DataMember(Name = "wal_dev_size", EmitDefaultValue = false)] + public decimal WalDevSize { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephOsdRequest {\n"); + sb.Append(" CrushDeviceClass: ").Append(CrushDeviceClass).Append("\n"); + sb.Append(" DbDev: ").Append(DbDev).Append("\n"); + sb.Append(" DbDevSize: ").Append(DbDevSize).Append("\n"); + sb.Append(" Dev: ").Append(Dev).Append("\n"); + sb.Append(" Encrypted: ").Append(Encrypted).Append("\n"); + sb.Append(" OsdsPerDevice: ").Append(OsdsPerDevice).Append("\n"); + sb.Append(" WalDev: ").Append(WalDev).Append("\n"); + sb.Append(" WalDevSize: ").Append(WalDevSize).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephOsdSingleScrubRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephOsdSingleScrubRequest.cs new file mode 100644 index 0000000..58a83f9 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephOsdSingleScrubRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephOsdSingleScrubRequest + /// + [DataContract(Name = "CreateNodesSingleCephOsdSingleScrubRequest")] + public partial class CreateNodesSingleCephOsdSingleScrubRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// deep. + public CreateNodesSingleCephOsdSingleScrubRequest(bool deep = default(bool)) + { + this.Deep = deep; + } + + /// + /// Gets or Sets Deep + /// + [DataMember(Name = "deep", EmitDefaultValue = true)] + public bool Deep { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephOsdSingleScrubRequest {\n"); + sb.Append(" Deep: ").Append(Deep).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephPoolRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephPoolRequest.cs new file mode 100644 index 0000000..603286b --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephPoolRequest.cs @@ -0,0 +1,192 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephPoolRequest + /// + [DataContract(Name = "CreateNodesSingleCephPoolRequest")] + public partial class CreateNodesSingleCephPoolRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleCephPoolRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// addStorages. + /// application. + /// crushRule. + /// erasureCoding. + /// minSize. + /// name (required). + /// pgAutoscaleMode. + /// pgNum. + /// pgNumMin. + /// size. + /// targetSize. + /// targetSizeRatio. + public CreateNodesSingleCephPoolRequest(bool addStorages = default(bool), string application = default(string), string crushRule = default(string), string erasureCoding = default(string), int minSize = default(int), string name = default(string), string pgAutoscaleMode = default(string), int pgNum = default(int), int pgNumMin = default(int), int size = default(int), string targetSize = default(string), decimal targetSizeRatio = default(decimal)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateNodesSingleCephPoolRequest and cannot be null"); + } + this.Name = name; + this.AddStorages = addStorages; + this.Application = application; + this.CrushRule = crushRule; + this.ErasureCoding = erasureCoding; + this.MinSize = minSize; + this.PgAutoscaleMode = pgAutoscaleMode; + this.PgNum = pgNum; + this.PgNumMin = pgNumMin; + this.Size = size; + this.TargetSize = targetSize; + this.TargetSizeRatio = targetSizeRatio; + } + + /// + /// Gets or Sets AddStorages + /// + [DataMember(Name = "add_storages", EmitDefaultValue = true)] + public bool AddStorages { get; set; } + + /// + /// Gets or Sets Application + /// + [DataMember(Name = "application", EmitDefaultValue = false)] + public string Application { get; set; } + + /// + /// Gets or Sets CrushRule + /// + [DataMember(Name = "crush_rule", EmitDefaultValue = false)] + public string CrushRule { get; set; } + + /// + /// Gets or Sets ErasureCoding + /// + [DataMember(Name = "erasure-coding", EmitDefaultValue = false)] + public string ErasureCoding { get; set; } + + /// + /// Gets or Sets MinSize + /// + [DataMember(Name = "min_size", EmitDefaultValue = false)] + public int MinSize { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets PgAutoscaleMode + /// + [DataMember(Name = "pg_autoscale_mode", EmitDefaultValue = false)] + public string PgAutoscaleMode { get; set; } + + /// + /// Gets or Sets PgNum + /// + [DataMember(Name = "pg_num", EmitDefaultValue = false)] + public int PgNum { get; set; } + + /// + /// Gets or Sets PgNumMin + /// + [DataMember(Name = "pg_num_min", EmitDefaultValue = false)] + public int PgNumMin { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets TargetSize + /// + [DataMember(Name = "target_size", EmitDefaultValue = false)] + public string TargetSize { get; set; } + + /// + /// Gets or Sets TargetSizeRatio + /// + [DataMember(Name = "target_size_ratio", EmitDefaultValue = false)] + public decimal TargetSizeRatio { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephPoolRequest {\n"); + sb.Append(" AddStorages: ").Append(AddStorages).Append("\n"); + sb.Append(" Application: ").Append(Application).Append("\n"); + sb.Append(" CrushRule: ").Append(CrushRule).Append("\n"); + sb.Append(" ErasureCoding: ").Append(ErasureCoding).Append("\n"); + sb.Append(" MinSize: ").Append(MinSize).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PgAutoscaleMode: ").Append(PgAutoscaleMode).Append("\n"); + sb.Append(" PgNum: ").Append(PgNum).Append("\n"); + sb.Append(" PgNumMin: ").Append(PgNumMin).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" TargetSize: ").Append(TargetSize).Append("\n"); + sb.Append(" TargetSizeRatio: ").Append(TargetSizeRatio).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephRestartRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephRestartRequest.cs new file mode 100644 index 0000000..70c6890 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephRestartRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephRestartRequest + /// + [DataContract(Name = "CreateNodesSingleCephRestartRequest")] + public partial class CreateNodesSingleCephRestartRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// service. + public CreateNodesSingleCephRestartRequest(string service = default(string)) + { + this.Service = service; + } + + /// + /// Gets or Sets Service + /// + [DataMember(Name = "service", EmitDefaultValue = false)] + public string Service { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephRestartRequest {\n"); + sb.Append(" Service: ").Append(Service).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephStartRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephStartRequest.cs new file mode 100644 index 0000000..8efdcce --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephStartRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephStartRequest + /// + [DataContract(Name = "CreateNodesSingleCephStartRequest")] + public partial class CreateNodesSingleCephStartRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// service. + public CreateNodesSingleCephStartRequest(string service = default(string)) + { + this.Service = service; + } + + /// + /// Gets or Sets Service + /// + [DataMember(Name = "service", EmitDefaultValue = false)] + public string Service { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephStartRequest {\n"); + sb.Append(" Service: ").Append(Service).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCephStopRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCephStopRequest.cs new file mode 100644 index 0000000..131db08 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCephStopRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCephStopRequest + /// + [DataContract(Name = "CreateNodesSingleCephStopRequest")] + public partial class CreateNodesSingleCephStopRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// service. + public CreateNodesSingleCephStopRequest(string service = default(string)) + { + this.Service = service; + } + + /// + /// Gets or Sets Service + /// + [DataMember(Name = "service", EmitDefaultValue = false)] + public string Service { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCephStopRequest {\n"); + sb.Append(" Service: ").Append(Service).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesAcmeCertificateRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesAcmeCertificateRequest.cs new file mode 100644 index 0000000..51ec3be --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesAcmeCertificateRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCertificatesAcmeCertificateRequest + /// + [DataContract(Name = "CreateNodesSingleCertificatesAcmeCertificateRequest")] + public partial class CreateNodesSingleCertificatesAcmeCertificateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// force. + public CreateNodesSingleCertificatesAcmeCertificateRequest(bool force = default(bool)) + { + this.Force = force; + } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCertificatesAcmeCertificateRequest {\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesCustom200Response.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesCustom200Response.cs new file mode 100644 index 0000000..3c2d38c --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesCustom200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCertificatesCustom200Response + /// + [DataContract(Name = "createNodesSingleCertificatesCustom_200_response")] + public partial class CreateNodesSingleCertificatesCustom200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateNodesSingleCertificatesCustom200Response(List errors = default(List), GetNodesSingleCertificatesInfo200ResponseDataInner data = default(GetNodesSingleCertificatesInfo200ResponseDataInner)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleCertificatesInfo200ResponseDataInner Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCertificatesCustom200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesCustomRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesCustomRequest.cs new file mode 100644 index 0000000..cb53a13 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleCertificatesCustomRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleCertificatesCustomRequest + /// + [DataContract(Name = "CreateNodesSingleCertificatesCustomRequest")] + public partial class CreateNodesSingleCertificatesCustomRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleCertificatesCustomRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// certificates (required). + /// force. + /// key. + /// restart. + public CreateNodesSingleCertificatesCustomRequest(string certificates = default(string), bool force = default(bool), string key = default(string), bool restart = default(bool)) + { + // to ensure "certificates" is required (not null) + if (certificates == null) + { + throw new ArgumentNullException("certificates is a required property for CreateNodesSingleCertificatesCustomRequest and cannot be null"); + } + this.Certificates = certificates; + this.Force = force; + this.Key = key; + this.Restart = restart; + } + + /// + /// Gets or Sets Certificates + /// + [DataMember(Name = "certificates", IsRequired = true, EmitDefaultValue = true)] + public string Certificates { get; set; } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets Key + /// + [DataMember(Name = "key", EmitDefaultValue = false)] + public string Key { get; set; } + + /// + /// Gets or Sets Restart + /// + [DataMember(Name = "restart", EmitDefaultValue = true)] + public bool Restart { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleCertificatesCustomRequest {\n"); + sb.Append(" Certificates: ").Append(Certificates).Append("\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Restart: ").Append(Restart).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleDisksDirectoryRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleDisksDirectoryRequest.cs new file mode 100644 index 0000000..3fdf502 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleDisksDirectoryRequest.cs @@ -0,0 +1,125 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleDisksDirectoryRequest + /// + [DataContract(Name = "CreateNodesSingleDisksDirectoryRequest")] + public partial class CreateNodesSingleDisksDirectoryRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleDisksDirectoryRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// addStorage. + /// device (required). + /// filesystem. + /// name (required). + public CreateNodesSingleDisksDirectoryRequest(bool addStorage = default(bool), string device = default(string), string filesystem = default(string), string name = default(string)) + { + // to ensure "device" is required (not null) + if (device == null) + { + throw new ArgumentNullException("device is a required property for CreateNodesSingleDisksDirectoryRequest and cannot be null"); + } + this.Device = device; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateNodesSingleDisksDirectoryRequest and cannot be null"); + } + this.Name = name; + this.AddStorage = addStorage; + this.Filesystem = filesystem; + } + + /// + /// Gets or Sets AddStorage + /// + [DataMember(Name = "add_storage", EmitDefaultValue = true)] + public bool AddStorage { get; set; } + + /// + /// Gets or Sets Device + /// + [DataMember(Name = "device", IsRequired = true, EmitDefaultValue = true)] + public string Device { get; set; } + + /// + /// Gets or Sets Filesystem + /// + [DataMember(Name = "filesystem", EmitDefaultValue = false)] + public string Filesystem { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleDisksDirectoryRequest {\n"); + sb.Append(" AddStorage: ").Append(AddStorage).Append("\n"); + sb.Append(" Device: ").Append(Device).Append("\n"); + sb.Append(" Filesystem: ").Append(Filesystem).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleDisksInitgptRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleDisksInitgptRequest.cs new file mode 100644 index 0000000..3cd4079 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleDisksInitgptRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleDisksInitgptRequest + /// + [DataContract(Name = "CreateNodesSingleDisksInitgptRequest")] + public partial class CreateNodesSingleDisksInitgptRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleDisksInitgptRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// disk (required). + /// uuid. + public CreateNodesSingleDisksInitgptRequest(string disk = default(string), string uuid = default(string)) + { + // to ensure "disk" is required (not null) + if (disk == null) + { + throw new ArgumentNullException("disk is a required property for CreateNodesSingleDisksInitgptRequest and cannot be null"); + } + this.Disk = disk; + this.Uuid = uuid; + } + + /// + /// Gets or Sets Disk + /// + [DataMember(Name = "disk", IsRequired = true, EmitDefaultValue = true)] + public string Disk { get; set; } + + /// + /// Gets or Sets Uuid + /// + [DataMember(Name = "uuid", EmitDefaultValue = false)] + public string Uuid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleDisksInitgptRequest {\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append(" Uuid: ").Append(Uuid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleDisksLvmRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleDisksLvmRequest.cs new file mode 100644 index 0000000..f03e8fc --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleDisksLvmRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleDisksLvmRequest + /// + [DataContract(Name = "CreateNodesSingleDisksLvmRequest")] + public partial class CreateNodesSingleDisksLvmRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleDisksLvmRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// addStorage. + /// device (required). + /// name (required). + public CreateNodesSingleDisksLvmRequest(bool addStorage = default(bool), string device = default(string), string name = default(string)) + { + // to ensure "device" is required (not null) + if (device == null) + { + throw new ArgumentNullException("device is a required property for CreateNodesSingleDisksLvmRequest and cannot be null"); + } + this.Device = device; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateNodesSingleDisksLvmRequest and cannot be null"); + } + this.Name = name; + this.AddStorage = addStorage; + } + + /// + /// Gets or Sets AddStorage + /// + [DataMember(Name = "add_storage", EmitDefaultValue = true)] + public bool AddStorage { get; set; } + + /// + /// Gets or Sets Device + /// + [DataMember(Name = "device", IsRequired = true, EmitDefaultValue = true)] + public string Device { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleDisksLvmRequest {\n"); + sb.Append(" AddStorage: ").Append(AddStorage).Append("\n"); + sb.Append(" Device: ").Append(Device).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleDisksLvmthinRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleDisksLvmthinRequest.cs new file mode 100644 index 0000000..963c8e2 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleDisksLvmthinRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleDisksLvmthinRequest + /// + [DataContract(Name = "CreateNodesSingleDisksLvmthinRequest")] + public partial class CreateNodesSingleDisksLvmthinRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleDisksLvmthinRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// addStorage. + /// device (required). + /// name (required). + public CreateNodesSingleDisksLvmthinRequest(bool addStorage = default(bool), string device = default(string), string name = default(string)) + { + // to ensure "device" is required (not null) + if (device == null) + { + throw new ArgumentNullException("device is a required property for CreateNodesSingleDisksLvmthinRequest and cannot be null"); + } + this.Device = device; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateNodesSingleDisksLvmthinRequest and cannot be null"); + } + this.Name = name; + this.AddStorage = addStorage; + } + + /// + /// Gets or Sets AddStorage + /// + [DataMember(Name = "add_storage", EmitDefaultValue = true)] + public bool AddStorage { get; set; } + + /// + /// Gets or Sets Device + /// + [DataMember(Name = "device", IsRequired = true, EmitDefaultValue = true)] + public string Device { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleDisksLvmthinRequest {\n"); + sb.Append(" AddStorage: ").Append(AddStorage).Append("\n"); + sb.Append(" Device: ").Append(Device).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleDisksZfsRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleDisksZfsRequest.cs new file mode 100644 index 0000000..804a71b --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleDisksZfsRequest.cs @@ -0,0 +1,157 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleDisksZfsRequest + /// + [DataContract(Name = "CreateNodesSingleDisksZfsRequest")] + public partial class CreateNodesSingleDisksZfsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleDisksZfsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// addStorage. + /// ashift. + /// compression. + /// devices (required). + /// draidConfig. + /// name (required). + /// raidlevel (required). + public CreateNodesSingleDisksZfsRequest(bool addStorage = default(bool), int ashift = default(int), string compression = default(string), string devices = default(string), string draidConfig = default(string), string name = default(string), string raidlevel = default(string)) + { + // to ensure "devices" is required (not null) + if (devices == null) + { + throw new ArgumentNullException("devices is a required property for CreateNodesSingleDisksZfsRequest and cannot be null"); + } + this.Devices = devices; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateNodesSingleDisksZfsRequest and cannot be null"); + } + this.Name = name; + // to ensure "raidlevel" is required (not null) + if (raidlevel == null) + { + throw new ArgumentNullException("raidlevel is a required property for CreateNodesSingleDisksZfsRequest and cannot be null"); + } + this.Raidlevel = raidlevel; + this.AddStorage = addStorage; + this.Ashift = ashift; + this.Compression = compression; + this.DraidConfig = draidConfig; + } + + /// + /// Gets or Sets AddStorage + /// + [DataMember(Name = "add_storage", EmitDefaultValue = true)] + public bool AddStorage { get; set; } + + /// + /// Gets or Sets Ashift + /// + [DataMember(Name = "ashift", EmitDefaultValue = false)] + public int Ashift { get; set; } + + /// + /// Gets or Sets Compression + /// + [DataMember(Name = "compression", EmitDefaultValue = false)] + public string Compression { get; set; } + + /// + /// Gets or Sets Devices + /// + [DataMember(Name = "devices", IsRequired = true, EmitDefaultValue = true)] + public string Devices { get; set; } + + /// + /// Gets or Sets DraidConfig + /// + [DataMember(Name = "draid-config", EmitDefaultValue = false)] + public string DraidConfig { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Raidlevel + /// + [DataMember(Name = "raidlevel", IsRequired = true, EmitDefaultValue = true)] + public string Raidlevel { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleDisksZfsRequest {\n"); + sb.Append(" AddStorage: ").Append(AddStorage).Append("\n"); + sb.Append(" Ashift: ").Append(Ashift).Append("\n"); + sb.Append(" Compression: ").Append(Compression).Append("\n"); + sb.Append(" Devices: ").Append(Devices).Append("\n"); + sb.Append(" DraidConfig: ").Append(DraidConfig).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Raidlevel: ").Append(Raidlevel).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleExecuteRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleExecuteRequest.cs new file mode 100644 index 0000000..5fbb0ee --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleExecuteRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleExecuteRequest + /// + [DataContract(Name = "CreateNodesSingleExecuteRequest")] + public partial class CreateNodesSingleExecuteRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleExecuteRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// commands (required). + public CreateNodesSingleExecuteRequest(string commands = default(string)) + { + // to ensure "commands" is required (not null) + if (commands == null) + { + throw new ArgumentNullException("commands is a required property for CreateNodesSingleExecuteRequest and cannot be null"); + } + this.Commands = commands; + } + + /// + /// Gets or Sets Commands + /// + [DataMember(Name = "commands", IsRequired = true, EmitDefaultValue = true)] + public string Commands { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleExecuteRequest {\n"); + sb.Append(" Commands: ").Append(Commands).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleHostsRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleHostsRequest.cs new file mode 100644 index 0000000..b5529c0 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleHostsRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleHostsRequest + /// + [DataContract(Name = "CreateNodesSingleHostsRequest")] + public partial class CreateNodesSingleHostsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleHostsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// digest. + public CreateNodesSingleHostsRequest(string data = default(string), string digest = default(string)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new ArgumentNullException("data is a required property for CreateNodesSingleHostsRequest and cannot be null"); + } + this.Data = data; + this.Digest = digest; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = true)] + public string Data { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleHostsRequest {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcRequest.cs new file mode 100644 index 0000000..10da749 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcRequest.cs @@ -0,0 +1,1533 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcRequest + /// + [DataContract(Name = "CreateNodesSingleLxcRequest")] + public partial class CreateNodesSingleLxcRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// arch. + /// bwlimit. + /// cmode. + /// console. + /// cores. + /// cpulimit. + /// cpuunits. + /// debug. + /// description. + /// dev0. + /// dev1. + /// dev2. + /// dev3. + /// dev4. + /// dev5. + /// dev6. + /// dev7. + /// dev8. + /// dev9. + /// dev10. + /// dev11. + /// dev12. + /// dev13. + /// dev14. + /// dev15. + /// dev16. + /// dev17. + /// dev18. + /// dev19. + /// dev20. + /// dev21. + /// dev22. + /// dev23. + /// dev24. + /// dev25. + /// dev26. + /// dev27. + /// dev28. + /// dev29. + /// entrypoint. + /// env. + /// features. + /// force. + /// haManaged. + /// hookscript. + /// hostname. + /// ignoreUnpackErrors. + /// varLock. + /// memory. + /// mp0. + /// mp1. + /// mp2. + /// mp3. + /// mp4. + /// mp5. + /// mp6. + /// mp7. + /// mp8. + /// mp9. + /// mp10. + /// mp11. + /// mp12. + /// mp13. + /// mp14. + /// mp15. + /// mp16. + /// mp17. + /// mp18. + /// mp19. + /// mp20. + /// mp21. + /// mp22. + /// mp23. + /// mp24. + /// mp25. + /// mp26. + /// mp27. + /// mp28. + /// mp29. + /// nameserver. + /// net0. + /// net1. + /// net2. + /// net3. + /// net4. + /// net5. + /// net6. + /// net7. + /// net8. + /// net9. + /// net10. + /// net11. + /// net12. + /// net13. + /// net14. + /// net15. + /// net16. + /// net17. + /// net18. + /// net19. + /// net20. + /// net21. + /// net22. + /// net23. + /// net24. + /// net25. + /// net26. + /// net27. + /// net28. + /// net29. + /// onboot. + /// ostemplate (required). + /// ostype. + /// password. + /// pool. + /// protection. + /// restore. + /// rootfs. + /// searchdomain. + /// sshPublicKeys. + /// start. + /// startup. + /// storage. + /// swap. + /// tags. + /// template. + /// timezone. + /// tty. + /// unique. + /// unprivileged. + /// unused0. + /// unused1. + /// unused2. + /// unused3. + /// unused4. + /// unused5. + /// unused6. + /// unused7. + /// unused8. + /// unused9. + /// unused10. + /// unused11. + /// unused12. + /// unused13. + /// unused14. + /// unused15. + /// unused16. + /// unused17. + /// unused18. + /// unused19. + /// unused20. + /// unused21. + /// unused22. + /// unused23. + /// unused24. + /// unused25. + /// unused26. + /// unused27. + /// unused28. + /// unused29. + /// vmid (required). + public CreateNodesSingleLxcRequest(string arch = default(string), decimal bwlimit = default(decimal), string cmode = default(string), bool console = default(bool), int cores = default(int), decimal cpulimit = default(decimal), int cpuunits = default(int), bool debug = default(bool), string description = default(string), string dev0 = default(string), string dev1 = default(string), string dev2 = default(string), string dev3 = default(string), string dev4 = default(string), string dev5 = default(string), string dev6 = default(string), string dev7 = default(string), string dev8 = default(string), string dev9 = default(string), string dev10 = default(string), string dev11 = default(string), string dev12 = default(string), string dev13 = default(string), string dev14 = default(string), string dev15 = default(string), string dev16 = default(string), string dev17 = default(string), string dev18 = default(string), string dev19 = default(string), string dev20 = default(string), string dev21 = default(string), string dev22 = default(string), string dev23 = default(string), string dev24 = default(string), string dev25 = default(string), string dev26 = default(string), string dev27 = default(string), string dev28 = default(string), string dev29 = default(string), string entrypoint = default(string), string env = default(string), string features = default(string), bool force = default(bool), bool haManaged = default(bool), string hookscript = default(string), string hostname = default(string), bool ignoreUnpackErrors = default(bool), string varLock = default(string), int memory = default(int), string mp0 = default(string), string mp1 = default(string), string mp2 = default(string), string mp3 = default(string), string mp4 = default(string), string mp5 = default(string), string mp6 = default(string), string mp7 = default(string), string mp8 = default(string), string mp9 = default(string), string mp10 = default(string), string mp11 = default(string), string mp12 = default(string), string mp13 = default(string), string mp14 = default(string), string mp15 = default(string), string mp16 = default(string), string mp17 = default(string), string mp18 = default(string), string mp19 = default(string), string mp20 = default(string), string mp21 = default(string), string mp22 = default(string), string mp23 = default(string), string mp24 = default(string), string mp25 = default(string), string mp26 = default(string), string mp27 = default(string), string mp28 = default(string), string mp29 = default(string), string nameserver = default(string), string net0 = default(string), string net1 = default(string), string net2 = default(string), string net3 = default(string), string net4 = default(string), string net5 = default(string), string net6 = default(string), string net7 = default(string), string net8 = default(string), string net9 = default(string), string net10 = default(string), string net11 = default(string), string net12 = default(string), string net13 = default(string), string net14 = default(string), string net15 = default(string), string net16 = default(string), string net17 = default(string), string net18 = default(string), string net19 = default(string), string net20 = default(string), string net21 = default(string), string net22 = default(string), string net23 = default(string), string net24 = default(string), string net25 = default(string), string net26 = default(string), string net27 = default(string), string net28 = default(string), string net29 = default(string), bool onboot = default(bool), string ostemplate = default(string), string ostype = default(string), string password = default(string), string pool = default(string), bool protection = default(bool), bool restore = default(bool), string rootfs = default(string), string searchdomain = default(string), string sshPublicKeys = default(string), bool start = default(bool), string startup = default(string), string storage = default(string), int swap = default(int), string tags = default(string), bool template = default(bool), string timezone = default(string), int tty = default(int), bool unique = default(bool), bool unprivileged = default(bool), string unused0 = default(string), string unused1 = default(string), string unused2 = default(string), string unused3 = default(string), string unused4 = default(string), string unused5 = default(string), string unused6 = default(string), string unused7 = default(string), string unused8 = default(string), string unused9 = default(string), string unused10 = default(string), string unused11 = default(string), string unused12 = default(string), string unused13 = default(string), string unused14 = default(string), string unused15 = default(string), string unused16 = default(string), string unused17 = default(string), string unused18 = default(string), string unused19 = default(string), string unused20 = default(string), string unused21 = default(string), string unused22 = default(string), string unused23 = default(string), string unused24 = default(string), string unused25 = default(string), string unused26 = default(string), string unused27 = default(string), string unused28 = default(string), string unused29 = default(string), int vmid = default(int)) + { + // to ensure "ostemplate" is required (not null) + if (ostemplate == null) + { + throw new ArgumentNullException("ostemplate is a required property for CreateNodesSingleLxcRequest and cannot be null"); + } + this.Ostemplate = ostemplate; + this.Vmid = vmid; + this.Arch = arch; + this.Bwlimit = bwlimit; + this.Cmode = cmode; + this.Console = console; + this.Cores = cores; + this.Cpulimit = cpulimit; + this.Cpuunits = cpuunits; + this.Debug = debug; + this.Description = description; + this.Dev0 = dev0; + this.Dev1 = dev1; + this.Dev2 = dev2; + this.Dev3 = dev3; + this.Dev4 = dev4; + this.Dev5 = dev5; + this.Dev6 = dev6; + this.Dev7 = dev7; + this.Dev8 = dev8; + this.Dev9 = dev9; + this.Dev10 = dev10; + this.Dev11 = dev11; + this.Dev12 = dev12; + this.Dev13 = dev13; + this.Dev14 = dev14; + this.Dev15 = dev15; + this.Dev16 = dev16; + this.Dev17 = dev17; + this.Dev18 = dev18; + this.Dev19 = dev19; + this.Dev20 = dev20; + this.Dev21 = dev21; + this.Dev22 = dev22; + this.Dev23 = dev23; + this.Dev24 = dev24; + this.Dev25 = dev25; + this.Dev26 = dev26; + this.Dev27 = dev27; + this.Dev28 = dev28; + this.Dev29 = dev29; + this.Entrypoint = entrypoint; + this.Env = env; + this.Features = features; + this.Force = force; + this.HaManaged = haManaged; + this.Hookscript = hookscript; + this.Hostname = hostname; + this.IgnoreUnpackErrors = ignoreUnpackErrors; + this.Lock = varLock; + this.Memory = memory; + this.Mp0 = mp0; + this.Mp1 = mp1; + this.Mp2 = mp2; + this.Mp3 = mp3; + this.Mp4 = mp4; + this.Mp5 = mp5; + this.Mp6 = mp6; + this.Mp7 = mp7; + this.Mp8 = mp8; + this.Mp9 = mp9; + this.Mp10 = mp10; + this.Mp11 = mp11; + this.Mp12 = mp12; + this.Mp13 = mp13; + this.Mp14 = mp14; + this.Mp15 = mp15; + this.Mp16 = mp16; + this.Mp17 = mp17; + this.Mp18 = mp18; + this.Mp19 = mp19; + this.Mp20 = mp20; + this.Mp21 = mp21; + this.Mp22 = mp22; + this.Mp23 = mp23; + this.Mp24 = mp24; + this.Mp25 = mp25; + this.Mp26 = mp26; + this.Mp27 = mp27; + this.Mp28 = mp28; + this.Mp29 = mp29; + this.Nameserver = nameserver; + this.Net0 = net0; + this.Net1 = net1; + this.Net2 = net2; + this.Net3 = net3; + this.Net4 = net4; + this.Net5 = net5; + this.Net6 = net6; + this.Net7 = net7; + this.Net8 = net8; + this.Net9 = net9; + this.Net10 = net10; + this.Net11 = net11; + this.Net12 = net12; + this.Net13 = net13; + this.Net14 = net14; + this.Net15 = net15; + this.Net16 = net16; + this.Net17 = net17; + this.Net18 = net18; + this.Net19 = net19; + this.Net20 = net20; + this.Net21 = net21; + this.Net22 = net22; + this.Net23 = net23; + this.Net24 = net24; + this.Net25 = net25; + this.Net26 = net26; + this.Net27 = net27; + this.Net28 = net28; + this.Net29 = net29; + this.Onboot = onboot; + this.Ostype = ostype; + this.Password = password; + this.Pool = pool; + this.Protection = protection; + this.Restore = restore; + this.Rootfs = rootfs; + this.Searchdomain = searchdomain; + this.SshPublicKeys = sshPublicKeys; + this.Start = start; + this.Startup = startup; + this.Storage = storage; + this.Swap = swap; + this.Tags = tags; + this.Template = template; + this.Timezone = timezone; + this.Tty = tty; + this.Unique = unique; + this.Unprivileged = unprivileged; + this.Unused0 = unused0; + this.Unused1 = unused1; + this.Unused2 = unused2; + this.Unused3 = unused3; + this.Unused4 = unused4; + this.Unused5 = unused5; + this.Unused6 = unused6; + this.Unused7 = unused7; + this.Unused8 = unused8; + this.Unused9 = unused9; + this.Unused10 = unused10; + this.Unused11 = unused11; + this.Unused12 = unused12; + this.Unused13 = unused13; + this.Unused14 = unused14; + this.Unused15 = unused15; + this.Unused16 = unused16; + this.Unused17 = unused17; + this.Unused18 = unused18; + this.Unused19 = unused19; + this.Unused20 = unused20; + this.Unused21 = unused21; + this.Unused22 = unused22; + this.Unused23 = unused23; + this.Unused24 = unused24; + this.Unused25 = unused25; + this.Unused26 = unused26; + this.Unused27 = unused27; + this.Unused28 = unused28; + this.Unused29 = unused29; + } + + /// + /// Gets or Sets Arch + /// + [DataMember(Name = "arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public decimal Bwlimit { get; set; } + + /// + /// Gets or Sets Cmode + /// + [DataMember(Name = "cmode", EmitDefaultValue = false)] + public string Cmode { get; set; } + + /// + /// Gets or Sets Console + /// + [DataMember(Name = "console", EmitDefaultValue = true)] + public bool Console { get; set; } + + /// + /// Gets or Sets Cores + /// + [DataMember(Name = "cores", EmitDefaultValue = false)] + public int Cores { get; set; } + + /// + /// Gets or Sets Cpulimit + /// + [DataMember(Name = "cpulimit", EmitDefaultValue = false)] + public decimal Cpulimit { get; set; } + + /// + /// Gets or Sets Cpuunits + /// + [DataMember(Name = "cpuunits", EmitDefaultValue = false)] + public int Cpuunits { get; set; } + + /// + /// Gets or Sets Debug + /// + [DataMember(Name = "debug", EmitDefaultValue = true)] + public bool Debug { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Dev0 + /// + [DataMember(Name = "dev0", EmitDefaultValue = false)] + public string Dev0 { get; set; } + + /// + /// Gets or Sets Dev1 + /// + [DataMember(Name = "dev1", EmitDefaultValue = false)] + public string Dev1 { get; set; } + + /// + /// Gets or Sets Dev2 + /// + [DataMember(Name = "dev2", EmitDefaultValue = false)] + public string Dev2 { get; set; } + + /// + /// Gets or Sets Dev3 + /// + [DataMember(Name = "dev3", EmitDefaultValue = false)] + public string Dev3 { get; set; } + + /// + /// Gets or Sets Dev4 + /// + [DataMember(Name = "dev4", EmitDefaultValue = false)] + public string Dev4 { get; set; } + + /// + /// Gets or Sets Dev5 + /// + [DataMember(Name = "dev5", EmitDefaultValue = false)] + public string Dev5 { get; set; } + + /// + /// Gets or Sets Dev6 + /// + [DataMember(Name = "dev6", EmitDefaultValue = false)] + public string Dev6 { get; set; } + + /// + /// Gets or Sets Dev7 + /// + [DataMember(Name = "dev7", EmitDefaultValue = false)] + public string Dev7 { get; set; } + + /// + /// Gets or Sets Dev8 + /// + [DataMember(Name = "dev8", EmitDefaultValue = false)] + public string Dev8 { get; set; } + + /// + /// Gets or Sets Dev9 + /// + [DataMember(Name = "dev9", EmitDefaultValue = false)] + public string Dev9 { get; set; } + + /// + /// Gets or Sets Dev10 + /// + [DataMember(Name = "dev10", EmitDefaultValue = false)] + public string Dev10 { get; set; } + + /// + /// Gets or Sets Dev11 + /// + [DataMember(Name = "dev11", EmitDefaultValue = false)] + public string Dev11 { get; set; } + + /// + /// Gets or Sets Dev12 + /// + [DataMember(Name = "dev12", EmitDefaultValue = false)] + public string Dev12 { get; set; } + + /// + /// Gets or Sets Dev13 + /// + [DataMember(Name = "dev13", EmitDefaultValue = false)] + public string Dev13 { get; set; } + + /// + /// Gets or Sets Dev14 + /// + [DataMember(Name = "dev14", EmitDefaultValue = false)] + public string Dev14 { get; set; } + + /// + /// Gets or Sets Dev15 + /// + [DataMember(Name = "dev15", EmitDefaultValue = false)] + public string Dev15 { get; set; } + + /// + /// Gets or Sets Dev16 + /// + [DataMember(Name = "dev16", EmitDefaultValue = false)] + public string Dev16 { get; set; } + + /// + /// Gets or Sets Dev17 + /// + [DataMember(Name = "dev17", EmitDefaultValue = false)] + public string Dev17 { get; set; } + + /// + /// Gets or Sets Dev18 + /// + [DataMember(Name = "dev18", EmitDefaultValue = false)] + public string Dev18 { get; set; } + + /// + /// Gets or Sets Dev19 + /// + [DataMember(Name = "dev19", EmitDefaultValue = false)] + public string Dev19 { get; set; } + + /// + /// Gets or Sets Dev20 + /// + [DataMember(Name = "dev20", EmitDefaultValue = false)] + public string Dev20 { get; set; } + + /// + /// Gets or Sets Dev21 + /// + [DataMember(Name = "dev21", EmitDefaultValue = false)] + public string Dev21 { get; set; } + + /// + /// Gets or Sets Dev22 + /// + [DataMember(Name = "dev22", EmitDefaultValue = false)] + public string Dev22 { get; set; } + + /// + /// Gets or Sets Dev23 + /// + [DataMember(Name = "dev23", EmitDefaultValue = false)] + public string Dev23 { get; set; } + + /// + /// Gets or Sets Dev24 + /// + [DataMember(Name = "dev24", EmitDefaultValue = false)] + public string Dev24 { get; set; } + + /// + /// Gets or Sets Dev25 + /// + [DataMember(Name = "dev25", EmitDefaultValue = false)] + public string Dev25 { get; set; } + + /// + /// Gets or Sets Dev26 + /// + [DataMember(Name = "dev26", EmitDefaultValue = false)] + public string Dev26 { get; set; } + + /// + /// Gets or Sets Dev27 + /// + [DataMember(Name = "dev27", EmitDefaultValue = false)] + public string Dev27 { get; set; } + + /// + /// Gets or Sets Dev28 + /// + [DataMember(Name = "dev28", EmitDefaultValue = false)] + public string Dev28 { get; set; } + + /// + /// Gets or Sets Dev29 + /// + [DataMember(Name = "dev29", EmitDefaultValue = false)] + public string Dev29 { get; set; } + + /// + /// Gets or Sets Entrypoint + /// + [DataMember(Name = "entrypoint", EmitDefaultValue = false)] + public string Entrypoint { get; set; } + + /// + /// Gets or Sets Env + /// + [DataMember(Name = "env", EmitDefaultValue = false)] + public string Env { get; set; } + + /// + /// Gets or Sets Features + /// + [DataMember(Name = "features", EmitDefaultValue = false)] + public string Features { get; set; } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets HaManaged + /// + [DataMember(Name = "ha-managed", EmitDefaultValue = true)] + public bool HaManaged { get; set; } + + /// + /// Gets or Sets Hookscript + /// + [DataMember(Name = "hookscript", EmitDefaultValue = false)] + public string Hookscript { get; set; } + + /// + /// Gets or Sets Hostname + /// + [DataMember(Name = "hostname", EmitDefaultValue = false)] + public string Hostname { get; set; } + + /// + /// Gets or Sets IgnoreUnpackErrors + /// + [DataMember(Name = "ignore-unpack-errors", EmitDefaultValue = true)] + public bool IgnoreUnpackErrors { get; set; } + + /// + /// Gets or Sets Lock + /// + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Gets or Sets Memory + /// + [DataMember(Name = "memory", EmitDefaultValue = false)] + public int Memory { get; set; } + + /// + /// Gets or Sets Mp0 + /// + [DataMember(Name = "mp0", EmitDefaultValue = false)] + public string Mp0 { get; set; } + + /// + /// Gets or Sets Mp1 + /// + [DataMember(Name = "mp1", EmitDefaultValue = false)] + public string Mp1 { get; set; } + + /// + /// Gets or Sets Mp2 + /// + [DataMember(Name = "mp2", EmitDefaultValue = false)] + public string Mp2 { get; set; } + + /// + /// Gets or Sets Mp3 + /// + [DataMember(Name = "mp3", EmitDefaultValue = false)] + public string Mp3 { get; set; } + + /// + /// Gets or Sets Mp4 + /// + [DataMember(Name = "mp4", EmitDefaultValue = false)] + public string Mp4 { get; set; } + + /// + /// Gets or Sets Mp5 + /// + [DataMember(Name = "mp5", EmitDefaultValue = false)] + public string Mp5 { get; set; } + + /// + /// Gets or Sets Mp6 + /// + [DataMember(Name = "mp6", EmitDefaultValue = false)] + public string Mp6 { get; set; } + + /// + /// Gets or Sets Mp7 + /// + [DataMember(Name = "mp7", EmitDefaultValue = false)] + public string Mp7 { get; set; } + + /// + /// Gets or Sets Mp8 + /// + [DataMember(Name = "mp8", EmitDefaultValue = false)] + public string Mp8 { get; set; } + + /// + /// Gets or Sets Mp9 + /// + [DataMember(Name = "mp9", EmitDefaultValue = false)] + public string Mp9 { get; set; } + + /// + /// Gets or Sets Mp10 + /// + [DataMember(Name = "mp10", EmitDefaultValue = false)] + public string Mp10 { get; set; } + + /// + /// Gets or Sets Mp11 + /// + [DataMember(Name = "mp11", EmitDefaultValue = false)] + public string Mp11 { get; set; } + + /// + /// Gets or Sets Mp12 + /// + [DataMember(Name = "mp12", EmitDefaultValue = false)] + public string Mp12 { get; set; } + + /// + /// Gets or Sets Mp13 + /// + [DataMember(Name = "mp13", EmitDefaultValue = false)] + public string Mp13 { get; set; } + + /// + /// Gets or Sets Mp14 + /// + [DataMember(Name = "mp14", EmitDefaultValue = false)] + public string Mp14 { get; set; } + + /// + /// Gets or Sets Mp15 + /// + [DataMember(Name = "mp15", EmitDefaultValue = false)] + public string Mp15 { get; set; } + + /// + /// Gets or Sets Mp16 + /// + [DataMember(Name = "mp16", EmitDefaultValue = false)] + public string Mp16 { get; set; } + + /// + /// Gets or Sets Mp17 + /// + [DataMember(Name = "mp17", EmitDefaultValue = false)] + public string Mp17 { get; set; } + + /// + /// Gets or Sets Mp18 + /// + [DataMember(Name = "mp18", EmitDefaultValue = false)] + public string Mp18 { get; set; } + + /// + /// Gets or Sets Mp19 + /// + [DataMember(Name = "mp19", EmitDefaultValue = false)] + public string Mp19 { get; set; } + + /// + /// Gets or Sets Mp20 + /// + [DataMember(Name = "mp20", EmitDefaultValue = false)] + public string Mp20 { get; set; } + + /// + /// Gets or Sets Mp21 + /// + [DataMember(Name = "mp21", EmitDefaultValue = false)] + public string Mp21 { get; set; } + + /// + /// Gets or Sets Mp22 + /// + [DataMember(Name = "mp22", EmitDefaultValue = false)] + public string Mp22 { get; set; } + + /// + /// Gets or Sets Mp23 + /// + [DataMember(Name = "mp23", EmitDefaultValue = false)] + public string Mp23 { get; set; } + + /// + /// Gets or Sets Mp24 + /// + [DataMember(Name = "mp24", EmitDefaultValue = false)] + public string Mp24 { get; set; } + + /// + /// Gets or Sets Mp25 + /// + [DataMember(Name = "mp25", EmitDefaultValue = false)] + public string Mp25 { get; set; } + + /// + /// Gets or Sets Mp26 + /// + [DataMember(Name = "mp26", EmitDefaultValue = false)] + public string Mp26 { get; set; } + + /// + /// Gets or Sets Mp27 + /// + [DataMember(Name = "mp27", EmitDefaultValue = false)] + public string Mp27 { get; set; } + + /// + /// Gets or Sets Mp28 + /// + [DataMember(Name = "mp28", EmitDefaultValue = false)] + public string Mp28 { get; set; } + + /// + /// Gets or Sets Mp29 + /// + [DataMember(Name = "mp29", EmitDefaultValue = false)] + public string Mp29 { get; set; } + + /// + /// Gets or Sets Nameserver + /// + [DataMember(Name = "nameserver", EmitDefaultValue = false)] + public string Nameserver { get; set; } + + /// + /// Gets or Sets Net0 + /// + [DataMember(Name = "net0", EmitDefaultValue = false)] + public string Net0 { get; set; } + + /// + /// Gets or Sets Net1 + /// + [DataMember(Name = "net1", EmitDefaultValue = false)] + public string Net1 { get; set; } + + /// + /// Gets or Sets Net2 + /// + [DataMember(Name = "net2", EmitDefaultValue = false)] + public string Net2 { get; set; } + + /// + /// Gets or Sets Net3 + /// + [DataMember(Name = "net3", EmitDefaultValue = false)] + public string Net3 { get; set; } + + /// + /// Gets or Sets Net4 + /// + [DataMember(Name = "net4", EmitDefaultValue = false)] + public string Net4 { get; set; } + + /// + /// Gets or Sets Net5 + /// + [DataMember(Name = "net5", EmitDefaultValue = false)] + public string Net5 { get; set; } + + /// + /// Gets or Sets Net6 + /// + [DataMember(Name = "net6", EmitDefaultValue = false)] + public string Net6 { get; set; } + + /// + /// Gets or Sets Net7 + /// + [DataMember(Name = "net7", EmitDefaultValue = false)] + public string Net7 { get; set; } + + /// + /// Gets or Sets Net8 + /// + [DataMember(Name = "net8", EmitDefaultValue = false)] + public string Net8 { get; set; } + + /// + /// Gets or Sets Net9 + /// + [DataMember(Name = "net9", EmitDefaultValue = false)] + public string Net9 { get; set; } + + /// + /// Gets or Sets Net10 + /// + [DataMember(Name = "net10", EmitDefaultValue = false)] + public string Net10 { get; set; } + + /// + /// Gets or Sets Net11 + /// + [DataMember(Name = "net11", EmitDefaultValue = false)] + public string Net11 { get; set; } + + /// + /// Gets or Sets Net12 + /// + [DataMember(Name = "net12", EmitDefaultValue = false)] + public string Net12 { get; set; } + + /// + /// Gets or Sets Net13 + /// + [DataMember(Name = "net13", EmitDefaultValue = false)] + public string Net13 { get; set; } + + /// + /// Gets or Sets Net14 + /// + [DataMember(Name = "net14", EmitDefaultValue = false)] + public string Net14 { get; set; } + + /// + /// Gets or Sets Net15 + /// + [DataMember(Name = "net15", EmitDefaultValue = false)] + public string Net15 { get; set; } + + /// + /// Gets or Sets Net16 + /// + [DataMember(Name = "net16", EmitDefaultValue = false)] + public string Net16 { get; set; } + + /// + /// Gets or Sets Net17 + /// + [DataMember(Name = "net17", EmitDefaultValue = false)] + public string Net17 { get; set; } + + /// + /// Gets or Sets Net18 + /// + [DataMember(Name = "net18", EmitDefaultValue = false)] + public string Net18 { get; set; } + + /// + /// Gets or Sets Net19 + /// + [DataMember(Name = "net19", EmitDefaultValue = false)] + public string Net19 { get; set; } + + /// + /// Gets or Sets Net20 + /// + [DataMember(Name = "net20", EmitDefaultValue = false)] + public string Net20 { get; set; } + + /// + /// Gets or Sets Net21 + /// + [DataMember(Name = "net21", EmitDefaultValue = false)] + public string Net21 { get; set; } + + /// + /// Gets or Sets Net22 + /// + [DataMember(Name = "net22", EmitDefaultValue = false)] + public string Net22 { get; set; } + + /// + /// Gets or Sets Net23 + /// + [DataMember(Name = "net23", EmitDefaultValue = false)] + public string Net23 { get; set; } + + /// + /// Gets or Sets Net24 + /// + [DataMember(Name = "net24", EmitDefaultValue = false)] + public string Net24 { get; set; } + + /// + /// Gets or Sets Net25 + /// + [DataMember(Name = "net25", EmitDefaultValue = false)] + public string Net25 { get; set; } + + /// + /// Gets or Sets Net26 + /// + [DataMember(Name = "net26", EmitDefaultValue = false)] + public string Net26 { get; set; } + + /// + /// Gets or Sets Net27 + /// + [DataMember(Name = "net27", EmitDefaultValue = false)] + public string Net27 { get; set; } + + /// + /// Gets or Sets Net28 + /// + [DataMember(Name = "net28", EmitDefaultValue = false)] + public string Net28 { get; set; } + + /// + /// Gets or Sets Net29 + /// + [DataMember(Name = "net29", EmitDefaultValue = false)] + public string Net29 { get; set; } + + /// + /// Gets or Sets Onboot + /// + [DataMember(Name = "onboot", EmitDefaultValue = true)] + public bool Onboot { get; set; } + + /// + /// Gets or Sets Ostemplate + /// + [DataMember(Name = "ostemplate", IsRequired = true, EmitDefaultValue = true)] + public string Ostemplate { get; set; } + + /// + /// Gets or Sets Ostype + /// + [DataMember(Name = "ostype", EmitDefaultValue = false)] + public string Ostype { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Protection + /// + [DataMember(Name = "protection", EmitDefaultValue = true)] + public bool Protection { get; set; } + + /// + /// Gets or Sets Restore + /// + [DataMember(Name = "restore", EmitDefaultValue = true)] + public bool Restore { get; set; } + + /// + /// Gets or Sets Rootfs + /// + [DataMember(Name = "rootfs", EmitDefaultValue = false)] + public string Rootfs { get; set; } + + /// + /// Gets or Sets Searchdomain + /// + [DataMember(Name = "searchdomain", EmitDefaultValue = false)] + public string Searchdomain { get; set; } + + /// + /// Gets or Sets SshPublicKeys + /// + [DataMember(Name = "ssh-public-keys", EmitDefaultValue = false)] + public string SshPublicKeys { get; set; } + + /// + /// Gets or Sets Start + /// + [DataMember(Name = "start", EmitDefaultValue = true)] + public bool Start { get; set; } + + /// + /// Gets or Sets Startup + /// + [DataMember(Name = "startup", EmitDefaultValue = false)] + public string Startup { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Swap + /// + [DataMember(Name = "swap", EmitDefaultValue = false)] + public int Swap { get; set; } + + /// + /// Gets or Sets Tags + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Gets or Sets Template + /// + [DataMember(Name = "template", EmitDefaultValue = true)] + public bool Template { get; set; } + + /// + /// Gets or Sets Timezone + /// + [DataMember(Name = "timezone", EmitDefaultValue = false)] + public string Timezone { get; set; } + + /// + /// Gets or Sets Tty + /// + [DataMember(Name = "tty", EmitDefaultValue = false)] + public int Tty { get; set; } + + /// + /// Gets or Sets Unique + /// + [DataMember(Name = "unique", EmitDefaultValue = true)] + public bool Unique { get; set; } + + /// + /// Gets or Sets Unprivileged + /// + [DataMember(Name = "unprivileged", EmitDefaultValue = true)] + public bool Unprivileged { get; set; } + + /// + /// Gets or Sets Unused0 + /// + [DataMember(Name = "unused0", EmitDefaultValue = false)] + public string Unused0 { get; set; } + + /// + /// Gets or Sets Unused1 + /// + [DataMember(Name = "unused1", EmitDefaultValue = false)] + public string Unused1 { get; set; } + + /// + /// Gets or Sets Unused2 + /// + [DataMember(Name = "unused2", EmitDefaultValue = false)] + public string Unused2 { get; set; } + + /// + /// Gets or Sets Unused3 + /// + [DataMember(Name = "unused3", EmitDefaultValue = false)] + public string Unused3 { get; set; } + + /// + /// Gets or Sets Unused4 + /// + [DataMember(Name = "unused4", EmitDefaultValue = false)] + public string Unused4 { get; set; } + + /// + /// Gets or Sets Unused5 + /// + [DataMember(Name = "unused5", EmitDefaultValue = false)] + public string Unused5 { get; set; } + + /// + /// Gets or Sets Unused6 + /// + [DataMember(Name = "unused6", EmitDefaultValue = false)] + public string Unused6 { get; set; } + + /// + /// Gets or Sets Unused7 + /// + [DataMember(Name = "unused7", EmitDefaultValue = false)] + public string Unused7 { get; set; } + + /// + /// Gets or Sets Unused8 + /// + [DataMember(Name = "unused8", EmitDefaultValue = false)] + public string Unused8 { get; set; } + + /// + /// Gets or Sets Unused9 + /// + [DataMember(Name = "unused9", EmitDefaultValue = false)] + public string Unused9 { get; set; } + + /// + /// Gets or Sets Unused10 + /// + [DataMember(Name = "unused10", EmitDefaultValue = false)] + public string Unused10 { get; set; } + + /// + /// Gets or Sets Unused11 + /// + [DataMember(Name = "unused11", EmitDefaultValue = false)] + public string Unused11 { get; set; } + + /// + /// Gets or Sets Unused12 + /// + [DataMember(Name = "unused12", EmitDefaultValue = false)] + public string Unused12 { get; set; } + + /// + /// Gets or Sets Unused13 + /// + [DataMember(Name = "unused13", EmitDefaultValue = false)] + public string Unused13 { get; set; } + + /// + /// Gets or Sets Unused14 + /// + [DataMember(Name = "unused14", EmitDefaultValue = false)] + public string Unused14 { get; set; } + + /// + /// Gets or Sets Unused15 + /// + [DataMember(Name = "unused15", EmitDefaultValue = false)] + public string Unused15 { get; set; } + + /// + /// Gets or Sets Unused16 + /// + [DataMember(Name = "unused16", EmitDefaultValue = false)] + public string Unused16 { get; set; } + + /// + /// Gets or Sets Unused17 + /// + [DataMember(Name = "unused17", EmitDefaultValue = false)] + public string Unused17 { get; set; } + + /// + /// Gets or Sets Unused18 + /// + [DataMember(Name = "unused18", EmitDefaultValue = false)] + public string Unused18 { get; set; } + + /// + /// Gets or Sets Unused19 + /// + [DataMember(Name = "unused19", EmitDefaultValue = false)] + public string Unused19 { get; set; } + + /// + /// Gets or Sets Unused20 + /// + [DataMember(Name = "unused20", EmitDefaultValue = false)] + public string Unused20 { get; set; } + + /// + /// Gets or Sets Unused21 + /// + [DataMember(Name = "unused21", EmitDefaultValue = false)] + public string Unused21 { get; set; } + + /// + /// Gets or Sets Unused22 + /// + [DataMember(Name = "unused22", EmitDefaultValue = false)] + public string Unused22 { get; set; } + + /// + /// Gets or Sets Unused23 + /// + [DataMember(Name = "unused23", EmitDefaultValue = false)] + public string Unused23 { get; set; } + + /// + /// Gets or Sets Unused24 + /// + [DataMember(Name = "unused24", EmitDefaultValue = false)] + public string Unused24 { get; set; } + + /// + /// Gets or Sets Unused25 + /// + [DataMember(Name = "unused25", EmitDefaultValue = false)] + public string Unused25 { get; set; } + + /// + /// Gets or Sets Unused26 + /// + [DataMember(Name = "unused26", EmitDefaultValue = false)] + public string Unused26 { get; set; } + + /// + /// Gets or Sets Unused27 + /// + [DataMember(Name = "unused27", EmitDefaultValue = false)] + public string Unused27 { get; set; } + + /// + /// Gets or Sets Unused28 + /// + [DataMember(Name = "unused28", EmitDefaultValue = false)] + public string Unused28 { get; set; } + + /// + /// Gets or Sets Unused29 + /// + [DataMember(Name = "unused29", EmitDefaultValue = false)] + public string Unused29 { get; set; } + + /// + /// Gets or Sets Vmid + /// + [DataMember(Name = "vmid", IsRequired = true, EmitDefaultValue = true)] + public int Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcRequest {\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Cmode: ").Append(Cmode).Append("\n"); + sb.Append(" Console: ").Append(Console).Append("\n"); + sb.Append(" Cores: ").Append(Cores).Append("\n"); + sb.Append(" Cpulimit: ").Append(Cpulimit).Append("\n"); + sb.Append(" Cpuunits: ").Append(Cpuunits).Append("\n"); + sb.Append(" Debug: ").Append(Debug).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Dev0: ").Append(Dev0).Append("\n"); + sb.Append(" Dev1: ").Append(Dev1).Append("\n"); + sb.Append(" Dev2: ").Append(Dev2).Append("\n"); + sb.Append(" Dev3: ").Append(Dev3).Append("\n"); + sb.Append(" Dev4: ").Append(Dev4).Append("\n"); + sb.Append(" Dev5: ").Append(Dev5).Append("\n"); + sb.Append(" Dev6: ").Append(Dev6).Append("\n"); + sb.Append(" Dev7: ").Append(Dev7).Append("\n"); + sb.Append(" Dev8: ").Append(Dev8).Append("\n"); + sb.Append(" Dev9: ").Append(Dev9).Append("\n"); + sb.Append(" Dev10: ").Append(Dev10).Append("\n"); + sb.Append(" Dev11: ").Append(Dev11).Append("\n"); + sb.Append(" Dev12: ").Append(Dev12).Append("\n"); + sb.Append(" Dev13: ").Append(Dev13).Append("\n"); + sb.Append(" Dev14: ").Append(Dev14).Append("\n"); + sb.Append(" Dev15: ").Append(Dev15).Append("\n"); + sb.Append(" Dev16: ").Append(Dev16).Append("\n"); + sb.Append(" Dev17: ").Append(Dev17).Append("\n"); + sb.Append(" Dev18: ").Append(Dev18).Append("\n"); + sb.Append(" Dev19: ").Append(Dev19).Append("\n"); + sb.Append(" Dev20: ").Append(Dev20).Append("\n"); + sb.Append(" Dev21: ").Append(Dev21).Append("\n"); + sb.Append(" Dev22: ").Append(Dev22).Append("\n"); + sb.Append(" Dev23: ").Append(Dev23).Append("\n"); + sb.Append(" Dev24: ").Append(Dev24).Append("\n"); + sb.Append(" Dev25: ").Append(Dev25).Append("\n"); + sb.Append(" Dev26: ").Append(Dev26).Append("\n"); + sb.Append(" Dev27: ").Append(Dev27).Append("\n"); + sb.Append(" Dev28: ").Append(Dev28).Append("\n"); + sb.Append(" Dev29: ").Append(Dev29).Append("\n"); + sb.Append(" Entrypoint: ").Append(Entrypoint).Append("\n"); + sb.Append(" Env: ").Append(Env).Append("\n"); + sb.Append(" Features: ").Append(Features).Append("\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" HaManaged: ").Append(HaManaged).Append("\n"); + sb.Append(" Hookscript: ").Append(Hookscript).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" IgnoreUnpackErrors: ").Append(IgnoreUnpackErrors).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Memory: ").Append(Memory).Append("\n"); + sb.Append(" Mp0: ").Append(Mp0).Append("\n"); + sb.Append(" Mp1: ").Append(Mp1).Append("\n"); + sb.Append(" Mp2: ").Append(Mp2).Append("\n"); + sb.Append(" Mp3: ").Append(Mp3).Append("\n"); + sb.Append(" Mp4: ").Append(Mp4).Append("\n"); + sb.Append(" Mp5: ").Append(Mp5).Append("\n"); + sb.Append(" Mp6: ").Append(Mp6).Append("\n"); + sb.Append(" Mp7: ").Append(Mp7).Append("\n"); + sb.Append(" Mp8: ").Append(Mp8).Append("\n"); + sb.Append(" Mp9: ").Append(Mp9).Append("\n"); + sb.Append(" Mp10: ").Append(Mp10).Append("\n"); + sb.Append(" Mp11: ").Append(Mp11).Append("\n"); + sb.Append(" Mp12: ").Append(Mp12).Append("\n"); + sb.Append(" Mp13: ").Append(Mp13).Append("\n"); + sb.Append(" Mp14: ").Append(Mp14).Append("\n"); + sb.Append(" Mp15: ").Append(Mp15).Append("\n"); + sb.Append(" Mp16: ").Append(Mp16).Append("\n"); + sb.Append(" Mp17: ").Append(Mp17).Append("\n"); + sb.Append(" Mp18: ").Append(Mp18).Append("\n"); + sb.Append(" Mp19: ").Append(Mp19).Append("\n"); + sb.Append(" Mp20: ").Append(Mp20).Append("\n"); + sb.Append(" Mp21: ").Append(Mp21).Append("\n"); + sb.Append(" Mp22: ").Append(Mp22).Append("\n"); + sb.Append(" Mp23: ").Append(Mp23).Append("\n"); + sb.Append(" Mp24: ").Append(Mp24).Append("\n"); + sb.Append(" Mp25: ").Append(Mp25).Append("\n"); + sb.Append(" Mp26: ").Append(Mp26).Append("\n"); + sb.Append(" Mp27: ").Append(Mp27).Append("\n"); + sb.Append(" Mp28: ").Append(Mp28).Append("\n"); + sb.Append(" Mp29: ").Append(Mp29).Append("\n"); + sb.Append(" Nameserver: ").Append(Nameserver).Append("\n"); + sb.Append(" Net0: ").Append(Net0).Append("\n"); + sb.Append(" Net1: ").Append(Net1).Append("\n"); + sb.Append(" Net2: ").Append(Net2).Append("\n"); + sb.Append(" Net3: ").Append(Net3).Append("\n"); + sb.Append(" Net4: ").Append(Net4).Append("\n"); + sb.Append(" Net5: ").Append(Net5).Append("\n"); + sb.Append(" Net6: ").Append(Net6).Append("\n"); + sb.Append(" Net7: ").Append(Net7).Append("\n"); + sb.Append(" Net8: ").Append(Net8).Append("\n"); + sb.Append(" Net9: ").Append(Net9).Append("\n"); + sb.Append(" Net10: ").Append(Net10).Append("\n"); + sb.Append(" Net11: ").Append(Net11).Append("\n"); + sb.Append(" Net12: ").Append(Net12).Append("\n"); + sb.Append(" Net13: ").Append(Net13).Append("\n"); + sb.Append(" Net14: ").Append(Net14).Append("\n"); + sb.Append(" Net15: ").Append(Net15).Append("\n"); + sb.Append(" Net16: ").Append(Net16).Append("\n"); + sb.Append(" Net17: ").Append(Net17).Append("\n"); + sb.Append(" Net18: ").Append(Net18).Append("\n"); + sb.Append(" Net19: ").Append(Net19).Append("\n"); + sb.Append(" Net20: ").Append(Net20).Append("\n"); + sb.Append(" Net21: ").Append(Net21).Append("\n"); + sb.Append(" Net22: ").Append(Net22).Append("\n"); + sb.Append(" Net23: ").Append(Net23).Append("\n"); + sb.Append(" Net24: ").Append(Net24).Append("\n"); + sb.Append(" Net25: ").Append(Net25).Append("\n"); + sb.Append(" Net26: ").Append(Net26).Append("\n"); + sb.Append(" Net27: ").Append(Net27).Append("\n"); + sb.Append(" Net28: ").Append(Net28).Append("\n"); + sb.Append(" Net29: ").Append(Net29).Append("\n"); + sb.Append(" Onboot: ").Append(Onboot).Append("\n"); + sb.Append(" Ostemplate: ").Append(Ostemplate).Append("\n"); + sb.Append(" Ostype: ").Append(Ostype).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Protection: ").Append(Protection).Append("\n"); + sb.Append(" Restore: ").Append(Restore).Append("\n"); + sb.Append(" Rootfs: ").Append(Rootfs).Append("\n"); + sb.Append(" Searchdomain: ").Append(Searchdomain).Append("\n"); + sb.Append(" SshPublicKeys: ").Append(SshPublicKeys).Append("\n"); + sb.Append(" Start: ").Append(Start).Append("\n"); + sb.Append(" Startup: ").Append(Startup).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Swap: ").Append(Swap).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Timezone: ").Append(Timezone).Append("\n"); + sb.Append(" Tty: ").Append(Tty).Append("\n"); + sb.Append(" Unique: ").Append(Unique).Append("\n"); + sb.Append(" Unprivileged: ").Append(Unprivileged).Append("\n"); + sb.Append(" Unused0: ").Append(Unused0).Append("\n"); + sb.Append(" Unused1: ").Append(Unused1).Append("\n"); + sb.Append(" Unused2: ").Append(Unused2).Append("\n"); + sb.Append(" Unused3: ").Append(Unused3).Append("\n"); + sb.Append(" Unused4: ").Append(Unused4).Append("\n"); + sb.Append(" Unused5: ").Append(Unused5).Append("\n"); + sb.Append(" Unused6: ").Append(Unused6).Append("\n"); + sb.Append(" Unused7: ").Append(Unused7).Append("\n"); + sb.Append(" Unused8: ").Append(Unused8).Append("\n"); + sb.Append(" Unused9: ").Append(Unused9).Append("\n"); + sb.Append(" Unused10: ").Append(Unused10).Append("\n"); + sb.Append(" Unused11: ").Append(Unused11).Append("\n"); + sb.Append(" Unused12: ").Append(Unused12).Append("\n"); + sb.Append(" Unused13: ").Append(Unused13).Append("\n"); + sb.Append(" Unused14: ").Append(Unused14).Append("\n"); + sb.Append(" Unused15: ").Append(Unused15).Append("\n"); + sb.Append(" Unused16: ").Append(Unused16).Append("\n"); + sb.Append(" Unused17: ").Append(Unused17).Append("\n"); + sb.Append(" Unused18: ").Append(Unused18).Append("\n"); + sb.Append(" Unused19: ").Append(Unused19).Append("\n"); + sb.Append(" Unused20: ").Append(Unused20).Append("\n"); + sb.Append(" Unused21: ").Append(Unused21).Append("\n"); + sb.Append(" Unused22: ").Append(Unused22).Append("\n"); + sb.Append(" Unused23: ").Append(Unused23).Append("\n"); + sb.Append(" Unused24: ").Append(Unused24).Append("\n"); + sb.Append(" Unused25: ").Append(Unused25).Append("\n"); + sb.Append(" Unused26: ").Append(Unused26).Append("\n"); + sb.Append(" Unused27: ").Append(Unused27).Append("\n"); + sb.Append(" Unused28: ").Append(Unused28).Append("\n"); + sb.Append(" Unused29: ").Append(Unused29).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleCloneRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleCloneRequest.cs new file mode 100644 index 0000000..d0eadde --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleCloneRequest.cs @@ -0,0 +1,160 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleCloneRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleCloneRequest")] + public partial class CreateNodesSingleLxcSingleCloneRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleCloneRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// description. + /// full. + /// hostname. + /// newid (required). + /// pool. + /// snapname. + /// storage. + /// target. + public CreateNodesSingleLxcSingleCloneRequest(decimal bwlimit = default(decimal), string description = default(string), bool full = default(bool), string hostname = default(string), int newid = default(int), string pool = default(string), string snapname = default(string), string storage = default(string), string target = default(string)) + { + this.Newid = newid; + this.Bwlimit = bwlimit; + this.Description = description; + this.Full = full; + this.Hostname = hostname; + this.Pool = pool; + this.Snapname = snapname; + this.Storage = storage; + this.Target = target; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public decimal Bwlimit { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Full + /// + [DataMember(Name = "full", EmitDefaultValue = true)] + public bool Full { get; set; } + + /// + /// Gets or Sets Hostname + /// + [DataMember(Name = "hostname", EmitDefaultValue = false)] + public string Hostname { get; set; } + + /// + /// Gets or Sets Newid + /// + [DataMember(Name = "newid", IsRequired = true, EmitDefaultValue = true)] + public int Newid { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Snapname + /// + [DataMember(Name = "snapname", EmitDefaultValue = false)] + public string Snapname { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", EmitDefaultValue = false)] + public string Target { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleCloneRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Full: ").Append(Full).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" Newid: ").Append(Newid).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Snapname: ").Append(Snapname).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallAliasesRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallAliasesRequest.cs new file mode 100644 index 0000000..b9818f2 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallAliasesRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleFirewallAliasesRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleFirewallAliasesRequest")] + public partial class CreateNodesSingleLxcSingleFirewallAliasesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleFirewallAliasesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// name (required). + public CreateNodesSingleLxcSingleFirewallAliasesRequest(string cidr = default(string), string comment = default(string), string name = default(string)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for CreateNodesSingleLxcSingleFirewallAliasesRequest and cannot be null"); + } + this.Cidr = cidr; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateNodesSingleLxcSingleFirewallAliasesRequest and cannot be null"); + } + this.Name = name; + this.Comment = comment; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleFirewallAliasesRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallIpsetRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallIpsetRequest.cs new file mode 100644 index 0000000..cde0d71 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallIpsetRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleFirewallIpsetRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleFirewallIpsetRequest")] + public partial class CreateNodesSingleLxcSingleFirewallIpsetRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleFirewallIpsetRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// digest. + /// name (required). + /// rename. + public CreateNodesSingleLxcSingleFirewallIpsetRequest(string comment = default(string), string digest = default(string), string name = default(string), string rename = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateNodesSingleLxcSingleFirewallIpsetRequest and cannot be null"); + } + this.Name = name; + this.Comment = comment; + this.Digest = digest; + this.Rename = rename; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Rename + /// + [DataMember(Name = "rename", EmitDefaultValue = false)] + public string Rename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleFirewallIpsetRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Rename: ").Append(Rename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallIpsetSingleRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallIpsetSingleRequest.cs new file mode 100644 index 0000000..1716be9 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallIpsetSingleRequest.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleFirewallIpsetSingleRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleFirewallIpsetSingleRequest")] + public partial class CreateNodesSingleLxcSingleFirewallIpsetSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleFirewallIpsetSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// nomatch. + public CreateNodesSingleLxcSingleFirewallIpsetSingleRequest(string cidr = default(string), string comment = default(string), bool nomatch = default(bool)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for CreateNodesSingleLxcSingleFirewallIpsetSingleRequest and cannot be null"); + } + this.Cidr = cidr; + this.Comment = comment; + this.Nomatch = nomatch; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Nomatch + /// + [DataMember(Name = "nomatch", EmitDefaultValue = true)] + public bool Nomatch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleFirewallIpsetSingleRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Nomatch: ").Append(Nomatch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallRulesRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallRulesRequest.cs new file mode 100644 index 0000000..19dd990 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleFirewallRulesRequest.cs @@ -0,0 +1,224 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleFirewallRulesRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleFirewallRulesRequest")] + public partial class CreateNodesSingleLxcSingleFirewallRulesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleFirewallRulesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// action (required). + /// comment. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// pos. + /// proto. + /// source. + /// sport. + /// type (required). + public CreateNodesSingleLxcSingleFirewallRulesRequest(string action = default(string), string comment = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int pos = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + // to ensure "action" is required (not null) + if (action == null) + { + throw new ArgumentNullException("action is a required property for CreateNodesSingleLxcSingleFirewallRulesRequest and cannot be null"); + } + this.Action = action; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateNodesSingleLxcSingleFirewallRulesRequest and cannot be null"); + } + this.Type = type; + this.Comment = comment; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Pos = pos; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Pos + /// + [DataMember(Name = "pos", EmitDefaultValue = false)] + public int Pos { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleFirewallRulesRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Pos: ").Append(Pos).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMigrateRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMigrateRequest.cs new file mode 100644 index 0000000..aa52a23 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMigrateRequest.cs @@ -0,0 +1,138 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleMigrateRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleMigrateRequest")] + public partial class CreateNodesSingleLxcSingleMigrateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleMigrateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// online. + /// restart. + /// target (required). + /// targetStorage. + /// timeout. + public CreateNodesSingleLxcSingleMigrateRequest(decimal bwlimit = default(decimal), bool online = default(bool), bool restart = default(bool), string target = default(string), string targetStorage = default(string), int timeout = default(int)) + { + // to ensure "target" is required (not null) + if (target == null) + { + throw new ArgumentNullException("target is a required property for CreateNodesSingleLxcSingleMigrateRequest and cannot be null"); + } + this.Target = target; + this.Bwlimit = bwlimit; + this.Online = online; + this.Restart = restart; + this.TargetStorage = targetStorage; + this.Timeout = timeout; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public decimal Bwlimit { get; set; } + + /// + /// Gets or Sets Online + /// + [DataMember(Name = "online", EmitDefaultValue = true)] + public bool Online { get; set; } + + /// + /// Gets or Sets Restart + /// + [DataMember(Name = "restart", EmitDefaultValue = true)] + public bool Restart { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)] + public string Target { get; set; } + + /// + /// Gets or Sets TargetStorage + /// + [DataMember(Name = "target-storage", EmitDefaultValue = false)] + public string TargetStorage { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleMigrateRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Online: ").Append(Online).Append("\n"); + sb.Append(" Restart: ").Append(Restart).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" TargetStorage: ").Append(TargetStorage).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMovevolumeRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMovevolumeRequest.cs new file mode 100644 index 0000000..8f27e19 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMovevolumeRequest.cs @@ -0,0 +1,156 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleMovevolumeRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleMovevolumeRequest")] + public partial class CreateNodesSingleLxcSingleMovevolumeRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleMovevolumeRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// delete. + /// digest. + /// storage. + /// targetDigest. + /// targetVmid. + /// targetVolume. + /// volume (required). + public CreateNodesSingleLxcSingleMovevolumeRequest(decimal bwlimit = default(decimal), bool delete = default(bool), string digest = default(string), string storage = default(string), string targetDigest = default(string), int targetVmid = default(int), string targetVolume = default(string), string volume = default(string)) + { + // to ensure "volume" is required (not null) + if (volume == null) + { + throw new ArgumentNullException("volume is a required property for CreateNodesSingleLxcSingleMovevolumeRequest and cannot be null"); + } + this.Volume = volume; + this.Bwlimit = bwlimit; + this.Delete = delete; + this.Digest = digest; + this.Storage = storage; + this.TargetDigest = targetDigest; + this.TargetVmid = targetVmid; + this.TargetVolume = targetVolume; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public decimal Bwlimit { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = true)] + public bool Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets TargetDigest + /// + [DataMember(Name = "target-digest", EmitDefaultValue = false)] + public string TargetDigest { get; set; } + + /// + /// Gets or Sets TargetVmid + /// + [DataMember(Name = "target-vmid", EmitDefaultValue = false)] + public int TargetVmid { get; set; } + + /// + /// Gets or Sets TargetVolume + /// + [DataMember(Name = "target-volume", EmitDefaultValue = false)] + public string TargetVolume { get; set; } + + /// + /// Gets or Sets Volume + /// + [DataMember(Name = "volume", IsRequired = true, EmitDefaultValue = true)] + public string Volume { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleMovevolumeRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" TargetDigest: ").Append(TargetDigest).Append("\n"); + sb.Append(" TargetVmid: ").Append(TargetVmid).Append("\n"); + sb.Append(" TargetVolume: ").Append(TargetVolume).Append("\n"); + sb.Append(" Volume: ").Append(Volume).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMtunnelRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMtunnelRequest.cs new file mode 100644 index 0000000..351ad5d --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleMtunnelRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleMtunnelRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleMtunnelRequest")] + public partial class CreateNodesSingleLxcSingleMtunnelRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// bridges. + /// storages. + public CreateNodesSingleLxcSingleMtunnelRequest(string bridges = default(string), string storages = default(string)) + { + this.Bridges = bridges; + this.Storages = storages; + } + + /// + /// Gets or Sets Bridges + /// + [DataMember(Name = "bridges", EmitDefaultValue = false)] + public string Bridges { get; set; } + + /// + /// Gets or Sets Storages + /// + [DataMember(Name = "storages", EmitDefaultValue = false)] + public string Storages { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleMtunnelRequest {\n"); + sb.Append(" Bridges: ").Append(Bridges).Append("\n"); + sb.Append(" Storages: ").Append(Storages).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleRemotemigrateRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleRemotemigrateRequest.cs new file mode 100644 index 0000000..9a4448a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleRemotemigrateRequest.cs @@ -0,0 +1,175 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleRemotemigrateRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleRemotemigrateRequest")] + public partial class CreateNodesSingleLxcSingleRemotemigrateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleRemotemigrateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// delete. + /// online. + /// restart. + /// targetBridge (required). + /// targetEndpoint (required). + /// targetStorage (required). + /// targetVmid. + /// timeout. + public CreateNodesSingleLxcSingleRemotemigrateRequest(decimal bwlimit = default(decimal), bool delete = default(bool), bool online = default(bool), bool restart = default(bool), string targetBridge = default(string), string targetEndpoint = default(string), string targetStorage = default(string), int targetVmid = default(int), int timeout = default(int)) + { + // to ensure "targetBridge" is required (not null) + if (targetBridge == null) + { + throw new ArgumentNullException("targetBridge is a required property for CreateNodesSingleLxcSingleRemotemigrateRequest and cannot be null"); + } + this.TargetBridge = targetBridge; + // to ensure "targetEndpoint" is required (not null) + if (targetEndpoint == null) + { + throw new ArgumentNullException("targetEndpoint is a required property for CreateNodesSingleLxcSingleRemotemigrateRequest and cannot be null"); + } + this.TargetEndpoint = targetEndpoint; + // to ensure "targetStorage" is required (not null) + if (targetStorage == null) + { + throw new ArgumentNullException("targetStorage is a required property for CreateNodesSingleLxcSingleRemotemigrateRequest and cannot be null"); + } + this.TargetStorage = targetStorage; + this.Bwlimit = bwlimit; + this.Delete = delete; + this.Online = online; + this.Restart = restart; + this.TargetVmid = targetVmid; + this.Timeout = timeout; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public decimal Bwlimit { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = true)] + public bool Delete { get; set; } + + /// + /// Gets or Sets Online + /// + [DataMember(Name = "online", EmitDefaultValue = true)] + public bool Online { get; set; } + + /// + /// Gets or Sets Restart + /// + [DataMember(Name = "restart", EmitDefaultValue = true)] + public bool Restart { get; set; } + + /// + /// Gets or Sets TargetBridge + /// + [DataMember(Name = "target-bridge", IsRequired = true, EmitDefaultValue = true)] + public string TargetBridge { get; set; } + + /// + /// Gets or Sets TargetEndpoint + /// + [DataMember(Name = "target-endpoint", IsRequired = true, EmitDefaultValue = true)] + public string TargetEndpoint { get; set; } + + /// + /// Gets or Sets TargetStorage + /// + [DataMember(Name = "target-storage", IsRequired = true, EmitDefaultValue = true)] + public string TargetStorage { get; set; } + + /// + /// Gets or Sets TargetVmid + /// + [DataMember(Name = "target-vmid", EmitDefaultValue = false)] + public int TargetVmid { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleRemotemigrateRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Online: ").Append(Online).Append("\n"); + sb.Append(" Restart: ").Append(Restart).Append("\n"); + sb.Append(" TargetBridge: ").Append(TargetBridge).Append("\n"); + sb.Append(" TargetEndpoint: ").Append(TargetEndpoint).Append("\n"); + sb.Append(" TargetStorage: ").Append(TargetStorage).Append("\n"); + sb.Append(" TargetVmid: ").Append(TargetVmid).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSnapshotRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSnapshotRequest.cs new file mode 100644 index 0000000..93ac2b4 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSnapshotRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleSnapshotRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleSnapshotRequest")] + public partial class CreateNodesSingleLxcSingleSnapshotRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleLxcSingleSnapshotRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// description. + /// snapname (required). + public CreateNodesSingleLxcSingleSnapshotRequest(string description = default(string), string snapname = default(string)) + { + // to ensure "snapname" is required (not null) + if (snapname == null) + { + throw new ArgumentNullException("snapname is a required property for CreateNodesSingleLxcSingleSnapshotRequest and cannot be null"); + } + this.Snapname = snapname; + this.Description = description; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Snapname + /// + [DataMember(Name = "snapname", IsRequired = true, EmitDefaultValue = true)] + public string Snapname { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleSnapshotRequest {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Snapname: ").Append(Snapname).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest.cs new file mode 100644 index 0000000..0ca208d --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest")] + public partial class CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// start. + public CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest(bool start = default(bool)) + { + this.Start = start; + } + + /// + /// Gets or Sets Start + /// + [DataMember(Name = "start", EmitDefaultValue = true)] + public bool Start { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest {\n"); + sb.Append(" Start: ").Append(Start).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSpiceproxyRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSpiceproxyRequest.cs new file mode 100644 index 0000000..d245eb4 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleSpiceproxyRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleSpiceproxyRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleSpiceproxyRequest")] + public partial class CreateNodesSingleLxcSingleSpiceproxyRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// proxy. + public CreateNodesSingleLxcSingleSpiceproxyRequest(string proxy = default(string)) + { + this.Proxy = proxy; + } + + /// + /// Gets or Sets Proxy + /// + [DataMember(Name = "proxy", EmitDefaultValue = false)] + public string Proxy { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleSpiceproxyRequest {\n"); + sb.Append(" Proxy: ").Append(Proxy).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusRebootRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusRebootRequest.cs new file mode 100644 index 0000000..98b7563 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusRebootRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleStatusRebootRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleStatusRebootRequest")] + public partial class CreateNodesSingleLxcSingleStatusRebootRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// timeout. + public CreateNodesSingleLxcSingleStatusRebootRequest(int timeout = default(int)) + { + this.Timeout = timeout; + } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleStatusRebootRequest {\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusShutdownRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusShutdownRequest.cs new file mode 100644 index 0000000..89a5c4e --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusShutdownRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleStatusShutdownRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleStatusShutdownRequest")] + public partial class CreateNodesSingleLxcSingleStatusShutdownRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// forceStop. + /// timeout. + public CreateNodesSingleLxcSingleStatusShutdownRequest(bool forceStop = default(bool), int timeout = default(int)) + { + this.ForceStop = forceStop; + this.Timeout = timeout; + } + + /// + /// Gets or Sets ForceStop + /// + [DataMember(Name = "forceStop", EmitDefaultValue = true)] + public bool ForceStop { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleStatusShutdownRequest {\n"); + sb.Append(" ForceStop: ").Append(ForceStop).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusStartRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusStartRequest.cs new file mode 100644 index 0000000..798b048 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusStartRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleStatusStartRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleStatusStartRequest")] + public partial class CreateNodesSingleLxcSingleStatusStartRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// debug. + /// skiplock. + public CreateNodesSingleLxcSingleStatusStartRequest(bool debug = default(bool), bool skiplock = default(bool)) + { + this.Debug = debug; + this.Skiplock = skiplock; + } + + /// + /// Gets or Sets Debug + /// + [DataMember(Name = "debug", EmitDefaultValue = true)] + public bool Debug { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleStatusStartRequest {\n"); + sb.Append(" Debug: ").Append(Debug).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusStopRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusStopRequest.cs new file mode 100644 index 0000000..e08cd2c --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleStatusStopRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleStatusStopRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleStatusStopRequest")] + public partial class CreateNodesSingleLxcSingleStatusStopRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// overruleShutdown. + /// skiplock. + public CreateNodesSingleLxcSingleStatusStopRequest(bool overruleShutdown = default(bool), bool skiplock = default(bool)) + { + this.OverruleShutdown = overruleShutdown; + this.Skiplock = skiplock; + } + + /// + /// Gets or Sets OverruleShutdown + /// + [DataMember(Name = "overrule-shutdown", EmitDefaultValue = true)] + public bool OverruleShutdown { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleStatusStopRequest {\n"); + sb.Append(" OverruleShutdown: ").Append(OverruleShutdown).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleVncproxyRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleVncproxyRequest.cs new file mode 100644 index 0000000..aef90cb --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleLxcSingleVncproxyRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleLxcSingleVncproxyRequest + /// + [DataContract(Name = "CreateNodesSingleLxcSingleVncproxyRequest")] + public partial class CreateNodesSingleLxcSingleVncproxyRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// height. + /// websocket. + /// width. + public CreateNodesSingleLxcSingleVncproxyRequest(int height = default(int), bool websocket = default(bool), int width = default(int)) + { + this.Height = height; + this.Websocket = websocket; + this.Width = width; + } + + /// + /// Gets or Sets Height + /// + [DataMember(Name = "height", EmitDefaultValue = false)] + public int Height { get; set; } + + /// + /// Gets or Sets Websocket + /// + [DataMember(Name = "websocket", EmitDefaultValue = true)] + public bool Websocket { get; set; } + + /// + /// Gets or Sets Width + /// + [DataMember(Name = "width", EmitDefaultValue = false)] + public int Width { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleLxcSingleVncproxyRequest {\n"); + sb.Append(" Height: ").Append(Height).Append("\n"); + sb.Append(" Websocket: ").Append(Websocket).Append("\n"); + sb.Append(" Width: ").Append(Width).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleMigrateallRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleMigrateallRequest.cs new file mode 100644 index 0000000..54e79d4 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleMigrateallRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleMigrateallRequest + /// + [DataContract(Name = "CreateNodesSingleMigrateallRequest")] + public partial class CreateNodesSingleMigrateallRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleMigrateallRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// maxworkers. + /// target (required). + /// vms. + /// withLocalDisks. + public CreateNodesSingleMigrateallRequest(int maxworkers = default(int), string target = default(string), string vms = default(string), bool withLocalDisks = default(bool)) + { + // to ensure "target" is required (not null) + if (target == null) + { + throw new ArgumentNullException("target is a required property for CreateNodesSingleMigrateallRequest and cannot be null"); + } + this.Target = target; + this.Maxworkers = maxworkers; + this.Vms = vms; + this.WithLocalDisks = withLocalDisks; + } + + /// + /// Gets or Sets Maxworkers + /// + [DataMember(Name = "maxworkers", EmitDefaultValue = false)] + public int Maxworkers { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)] + public string Target { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public string Vms { get; set; } + + /// + /// Gets or Sets WithLocalDisks + /// + [DataMember(Name = "with-local-disks", EmitDefaultValue = true)] + public bool WithLocalDisks { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleMigrateallRequest {\n"); + sb.Append(" Maxworkers: ").Append(Maxworkers).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append(" WithLocalDisks: ").Append(WithLocalDisks).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleNetworkRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleNetworkRequest.cs new file mode 100644 index 0000000..8e5d811 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleNetworkRequest.cs @@ -0,0 +1,341 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleNetworkRequest + /// + [DataContract(Name = "CreateNodesSingleNetworkRequest")] + public partial class CreateNodesSingleNetworkRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleNetworkRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// address. + /// address6. + /// autostart. + /// bondPrimary. + /// bondMode. + /// bondXmitHashPolicy. + /// bridgePorts. + /// bridgeVids. + /// bridgeVlanAware. + /// cidr. + /// cidr6. + /// comments. + /// comments6. + /// gateway. + /// gateway6. + /// iface (required). + /// mtu. + /// netmask. + /// netmask6. + /// ovsBonds. + /// ovsBridge. + /// ovsOptions. + /// ovsPorts. + /// ovsTag. + /// slaves. + /// type (required). + /// vlanId. + /// vlanRawDevice. + public CreateNodesSingleNetworkRequest(string address = default(string), string address6 = default(string), bool autostart = default(bool), string bondPrimary = default(string), string bondMode = default(string), string bondXmitHashPolicy = default(string), string bridgePorts = default(string), string bridgeVids = default(string), bool bridgeVlanAware = default(bool), string cidr = default(string), string cidr6 = default(string), string comments = default(string), string comments6 = default(string), string gateway = default(string), string gateway6 = default(string), string iface = default(string), int mtu = default(int), string netmask = default(string), int netmask6 = default(int), string ovsBonds = default(string), string ovsBridge = default(string), string ovsOptions = default(string), string ovsPorts = default(string), int ovsTag = default(int), string slaves = default(string), string type = default(string), int vlanId = default(int), string vlanRawDevice = default(string)) + { + // to ensure "iface" is required (not null) + if (iface == null) + { + throw new ArgumentNullException("iface is a required property for CreateNodesSingleNetworkRequest and cannot be null"); + } + this.Iface = iface; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateNodesSingleNetworkRequest and cannot be null"); + } + this.Type = type; + this.Address = address; + this.Address6 = address6; + this.Autostart = autostart; + this.BondPrimary = bondPrimary; + this.BondMode = bondMode; + this.BondXmitHashPolicy = bondXmitHashPolicy; + this.BridgePorts = bridgePorts; + this.BridgeVids = bridgeVids; + this.BridgeVlanAware = bridgeVlanAware; + this.Cidr = cidr; + this.Cidr6 = cidr6; + this.Comments = comments; + this.Comments6 = comments6; + this.Gateway = gateway; + this.Gateway6 = gateway6; + this.Mtu = mtu; + this.Netmask = netmask; + this.Netmask6 = netmask6; + this.OvsBonds = ovsBonds; + this.OvsBridge = ovsBridge; + this.OvsOptions = ovsOptions; + this.OvsPorts = ovsPorts; + this.OvsTag = ovsTag; + this.Slaves = slaves; + this.VlanId = vlanId; + this.VlanRawDevice = vlanRawDevice; + } + + /// + /// Gets or Sets Address + /// + [DataMember(Name = "address", EmitDefaultValue = false)] + public string Address { get; set; } + + /// + /// Gets or Sets Address6 + /// + [DataMember(Name = "address6", EmitDefaultValue = false)] + public string Address6 { get; set; } + + /// + /// Gets or Sets Autostart + /// + [DataMember(Name = "autostart", EmitDefaultValue = true)] + public bool Autostart { get; set; } + + /// + /// Gets or Sets BondPrimary + /// + [DataMember(Name = "bond-primary", EmitDefaultValue = false)] + public string BondPrimary { get; set; } + + /// + /// Gets or Sets BondMode + /// + [DataMember(Name = "bond_mode", EmitDefaultValue = false)] + public string BondMode { get; set; } + + /// + /// Gets or Sets BondXmitHashPolicy + /// + [DataMember(Name = "bond_xmit_hash_policy", EmitDefaultValue = false)] + public string BondXmitHashPolicy { get; set; } + + /// + /// Gets or Sets BridgePorts + /// + [DataMember(Name = "bridge_ports", EmitDefaultValue = false)] + public string BridgePorts { get; set; } + + /// + /// Gets or Sets BridgeVids + /// + [DataMember(Name = "bridge_vids", EmitDefaultValue = false)] + public string BridgeVids { get; set; } + + /// + /// Gets or Sets BridgeVlanAware + /// + [DataMember(Name = "bridge_vlan_aware", EmitDefaultValue = true)] + public bool BridgeVlanAware { get; set; } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", EmitDefaultValue = false)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Cidr6 + /// + [DataMember(Name = "cidr6", EmitDefaultValue = false)] + public string Cidr6 { get; set; } + + /// + /// Gets or Sets Comments + /// + [DataMember(Name = "comments", EmitDefaultValue = false)] + public string Comments { get; set; } + + /// + /// Gets or Sets Comments6 + /// + [DataMember(Name = "comments6", EmitDefaultValue = false)] + public string Comments6 { get; set; } + + /// + /// Gets or Sets Gateway + /// + [DataMember(Name = "gateway", EmitDefaultValue = false)] + public string Gateway { get; set; } + + /// + /// Gets or Sets Gateway6 + /// + [DataMember(Name = "gateway6", EmitDefaultValue = false)] + public string Gateway6 { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", IsRequired = true, EmitDefaultValue = true)] + public string Iface { get; set; } + + /// + /// Gets or Sets Mtu + /// + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public int Mtu { get; set; } + + /// + /// Gets or Sets Netmask + /// + [DataMember(Name = "netmask", EmitDefaultValue = false)] + public string Netmask { get; set; } + + /// + /// Gets or Sets Netmask6 + /// + [DataMember(Name = "netmask6", EmitDefaultValue = false)] + public int Netmask6 { get; set; } + + /// + /// Gets or Sets OvsBonds + /// + [DataMember(Name = "ovs_bonds", EmitDefaultValue = false)] + public string OvsBonds { get; set; } + + /// + /// Gets or Sets OvsBridge + /// + [DataMember(Name = "ovs_bridge", EmitDefaultValue = false)] + public string OvsBridge { get; set; } + + /// + /// Gets or Sets OvsOptions + /// + [DataMember(Name = "ovs_options", EmitDefaultValue = false)] + public string OvsOptions { get; set; } + + /// + /// Gets or Sets OvsPorts + /// + [DataMember(Name = "ovs_ports", EmitDefaultValue = false)] + public string OvsPorts { get; set; } + + /// + /// Gets or Sets OvsTag + /// + [DataMember(Name = "ovs_tag", EmitDefaultValue = false)] + public int OvsTag { get; set; } + + /// + /// Gets or Sets Slaves + /// + [DataMember(Name = "slaves", EmitDefaultValue = false)] + public string Slaves { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets VlanId + /// + [DataMember(Name = "vlan-id", EmitDefaultValue = false)] + public int VlanId { get; set; } + + /// + /// Gets or Sets VlanRawDevice + /// + [DataMember(Name = "vlan-raw-device", EmitDefaultValue = false)] + public string VlanRawDevice { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleNetworkRequest {\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Address6: ").Append(Address6).Append("\n"); + sb.Append(" Autostart: ").Append(Autostart).Append("\n"); + sb.Append(" BondPrimary: ").Append(BondPrimary).Append("\n"); + sb.Append(" BondMode: ").Append(BondMode).Append("\n"); + sb.Append(" BondXmitHashPolicy: ").Append(BondXmitHashPolicy).Append("\n"); + sb.Append(" BridgePorts: ").Append(BridgePorts).Append("\n"); + sb.Append(" BridgeVids: ").Append(BridgeVids).Append("\n"); + sb.Append(" BridgeVlanAware: ").Append(BridgeVlanAware).Append("\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Cidr6: ").Append(Cidr6).Append("\n"); + sb.Append(" Comments: ").Append(Comments).Append("\n"); + sb.Append(" Comments6: ").Append(Comments6).Append("\n"); + sb.Append(" Gateway: ").Append(Gateway).Append("\n"); + sb.Append(" Gateway6: ").Append(Gateway6).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Netmask: ").Append(Netmask).Append("\n"); + sb.Append(" Netmask6: ").Append(Netmask6).Append("\n"); + sb.Append(" OvsBonds: ").Append(OvsBonds).Append("\n"); + sb.Append(" OvsBridge: ").Append(OvsBridge).Append("\n"); + sb.Append(" OvsOptions: ").Append(OvsOptions).Append("\n"); + sb.Append(" OvsPorts: ").Append(OvsPorts).Append("\n"); + sb.Append(" OvsTag: ").Append(OvsTag).Append("\n"); + sb.Append(" Slaves: ").Append(Slaves).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" VlanId: ").Append(VlanId).Append("\n"); + sb.Append(" VlanRawDevice: ").Append(VlanRawDevice).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgent200Response.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgent200Response.cs new file mode 100644 index 0000000..be20604 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgent200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleAgent200Response + /// + [DataContract(Name = "createNodesSingleQemuSingleAgent_200_response")] + public partial class CreateNodesSingleQemuSingleAgent200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Returns an object with a single `result` property.. + public CreateNodesSingleQemuSingleAgent200Response(List errors = default(List), Object data = default(Object)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Returns an object with a single `result` property. + /// + /// Returns an object with a single `result` property. + [DataMember(Name = "data", EmitDefaultValue = false)] + public Object Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleAgent200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExec200Response.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExec200Response.cs new file mode 100644 index 0000000..086ff64 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExec200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleAgentExec200Response + /// + [DataContract(Name = "createNodesSingleQemuSingleAgentExec_200_response")] + public partial class CreateNodesSingleQemuSingleAgentExec200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateNodesSingleQemuSingleAgentExec200Response(List errors = default(List), CreateNodesSingleQemuSingleAgentExec200ResponseData data = default(CreateNodesSingleQemuSingleAgentExec200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public CreateNodesSingleQemuSingleAgentExec200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleAgentExec200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExec200ResponseData.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExec200ResponseData.cs new file mode 100644 index 0000000..c0e331c --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExec200ResponseData.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleAgentExec200ResponseData + /// + [DataContract(Name = "createNodesSingleQemuSingleAgentExec_200_response_data")] + public partial class CreateNodesSingleQemuSingleAgentExec200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The PID of the process started by the guest-agent.. + public CreateNodesSingleQemuSingleAgentExec200ResponseData(Int64 pid = default(Int64)) + { + this.Pid = pid; + } + + /// + /// The PID of the process started by the guest-agent. + /// + /// The PID of the process started by the guest-agent. + [DataMember(Name = "pid", EmitDefaultValue = false)] + public Int64 Pid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleAgentExec200ResponseData {\n"); + sb.Append(" Pid: ").Append(Pid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExecRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExecRequest.cs new file mode 100644 index 0000000..849fbbe --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentExecRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleAgentExecRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleAgentExecRequest")] + public partial class CreateNodesSingleQemuSingleAgentExecRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleAgentExecRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// command (required). + /// inputData. + public CreateNodesSingleQemuSingleAgentExecRequest(List command = default(List), string inputData = default(string)) + { + // to ensure "command" is required (not null) + if (command == null) + { + throw new ArgumentNullException("command is a required property for CreateNodesSingleQemuSingleAgentExecRequest and cannot be null"); + } + this.Command = command; + this.InputData = inputData; + } + + /// + /// Gets or Sets Command + /// + [DataMember(Name = "command", IsRequired = true, EmitDefaultValue = true)] + public List Command { get; set; } + + /// + /// Gets or Sets InputData + /// + [DataMember(Name = "input-data", EmitDefaultValue = false)] + public string InputData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleAgentExecRequest {\n"); + sb.Append(" Command: ").Append(Command).Append("\n"); + sb.Append(" InputData: ").Append(InputData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentFilewriteRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentFilewriteRequest.cs new file mode 100644 index 0000000..f13800a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentFilewriteRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleAgentFilewriteRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleAgentFilewriteRequest")] + public partial class CreateNodesSingleQemuSingleAgentFilewriteRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleAgentFilewriteRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// content (required). + /// encode. + /// file (required). + public CreateNodesSingleQemuSingleAgentFilewriteRequest(string content = default(string), bool encode = default(bool), string file = default(string)) + { + // to ensure "content" is required (not null) + if (content == null) + { + throw new ArgumentNullException("content is a required property for CreateNodesSingleQemuSingleAgentFilewriteRequest and cannot be null"); + } + this.Content = content; + // to ensure "file" is required (not null) + if (file == null) + { + throw new ArgumentNullException("file is a required property for CreateNodesSingleQemuSingleAgentFilewriteRequest and cannot be null"); + } + this.File = file; + this.Encode = encode; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] + public string Content { get; set; } + + /// + /// Gets or Sets Encode + /// + [DataMember(Name = "encode", EmitDefaultValue = true)] + public bool Encode { get; set; } + + /// + /// Gets or Sets File + /// + [DataMember(Name = "file", IsRequired = true, EmitDefaultValue = true)] + public string File { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleAgentFilewriteRequest {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Encode: ").Append(Encode).Append("\n"); + sb.Append(" File: ").Append(File).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentRequest.cs new file mode 100644 index 0000000..643147e --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleAgentRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleAgentRequest")] + public partial class CreateNodesSingleQemuSingleAgentRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleAgentRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// command (required). + public CreateNodesSingleQemuSingleAgentRequest(string command = default(string)) + { + // to ensure "command" is required (not null) + if (command == null) + { + throw new ArgumentNullException("command is a required property for CreateNodesSingleQemuSingleAgentRequest and cannot be null"); + } + this.Command = command; + } + + /// + /// Gets or Sets Command + /// + [DataMember(Name = "command", IsRequired = true, EmitDefaultValue = true)] + public string Command { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleAgentRequest {\n"); + sb.Append(" Command: ").Append(Command).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentSetuserpasswordRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentSetuserpasswordRequest.cs new file mode 100644 index 0000000..d3d6fc8 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleAgentSetuserpasswordRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleAgentSetuserpasswordRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleAgentSetuserpasswordRequest")] + public partial class CreateNodesSingleQemuSingleAgentSetuserpasswordRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleAgentSetuserpasswordRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// crypted. + /// password (required). + /// username (required). + public CreateNodesSingleQemuSingleAgentSetuserpasswordRequest(bool crypted = default(bool), string password = default(string), string username = default(string)) + { + // to ensure "password" is required (not null) + if (password == null) + { + throw new ArgumentNullException("password is a required property for CreateNodesSingleQemuSingleAgentSetuserpasswordRequest and cannot be null"); + } + this.Password = password; + // to ensure "username" is required (not null) + if (username == null) + { + throw new ArgumentNullException("username is a required property for CreateNodesSingleQemuSingleAgentSetuserpasswordRequest and cannot be null"); + } + this.Username = username; + this.Crypted = crypted; + } + + /// + /// Gets or Sets Crypted + /// + [DataMember(Name = "crypted", EmitDefaultValue = true)] + public bool Crypted { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] + public string Password { get; set; } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)] + public string Username { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleAgentSetuserpasswordRequest {\n"); + sb.Append(" Crypted: ").Append(Crypted).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleDbusvmstateRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleDbusvmstateRequest.cs new file mode 100644 index 0000000..0eec820 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleDbusvmstateRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleDbusvmstateRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleDbusvmstateRequest")] + public partial class CreateNodesSingleQemuSingleDbusvmstateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleDbusvmstateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// action (required). + public CreateNodesSingleQemuSingleDbusvmstateRequest(string action = default(string)) + { + // to ensure "action" is required (not null) + if (action == null) + { + throw new ArgumentNullException("action is a required property for CreateNodesSingleQemuSingleDbusvmstateRequest and cannot be null"); + } + this.Action = action; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleDbusvmstateRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleFirewallAliasesRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleFirewallAliasesRequest.cs new file mode 100644 index 0000000..a22b2ec --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleFirewallAliasesRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleFirewallAliasesRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleFirewallAliasesRequest")] + public partial class CreateNodesSingleQemuSingleFirewallAliasesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleFirewallAliasesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// name (required). + public CreateNodesSingleQemuSingleFirewallAliasesRequest(string cidr = default(string), string comment = default(string), string name = default(string)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for CreateNodesSingleQemuSingleFirewallAliasesRequest and cannot be null"); + } + this.Cidr = cidr; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateNodesSingleQemuSingleFirewallAliasesRequest and cannot be null"); + } + this.Name = name; + this.Comment = comment; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleFirewallAliasesRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMigrateRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMigrateRequest.cs new file mode 100644 index 0000000..2f5befc --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMigrateRequest.cs @@ -0,0 +1,165 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleMigrateRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleMigrateRequest")] + public partial class CreateNodesSingleQemuSingleMigrateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleMigrateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// force. + /// migrationNetwork. + /// migrationType. + /// online. + /// target (required). + /// targetstorage. + /// withConntrackState. + /// withLocalDisks. + public CreateNodesSingleQemuSingleMigrateRequest(int bwlimit = default(int), bool force = default(bool), string migrationNetwork = default(string), string migrationType = default(string), bool online = default(bool), string target = default(string), string targetstorage = default(string), bool withConntrackState = default(bool), bool withLocalDisks = default(bool)) + { + // to ensure "target" is required (not null) + if (target == null) + { + throw new ArgumentNullException("target is a required property for CreateNodesSingleQemuSingleMigrateRequest and cannot be null"); + } + this.Target = target; + this.Bwlimit = bwlimit; + this.Force = force; + this.MigrationNetwork = migrationNetwork; + this.MigrationType = migrationType; + this.Online = online; + this.Targetstorage = targetstorage; + this.WithConntrackState = withConntrackState; + this.WithLocalDisks = withLocalDisks; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public int Bwlimit { get; set; } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets MigrationNetwork + /// + [DataMember(Name = "migration_network", EmitDefaultValue = false)] + public string MigrationNetwork { get; set; } + + /// + /// Gets or Sets MigrationType + /// + [DataMember(Name = "migration_type", EmitDefaultValue = false)] + public string MigrationType { get; set; } + + /// + /// Gets or Sets Online + /// + [DataMember(Name = "online", EmitDefaultValue = true)] + public bool Online { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)] + public string Target { get; set; } + + /// + /// Gets or Sets Targetstorage + /// + [DataMember(Name = "targetstorage", EmitDefaultValue = false)] + public string Targetstorage { get; set; } + + /// + /// Gets or Sets WithConntrackState + /// + [DataMember(Name = "with-conntrack-state", EmitDefaultValue = true)] + public bool WithConntrackState { get; set; } + + /// + /// Gets or Sets WithLocalDisks + /// + [DataMember(Name = "with-local-disks", EmitDefaultValue = true)] + public bool WithLocalDisks { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleMigrateRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" MigrationNetwork: ").Append(MigrationNetwork).Append("\n"); + sb.Append(" MigrationType: ").Append(MigrationType).Append("\n"); + sb.Append(" Online: ").Append(Online).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" Targetstorage: ").Append(Targetstorage).Append("\n"); + sb.Append(" WithConntrackState: ").Append(WithConntrackState).Append("\n"); + sb.Append(" WithLocalDisks: ").Append(WithLocalDisks).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMonitorRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMonitorRequest.cs new file mode 100644 index 0000000..5c584df --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMonitorRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleMonitorRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleMonitorRequest")] + public partial class CreateNodesSingleQemuSingleMonitorRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleMonitorRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// command (required). + public CreateNodesSingleQemuSingleMonitorRequest(string command = default(string)) + { + // to ensure "command" is required (not null) + if (command == null) + { + throw new ArgumentNullException("command is a required property for CreateNodesSingleQemuSingleMonitorRequest and cannot be null"); + } + this.Command = command; + } + + /// + /// Gets or Sets Command + /// + [DataMember(Name = "command", IsRequired = true, EmitDefaultValue = true)] + public string Command { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleMonitorRequest {\n"); + sb.Append(" Command: ").Append(Command).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMovedisk200Response.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMovedisk200Response.cs new file mode 100644 index 0000000..035a0e1 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMovedisk200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleMovedisk200Response + /// + [DataContract(Name = "createNodesSingleQemuSingleMovedisk_200_response")] + public partial class CreateNodesSingleQemuSingleMovedisk200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// the task ID.. + public CreateNodesSingleQemuSingleMovedisk200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// the task ID. + /// + /// the task ID. + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleMovedisk200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMovediskRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMovediskRequest.cs new file mode 100644 index 0000000..af9ece7 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMovediskRequest.cs @@ -0,0 +1,165 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleMovediskRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleMovediskRequest")] + public partial class CreateNodesSingleQemuSingleMovediskRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleMovediskRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// delete. + /// digest. + /// disk (required). + /// format. + /// storage. + /// targetDigest. + /// targetDisk. + /// targetVmid. + public CreateNodesSingleQemuSingleMovediskRequest(int bwlimit = default(int), bool delete = default(bool), string digest = default(string), string disk = default(string), string format = default(string), string storage = default(string), string targetDigest = default(string), string targetDisk = default(string), int targetVmid = default(int)) + { + // to ensure "disk" is required (not null) + if (disk == null) + { + throw new ArgumentNullException("disk is a required property for CreateNodesSingleQemuSingleMovediskRequest and cannot be null"); + } + this.Disk = disk; + this.Bwlimit = bwlimit; + this.Delete = delete; + this.Digest = digest; + this.Format = format; + this.Storage = storage; + this.TargetDigest = targetDigest; + this.TargetDisk = targetDisk; + this.TargetVmid = targetVmid; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public int Bwlimit { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = true)] + public bool Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disk + /// + [DataMember(Name = "disk", IsRequired = true, EmitDefaultValue = true)] + public string Disk { get; set; } + + /// + /// Gets or Sets Format + /// + [DataMember(Name = "format", EmitDefaultValue = false)] + public string Format { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets TargetDigest + /// + [DataMember(Name = "target-digest", EmitDefaultValue = false)] + public string TargetDigest { get; set; } + + /// + /// Gets or Sets TargetDisk + /// + [DataMember(Name = "target-disk", EmitDefaultValue = false)] + public string TargetDisk { get; set; } + + /// + /// Gets or Sets TargetVmid + /// + [DataMember(Name = "target-vmid", EmitDefaultValue = false)] + public int TargetVmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleMovediskRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" TargetDigest: ").Append(TargetDigest).Append("\n"); + sb.Append(" TargetDisk: ").Append(TargetDisk).Append("\n"); + sb.Append(" TargetVmid: ").Append(TargetVmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMtunnelRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMtunnelRequest.cs new file mode 100644 index 0000000..0de5c1a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleMtunnelRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleMtunnelRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleMtunnelRequest")] + public partial class CreateNodesSingleQemuSingleMtunnelRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// bridges. + /// storages. + public CreateNodesSingleQemuSingleMtunnelRequest(string bridges = default(string), string storages = default(string)) + { + this.Bridges = bridges; + this.Storages = storages; + } + + /// + /// Gets or Sets Bridges + /// + [DataMember(Name = "bridges", EmitDefaultValue = false)] + public string Bridges { get; set; } + + /// + /// Gets or Sets Storages + /// + [DataMember(Name = "storages", EmitDefaultValue = false)] + public string Storages { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleMtunnelRequest {\n"); + sb.Append(" Bridges: ").Append(Bridges).Append("\n"); + sb.Append(" Storages: ").Append(Storages).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleRemotemigrateRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleRemotemigrateRequest.cs new file mode 100644 index 0000000..eb257c0 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleRemotemigrateRequest.cs @@ -0,0 +1,157 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleRemotemigrateRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleRemotemigrateRequest")] + public partial class CreateNodesSingleQemuSingleRemotemigrateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleQemuSingleRemotemigrateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// delete. + /// online. + /// targetBridge (required). + /// targetEndpoint (required). + /// targetStorage (required). + /// targetVmid. + public CreateNodesSingleQemuSingleRemotemigrateRequest(int bwlimit = default(int), bool delete = default(bool), bool online = default(bool), string targetBridge = default(string), string targetEndpoint = default(string), string targetStorage = default(string), int targetVmid = default(int)) + { + // to ensure "targetBridge" is required (not null) + if (targetBridge == null) + { + throw new ArgumentNullException("targetBridge is a required property for CreateNodesSingleQemuSingleRemotemigrateRequest and cannot be null"); + } + this.TargetBridge = targetBridge; + // to ensure "targetEndpoint" is required (not null) + if (targetEndpoint == null) + { + throw new ArgumentNullException("targetEndpoint is a required property for CreateNodesSingleQemuSingleRemotemigrateRequest and cannot be null"); + } + this.TargetEndpoint = targetEndpoint; + // to ensure "targetStorage" is required (not null) + if (targetStorage == null) + { + throw new ArgumentNullException("targetStorage is a required property for CreateNodesSingleQemuSingleRemotemigrateRequest and cannot be null"); + } + this.TargetStorage = targetStorage; + this.Bwlimit = bwlimit; + this.Delete = delete; + this.Online = online; + this.TargetVmid = targetVmid; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public int Bwlimit { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = true)] + public bool Delete { get; set; } + + /// + /// Gets or Sets Online + /// + [DataMember(Name = "online", EmitDefaultValue = true)] + public bool Online { get; set; } + + /// + /// Gets or Sets TargetBridge + /// + [DataMember(Name = "target-bridge", IsRequired = true, EmitDefaultValue = true)] + public string TargetBridge { get; set; } + + /// + /// Gets or Sets TargetEndpoint + /// + [DataMember(Name = "target-endpoint", IsRequired = true, EmitDefaultValue = true)] + public string TargetEndpoint { get; set; } + + /// + /// Gets or Sets TargetStorage + /// + [DataMember(Name = "target-storage", IsRequired = true, EmitDefaultValue = true)] + public string TargetStorage { get; set; } + + /// + /// Gets or Sets TargetVmid + /// + [DataMember(Name = "target-vmid", EmitDefaultValue = false)] + public int TargetVmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleRemotemigrateRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Online: ").Append(Online).Append("\n"); + sb.Append(" TargetBridge: ").Append(TargetBridge).Append("\n"); + sb.Append(" TargetEndpoint: ").Append(TargetEndpoint).Append("\n"); + sb.Append(" TargetStorage: ").Append(TargetStorage).Append("\n"); + sb.Append(" TargetVmid: ").Append(TargetVmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleSpiceproxy200Response.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleSpiceproxy200Response.cs new file mode 100644 index 0000000..01eaada --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleSpiceproxy200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleSpiceproxy200Response + /// + [DataContract(Name = "createNodesSingleQemuSingleSpiceproxy_200_response")] + public partial class CreateNodesSingleQemuSingleSpiceproxy200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Returned values can be directly passed to the 'remote-viewer' application.. + public CreateNodesSingleQemuSingleSpiceproxy200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Returned values can be directly passed to the 'remote-viewer' application. + /// + /// Returned values can be directly passed to the 'remote-viewer' application. + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleSpiceproxy200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleSpiceproxyRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleSpiceproxyRequest.cs new file mode 100644 index 0000000..a43fb7f --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleSpiceproxyRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleSpiceproxyRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleSpiceproxyRequest")] + public partial class CreateNodesSingleQemuSingleSpiceproxyRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// proxy. + public CreateNodesSingleQemuSingleSpiceproxyRequest(string proxy = default(string)) + { + this.Proxy = proxy; + } + + /// + /// Gets or Sets Proxy + /// + [DataMember(Name = "proxy", EmitDefaultValue = false)] + public string Proxy { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleSpiceproxyRequest {\n"); + sb.Append(" Proxy: ").Append(Proxy).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleTemplateRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleTemplateRequest.cs new file mode 100644 index 0000000..6cca659 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleTemplateRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleTemplateRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleTemplateRequest")] + public partial class CreateNodesSingleQemuSingleTemplateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// disk. + public CreateNodesSingleQemuSingleTemplateRequest(string disk = default(string)) + { + this.Disk = disk; + } + + /// + /// Gets or Sets Disk + /// + [DataMember(Name = "disk", EmitDefaultValue = false)] + public string Disk { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleTemplateRequest {\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleTermproxyRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleTermproxyRequest.cs new file mode 100644 index 0000000..9b6751a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleTermproxyRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleTermproxyRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleTermproxyRequest")] + public partial class CreateNodesSingleQemuSingleTermproxyRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// serial. + public CreateNodesSingleQemuSingleTermproxyRequest(string serial = default(string)) + { + this.Serial = serial; + } + + /// + /// Gets or Sets Serial + /// + [DataMember(Name = "serial", EmitDefaultValue = false)] + public string Serial { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleTermproxyRequest {\n"); + sb.Append(" Serial: ").Append(Serial).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleVncproxyRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleVncproxyRequest.cs new file mode 100644 index 0000000..d8f7f59 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleQemuSingleVncproxyRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleQemuSingleVncproxyRequest + /// + [DataContract(Name = "CreateNodesSingleQemuSingleVncproxyRequest")] + public partial class CreateNodesSingleQemuSingleVncproxyRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// generatePassword. + /// websocket. + public CreateNodesSingleQemuSingleVncproxyRequest(bool generatePassword = default(bool), bool websocket = default(bool)) + { + this.GeneratePassword = generatePassword; + this.Websocket = websocket; + } + + /// + /// Gets or Sets GeneratePassword + /// + [DataMember(Name = "generate-password", EmitDefaultValue = true)] + public bool GeneratePassword { get; set; } + + /// + /// Gets or Sets Websocket + /// + [DataMember(Name = "websocket", EmitDefaultValue = true)] + public bool Websocket { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleQemuSingleVncproxyRequest {\n"); + sb.Append(" GeneratePassword: ").Append(GeneratePassword).Append("\n"); + sb.Append(" Websocket: ").Append(Websocket).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleSpiceshellRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleSpiceshellRequest.cs new file mode 100644 index 0000000..d9a676f --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleSpiceshellRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleSpiceshellRequest + /// + [DataContract(Name = "CreateNodesSingleSpiceshellRequest")] + public partial class CreateNodesSingleSpiceshellRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cmd. + /// cmdOpts. + /// proxy. + public CreateNodesSingleSpiceshellRequest(string cmd = default(string), string cmdOpts = default(string), string proxy = default(string)) + { + this.Cmd = cmd; + this.CmdOpts = cmdOpts; + this.Proxy = proxy; + } + + /// + /// Gets or Sets Cmd + /// + [DataMember(Name = "cmd", EmitDefaultValue = false)] + public string Cmd { get; set; } + + /// + /// Gets or Sets CmdOpts + /// + [DataMember(Name = "cmd-opts", EmitDefaultValue = false)] + public string CmdOpts { get; set; } + + /// + /// Gets or Sets Proxy + /// + [DataMember(Name = "proxy", EmitDefaultValue = false)] + public string Proxy { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleSpiceshellRequest {\n"); + sb.Append(" Cmd: ").Append(Cmd).Append("\n"); + sb.Append(" CmdOpts: ").Append(CmdOpts).Append("\n"); + sb.Append(" Proxy: ").Append(Proxy).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStartallRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStartallRequest.cs new file mode 100644 index 0000000..89fe0c7 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStartallRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStartallRequest + /// + [DataContract(Name = "CreateNodesSingleStartallRequest")] + public partial class CreateNodesSingleStartallRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// force. + /// vms. + public CreateNodesSingleStartallRequest(bool force = default(bool), string vms = default(string)) + { + this.Force = force; + this.Vms = vms; + } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public string Vms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStartallRequest {\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStatusRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStatusRequest.cs new file mode 100644 index 0000000..f53bb61 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStatusRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStatusRequest + /// + [DataContract(Name = "CreateNodesSingleStatusRequest")] + public partial class CreateNodesSingleStatusRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleStatusRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// command (required). + public CreateNodesSingleStatusRequest(string command = default(string)) + { + // to ensure "command" is required (not null) + if (command == null) + { + throw new ArgumentNullException("command is a required property for CreateNodesSingleStatusRequest and cannot be null"); + } + this.Command = command; + } + + /// + /// Gets or Sets Command + /// + [DataMember(Name = "command", IsRequired = true, EmitDefaultValue = true)] + public string Command { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStatusRequest {\n"); + sb.Append(" Command: ").Append(Command).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStopallRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStopallRequest.cs new file mode 100644 index 0000000..81717c6 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStopallRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStopallRequest + /// + [DataContract(Name = "CreateNodesSingleStopallRequest")] + public partial class CreateNodesSingleStopallRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// forceStop. + /// timeout. + /// vms. + public CreateNodesSingleStopallRequest(bool forceStop = default(bool), int timeout = default(int), string vms = default(string)) + { + this.ForceStop = forceStop; + this.Timeout = timeout; + this.Vms = vms; + } + + /// + /// Gets or Sets ForceStop + /// + [DataMember(Name = "force-stop", EmitDefaultValue = true)] + public bool ForceStop { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public string Vms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStopallRequest {\n"); + sb.Append(" ForceStop: ").Append(ForceStop).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContent200Response.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContent200Response.cs new file mode 100644 index 0000000..5c3aa3b --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContent200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStorageSingleContent200Response + /// + [DataContract(Name = "createNodesSingleStorageSingleContent_200_response")] + public partial class CreateNodesSingleStorageSingleContent200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Volume identifier. + public CreateNodesSingleStorageSingleContent200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Volume identifier + /// + /// Volume identifier + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStorageSingleContent200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContentRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContentRequest.cs new file mode 100644 index 0000000..b7cf1af --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContentRequest.cs @@ -0,0 +1,125 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStorageSingleContentRequest + /// + [DataContract(Name = "CreateNodesSingleStorageSingleContentRequest")] + public partial class CreateNodesSingleStorageSingleContentRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleStorageSingleContentRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// filename (required). + /// format. + /// size (required). + /// vmid (required). + public CreateNodesSingleStorageSingleContentRequest(string filename = default(string), string format = default(string), string size = default(string), int vmid = default(int)) + { + // to ensure "filename" is required (not null) + if (filename == null) + { + throw new ArgumentNullException("filename is a required property for CreateNodesSingleStorageSingleContentRequest and cannot be null"); + } + this.Filename = filename; + // to ensure "size" is required (not null) + if (size == null) + { + throw new ArgumentNullException("size is a required property for CreateNodesSingleStorageSingleContentRequest and cannot be null"); + } + this.Size = size; + this.Vmid = vmid; + this.Format = format; + } + + /// + /// Gets or Sets Filename + /// + [DataMember(Name = "filename", IsRequired = true, EmitDefaultValue = true)] + public string Filename { get; set; } + + /// + /// Gets or Sets Format + /// + [DataMember(Name = "format", EmitDefaultValue = false)] + public string Format { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", IsRequired = true, EmitDefaultValue = true)] + public string Size { get; set; } + + /// + /// Gets or Sets Vmid + /// + [DataMember(Name = "vmid", IsRequired = true, EmitDefaultValue = true)] + public int Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStorageSingleContentRequest {\n"); + sb.Append(" Filename: ").Append(Filename).Append("\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContentSingleRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContentSingleRequest.cs new file mode 100644 index 0000000..d3f19d2 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleContentSingleRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStorageSingleContentSingleRequest + /// + [DataContract(Name = "CreateNodesSingleStorageSingleContentSingleRequest")] + public partial class CreateNodesSingleStorageSingleContentSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleStorageSingleContentSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// target (required). + /// targetNode. + public CreateNodesSingleStorageSingleContentSingleRequest(string target = default(string), string targetNode = default(string)) + { + // to ensure "target" is required (not null) + if (target == null) + { + throw new ArgumentNullException("target is a required property for CreateNodesSingleStorageSingleContentSingleRequest and cannot be null"); + } + this.Target = target; + this.TargetNode = targetNode; + } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)] + public string Target { get; set; } + + /// + /// Gets or Sets TargetNode + /// + [DataMember(Name = "target_node", EmitDefaultValue = false)] + public string TargetNode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStorageSingleContentSingleRequest {\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" TargetNode: ").Append(TargetNode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleDownloadurlRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleDownloadurlRequest.cs new file mode 100644 index 0000000..8a412c1 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleDownloadurlRequest.cs @@ -0,0 +1,157 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStorageSingleDownloadurlRequest + /// + [DataContract(Name = "CreateNodesSingleStorageSingleDownloadurlRequest")] + public partial class CreateNodesSingleStorageSingleDownloadurlRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleStorageSingleDownloadurlRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// checksum. + /// checksumAlgorithm. + /// compression. + /// content (required). + /// filename (required). + /// url (required). + /// verifyCertificates. + public CreateNodesSingleStorageSingleDownloadurlRequest(string checksum = default(string), string checksumAlgorithm = default(string), string compression = default(string), string content = default(string), string filename = default(string), string url = default(string), bool verifyCertificates = default(bool)) + { + // to ensure "content" is required (not null) + if (content == null) + { + throw new ArgumentNullException("content is a required property for CreateNodesSingleStorageSingleDownloadurlRequest and cannot be null"); + } + this.Content = content; + // to ensure "filename" is required (not null) + if (filename == null) + { + throw new ArgumentNullException("filename is a required property for CreateNodesSingleStorageSingleDownloadurlRequest and cannot be null"); + } + this.Filename = filename; + // to ensure "url" is required (not null) + if (url == null) + { + throw new ArgumentNullException("url is a required property for CreateNodesSingleStorageSingleDownloadurlRequest and cannot be null"); + } + this.Url = url; + this.Checksum = checksum; + this.ChecksumAlgorithm = checksumAlgorithm; + this.Compression = compression; + this.VerifyCertificates = verifyCertificates; + } + + /// + /// Gets or Sets Checksum + /// + [DataMember(Name = "checksum", EmitDefaultValue = false)] + public string Checksum { get; set; } + + /// + /// Gets or Sets ChecksumAlgorithm + /// + [DataMember(Name = "checksum-algorithm", EmitDefaultValue = false)] + public string ChecksumAlgorithm { get; set; } + + /// + /// Gets or Sets Compression + /// + [DataMember(Name = "compression", EmitDefaultValue = false)] + public string Compression { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] + public string Content { get; set; } + + /// + /// Gets or Sets Filename + /// + [DataMember(Name = "filename", IsRequired = true, EmitDefaultValue = true)] + public string Filename { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)] + public string Url { get; set; } + + /// + /// Gets or Sets VerifyCertificates + /// + [DataMember(Name = "verify-certificates", EmitDefaultValue = true)] + public bool VerifyCertificates { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStorageSingleDownloadurlRequest {\n"); + sb.Append(" Checksum: ").Append(Checksum).Append("\n"); + sb.Append(" ChecksumAlgorithm: ").Append(ChecksumAlgorithm).Append("\n"); + sb.Append(" Compression: ").Append(Compression).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Filename: ").Append(Filename).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" VerifyCertificates: ").Append(VerifyCertificates).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleOciregistrypullRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleOciregistrypullRequest.cs new file mode 100644 index 0000000..7233d00 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleOciregistrypullRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStorageSingleOciregistrypullRequest + /// + [DataContract(Name = "CreateNodesSingleStorageSingleOciregistrypullRequest")] + public partial class CreateNodesSingleStorageSingleOciregistrypullRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleStorageSingleOciregistrypullRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// filename. + /// reference (required). + public CreateNodesSingleStorageSingleOciregistrypullRequest(string filename = default(string), string reference = default(string)) + { + // to ensure "reference" is required (not null) + if (reference == null) + { + throw new ArgumentNullException("reference is a required property for CreateNodesSingleStorageSingleOciregistrypullRequest and cannot be null"); + } + this.Reference = reference; + this.Filename = filename; + } + + /// + /// Gets or Sets Filename + /// + [DataMember(Name = "filename", EmitDefaultValue = false)] + public string Filename { get; set; } + + /// + /// Gets or Sets Reference + /// + [DataMember(Name = "reference", IsRequired = true, EmitDefaultValue = true)] + public string Reference { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStorageSingleOciregistrypullRequest {\n"); + sb.Append(" Filename: ").Append(Filename).Append("\n"); + sb.Append(" Reference: ").Append(Reference).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleUploadRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleUploadRequest.cs new file mode 100644 index 0000000..7a464c0 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleStorageSingleUploadRequest.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleStorageSingleUploadRequest + /// + [DataContract(Name = "CreateNodesSingleStorageSingleUploadRequest")] + public partial class CreateNodesSingleStorageSingleUploadRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateNodesSingleStorageSingleUploadRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// checksum. + /// checksumAlgorithm. + /// content (required). + /// filename (required). + /// tmpfilename. + public CreateNodesSingleStorageSingleUploadRequest(string checksum = default(string), string checksumAlgorithm = default(string), string content = default(string), string filename = default(string), string tmpfilename = default(string)) + { + // to ensure "content" is required (not null) + if (content == null) + { + throw new ArgumentNullException("content is a required property for CreateNodesSingleStorageSingleUploadRequest and cannot be null"); + } + this.Content = content; + // to ensure "filename" is required (not null) + if (filename == null) + { + throw new ArgumentNullException("filename is a required property for CreateNodesSingleStorageSingleUploadRequest and cannot be null"); + } + this.Filename = filename; + this.Checksum = checksum; + this.ChecksumAlgorithm = checksumAlgorithm; + this.Tmpfilename = tmpfilename; + } + + /// + /// Gets or Sets Checksum + /// + [DataMember(Name = "checksum", EmitDefaultValue = false)] + public string Checksum { get; set; } + + /// + /// Gets or Sets ChecksumAlgorithm + /// + [DataMember(Name = "checksum-algorithm", EmitDefaultValue = false)] + public string ChecksumAlgorithm { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)] + public string Content { get; set; } + + /// + /// Gets or Sets Filename + /// + [DataMember(Name = "filename", IsRequired = true, EmitDefaultValue = true)] + public string Filename { get; set; } + + /// + /// Gets or Sets Tmpfilename + /// + [DataMember(Name = "tmpfilename", EmitDefaultValue = false)] + public string Tmpfilename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleStorageSingleUploadRequest {\n"); + sb.Append(" Checksum: ").Append(Checksum).Append("\n"); + sb.Append(" ChecksumAlgorithm: ").Append(ChecksumAlgorithm).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Filename: ").Append(Filename).Append("\n"); + sb.Append(" Tmpfilename: ").Append(Tmpfilename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleSubscriptionRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleSubscriptionRequest.cs new file mode 100644 index 0000000..93a8396 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleSubscriptionRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleSubscriptionRequest + /// + [DataContract(Name = "CreateNodesSingleSubscriptionRequest")] + public partial class CreateNodesSingleSubscriptionRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// force. + public CreateNodesSingleSubscriptionRequest(bool force = default(bool)) + { + this.Force = force; + } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleSubscriptionRequest {\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleSuspendallRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleSuspendallRequest.cs new file mode 100644 index 0000000..6722346 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleSuspendallRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleSuspendallRequest + /// + [DataContract(Name = "CreateNodesSingleSuspendallRequest")] + public partial class CreateNodesSingleSuspendallRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// vms. + public CreateNodesSingleSuspendallRequest(string vms = default(string)) + { + this.Vms = vms; + } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public string Vms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleSuspendallRequest {\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleTermproxyRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleTermproxyRequest.cs new file mode 100644 index 0000000..3f19f8a --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleTermproxyRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleTermproxyRequest + /// + [DataContract(Name = "CreateNodesSingleTermproxyRequest")] + public partial class CreateNodesSingleTermproxyRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cmd. + /// cmdOpts. + public CreateNodesSingleTermproxyRequest(string cmd = default(string), string cmdOpts = default(string)) + { + this.Cmd = cmd; + this.CmdOpts = cmdOpts; + } + + /// + /// Gets or Sets Cmd + /// + [DataMember(Name = "cmd", EmitDefaultValue = false)] + public string Cmd { get; set; } + + /// + /// Gets or Sets CmdOpts + /// + [DataMember(Name = "cmd-opts", EmitDefaultValue = false)] + public string CmdOpts { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleTermproxyRequest {\n"); + sb.Append(" Cmd: ").Append(Cmd).Append("\n"); + sb.Append(" CmdOpts: ").Append(CmdOpts).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleVncshellRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleVncshellRequest.cs new file mode 100644 index 0000000..bdf8e76 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleVncshellRequest.cs @@ -0,0 +1,119 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleVncshellRequest + /// + [DataContract(Name = "CreateNodesSingleVncshellRequest")] + public partial class CreateNodesSingleVncshellRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cmd. + /// cmdOpts. + /// height. + /// websocket. + /// width. + public CreateNodesSingleVncshellRequest(string cmd = default(string), string cmdOpts = default(string), int height = default(int), bool websocket = default(bool), int width = default(int)) + { + this.Cmd = cmd; + this.CmdOpts = cmdOpts; + this.Height = height; + this.Websocket = websocket; + this.Width = width; + } + + /// + /// Gets or Sets Cmd + /// + [DataMember(Name = "cmd", EmitDefaultValue = false)] + public string Cmd { get; set; } + + /// + /// Gets or Sets CmdOpts + /// + [DataMember(Name = "cmd-opts", EmitDefaultValue = false)] + public string CmdOpts { get; set; } + + /// + /// Gets or Sets Height + /// + [DataMember(Name = "height", EmitDefaultValue = false)] + public int Height { get; set; } + + /// + /// Gets or Sets Websocket + /// + [DataMember(Name = "websocket", EmitDefaultValue = true)] + public bool Websocket { get; set; } + + /// + /// Gets or Sets Width + /// + [DataMember(Name = "width", EmitDefaultValue = false)] + public int Width { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleVncshellRequest {\n"); + sb.Append(" Cmd: ").Append(Cmd).Append("\n"); + sb.Append(" CmdOpts: ").Append(CmdOpts).Append("\n"); + sb.Append(" Height: ").Append(Height).Append("\n"); + sb.Append(" Websocket: ").Append(Websocket).Append("\n"); + sb.Append(" Width: ").Append(Width).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleVzdumpRequest.cs b/src/ProxmoxSharp/Model/CreateNodesSingleVzdumpRequest.cs new file mode 100644 index 0000000..3abb917 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleVzdumpRequest.cs @@ -0,0 +1,371 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleVzdumpRequest + /// + [DataContract(Name = "CreateNodesSingleVzdumpRequest")] + public partial class CreateNodesSingleVzdumpRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// all. + /// bwlimit. + /// compress. + /// dumpdir. + /// exclude. + /// excludePath. + /// fleecing. + /// ionice. + /// jobId. + /// lockwait. + /// mailnotification. + /// mailto. + /// maxfiles. + /// mode. + /// notesTemplate. + /// notificationMode. + /// pbsChangeDetectionMode. + /// performance. + /// pigz. + /// pool. + /// varProtected. + /// pruneBackups. + /// quiet. + /// remove. + /// script. + /// stdexcludes. + /// stdout. + /// stop. + /// stopwait. + /// storage. + /// tmpdir. + /// vmid. + /// zstd. + public CreateNodesSingleVzdumpRequest(bool all = default(bool), int bwlimit = default(int), string compress = default(string), string dumpdir = default(string), string exclude = default(string), List excludePath = default(List), string fleecing = default(string), int ionice = default(int), string jobId = default(string), int lockwait = default(int), string mailnotification = default(string), string mailto = default(string), int maxfiles = default(int), string mode = default(string), string notesTemplate = default(string), string notificationMode = default(string), string pbsChangeDetectionMode = default(string), string performance = default(string), int pigz = default(int), string pool = default(string), bool varProtected = default(bool), string pruneBackups = default(string), bool quiet = default(bool), bool remove = default(bool), string script = default(string), bool stdexcludes = default(bool), bool stdout = default(bool), bool stop = default(bool), int stopwait = default(int), string storage = default(string), string tmpdir = default(string), string vmid = default(string), int zstd = default(int)) + { + this.All = all; + this.Bwlimit = bwlimit; + this.Compress = compress; + this.Dumpdir = dumpdir; + this.Exclude = exclude; + this.ExcludePath = excludePath; + this.Fleecing = fleecing; + this.Ionice = ionice; + this.JobId = jobId; + this.Lockwait = lockwait; + this.Mailnotification = mailnotification; + this.Mailto = mailto; + this.Maxfiles = maxfiles; + this.Mode = mode; + this.NotesTemplate = notesTemplate; + this.NotificationMode = notificationMode; + this.PbsChangeDetectionMode = pbsChangeDetectionMode; + this.Performance = performance; + this.Pigz = pigz; + this.Pool = pool; + this.Protected = varProtected; + this.PruneBackups = pruneBackups; + this.Quiet = quiet; + this.Remove = remove; + this.Script = script; + this.Stdexcludes = stdexcludes; + this.Stdout = stdout; + this.Stop = stop; + this.Stopwait = stopwait; + this.Storage = storage; + this.Tmpdir = tmpdir; + this.Vmid = vmid; + this.Zstd = zstd; + } + + /// + /// Gets or Sets All + /// + [DataMember(Name = "all", EmitDefaultValue = true)] + public bool All { get; set; } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public int Bwlimit { get; set; } + + /// + /// Gets or Sets Compress + /// + [DataMember(Name = "compress", EmitDefaultValue = false)] + public string Compress { get; set; } + + /// + /// Gets or Sets Dumpdir + /// + [DataMember(Name = "dumpdir", EmitDefaultValue = false)] + public string Dumpdir { get; set; } + + /// + /// Gets or Sets Exclude + /// + [DataMember(Name = "exclude", EmitDefaultValue = false)] + public string Exclude { get; set; } + + /// + /// Gets or Sets ExcludePath + /// + [DataMember(Name = "exclude-path", EmitDefaultValue = false)] + public List ExcludePath { get; set; } + + /// + /// Gets or Sets Fleecing + /// + [DataMember(Name = "fleecing", EmitDefaultValue = false)] + public string Fleecing { get; set; } + + /// + /// Gets or Sets Ionice + /// + [DataMember(Name = "ionice", EmitDefaultValue = false)] + public int Ionice { get; set; } + + /// + /// Gets or Sets JobId + /// + [DataMember(Name = "job-id", EmitDefaultValue = false)] + public string JobId { get; set; } + + /// + /// Gets or Sets Lockwait + /// + [DataMember(Name = "lockwait", EmitDefaultValue = false)] + public int Lockwait { get; set; } + + /// + /// Gets or Sets Mailnotification + /// + [DataMember(Name = "mailnotification", EmitDefaultValue = false)] + public string Mailnotification { get; set; } + + /// + /// Gets or Sets Mailto + /// + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public string Mailto { get; set; } + + /// + /// Gets or Sets Maxfiles + /// + [DataMember(Name = "maxfiles", EmitDefaultValue = false)] + public int Maxfiles { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets NotesTemplate + /// + [DataMember(Name = "notes-template", EmitDefaultValue = false)] + public string NotesTemplate { get; set; } + + /// + /// Gets or Sets NotificationMode + /// + [DataMember(Name = "notification-mode", EmitDefaultValue = false)] + public string NotificationMode { get; set; } + + /// + /// Gets or Sets PbsChangeDetectionMode + /// + [DataMember(Name = "pbs-change-detection-mode", EmitDefaultValue = false)] + public string PbsChangeDetectionMode { get; set; } + + /// + /// Gets or Sets Performance + /// + [DataMember(Name = "performance", EmitDefaultValue = false)] + public string Performance { get; set; } + + /// + /// Gets or Sets Pigz + /// + [DataMember(Name = "pigz", EmitDefaultValue = false)] + public int Pigz { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Protected + /// + [DataMember(Name = "protected", EmitDefaultValue = true)] + public bool Protected { get; set; } + + /// + /// Gets or Sets PruneBackups + /// + [DataMember(Name = "prune-backups", EmitDefaultValue = false)] + public string PruneBackups { get; set; } + + /// + /// Gets or Sets Quiet + /// + [DataMember(Name = "quiet", EmitDefaultValue = true)] + public bool Quiet { get; set; } + + /// + /// Gets or Sets Remove + /// + [DataMember(Name = "remove", EmitDefaultValue = true)] + public bool Remove { get; set; } + + /// + /// Gets or Sets Script + /// + [DataMember(Name = "script", EmitDefaultValue = false)] + public string Script { get; set; } + + /// + /// Gets or Sets Stdexcludes + /// + [DataMember(Name = "stdexcludes", EmitDefaultValue = true)] + public bool Stdexcludes { get; set; } + + /// + /// Gets or Sets Stdout + /// + [DataMember(Name = "stdout", EmitDefaultValue = true)] + public bool Stdout { get; set; } + + /// + /// Gets or Sets Stop + /// + [DataMember(Name = "stop", EmitDefaultValue = true)] + public bool Stop { get; set; } + + /// + /// Gets or Sets Stopwait + /// + [DataMember(Name = "stopwait", EmitDefaultValue = false)] + public int Stopwait { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Tmpdir + /// + [DataMember(Name = "tmpdir", EmitDefaultValue = false)] + public string Tmpdir { get; set; } + + /// + /// Gets or Sets Vmid + /// + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public string Vmid { get; set; } + + /// + /// Gets or Sets Zstd + /// + [DataMember(Name = "zstd", EmitDefaultValue = false)] + public int Zstd { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleVzdumpRequest {\n"); + sb.Append(" All: ").Append(All).Append("\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Compress: ").Append(Compress).Append("\n"); + sb.Append(" Dumpdir: ").Append(Dumpdir).Append("\n"); + sb.Append(" Exclude: ").Append(Exclude).Append("\n"); + sb.Append(" ExcludePath: ").Append(ExcludePath).Append("\n"); + sb.Append(" Fleecing: ").Append(Fleecing).Append("\n"); + sb.Append(" Ionice: ").Append(Ionice).Append("\n"); + sb.Append(" JobId: ").Append(JobId).Append("\n"); + sb.Append(" Lockwait: ").Append(Lockwait).Append("\n"); + sb.Append(" Mailnotification: ").Append(Mailnotification).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" Maxfiles: ").Append(Maxfiles).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" NotesTemplate: ").Append(NotesTemplate).Append("\n"); + sb.Append(" NotificationMode: ").Append(NotificationMode).Append("\n"); + sb.Append(" PbsChangeDetectionMode: ").Append(PbsChangeDetectionMode).Append("\n"); + sb.Append(" Performance: ").Append(Performance).Append("\n"); + sb.Append(" Pigz: ").Append(Pigz).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" PruneBackups: ").Append(PruneBackups).Append("\n"); + sb.Append(" Quiet: ").Append(Quiet).Append("\n"); + sb.Append(" Remove: ").Append(Remove).Append("\n"); + sb.Append(" Script: ").Append(Script).Append("\n"); + sb.Append(" Stdexcludes: ").Append(Stdexcludes).Append("\n"); + sb.Append(" Stdout: ").Append(Stdout).Append("\n"); + sb.Append(" Stop: ").Append(Stop).Append("\n"); + sb.Append(" Stopwait: ").Append(Stopwait).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Tmpdir: ").Append(Tmpdir).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" Zstd: ").Append(Zstd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateNodesSingleWakeonlan200Response.cs b/src/ProxmoxSharp/Model/CreateNodesSingleWakeonlan200Response.cs new file mode 100644 index 0000000..a3532fe --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateNodesSingleWakeonlan200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateNodesSingleWakeonlan200Response + /// + [DataContract(Name = "createNodesSingleWakeonlan_200_response")] + public partial class CreateNodesSingleWakeonlan200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// MAC address used to assemble the WoL magic packet.. + public CreateNodesSingleWakeonlan200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// MAC address used to assemble the WoL magic packet. + /// + /// MAC address used to assemble the WoL magic packet. + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateNodesSingleWakeonlan200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreatePoolRequest.cs b/src/ProxmoxSharp/Model/CreatePoolRequest.cs new file mode 100644 index 0000000..5cd1e13 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreatePoolRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreatePoolRequest + /// + [DataContract(Name = "CreatePoolRequest")] + public partial class CreatePoolRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreatePoolRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// poolid (required). + public CreatePoolRequest(string comment = default(string), string poolid = default(string)) + { + // to ensure "poolid" is required (not null) + if (poolid == null) + { + throw new ArgumentNullException("poolid is a required property for CreatePoolRequest and cannot be null"); + } + this.Poolid = poolid; + this.Comment = comment; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Poolid + /// + [DataMember(Name = "poolid", IsRequired = true, EmitDefaultValue = true)] + public string Poolid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreatePoolRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Poolid: ").Append(Poolid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateStorage200Response.cs b/src/ProxmoxSharp/Model/CreateStorage200Response.cs new file mode 100644 index 0000000..bc94be7 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateStorage200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateStorage200Response + /// + [DataContract(Name = "createStorage_200_response")] + public partial class CreateStorage200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public CreateStorage200Response(List errors = default(List), CreateStorage200ResponseData data = default(CreateStorage200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public CreateStorage200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateStorage200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateStorage200ResponseData.cs b/src/ProxmoxSharp/Model/CreateStorage200ResponseData.cs new file mode 100644 index 0000000..d13a978 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateStorage200ResponseData.cs @@ -0,0 +1,103 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateStorage200ResponseData + /// + [DataContract(Name = "createStorage_200_response_data")] + public partial class CreateStorage200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// config. + /// The ID of the created storage.. + /// The type of the created storage.. + public CreateStorage200ResponseData(CreateStorage200ResponseDataConfig config = default(CreateStorage200ResponseDataConfig), string storage = default(string), string type = default(string)) + { + this.Config = config; + this.Storage = storage; + this.Type = type; + } + + /// + /// Gets or Sets Config + /// + [DataMember(Name = "config", EmitDefaultValue = false)] + public CreateStorage200ResponseDataConfig Config { get; set; } + + /// + /// The ID of the created storage. + /// + /// The ID of the created storage. + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// The type of the created storage. + /// + /// The type of the created storage. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateStorage200ResponseData {\n"); + sb.Append(" Config: ").Append(Config).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateStorage200ResponseDataConfig.cs b/src/ProxmoxSharp/Model/CreateStorage200ResponseDataConfig.cs new file mode 100644 index 0000000..8efa5ea --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateStorage200ResponseDataConfig.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Partial, possibly server generated, configuration properties. + /// + [DataContract(Name = "createStorage_200_response_data_config")] + public partial class CreateStorage200ResponseDataConfig : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The, possibly auto-generated, encryption-key.. + public CreateStorage200ResponseDataConfig(string encryptionKey = default(string)) + { + this.EncryptionKey = encryptionKey; + } + + /// + /// The, possibly auto-generated, encryption-key. + /// + /// The, possibly auto-generated, encryption-key. + [DataMember(Name = "encryption-key", EmitDefaultValue = false)] + public string EncryptionKey { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateStorage200ResponseDataConfig {\n"); + sb.Append(" EncryptionKey: ").Append(EncryptionKey).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateStorageRequest.cs b/src/ProxmoxSharp/Model/CreateStorageRequest.cs new file mode 100644 index 0000000..1a1bbc4 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateStorageRequest.cs @@ -0,0 +1,638 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateStorageRequest + /// + [DataContract(Name = "CreateStorageRequest")] + public partial class CreateStorageRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateStorageRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// authsupported. + /// varBase. + /// blocksize. + /// bwlimit. + /// comstarHg. + /// comstarTg. + /// content. + /// contentDirs. + /// createBasePath. + /// createSubdirs. + /// dataPool. + /// datastore. + /// disable. + /// domain. + /// encryptionKey. + /// export. + /// fingerprint. + /// format. + /// fsName. + /// fuse. + /// isMountpoint. + /// iscsiprovider. + /// keyring. + /// krbd. + /// lioTpg. + /// masterPubkey. + /// maxProtectedBackups. + /// mkdir. + /// monhost. + /// mountpoint. + /// varNamespace. + /// nocow. + /// nodes. + /// nowritecache. + /// options. + /// password. + /// path. + /// pool. + /// port. + /// portal. + /// preallocation. + /// pruneBackups. + /// saferemove. + /// saferemoveStepsize. + /// saferemoveThroughput. + /// server. + /// share. + /// shared. + /// skipCertVerification. + /// smbversion. + /// snapshotAsVolumeChain. + /// sparse. + /// storage (required). + /// subdir. + /// taggedOnly. + /// target. + /// thinpool. + /// type (required). + /// username. + /// vgname. + /// zfsBasePath. + public CreateStorageRequest(string authsupported = default(string), string varBase = default(string), string blocksize = default(string), string bwlimit = default(string), string comstarHg = default(string), string comstarTg = default(string), string content = default(string), string contentDirs = default(string), bool createBasePath = default(bool), bool createSubdirs = default(bool), string dataPool = default(string), string datastore = default(string), bool disable = default(bool), string domain = default(string), string encryptionKey = default(string), string export = default(string), string fingerprint = default(string), string format = default(string), string fsName = default(string), bool fuse = default(bool), string isMountpoint = default(string), string iscsiprovider = default(string), string keyring = default(string), bool krbd = default(bool), string lioTpg = default(string), string masterPubkey = default(string), int maxProtectedBackups = default(int), bool mkdir = default(bool), string monhost = default(string), string mountpoint = default(string), string varNamespace = default(string), bool nocow = default(bool), string nodes = default(string), bool nowritecache = default(bool), string options = default(string), string password = default(string), string path = default(string), string pool = default(string), int port = default(int), string portal = default(string), string preallocation = default(string), string pruneBackups = default(string), bool saferemove = default(bool), int saferemoveStepsize = default(int), string saferemoveThroughput = default(string), string server = default(string), string share = default(string), bool shared = default(bool), bool skipCertVerification = default(bool), string smbversion = default(string), bool snapshotAsVolumeChain = default(bool), bool sparse = default(bool), string storage = default(string), string subdir = default(string), bool taggedOnly = default(bool), string target = default(string), string thinpool = default(string), string type = default(string), string username = default(string), string vgname = default(string), string zfsBasePath = default(string)) + { + // to ensure "storage" is required (not null) + if (storage == null) + { + throw new ArgumentNullException("storage is a required property for CreateStorageRequest and cannot be null"); + } + this.Storage = storage; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateStorageRequest and cannot be null"); + } + this.Type = type; + this.Authsupported = authsupported; + this.Base = varBase; + this.Blocksize = blocksize; + this.Bwlimit = bwlimit; + this.ComstarHg = comstarHg; + this.ComstarTg = comstarTg; + this.Content = content; + this.ContentDirs = contentDirs; + this.CreateBasePath = createBasePath; + this.CreateSubdirs = createSubdirs; + this.DataPool = dataPool; + this.Datastore = datastore; + this.Disable = disable; + this.Domain = domain; + this.EncryptionKey = encryptionKey; + this.Export = export; + this.Fingerprint = fingerprint; + this.Format = format; + this.FsName = fsName; + this.Fuse = fuse; + this.IsMountpoint = isMountpoint; + this.Iscsiprovider = iscsiprovider; + this.Keyring = keyring; + this.Krbd = krbd; + this.LioTpg = lioTpg; + this.MasterPubkey = masterPubkey; + this.MaxProtectedBackups = maxProtectedBackups; + this.Mkdir = mkdir; + this.Monhost = monhost; + this.Mountpoint = mountpoint; + this.Namespace = varNamespace; + this.Nocow = nocow; + this.Nodes = nodes; + this.Nowritecache = nowritecache; + this.Options = options; + this.Password = password; + this.Path = path; + this.Pool = pool; + this.Port = port; + this.Portal = portal; + this.Preallocation = preallocation; + this.PruneBackups = pruneBackups; + this.Saferemove = saferemove; + this.SaferemoveStepsize = saferemoveStepsize; + this.SaferemoveThroughput = saferemoveThroughput; + this.Server = server; + this.Share = share; + this.Shared = shared; + this.SkipCertVerification = skipCertVerification; + this.Smbversion = smbversion; + this.SnapshotAsVolumeChain = snapshotAsVolumeChain; + this.Sparse = sparse; + this.Subdir = subdir; + this.TaggedOnly = taggedOnly; + this.Target = target; + this.Thinpool = thinpool; + this.Username = username; + this.Vgname = vgname; + this.ZfsBasePath = zfsBasePath; + } + + /// + /// Gets or Sets Authsupported + /// + [DataMember(Name = "authsupported", EmitDefaultValue = false)] + public string Authsupported { get; set; } + + /// + /// Gets or Sets Base + /// + [DataMember(Name = "base", EmitDefaultValue = false)] + public string Base { get; set; } + + /// + /// Gets or Sets Blocksize + /// + [DataMember(Name = "blocksize", EmitDefaultValue = false)] + public string Blocksize { get; set; } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public string Bwlimit { get; set; } + + /// + /// Gets or Sets ComstarHg + /// + [DataMember(Name = "comstar_hg", EmitDefaultValue = false)] + public string ComstarHg { get; set; } + + /// + /// Gets or Sets ComstarTg + /// + [DataMember(Name = "comstar_tg", EmitDefaultValue = false)] + public string ComstarTg { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public string Content { get; set; } + + /// + /// Gets or Sets ContentDirs + /// + [DataMember(Name = "content-dirs", EmitDefaultValue = false)] + public string ContentDirs { get; set; } + + /// + /// Gets or Sets CreateBasePath + /// + [DataMember(Name = "create-base-path", EmitDefaultValue = true)] + public bool CreateBasePath { get; set; } + + /// + /// Gets or Sets CreateSubdirs + /// + [DataMember(Name = "create-subdirs", EmitDefaultValue = true)] + public bool CreateSubdirs { get; set; } + + /// + /// Gets or Sets DataPool + /// + [DataMember(Name = "data-pool", EmitDefaultValue = false)] + public string DataPool { get; set; } + + /// + /// Gets or Sets Datastore + /// + [DataMember(Name = "datastore", EmitDefaultValue = false)] + public string Datastore { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", EmitDefaultValue = false)] + public string Domain { get; set; } + + /// + /// Gets or Sets EncryptionKey + /// + [DataMember(Name = "encryption-key", EmitDefaultValue = false)] + public string EncryptionKey { get; set; } + + /// + /// Gets or Sets Export + /// + [DataMember(Name = "export", EmitDefaultValue = false)] + public string Export { get; set; } + + /// + /// Gets or Sets Fingerprint + /// + [DataMember(Name = "fingerprint", EmitDefaultValue = false)] + public string Fingerprint { get; set; } + + /// + /// Gets or Sets Format + /// + [DataMember(Name = "format", EmitDefaultValue = false)] + public string Format { get; set; } + + /// + /// Gets or Sets FsName + /// + [DataMember(Name = "fs-name", EmitDefaultValue = false)] + public string FsName { get; set; } + + /// + /// Gets or Sets Fuse + /// + [DataMember(Name = "fuse", EmitDefaultValue = true)] + public bool Fuse { get; set; } + + /// + /// Gets or Sets IsMountpoint + /// + [DataMember(Name = "is_mountpoint", EmitDefaultValue = false)] + public string IsMountpoint { get; set; } + + /// + /// Gets or Sets Iscsiprovider + /// + [DataMember(Name = "iscsiprovider", EmitDefaultValue = false)] + public string Iscsiprovider { get; set; } + + /// + /// Gets or Sets Keyring + /// + [DataMember(Name = "keyring", EmitDefaultValue = false)] + public string Keyring { get; set; } + + /// + /// Gets or Sets Krbd + /// + [DataMember(Name = "krbd", EmitDefaultValue = true)] + public bool Krbd { get; set; } + + /// + /// Gets or Sets LioTpg + /// + [DataMember(Name = "lio_tpg", EmitDefaultValue = false)] + public string LioTpg { get; set; } + + /// + /// Gets or Sets MasterPubkey + /// + [DataMember(Name = "master-pubkey", EmitDefaultValue = false)] + public string MasterPubkey { get; set; } + + /// + /// Gets or Sets MaxProtectedBackups + /// + [DataMember(Name = "max-protected-backups", EmitDefaultValue = false)] + public int MaxProtectedBackups { get; set; } + + /// + /// Gets or Sets Mkdir + /// + [DataMember(Name = "mkdir", EmitDefaultValue = true)] + public bool Mkdir { get; set; } + + /// + /// Gets or Sets Monhost + /// + [DataMember(Name = "monhost", EmitDefaultValue = false)] + public string Monhost { get; set; } + + /// + /// Gets or Sets Mountpoint + /// + [DataMember(Name = "mountpoint", EmitDefaultValue = false)] + public string Mountpoint { get; set; } + + /// + /// Gets or Sets Namespace + /// + [DataMember(Name = "namespace", EmitDefaultValue = false)] + public string Namespace { get; set; } + + /// + /// Gets or Sets Nocow + /// + [DataMember(Name = "nocow", EmitDefaultValue = true)] + public bool Nocow { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Nowritecache + /// + [DataMember(Name = "nowritecache", EmitDefaultValue = true)] + public bool Nowritecache { get; set; } + + /// + /// Gets or Sets Options + /// + [DataMember(Name = "options", EmitDefaultValue = false)] + public string Options { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Path + /// + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public int Port { get; set; } + + /// + /// Gets or Sets Portal + /// + [DataMember(Name = "portal", EmitDefaultValue = false)] + public string Portal { get; set; } + + /// + /// Gets or Sets Preallocation + /// + [DataMember(Name = "preallocation", EmitDefaultValue = false)] + public string Preallocation { get; set; } + + /// + /// Gets or Sets PruneBackups + /// + [DataMember(Name = "prune-backups", EmitDefaultValue = false)] + public string PruneBackups { get; set; } + + /// + /// Gets or Sets Saferemove + /// + [DataMember(Name = "saferemove", EmitDefaultValue = true)] + public bool Saferemove { get; set; } + + /// + /// Gets or Sets SaferemoveStepsize + /// + [DataMember(Name = "saferemove-stepsize", EmitDefaultValue = false)] + public int SaferemoveStepsize { get; set; } + + /// + /// Gets or Sets SaferemoveThroughput + /// + [DataMember(Name = "saferemove_throughput", EmitDefaultValue = false)] + public string SaferemoveThroughput { get; set; } + + /// + /// Gets or Sets Server + /// + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Gets or Sets Share + /// + [DataMember(Name = "share", EmitDefaultValue = false)] + public string Share { get; set; } + + /// + /// Gets or Sets Shared + /// + [DataMember(Name = "shared", EmitDefaultValue = true)] + public bool Shared { get; set; } + + /// + /// Gets or Sets SkipCertVerification + /// + [DataMember(Name = "skip-cert-verification", EmitDefaultValue = true)] + public bool SkipCertVerification { get; set; } + + /// + /// Gets or Sets Smbversion + /// + [DataMember(Name = "smbversion", EmitDefaultValue = false)] + public string Smbversion { get; set; } + + /// + /// Gets or Sets SnapshotAsVolumeChain + /// + [DataMember(Name = "snapshot-as-volume-chain", EmitDefaultValue = true)] + public bool SnapshotAsVolumeChain { get; set; } + + /// + /// Gets or Sets Sparse + /// + [DataMember(Name = "sparse", EmitDefaultValue = true)] + public bool Sparse { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", IsRequired = true, EmitDefaultValue = true)] + public string Storage { get; set; } + + /// + /// Gets or Sets Subdir + /// + [DataMember(Name = "subdir", EmitDefaultValue = false)] + public string Subdir { get; set; } + + /// + /// Gets or Sets TaggedOnly + /// + [DataMember(Name = "tagged_only", EmitDefaultValue = true)] + public bool TaggedOnly { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", EmitDefaultValue = false)] + public string Target { get; set; } + + /// + /// Gets or Sets Thinpool + /// + [DataMember(Name = "thinpool", EmitDefaultValue = false)] + public string Thinpool { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", EmitDefaultValue = false)] + public string Username { get; set; } + + /// + /// Gets or Sets Vgname + /// + [DataMember(Name = "vgname", EmitDefaultValue = false)] + public string Vgname { get; set; } + + /// + /// Gets or Sets ZfsBasePath + /// + [DataMember(Name = "zfs-base-path", EmitDefaultValue = false)] + public string ZfsBasePath { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateStorageRequest {\n"); + sb.Append(" Authsupported: ").Append(Authsupported).Append("\n"); + sb.Append(" Base: ").Append(Base).Append("\n"); + sb.Append(" Blocksize: ").Append(Blocksize).Append("\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" ComstarHg: ").Append(ComstarHg).Append("\n"); + sb.Append(" ComstarTg: ").Append(ComstarTg).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" ContentDirs: ").Append(ContentDirs).Append("\n"); + sb.Append(" CreateBasePath: ").Append(CreateBasePath).Append("\n"); + sb.Append(" CreateSubdirs: ").Append(CreateSubdirs).Append("\n"); + sb.Append(" DataPool: ").Append(DataPool).Append("\n"); + sb.Append(" Datastore: ").Append(Datastore).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" EncryptionKey: ").Append(EncryptionKey).Append("\n"); + sb.Append(" Export: ").Append(Export).Append("\n"); + sb.Append(" Fingerprint: ").Append(Fingerprint).Append("\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" FsName: ").Append(FsName).Append("\n"); + sb.Append(" Fuse: ").Append(Fuse).Append("\n"); + sb.Append(" IsMountpoint: ").Append(IsMountpoint).Append("\n"); + sb.Append(" Iscsiprovider: ").Append(Iscsiprovider).Append("\n"); + sb.Append(" Keyring: ").Append(Keyring).Append("\n"); + sb.Append(" Krbd: ").Append(Krbd).Append("\n"); + sb.Append(" LioTpg: ").Append(LioTpg).Append("\n"); + sb.Append(" MasterPubkey: ").Append(MasterPubkey).Append("\n"); + sb.Append(" MaxProtectedBackups: ").Append(MaxProtectedBackups).Append("\n"); + sb.Append(" Mkdir: ").Append(Mkdir).Append("\n"); + sb.Append(" Monhost: ").Append(Monhost).Append("\n"); + sb.Append(" Mountpoint: ").Append(Mountpoint).Append("\n"); + sb.Append(" Namespace: ").Append(Namespace).Append("\n"); + sb.Append(" Nocow: ").Append(Nocow).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Nowritecache: ").Append(Nowritecache).Append("\n"); + sb.Append(" Options: ").Append(Options).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Portal: ").Append(Portal).Append("\n"); + sb.Append(" Preallocation: ").Append(Preallocation).Append("\n"); + sb.Append(" PruneBackups: ").Append(PruneBackups).Append("\n"); + sb.Append(" Saferemove: ").Append(Saferemove).Append("\n"); + sb.Append(" SaferemoveStepsize: ").Append(SaferemoveStepsize).Append("\n"); + sb.Append(" SaferemoveThroughput: ").Append(SaferemoveThroughput).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Share: ").Append(Share).Append("\n"); + sb.Append(" Shared: ").Append(Shared).Append("\n"); + sb.Append(" SkipCertVerification: ").Append(SkipCertVerification).Append("\n"); + sb.Append(" Smbversion: ").Append(Smbversion).Append("\n"); + sb.Append(" SnapshotAsVolumeChain: ").Append(SnapshotAsVolumeChain).Append("\n"); + sb.Append(" Sparse: ").Append(Sparse).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Subdir: ").Append(Subdir).Append("\n"); + sb.Append(" TaggedOnly: ").Append(TaggedOnly).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" Thinpool: ").Append(Thinpool).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append(" Vgname: ").Append(Vgname).Append("\n"); + sb.Append(" ZfsBasePath: ").Append(ZfsBasePath).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateVMFirewallIPSetRequest.cs b/src/ProxmoxSharp/Model/CreateVMFirewallIPSetRequest.cs new file mode 100644 index 0000000..737e253 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateVMFirewallIPSetRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateVMFirewallIPSetRequest + /// + [DataContract(Name = "CreateVMFirewallIPSetRequest")] + public partial class CreateVMFirewallIPSetRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateVMFirewallIPSetRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// digest. + /// name (required). + /// rename. + public CreateVMFirewallIPSetRequest(string comment = default(string), string digest = default(string), string name = default(string), string rename = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateVMFirewallIPSetRequest and cannot be null"); + } + this.Name = name; + this.Comment = comment; + this.Digest = digest; + this.Rename = rename; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Rename + /// + [DataMember(Name = "rename", EmitDefaultValue = false)] + public string Rename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateVMFirewallIPSetRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Rename: ").Append(Rename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateVMFirewallRuleRequest.cs b/src/ProxmoxSharp/Model/CreateVMFirewallRuleRequest.cs new file mode 100644 index 0000000..8d7bc98 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateVMFirewallRuleRequest.cs @@ -0,0 +1,224 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateVMFirewallRuleRequest + /// + [DataContract(Name = "CreateVMFirewallRuleRequest")] + public partial class CreateVMFirewallRuleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateVMFirewallRuleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// action (required). + /// comment. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// pos. + /// proto. + /// source. + /// sport. + /// type (required). + public CreateVMFirewallRuleRequest(string action = default(string), string comment = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int pos = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + // to ensure "action" is required (not null) + if (action == null) + { + throw new ArgumentNullException("action is a required property for CreateVMFirewallRuleRequest and cannot be null"); + } + this.Action = action; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for CreateVMFirewallRuleRequest and cannot be null"); + } + this.Type = type; + this.Comment = comment; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Pos = pos; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Pos + /// + [DataMember(Name = "pos", EmitDefaultValue = false)] + public int Pos { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateVMFirewallRuleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Pos: ").Append(Pos).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateVMRequest.cs b/src/ProxmoxSharp/Model/CreateVMRequest.cs new file mode 100644 index 0000000..8d0c5ca --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateVMRequest.cs @@ -0,0 +1,4300 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateVMRequest + /// + [DataContract(Name = "CreateVMRequest")] + public partial class CreateVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateVMRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// acpi. + /// affinity. + /// agent. + /// allowKsm. + /// amdSev. + /// arch. + /// archive. + /// args. + /// audio0. + /// autostart. + /// balloon. + /// bios. + /// boot. + /// bootdisk. + /// bwlimit. + /// cdrom. + /// cicustom. + /// cipassword. + /// citype. + /// ciupgrade. + /// ciuser. + /// cores. + /// cpu. + /// cpulimit. + /// cpuunits. + /// description. + /// efidisk0. + /// force. + /// freeze. + /// haManaged. + /// hookscript. + /// hostpci0. + /// hostpci1. + /// hostpci2. + /// hostpci3. + /// hostpci4. + /// hostpci5. + /// hostpci6. + /// hostpci7. + /// hostpci8. + /// hostpci9. + /// hostpci10. + /// hostpci11. + /// hostpci12. + /// hostpci13. + /// hostpci14. + /// hostpci15. + /// hostpci16. + /// hostpci17. + /// hostpci18. + /// hostpci19. + /// hostpci20. + /// hostpci21. + /// hostpci22. + /// hostpci23. + /// hostpci24. + /// hostpci25. + /// hostpci26. + /// hostpci27. + /// hostpci28. + /// hostpci29. + /// hotplug. + /// hugepages. + /// ide0. + /// ide1. + /// ide2. + /// ide3. + /// ide4. + /// ide5. + /// ide6. + /// ide7. + /// ide8. + /// ide9. + /// ide10. + /// ide11. + /// ide12. + /// ide13. + /// ide14. + /// ide15. + /// ide16. + /// ide17. + /// ide18. + /// ide19. + /// ide20. + /// ide21. + /// ide22. + /// ide23. + /// ide24. + /// ide25. + /// ide26. + /// ide27. + /// ide28. + /// ide29. + /// importWorkingStorage. + /// intelTdx. + /// ipconfig0. + /// ipconfig1. + /// ipconfig2. + /// ipconfig3. + /// ipconfig4. + /// ipconfig5. + /// ipconfig6. + /// ipconfig7. + /// ipconfig8. + /// ipconfig9. + /// ipconfig10. + /// ipconfig11. + /// ipconfig12. + /// ipconfig13. + /// ipconfig14. + /// ipconfig15. + /// ipconfig16. + /// ipconfig17. + /// ipconfig18. + /// ipconfig19. + /// ipconfig20. + /// ipconfig21. + /// ipconfig22. + /// ipconfig23. + /// ipconfig24. + /// ipconfig25. + /// ipconfig26. + /// ipconfig27. + /// ipconfig28. + /// ipconfig29. + /// ivshmem. + /// keephugepages. + /// keyboard. + /// kvm. + /// liveRestore. + /// localtime. + /// varLock. + /// machine. + /// memory. + /// migrateDowntime. + /// migrateSpeed. + /// name. + /// nameserver. + /// net0. + /// net1. + /// net2. + /// net3. + /// net4. + /// net5. + /// net6. + /// net7. + /// net8. + /// net9. + /// net10. + /// net11. + /// net12. + /// net13. + /// net14. + /// net15. + /// net16. + /// net17. + /// net18. + /// net19. + /// net20. + /// net21. + /// net22. + /// net23. + /// net24. + /// net25. + /// net26. + /// net27. + /// net28. + /// net29. + /// numa. + /// numa0. + /// numa1. + /// numa2. + /// numa3. + /// numa4. + /// numa5. + /// numa6. + /// numa7. + /// numa8. + /// numa9. + /// numa10. + /// numa11. + /// numa12. + /// numa13. + /// numa14. + /// numa15. + /// numa16. + /// numa17. + /// numa18. + /// numa19. + /// numa20. + /// numa21. + /// numa22. + /// numa23. + /// numa24. + /// numa25. + /// numa26. + /// numa27. + /// numa28. + /// numa29. + /// onboot. + /// ostype. + /// parallel0. + /// parallel1. + /// parallel2. + /// parallel3. + /// parallel4. + /// parallel5. + /// parallel6. + /// parallel7. + /// parallel8. + /// parallel9. + /// parallel10. + /// parallel11. + /// parallel12. + /// parallel13. + /// parallel14. + /// parallel15. + /// parallel16. + /// parallel17. + /// parallel18. + /// parallel19. + /// parallel20. + /// parallel21. + /// parallel22. + /// parallel23. + /// parallel24. + /// parallel25. + /// parallel26. + /// parallel27. + /// parallel28. + /// parallel29. + /// pool. + /// protection. + /// reboot. + /// rng0. + /// sata0. + /// sata1. + /// sata2. + /// sata3. + /// sata4. + /// sata5. + /// sata6. + /// sata7. + /// sata8. + /// sata9. + /// sata10. + /// sata11. + /// sata12. + /// sata13. + /// sata14. + /// sata15. + /// sata16. + /// sata17. + /// sata18. + /// sata19. + /// sata20. + /// sata21. + /// sata22. + /// sata23. + /// sata24. + /// sata25. + /// sata26. + /// sata27. + /// sata28. + /// sata29. + /// scsi0. + /// scsi1. + /// scsi2. + /// scsi3. + /// scsi4. + /// scsi5. + /// scsi6. + /// scsi7. + /// scsi8. + /// scsi9. + /// scsi10. + /// scsi11. + /// scsi12. + /// scsi13. + /// scsi14. + /// scsi15. + /// scsi16. + /// scsi17. + /// scsi18. + /// scsi19. + /// scsi20. + /// scsi21. + /// scsi22. + /// scsi23. + /// scsi24. + /// scsi25. + /// scsi26. + /// scsi27. + /// scsi28. + /// scsi29. + /// scsihw. + /// searchdomain. + /// serial0. + /// serial1. + /// serial2. + /// serial3. + /// serial4. + /// serial5. + /// serial6. + /// serial7. + /// serial8. + /// serial9. + /// serial10. + /// serial11. + /// serial12. + /// serial13. + /// serial14. + /// serial15. + /// serial16. + /// serial17. + /// serial18. + /// serial19. + /// serial20. + /// serial21. + /// serial22. + /// serial23. + /// serial24. + /// serial25. + /// serial26. + /// serial27. + /// serial28. + /// serial29. + /// shares. + /// smbios1. + /// smp. + /// sockets. + /// spiceEnhancements. + /// sshkeys. + /// start. + /// startdate. + /// startup. + /// storage. + /// tablet. + /// tags. + /// tdf. + /// template. + /// tpmstate0. + /// unique. + /// unused0. + /// unused1. + /// unused2. + /// unused3. + /// unused4. + /// unused5. + /// unused6. + /// unused7. + /// unused8. + /// unused9. + /// unused10. + /// unused11. + /// unused12. + /// unused13. + /// unused14. + /// unused15. + /// unused16. + /// unused17. + /// unused18. + /// unused19. + /// unused20. + /// unused21. + /// unused22. + /// unused23. + /// unused24. + /// unused25. + /// unused26. + /// unused27. + /// unused28. + /// unused29. + /// usb0. + /// usb1. + /// usb2. + /// usb3. + /// usb4. + /// usb5. + /// usb6. + /// usb7. + /// usb8. + /// usb9. + /// usb10. + /// usb11. + /// usb12. + /// usb13. + /// usb14. + /// usb15. + /// usb16. + /// usb17. + /// usb18. + /// usb19. + /// usb20. + /// usb21. + /// usb22. + /// usb23. + /// usb24. + /// usb25. + /// usb26. + /// usb27. + /// usb28. + /// usb29. + /// vcpus. + /// vga. + /// virtio0. + /// virtio1. + /// virtio2. + /// virtio3. + /// virtio4. + /// virtio5. + /// virtio6. + /// virtio7. + /// virtio8. + /// virtio9. + /// virtio10. + /// virtio11. + /// virtio12. + /// virtio13. + /// virtio14. + /// virtio15. + /// virtio16. + /// virtio17. + /// virtio18. + /// virtio19. + /// virtio20. + /// virtio21. + /// virtio22. + /// virtio23. + /// virtio24. + /// virtio25. + /// virtio26. + /// virtio27. + /// virtio28. + /// virtio29. + /// virtiofs0. + /// virtiofs1. + /// virtiofs2. + /// virtiofs3. + /// virtiofs4. + /// virtiofs5. + /// virtiofs6. + /// virtiofs7. + /// virtiofs8. + /// virtiofs9. + /// virtiofs10. + /// virtiofs11. + /// virtiofs12. + /// virtiofs13. + /// virtiofs14. + /// virtiofs15. + /// virtiofs16. + /// virtiofs17. + /// virtiofs18. + /// virtiofs19. + /// virtiofs20. + /// virtiofs21. + /// virtiofs22. + /// virtiofs23. + /// virtiofs24. + /// virtiofs25. + /// virtiofs26. + /// virtiofs27. + /// virtiofs28. + /// virtiofs29. + /// vmgenid. + /// vmid (required). + /// vmstatestorage. + /// watchdog. + public CreateVMRequest(bool acpi = default(bool), string affinity = default(string), string agent = default(string), bool allowKsm = default(bool), string amdSev = default(string), string arch = default(string), string archive = default(string), string args = default(string), string audio0 = default(string), bool autostart = default(bool), int balloon = default(int), string bios = default(string), string boot = default(string), string bootdisk = default(string), int bwlimit = default(int), string cdrom = default(string), string cicustom = default(string), string cipassword = default(string), string citype = default(string), bool ciupgrade = default(bool), string ciuser = default(string), int cores = default(int), string cpu = default(string), decimal cpulimit = default(decimal), int cpuunits = default(int), string description = default(string), string efidisk0 = default(string), bool force = default(bool), bool freeze = default(bool), bool haManaged = default(bool), string hookscript = default(string), string hostpci0 = default(string), string hostpci1 = default(string), string hostpci2 = default(string), string hostpci3 = default(string), string hostpci4 = default(string), string hostpci5 = default(string), string hostpci6 = default(string), string hostpci7 = default(string), string hostpci8 = default(string), string hostpci9 = default(string), string hostpci10 = default(string), string hostpci11 = default(string), string hostpci12 = default(string), string hostpci13 = default(string), string hostpci14 = default(string), string hostpci15 = default(string), string hostpci16 = default(string), string hostpci17 = default(string), string hostpci18 = default(string), string hostpci19 = default(string), string hostpci20 = default(string), string hostpci21 = default(string), string hostpci22 = default(string), string hostpci23 = default(string), string hostpci24 = default(string), string hostpci25 = default(string), string hostpci26 = default(string), string hostpci27 = default(string), string hostpci28 = default(string), string hostpci29 = default(string), string hotplug = default(string), string hugepages = default(string), string ide0 = default(string), string ide1 = default(string), string ide2 = default(string), string ide3 = default(string), string ide4 = default(string), string ide5 = default(string), string ide6 = default(string), string ide7 = default(string), string ide8 = default(string), string ide9 = default(string), string ide10 = default(string), string ide11 = default(string), string ide12 = default(string), string ide13 = default(string), string ide14 = default(string), string ide15 = default(string), string ide16 = default(string), string ide17 = default(string), string ide18 = default(string), string ide19 = default(string), string ide20 = default(string), string ide21 = default(string), string ide22 = default(string), string ide23 = default(string), string ide24 = default(string), string ide25 = default(string), string ide26 = default(string), string ide27 = default(string), string ide28 = default(string), string ide29 = default(string), string importWorkingStorage = default(string), string intelTdx = default(string), string ipconfig0 = default(string), string ipconfig1 = default(string), string ipconfig2 = default(string), string ipconfig3 = default(string), string ipconfig4 = default(string), string ipconfig5 = default(string), string ipconfig6 = default(string), string ipconfig7 = default(string), string ipconfig8 = default(string), string ipconfig9 = default(string), string ipconfig10 = default(string), string ipconfig11 = default(string), string ipconfig12 = default(string), string ipconfig13 = default(string), string ipconfig14 = default(string), string ipconfig15 = default(string), string ipconfig16 = default(string), string ipconfig17 = default(string), string ipconfig18 = default(string), string ipconfig19 = default(string), string ipconfig20 = default(string), string ipconfig21 = default(string), string ipconfig22 = default(string), string ipconfig23 = default(string), string ipconfig24 = default(string), string ipconfig25 = default(string), string ipconfig26 = default(string), string ipconfig27 = default(string), string ipconfig28 = default(string), string ipconfig29 = default(string), string ivshmem = default(string), bool keephugepages = default(bool), string keyboard = default(string), bool kvm = default(bool), bool liveRestore = default(bool), bool localtime = default(bool), string varLock = default(string), string machine = default(string), string memory = default(string), decimal migrateDowntime = default(decimal), int migrateSpeed = default(int), string name = default(string), string nameserver = default(string), string net0 = default(string), string net1 = default(string), string net2 = default(string), string net3 = default(string), string net4 = default(string), string net5 = default(string), string net6 = default(string), string net7 = default(string), string net8 = default(string), string net9 = default(string), string net10 = default(string), string net11 = default(string), string net12 = default(string), string net13 = default(string), string net14 = default(string), string net15 = default(string), string net16 = default(string), string net17 = default(string), string net18 = default(string), string net19 = default(string), string net20 = default(string), string net21 = default(string), string net22 = default(string), string net23 = default(string), string net24 = default(string), string net25 = default(string), string net26 = default(string), string net27 = default(string), string net28 = default(string), string net29 = default(string), bool numa = default(bool), string numa0 = default(string), string numa1 = default(string), string numa2 = default(string), string numa3 = default(string), string numa4 = default(string), string numa5 = default(string), string numa6 = default(string), string numa7 = default(string), string numa8 = default(string), string numa9 = default(string), string numa10 = default(string), string numa11 = default(string), string numa12 = default(string), string numa13 = default(string), string numa14 = default(string), string numa15 = default(string), string numa16 = default(string), string numa17 = default(string), string numa18 = default(string), string numa19 = default(string), string numa20 = default(string), string numa21 = default(string), string numa22 = default(string), string numa23 = default(string), string numa24 = default(string), string numa25 = default(string), string numa26 = default(string), string numa27 = default(string), string numa28 = default(string), string numa29 = default(string), bool onboot = default(bool), string ostype = default(string), string parallel0 = default(string), string parallel1 = default(string), string parallel2 = default(string), string parallel3 = default(string), string parallel4 = default(string), string parallel5 = default(string), string parallel6 = default(string), string parallel7 = default(string), string parallel8 = default(string), string parallel9 = default(string), string parallel10 = default(string), string parallel11 = default(string), string parallel12 = default(string), string parallel13 = default(string), string parallel14 = default(string), string parallel15 = default(string), string parallel16 = default(string), string parallel17 = default(string), string parallel18 = default(string), string parallel19 = default(string), string parallel20 = default(string), string parallel21 = default(string), string parallel22 = default(string), string parallel23 = default(string), string parallel24 = default(string), string parallel25 = default(string), string parallel26 = default(string), string parallel27 = default(string), string parallel28 = default(string), string parallel29 = default(string), string pool = default(string), bool protection = default(bool), bool reboot = default(bool), string rng0 = default(string), string sata0 = default(string), string sata1 = default(string), string sata2 = default(string), string sata3 = default(string), string sata4 = default(string), string sata5 = default(string), string sata6 = default(string), string sata7 = default(string), string sata8 = default(string), string sata9 = default(string), string sata10 = default(string), string sata11 = default(string), string sata12 = default(string), string sata13 = default(string), string sata14 = default(string), string sata15 = default(string), string sata16 = default(string), string sata17 = default(string), string sata18 = default(string), string sata19 = default(string), string sata20 = default(string), string sata21 = default(string), string sata22 = default(string), string sata23 = default(string), string sata24 = default(string), string sata25 = default(string), string sata26 = default(string), string sata27 = default(string), string sata28 = default(string), string sata29 = default(string), string scsi0 = default(string), string scsi1 = default(string), string scsi2 = default(string), string scsi3 = default(string), string scsi4 = default(string), string scsi5 = default(string), string scsi6 = default(string), string scsi7 = default(string), string scsi8 = default(string), string scsi9 = default(string), string scsi10 = default(string), string scsi11 = default(string), string scsi12 = default(string), string scsi13 = default(string), string scsi14 = default(string), string scsi15 = default(string), string scsi16 = default(string), string scsi17 = default(string), string scsi18 = default(string), string scsi19 = default(string), string scsi20 = default(string), string scsi21 = default(string), string scsi22 = default(string), string scsi23 = default(string), string scsi24 = default(string), string scsi25 = default(string), string scsi26 = default(string), string scsi27 = default(string), string scsi28 = default(string), string scsi29 = default(string), string scsihw = default(string), string searchdomain = default(string), string serial0 = default(string), string serial1 = default(string), string serial2 = default(string), string serial3 = default(string), string serial4 = default(string), string serial5 = default(string), string serial6 = default(string), string serial7 = default(string), string serial8 = default(string), string serial9 = default(string), string serial10 = default(string), string serial11 = default(string), string serial12 = default(string), string serial13 = default(string), string serial14 = default(string), string serial15 = default(string), string serial16 = default(string), string serial17 = default(string), string serial18 = default(string), string serial19 = default(string), string serial20 = default(string), string serial21 = default(string), string serial22 = default(string), string serial23 = default(string), string serial24 = default(string), string serial25 = default(string), string serial26 = default(string), string serial27 = default(string), string serial28 = default(string), string serial29 = default(string), int shares = default(int), string smbios1 = default(string), int smp = default(int), int sockets = default(int), string spiceEnhancements = default(string), string sshkeys = default(string), bool start = default(bool), string startdate = default(string), string startup = default(string), string storage = default(string), bool tablet = default(bool), string tags = default(string), bool tdf = default(bool), bool template = default(bool), string tpmstate0 = default(string), bool unique = default(bool), string unused0 = default(string), string unused1 = default(string), string unused2 = default(string), string unused3 = default(string), string unused4 = default(string), string unused5 = default(string), string unused6 = default(string), string unused7 = default(string), string unused8 = default(string), string unused9 = default(string), string unused10 = default(string), string unused11 = default(string), string unused12 = default(string), string unused13 = default(string), string unused14 = default(string), string unused15 = default(string), string unused16 = default(string), string unused17 = default(string), string unused18 = default(string), string unused19 = default(string), string unused20 = default(string), string unused21 = default(string), string unused22 = default(string), string unused23 = default(string), string unused24 = default(string), string unused25 = default(string), string unused26 = default(string), string unused27 = default(string), string unused28 = default(string), string unused29 = default(string), string usb0 = default(string), string usb1 = default(string), string usb2 = default(string), string usb3 = default(string), string usb4 = default(string), string usb5 = default(string), string usb6 = default(string), string usb7 = default(string), string usb8 = default(string), string usb9 = default(string), string usb10 = default(string), string usb11 = default(string), string usb12 = default(string), string usb13 = default(string), string usb14 = default(string), string usb15 = default(string), string usb16 = default(string), string usb17 = default(string), string usb18 = default(string), string usb19 = default(string), string usb20 = default(string), string usb21 = default(string), string usb22 = default(string), string usb23 = default(string), string usb24 = default(string), string usb25 = default(string), string usb26 = default(string), string usb27 = default(string), string usb28 = default(string), string usb29 = default(string), int vcpus = default(int), string vga = default(string), string virtio0 = default(string), string virtio1 = default(string), string virtio2 = default(string), string virtio3 = default(string), string virtio4 = default(string), string virtio5 = default(string), string virtio6 = default(string), string virtio7 = default(string), string virtio8 = default(string), string virtio9 = default(string), string virtio10 = default(string), string virtio11 = default(string), string virtio12 = default(string), string virtio13 = default(string), string virtio14 = default(string), string virtio15 = default(string), string virtio16 = default(string), string virtio17 = default(string), string virtio18 = default(string), string virtio19 = default(string), string virtio20 = default(string), string virtio21 = default(string), string virtio22 = default(string), string virtio23 = default(string), string virtio24 = default(string), string virtio25 = default(string), string virtio26 = default(string), string virtio27 = default(string), string virtio28 = default(string), string virtio29 = default(string), string virtiofs0 = default(string), string virtiofs1 = default(string), string virtiofs2 = default(string), string virtiofs3 = default(string), string virtiofs4 = default(string), string virtiofs5 = default(string), string virtiofs6 = default(string), string virtiofs7 = default(string), string virtiofs8 = default(string), string virtiofs9 = default(string), string virtiofs10 = default(string), string virtiofs11 = default(string), string virtiofs12 = default(string), string virtiofs13 = default(string), string virtiofs14 = default(string), string virtiofs15 = default(string), string virtiofs16 = default(string), string virtiofs17 = default(string), string virtiofs18 = default(string), string virtiofs19 = default(string), string virtiofs20 = default(string), string virtiofs21 = default(string), string virtiofs22 = default(string), string virtiofs23 = default(string), string virtiofs24 = default(string), string virtiofs25 = default(string), string virtiofs26 = default(string), string virtiofs27 = default(string), string virtiofs28 = default(string), string virtiofs29 = default(string), string vmgenid = default(string), int vmid = default(int), string vmstatestorage = default(string), string watchdog = default(string)) + { + this.Vmid = vmid; + this.Acpi = acpi; + this.Affinity = affinity; + this.Agent = agent; + this.AllowKsm = allowKsm; + this.AmdSev = amdSev; + this.Arch = arch; + this.Archive = archive; + this.Args = args; + this.Audio0 = audio0; + this.Autostart = autostart; + this.Balloon = balloon; + this.Bios = bios; + this.Boot = boot; + this.Bootdisk = bootdisk; + this.Bwlimit = bwlimit; + this.Cdrom = cdrom; + this.Cicustom = cicustom; + this.Cipassword = cipassword; + this.Citype = citype; + this.Ciupgrade = ciupgrade; + this.Ciuser = ciuser; + this.Cores = cores; + this.Cpu = cpu; + this.Cpulimit = cpulimit; + this.Cpuunits = cpuunits; + this.Description = description; + this.Efidisk0 = efidisk0; + this.Force = force; + this.Freeze = freeze; + this.HaManaged = haManaged; + this.Hookscript = hookscript; + this.Hostpci0 = hostpci0; + this.Hostpci1 = hostpci1; + this.Hostpci2 = hostpci2; + this.Hostpci3 = hostpci3; + this.Hostpci4 = hostpci4; + this.Hostpci5 = hostpci5; + this.Hostpci6 = hostpci6; + this.Hostpci7 = hostpci7; + this.Hostpci8 = hostpci8; + this.Hostpci9 = hostpci9; + this.Hostpci10 = hostpci10; + this.Hostpci11 = hostpci11; + this.Hostpci12 = hostpci12; + this.Hostpci13 = hostpci13; + this.Hostpci14 = hostpci14; + this.Hostpci15 = hostpci15; + this.Hostpci16 = hostpci16; + this.Hostpci17 = hostpci17; + this.Hostpci18 = hostpci18; + this.Hostpci19 = hostpci19; + this.Hostpci20 = hostpci20; + this.Hostpci21 = hostpci21; + this.Hostpci22 = hostpci22; + this.Hostpci23 = hostpci23; + this.Hostpci24 = hostpci24; + this.Hostpci25 = hostpci25; + this.Hostpci26 = hostpci26; + this.Hostpci27 = hostpci27; + this.Hostpci28 = hostpci28; + this.Hostpci29 = hostpci29; + this.Hotplug = hotplug; + this.Hugepages = hugepages; + this.Ide0 = ide0; + this.Ide1 = ide1; + this.Ide2 = ide2; + this.Ide3 = ide3; + this.Ide4 = ide4; + this.Ide5 = ide5; + this.Ide6 = ide6; + this.Ide7 = ide7; + this.Ide8 = ide8; + this.Ide9 = ide9; + this.Ide10 = ide10; + this.Ide11 = ide11; + this.Ide12 = ide12; + this.Ide13 = ide13; + this.Ide14 = ide14; + this.Ide15 = ide15; + this.Ide16 = ide16; + this.Ide17 = ide17; + this.Ide18 = ide18; + this.Ide19 = ide19; + this.Ide20 = ide20; + this.Ide21 = ide21; + this.Ide22 = ide22; + this.Ide23 = ide23; + this.Ide24 = ide24; + this.Ide25 = ide25; + this.Ide26 = ide26; + this.Ide27 = ide27; + this.Ide28 = ide28; + this.Ide29 = ide29; + this.ImportWorkingStorage = importWorkingStorage; + this.IntelTdx = intelTdx; + this.Ipconfig0 = ipconfig0; + this.Ipconfig1 = ipconfig1; + this.Ipconfig2 = ipconfig2; + this.Ipconfig3 = ipconfig3; + this.Ipconfig4 = ipconfig4; + this.Ipconfig5 = ipconfig5; + this.Ipconfig6 = ipconfig6; + this.Ipconfig7 = ipconfig7; + this.Ipconfig8 = ipconfig8; + this.Ipconfig9 = ipconfig9; + this.Ipconfig10 = ipconfig10; + this.Ipconfig11 = ipconfig11; + this.Ipconfig12 = ipconfig12; + this.Ipconfig13 = ipconfig13; + this.Ipconfig14 = ipconfig14; + this.Ipconfig15 = ipconfig15; + this.Ipconfig16 = ipconfig16; + this.Ipconfig17 = ipconfig17; + this.Ipconfig18 = ipconfig18; + this.Ipconfig19 = ipconfig19; + this.Ipconfig20 = ipconfig20; + this.Ipconfig21 = ipconfig21; + this.Ipconfig22 = ipconfig22; + this.Ipconfig23 = ipconfig23; + this.Ipconfig24 = ipconfig24; + this.Ipconfig25 = ipconfig25; + this.Ipconfig26 = ipconfig26; + this.Ipconfig27 = ipconfig27; + this.Ipconfig28 = ipconfig28; + this.Ipconfig29 = ipconfig29; + this.Ivshmem = ivshmem; + this.Keephugepages = keephugepages; + this.Keyboard = keyboard; + this.Kvm = kvm; + this.LiveRestore = liveRestore; + this.Localtime = localtime; + this.Lock = varLock; + this.Machine = machine; + this.Memory = memory; + this.MigrateDowntime = migrateDowntime; + this.MigrateSpeed = migrateSpeed; + this.Name = name; + this.Nameserver = nameserver; + this.Net0 = net0; + this.Net1 = net1; + this.Net2 = net2; + this.Net3 = net3; + this.Net4 = net4; + this.Net5 = net5; + this.Net6 = net6; + this.Net7 = net7; + this.Net8 = net8; + this.Net9 = net9; + this.Net10 = net10; + this.Net11 = net11; + this.Net12 = net12; + this.Net13 = net13; + this.Net14 = net14; + this.Net15 = net15; + this.Net16 = net16; + this.Net17 = net17; + this.Net18 = net18; + this.Net19 = net19; + this.Net20 = net20; + this.Net21 = net21; + this.Net22 = net22; + this.Net23 = net23; + this.Net24 = net24; + this.Net25 = net25; + this.Net26 = net26; + this.Net27 = net27; + this.Net28 = net28; + this.Net29 = net29; + this.Numa = numa; + this.Numa0 = numa0; + this.Numa1 = numa1; + this.Numa2 = numa2; + this.Numa3 = numa3; + this.Numa4 = numa4; + this.Numa5 = numa5; + this.Numa6 = numa6; + this.Numa7 = numa7; + this.Numa8 = numa8; + this.Numa9 = numa9; + this.Numa10 = numa10; + this.Numa11 = numa11; + this.Numa12 = numa12; + this.Numa13 = numa13; + this.Numa14 = numa14; + this.Numa15 = numa15; + this.Numa16 = numa16; + this.Numa17 = numa17; + this.Numa18 = numa18; + this.Numa19 = numa19; + this.Numa20 = numa20; + this.Numa21 = numa21; + this.Numa22 = numa22; + this.Numa23 = numa23; + this.Numa24 = numa24; + this.Numa25 = numa25; + this.Numa26 = numa26; + this.Numa27 = numa27; + this.Numa28 = numa28; + this.Numa29 = numa29; + this.Onboot = onboot; + this.Ostype = ostype; + this.Parallel0 = parallel0; + this.Parallel1 = parallel1; + this.Parallel2 = parallel2; + this.Parallel3 = parallel3; + this.Parallel4 = parallel4; + this.Parallel5 = parallel5; + this.Parallel6 = parallel6; + this.Parallel7 = parallel7; + this.Parallel8 = parallel8; + this.Parallel9 = parallel9; + this.Parallel10 = parallel10; + this.Parallel11 = parallel11; + this.Parallel12 = parallel12; + this.Parallel13 = parallel13; + this.Parallel14 = parallel14; + this.Parallel15 = parallel15; + this.Parallel16 = parallel16; + this.Parallel17 = parallel17; + this.Parallel18 = parallel18; + this.Parallel19 = parallel19; + this.Parallel20 = parallel20; + this.Parallel21 = parallel21; + this.Parallel22 = parallel22; + this.Parallel23 = parallel23; + this.Parallel24 = parallel24; + this.Parallel25 = parallel25; + this.Parallel26 = parallel26; + this.Parallel27 = parallel27; + this.Parallel28 = parallel28; + this.Parallel29 = parallel29; + this.Pool = pool; + this.Protection = protection; + this.Reboot = reboot; + this.Rng0 = rng0; + this.Sata0 = sata0; + this.Sata1 = sata1; + this.Sata2 = sata2; + this.Sata3 = sata3; + this.Sata4 = sata4; + this.Sata5 = sata5; + this.Sata6 = sata6; + this.Sata7 = sata7; + this.Sata8 = sata8; + this.Sata9 = sata9; + this.Sata10 = sata10; + this.Sata11 = sata11; + this.Sata12 = sata12; + this.Sata13 = sata13; + this.Sata14 = sata14; + this.Sata15 = sata15; + this.Sata16 = sata16; + this.Sata17 = sata17; + this.Sata18 = sata18; + this.Sata19 = sata19; + this.Sata20 = sata20; + this.Sata21 = sata21; + this.Sata22 = sata22; + this.Sata23 = sata23; + this.Sata24 = sata24; + this.Sata25 = sata25; + this.Sata26 = sata26; + this.Sata27 = sata27; + this.Sata28 = sata28; + this.Sata29 = sata29; + this.Scsi0 = scsi0; + this.Scsi1 = scsi1; + this.Scsi2 = scsi2; + this.Scsi3 = scsi3; + this.Scsi4 = scsi4; + this.Scsi5 = scsi5; + this.Scsi6 = scsi6; + this.Scsi7 = scsi7; + this.Scsi8 = scsi8; + this.Scsi9 = scsi9; + this.Scsi10 = scsi10; + this.Scsi11 = scsi11; + this.Scsi12 = scsi12; + this.Scsi13 = scsi13; + this.Scsi14 = scsi14; + this.Scsi15 = scsi15; + this.Scsi16 = scsi16; + this.Scsi17 = scsi17; + this.Scsi18 = scsi18; + this.Scsi19 = scsi19; + this.Scsi20 = scsi20; + this.Scsi21 = scsi21; + this.Scsi22 = scsi22; + this.Scsi23 = scsi23; + this.Scsi24 = scsi24; + this.Scsi25 = scsi25; + this.Scsi26 = scsi26; + this.Scsi27 = scsi27; + this.Scsi28 = scsi28; + this.Scsi29 = scsi29; + this.Scsihw = scsihw; + this.Searchdomain = searchdomain; + this.Serial0 = serial0; + this.Serial1 = serial1; + this.Serial2 = serial2; + this.Serial3 = serial3; + this.Serial4 = serial4; + this.Serial5 = serial5; + this.Serial6 = serial6; + this.Serial7 = serial7; + this.Serial8 = serial8; + this.Serial9 = serial9; + this.Serial10 = serial10; + this.Serial11 = serial11; + this.Serial12 = serial12; + this.Serial13 = serial13; + this.Serial14 = serial14; + this.Serial15 = serial15; + this.Serial16 = serial16; + this.Serial17 = serial17; + this.Serial18 = serial18; + this.Serial19 = serial19; + this.Serial20 = serial20; + this.Serial21 = serial21; + this.Serial22 = serial22; + this.Serial23 = serial23; + this.Serial24 = serial24; + this.Serial25 = serial25; + this.Serial26 = serial26; + this.Serial27 = serial27; + this.Serial28 = serial28; + this.Serial29 = serial29; + this.Shares = shares; + this.Smbios1 = smbios1; + this.Smp = smp; + this.Sockets = sockets; + this.SpiceEnhancements = spiceEnhancements; + this.Sshkeys = sshkeys; + this.Start = start; + this.Startdate = startdate; + this.Startup = startup; + this.Storage = storage; + this.Tablet = tablet; + this.Tags = tags; + this.Tdf = tdf; + this.Template = template; + this.Tpmstate0 = tpmstate0; + this.Unique = unique; + this.Unused0 = unused0; + this.Unused1 = unused1; + this.Unused2 = unused2; + this.Unused3 = unused3; + this.Unused4 = unused4; + this.Unused5 = unused5; + this.Unused6 = unused6; + this.Unused7 = unused7; + this.Unused8 = unused8; + this.Unused9 = unused9; + this.Unused10 = unused10; + this.Unused11 = unused11; + this.Unused12 = unused12; + this.Unused13 = unused13; + this.Unused14 = unused14; + this.Unused15 = unused15; + this.Unused16 = unused16; + this.Unused17 = unused17; + this.Unused18 = unused18; + this.Unused19 = unused19; + this.Unused20 = unused20; + this.Unused21 = unused21; + this.Unused22 = unused22; + this.Unused23 = unused23; + this.Unused24 = unused24; + this.Unused25 = unused25; + this.Unused26 = unused26; + this.Unused27 = unused27; + this.Unused28 = unused28; + this.Unused29 = unused29; + this.Usb0 = usb0; + this.Usb1 = usb1; + this.Usb2 = usb2; + this.Usb3 = usb3; + this.Usb4 = usb4; + this.Usb5 = usb5; + this.Usb6 = usb6; + this.Usb7 = usb7; + this.Usb8 = usb8; + this.Usb9 = usb9; + this.Usb10 = usb10; + this.Usb11 = usb11; + this.Usb12 = usb12; + this.Usb13 = usb13; + this.Usb14 = usb14; + this.Usb15 = usb15; + this.Usb16 = usb16; + this.Usb17 = usb17; + this.Usb18 = usb18; + this.Usb19 = usb19; + this.Usb20 = usb20; + this.Usb21 = usb21; + this.Usb22 = usb22; + this.Usb23 = usb23; + this.Usb24 = usb24; + this.Usb25 = usb25; + this.Usb26 = usb26; + this.Usb27 = usb27; + this.Usb28 = usb28; + this.Usb29 = usb29; + this.Vcpus = vcpus; + this.Vga = vga; + this.Virtio0 = virtio0; + this.Virtio1 = virtio1; + this.Virtio2 = virtio2; + this.Virtio3 = virtio3; + this.Virtio4 = virtio4; + this.Virtio5 = virtio5; + this.Virtio6 = virtio6; + this.Virtio7 = virtio7; + this.Virtio8 = virtio8; + this.Virtio9 = virtio9; + this.Virtio10 = virtio10; + this.Virtio11 = virtio11; + this.Virtio12 = virtio12; + this.Virtio13 = virtio13; + this.Virtio14 = virtio14; + this.Virtio15 = virtio15; + this.Virtio16 = virtio16; + this.Virtio17 = virtio17; + this.Virtio18 = virtio18; + this.Virtio19 = virtio19; + this.Virtio20 = virtio20; + this.Virtio21 = virtio21; + this.Virtio22 = virtio22; + this.Virtio23 = virtio23; + this.Virtio24 = virtio24; + this.Virtio25 = virtio25; + this.Virtio26 = virtio26; + this.Virtio27 = virtio27; + this.Virtio28 = virtio28; + this.Virtio29 = virtio29; + this.Virtiofs0 = virtiofs0; + this.Virtiofs1 = virtiofs1; + this.Virtiofs2 = virtiofs2; + this.Virtiofs3 = virtiofs3; + this.Virtiofs4 = virtiofs4; + this.Virtiofs5 = virtiofs5; + this.Virtiofs6 = virtiofs6; + this.Virtiofs7 = virtiofs7; + this.Virtiofs8 = virtiofs8; + this.Virtiofs9 = virtiofs9; + this.Virtiofs10 = virtiofs10; + this.Virtiofs11 = virtiofs11; + this.Virtiofs12 = virtiofs12; + this.Virtiofs13 = virtiofs13; + this.Virtiofs14 = virtiofs14; + this.Virtiofs15 = virtiofs15; + this.Virtiofs16 = virtiofs16; + this.Virtiofs17 = virtiofs17; + this.Virtiofs18 = virtiofs18; + this.Virtiofs19 = virtiofs19; + this.Virtiofs20 = virtiofs20; + this.Virtiofs21 = virtiofs21; + this.Virtiofs22 = virtiofs22; + this.Virtiofs23 = virtiofs23; + this.Virtiofs24 = virtiofs24; + this.Virtiofs25 = virtiofs25; + this.Virtiofs26 = virtiofs26; + this.Virtiofs27 = virtiofs27; + this.Virtiofs28 = virtiofs28; + this.Virtiofs29 = virtiofs29; + this.Vmgenid = vmgenid; + this.Vmstatestorage = vmstatestorage; + this.Watchdog = watchdog; + } + + /// + /// Gets or Sets Acpi + /// + [DataMember(Name = "acpi", EmitDefaultValue = true)] + public bool Acpi { get; set; } + + /// + /// Gets or Sets Affinity + /// + [DataMember(Name = "affinity", EmitDefaultValue = false)] + public string Affinity { get; set; } + + /// + /// Gets or Sets Agent + /// + [DataMember(Name = "agent", EmitDefaultValue = false)] + public string Agent { get; set; } + + /// + /// Gets or Sets AllowKsm + /// + [DataMember(Name = "allow-ksm", EmitDefaultValue = true)] + public bool AllowKsm { get; set; } + + /// + /// Gets or Sets AmdSev + /// + [DataMember(Name = "amd-sev", EmitDefaultValue = false)] + public string AmdSev { get; set; } + + /// + /// Gets or Sets Arch + /// + [DataMember(Name = "arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Gets or Sets Archive + /// + [DataMember(Name = "archive", EmitDefaultValue = false)] + public string Archive { get; set; } + + /// + /// Gets or Sets Args + /// + [DataMember(Name = "args", EmitDefaultValue = false)] + public string Args { get; set; } + + /// + /// Gets or Sets Audio0 + /// + [DataMember(Name = "audio0", EmitDefaultValue = false)] + public string Audio0 { get; set; } + + /// + /// Gets or Sets Autostart + /// + [DataMember(Name = "autostart", EmitDefaultValue = true)] + public bool Autostart { get; set; } + + /// + /// Gets or Sets Balloon + /// + [DataMember(Name = "balloon", EmitDefaultValue = false)] + public int Balloon { get; set; } + + /// + /// Gets or Sets Bios + /// + [DataMember(Name = "bios", EmitDefaultValue = false)] + public string Bios { get; set; } + + /// + /// Gets or Sets Boot + /// + [DataMember(Name = "boot", EmitDefaultValue = false)] + public string Boot { get; set; } + + /// + /// Gets or Sets Bootdisk + /// + [DataMember(Name = "bootdisk", EmitDefaultValue = false)] + public string Bootdisk { get; set; } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public int Bwlimit { get; set; } + + /// + /// Gets or Sets Cdrom + /// + [DataMember(Name = "cdrom", EmitDefaultValue = false)] + public string Cdrom { get; set; } + + /// + /// Gets or Sets Cicustom + /// + [DataMember(Name = "cicustom", EmitDefaultValue = false)] + public string Cicustom { get; set; } + + /// + /// Gets or Sets Cipassword + /// + [DataMember(Name = "cipassword", EmitDefaultValue = false)] + public string Cipassword { get; set; } + + /// + /// Gets or Sets Citype + /// + [DataMember(Name = "citype", EmitDefaultValue = false)] + public string Citype { get; set; } + + /// + /// Gets or Sets Ciupgrade + /// + [DataMember(Name = "ciupgrade", EmitDefaultValue = true)] + public bool Ciupgrade { get; set; } + + /// + /// Gets or Sets Ciuser + /// + [DataMember(Name = "ciuser", EmitDefaultValue = false)] + public string Ciuser { get; set; } + + /// + /// Gets or Sets Cores + /// + [DataMember(Name = "cores", EmitDefaultValue = false)] + public int Cores { get; set; } + + /// + /// Gets or Sets Cpu + /// + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public string Cpu { get; set; } + + /// + /// Gets or Sets Cpulimit + /// + [DataMember(Name = "cpulimit", EmitDefaultValue = false)] + public decimal Cpulimit { get; set; } + + /// + /// Gets or Sets Cpuunits + /// + [DataMember(Name = "cpuunits", EmitDefaultValue = false)] + public int Cpuunits { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Efidisk0 + /// + [DataMember(Name = "efidisk0", EmitDefaultValue = false)] + public string Efidisk0 { get; set; } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets Freeze + /// + [DataMember(Name = "freeze", EmitDefaultValue = true)] + public bool Freeze { get; set; } + + /// + /// Gets or Sets HaManaged + /// + [DataMember(Name = "ha-managed", EmitDefaultValue = true)] + public bool HaManaged { get; set; } + + /// + /// Gets or Sets Hookscript + /// + [DataMember(Name = "hookscript", EmitDefaultValue = false)] + public string Hookscript { get; set; } + + /// + /// Gets or Sets Hostpci0 + /// + [DataMember(Name = "hostpci0", EmitDefaultValue = false)] + public string Hostpci0 { get; set; } + + /// + /// Gets or Sets Hostpci1 + /// + [DataMember(Name = "hostpci1", EmitDefaultValue = false)] + public string Hostpci1 { get; set; } + + /// + /// Gets or Sets Hostpci2 + /// + [DataMember(Name = "hostpci2", EmitDefaultValue = false)] + public string Hostpci2 { get; set; } + + /// + /// Gets or Sets Hostpci3 + /// + [DataMember(Name = "hostpci3", EmitDefaultValue = false)] + public string Hostpci3 { get; set; } + + /// + /// Gets or Sets Hostpci4 + /// + [DataMember(Name = "hostpci4", EmitDefaultValue = false)] + public string Hostpci4 { get; set; } + + /// + /// Gets or Sets Hostpci5 + /// + [DataMember(Name = "hostpci5", EmitDefaultValue = false)] + public string Hostpci5 { get; set; } + + /// + /// Gets or Sets Hostpci6 + /// + [DataMember(Name = "hostpci6", EmitDefaultValue = false)] + public string Hostpci6 { get; set; } + + /// + /// Gets or Sets Hostpci7 + /// + [DataMember(Name = "hostpci7", EmitDefaultValue = false)] + public string Hostpci7 { get; set; } + + /// + /// Gets or Sets Hostpci8 + /// + [DataMember(Name = "hostpci8", EmitDefaultValue = false)] + public string Hostpci8 { get; set; } + + /// + /// Gets or Sets Hostpci9 + /// + [DataMember(Name = "hostpci9", EmitDefaultValue = false)] + public string Hostpci9 { get; set; } + + /// + /// Gets or Sets Hostpci10 + /// + [DataMember(Name = "hostpci10", EmitDefaultValue = false)] + public string Hostpci10 { get; set; } + + /// + /// Gets or Sets Hostpci11 + /// + [DataMember(Name = "hostpci11", EmitDefaultValue = false)] + public string Hostpci11 { get; set; } + + /// + /// Gets or Sets Hostpci12 + /// + [DataMember(Name = "hostpci12", EmitDefaultValue = false)] + public string Hostpci12 { get; set; } + + /// + /// Gets or Sets Hostpci13 + /// + [DataMember(Name = "hostpci13", EmitDefaultValue = false)] + public string Hostpci13 { get; set; } + + /// + /// Gets or Sets Hostpci14 + /// + [DataMember(Name = "hostpci14", EmitDefaultValue = false)] + public string Hostpci14 { get; set; } + + /// + /// Gets or Sets Hostpci15 + /// + [DataMember(Name = "hostpci15", EmitDefaultValue = false)] + public string Hostpci15 { get; set; } + + /// + /// Gets or Sets Hostpci16 + /// + [DataMember(Name = "hostpci16", EmitDefaultValue = false)] + public string Hostpci16 { get; set; } + + /// + /// Gets or Sets Hostpci17 + /// + [DataMember(Name = "hostpci17", EmitDefaultValue = false)] + public string Hostpci17 { get; set; } + + /// + /// Gets or Sets Hostpci18 + /// + [DataMember(Name = "hostpci18", EmitDefaultValue = false)] + public string Hostpci18 { get; set; } + + /// + /// Gets or Sets Hostpci19 + /// + [DataMember(Name = "hostpci19", EmitDefaultValue = false)] + public string Hostpci19 { get; set; } + + /// + /// Gets or Sets Hostpci20 + /// + [DataMember(Name = "hostpci20", EmitDefaultValue = false)] + public string Hostpci20 { get; set; } + + /// + /// Gets or Sets Hostpci21 + /// + [DataMember(Name = "hostpci21", EmitDefaultValue = false)] + public string Hostpci21 { get; set; } + + /// + /// Gets or Sets Hostpci22 + /// + [DataMember(Name = "hostpci22", EmitDefaultValue = false)] + public string Hostpci22 { get; set; } + + /// + /// Gets or Sets Hostpci23 + /// + [DataMember(Name = "hostpci23", EmitDefaultValue = false)] + public string Hostpci23 { get; set; } + + /// + /// Gets or Sets Hostpci24 + /// + [DataMember(Name = "hostpci24", EmitDefaultValue = false)] + public string Hostpci24 { get; set; } + + /// + /// Gets or Sets Hostpci25 + /// + [DataMember(Name = "hostpci25", EmitDefaultValue = false)] + public string Hostpci25 { get; set; } + + /// + /// Gets or Sets Hostpci26 + /// + [DataMember(Name = "hostpci26", EmitDefaultValue = false)] + public string Hostpci26 { get; set; } + + /// + /// Gets or Sets Hostpci27 + /// + [DataMember(Name = "hostpci27", EmitDefaultValue = false)] + public string Hostpci27 { get; set; } + + /// + /// Gets or Sets Hostpci28 + /// + [DataMember(Name = "hostpci28", EmitDefaultValue = false)] + public string Hostpci28 { get; set; } + + /// + /// Gets or Sets Hostpci29 + /// + [DataMember(Name = "hostpci29", EmitDefaultValue = false)] + public string Hostpci29 { get; set; } + + /// + /// Gets or Sets Hotplug + /// + [DataMember(Name = "hotplug", EmitDefaultValue = false)] + public string Hotplug { get; set; } + + /// + /// Gets or Sets Hugepages + /// + [DataMember(Name = "hugepages", EmitDefaultValue = false)] + public string Hugepages { get; set; } + + /// + /// Gets or Sets Ide0 + /// + [DataMember(Name = "ide0", EmitDefaultValue = false)] + public string Ide0 { get; set; } + + /// + /// Gets or Sets Ide1 + /// + [DataMember(Name = "ide1", EmitDefaultValue = false)] + public string Ide1 { get; set; } + + /// + /// Gets or Sets Ide2 + /// + [DataMember(Name = "ide2", EmitDefaultValue = false)] + public string Ide2 { get; set; } + + /// + /// Gets or Sets Ide3 + /// + [DataMember(Name = "ide3", EmitDefaultValue = false)] + public string Ide3 { get; set; } + + /// + /// Gets or Sets Ide4 + /// + [DataMember(Name = "ide4", EmitDefaultValue = false)] + public string Ide4 { get; set; } + + /// + /// Gets or Sets Ide5 + /// + [DataMember(Name = "ide5", EmitDefaultValue = false)] + public string Ide5 { get; set; } + + /// + /// Gets or Sets Ide6 + /// + [DataMember(Name = "ide6", EmitDefaultValue = false)] + public string Ide6 { get; set; } + + /// + /// Gets or Sets Ide7 + /// + [DataMember(Name = "ide7", EmitDefaultValue = false)] + public string Ide7 { get; set; } + + /// + /// Gets or Sets Ide8 + /// + [DataMember(Name = "ide8", EmitDefaultValue = false)] + public string Ide8 { get; set; } + + /// + /// Gets or Sets Ide9 + /// + [DataMember(Name = "ide9", EmitDefaultValue = false)] + public string Ide9 { get; set; } + + /// + /// Gets or Sets Ide10 + /// + [DataMember(Name = "ide10", EmitDefaultValue = false)] + public string Ide10 { get; set; } + + /// + /// Gets or Sets Ide11 + /// + [DataMember(Name = "ide11", EmitDefaultValue = false)] + public string Ide11 { get; set; } + + /// + /// Gets or Sets Ide12 + /// + [DataMember(Name = "ide12", EmitDefaultValue = false)] + public string Ide12 { get; set; } + + /// + /// Gets or Sets Ide13 + /// + [DataMember(Name = "ide13", EmitDefaultValue = false)] + public string Ide13 { get; set; } + + /// + /// Gets or Sets Ide14 + /// + [DataMember(Name = "ide14", EmitDefaultValue = false)] + public string Ide14 { get; set; } + + /// + /// Gets or Sets Ide15 + /// + [DataMember(Name = "ide15", EmitDefaultValue = false)] + public string Ide15 { get; set; } + + /// + /// Gets or Sets Ide16 + /// + [DataMember(Name = "ide16", EmitDefaultValue = false)] + public string Ide16 { get; set; } + + /// + /// Gets or Sets Ide17 + /// + [DataMember(Name = "ide17", EmitDefaultValue = false)] + public string Ide17 { get; set; } + + /// + /// Gets or Sets Ide18 + /// + [DataMember(Name = "ide18", EmitDefaultValue = false)] + public string Ide18 { get; set; } + + /// + /// Gets or Sets Ide19 + /// + [DataMember(Name = "ide19", EmitDefaultValue = false)] + public string Ide19 { get; set; } + + /// + /// Gets or Sets Ide20 + /// + [DataMember(Name = "ide20", EmitDefaultValue = false)] + public string Ide20 { get; set; } + + /// + /// Gets or Sets Ide21 + /// + [DataMember(Name = "ide21", EmitDefaultValue = false)] + public string Ide21 { get; set; } + + /// + /// Gets or Sets Ide22 + /// + [DataMember(Name = "ide22", EmitDefaultValue = false)] + public string Ide22 { get; set; } + + /// + /// Gets or Sets Ide23 + /// + [DataMember(Name = "ide23", EmitDefaultValue = false)] + public string Ide23 { get; set; } + + /// + /// Gets or Sets Ide24 + /// + [DataMember(Name = "ide24", EmitDefaultValue = false)] + public string Ide24 { get; set; } + + /// + /// Gets or Sets Ide25 + /// + [DataMember(Name = "ide25", EmitDefaultValue = false)] + public string Ide25 { get; set; } + + /// + /// Gets or Sets Ide26 + /// + [DataMember(Name = "ide26", EmitDefaultValue = false)] + public string Ide26 { get; set; } + + /// + /// Gets or Sets Ide27 + /// + [DataMember(Name = "ide27", EmitDefaultValue = false)] + public string Ide27 { get; set; } + + /// + /// Gets or Sets Ide28 + /// + [DataMember(Name = "ide28", EmitDefaultValue = false)] + public string Ide28 { get; set; } + + /// + /// Gets or Sets Ide29 + /// + [DataMember(Name = "ide29", EmitDefaultValue = false)] + public string Ide29 { get; set; } + + /// + /// Gets or Sets ImportWorkingStorage + /// + [DataMember(Name = "import-working-storage", EmitDefaultValue = false)] + public string ImportWorkingStorage { get; set; } + + /// + /// Gets or Sets IntelTdx + /// + [DataMember(Name = "intel-tdx", EmitDefaultValue = false)] + public string IntelTdx { get; set; } + + /// + /// Gets or Sets Ipconfig0 + /// + [DataMember(Name = "ipconfig0", EmitDefaultValue = false)] + public string Ipconfig0 { get; set; } + + /// + /// Gets or Sets Ipconfig1 + /// + [DataMember(Name = "ipconfig1", EmitDefaultValue = false)] + public string Ipconfig1 { get; set; } + + /// + /// Gets or Sets Ipconfig2 + /// + [DataMember(Name = "ipconfig2", EmitDefaultValue = false)] + public string Ipconfig2 { get; set; } + + /// + /// Gets or Sets Ipconfig3 + /// + [DataMember(Name = "ipconfig3", EmitDefaultValue = false)] + public string Ipconfig3 { get; set; } + + /// + /// Gets or Sets Ipconfig4 + /// + [DataMember(Name = "ipconfig4", EmitDefaultValue = false)] + public string Ipconfig4 { get; set; } + + /// + /// Gets or Sets Ipconfig5 + /// + [DataMember(Name = "ipconfig5", EmitDefaultValue = false)] + public string Ipconfig5 { get; set; } + + /// + /// Gets or Sets Ipconfig6 + /// + [DataMember(Name = "ipconfig6", EmitDefaultValue = false)] + public string Ipconfig6 { get; set; } + + /// + /// Gets or Sets Ipconfig7 + /// + [DataMember(Name = "ipconfig7", EmitDefaultValue = false)] + public string Ipconfig7 { get; set; } + + /// + /// Gets or Sets Ipconfig8 + /// + [DataMember(Name = "ipconfig8", EmitDefaultValue = false)] + public string Ipconfig8 { get; set; } + + /// + /// Gets or Sets Ipconfig9 + /// + [DataMember(Name = "ipconfig9", EmitDefaultValue = false)] + public string Ipconfig9 { get; set; } + + /// + /// Gets or Sets Ipconfig10 + /// + [DataMember(Name = "ipconfig10", EmitDefaultValue = false)] + public string Ipconfig10 { get; set; } + + /// + /// Gets or Sets Ipconfig11 + /// + [DataMember(Name = "ipconfig11", EmitDefaultValue = false)] + public string Ipconfig11 { get; set; } + + /// + /// Gets or Sets Ipconfig12 + /// + [DataMember(Name = "ipconfig12", EmitDefaultValue = false)] + public string Ipconfig12 { get; set; } + + /// + /// Gets or Sets Ipconfig13 + /// + [DataMember(Name = "ipconfig13", EmitDefaultValue = false)] + public string Ipconfig13 { get; set; } + + /// + /// Gets or Sets Ipconfig14 + /// + [DataMember(Name = "ipconfig14", EmitDefaultValue = false)] + public string Ipconfig14 { get; set; } + + /// + /// Gets or Sets Ipconfig15 + /// + [DataMember(Name = "ipconfig15", EmitDefaultValue = false)] + public string Ipconfig15 { get; set; } + + /// + /// Gets or Sets Ipconfig16 + /// + [DataMember(Name = "ipconfig16", EmitDefaultValue = false)] + public string Ipconfig16 { get; set; } + + /// + /// Gets or Sets Ipconfig17 + /// + [DataMember(Name = "ipconfig17", EmitDefaultValue = false)] + public string Ipconfig17 { get; set; } + + /// + /// Gets or Sets Ipconfig18 + /// + [DataMember(Name = "ipconfig18", EmitDefaultValue = false)] + public string Ipconfig18 { get; set; } + + /// + /// Gets or Sets Ipconfig19 + /// + [DataMember(Name = "ipconfig19", EmitDefaultValue = false)] + public string Ipconfig19 { get; set; } + + /// + /// Gets or Sets Ipconfig20 + /// + [DataMember(Name = "ipconfig20", EmitDefaultValue = false)] + public string Ipconfig20 { get; set; } + + /// + /// Gets or Sets Ipconfig21 + /// + [DataMember(Name = "ipconfig21", EmitDefaultValue = false)] + public string Ipconfig21 { get; set; } + + /// + /// Gets or Sets Ipconfig22 + /// + [DataMember(Name = "ipconfig22", EmitDefaultValue = false)] + public string Ipconfig22 { get; set; } + + /// + /// Gets or Sets Ipconfig23 + /// + [DataMember(Name = "ipconfig23", EmitDefaultValue = false)] + public string Ipconfig23 { get; set; } + + /// + /// Gets or Sets Ipconfig24 + /// + [DataMember(Name = "ipconfig24", EmitDefaultValue = false)] + public string Ipconfig24 { get; set; } + + /// + /// Gets or Sets Ipconfig25 + /// + [DataMember(Name = "ipconfig25", EmitDefaultValue = false)] + public string Ipconfig25 { get; set; } + + /// + /// Gets or Sets Ipconfig26 + /// + [DataMember(Name = "ipconfig26", EmitDefaultValue = false)] + public string Ipconfig26 { get; set; } + + /// + /// Gets or Sets Ipconfig27 + /// + [DataMember(Name = "ipconfig27", EmitDefaultValue = false)] + public string Ipconfig27 { get; set; } + + /// + /// Gets or Sets Ipconfig28 + /// + [DataMember(Name = "ipconfig28", EmitDefaultValue = false)] + public string Ipconfig28 { get; set; } + + /// + /// Gets or Sets Ipconfig29 + /// + [DataMember(Name = "ipconfig29", EmitDefaultValue = false)] + public string Ipconfig29 { get; set; } + + /// + /// Gets or Sets Ivshmem + /// + [DataMember(Name = "ivshmem", EmitDefaultValue = false)] + public string Ivshmem { get; set; } + + /// + /// Gets or Sets Keephugepages + /// + [DataMember(Name = "keephugepages", EmitDefaultValue = true)] + public bool Keephugepages { get; set; } + + /// + /// Gets or Sets Keyboard + /// + [DataMember(Name = "keyboard", EmitDefaultValue = false)] + public string Keyboard { get; set; } + + /// + /// Gets or Sets Kvm + /// + [DataMember(Name = "kvm", EmitDefaultValue = true)] + public bool Kvm { get; set; } + + /// + /// Gets or Sets LiveRestore + /// + [DataMember(Name = "live-restore", EmitDefaultValue = true)] + public bool LiveRestore { get; set; } + + /// + /// Gets or Sets Localtime + /// + [DataMember(Name = "localtime", EmitDefaultValue = true)] + public bool Localtime { get; set; } + + /// + /// Gets or Sets Lock + /// + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Gets or Sets Machine + /// + [DataMember(Name = "machine", EmitDefaultValue = false)] + public string Machine { get; set; } + + /// + /// Gets or Sets Memory + /// + [DataMember(Name = "memory", EmitDefaultValue = false)] + public string Memory { get; set; } + + /// + /// Gets or Sets MigrateDowntime + /// + [DataMember(Name = "migrate_downtime", EmitDefaultValue = false)] + public decimal MigrateDowntime { get; set; } + + /// + /// Gets or Sets MigrateSpeed + /// + [DataMember(Name = "migrate_speed", EmitDefaultValue = false)] + public int MigrateSpeed { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Nameserver + /// + [DataMember(Name = "nameserver", EmitDefaultValue = false)] + public string Nameserver { get; set; } + + /// + /// Gets or Sets Net0 + /// + [DataMember(Name = "net0", EmitDefaultValue = false)] + public string Net0 { get; set; } + + /// + /// Gets or Sets Net1 + /// + [DataMember(Name = "net1", EmitDefaultValue = false)] + public string Net1 { get; set; } + + /// + /// Gets or Sets Net2 + /// + [DataMember(Name = "net2", EmitDefaultValue = false)] + public string Net2 { get; set; } + + /// + /// Gets or Sets Net3 + /// + [DataMember(Name = "net3", EmitDefaultValue = false)] + public string Net3 { get; set; } + + /// + /// Gets or Sets Net4 + /// + [DataMember(Name = "net4", EmitDefaultValue = false)] + public string Net4 { get; set; } + + /// + /// Gets or Sets Net5 + /// + [DataMember(Name = "net5", EmitDefaultValue = false)] + public string Net5 { get; set; } + + /// + /// Gets or Sets Net6 + /// + [DataMember(Name = "net6", EmitDefaultValue = false)] + public string Net6 { get; set; } + + /// + /// Gets or Sets Net7 + /// + [DataMember(Name = "net7", EmitDefaultValue = false)] + public string Net7 { get; set; } + + /// + /// Gets or Sets Net8 + /// + [DataMember(Name = "net8", EmitDefaultValue = false)] + public string Net8 { get; set; } + + /// + /// Gets or Sets Net9 + /// + [DataMember(Name = "net9", EmitDefaultValue = false)] + public string Net9 { get; set; } + + /// + /// Gets or Sets Net10 + /// + [DataMember(Name = "net10", EmitDefaultValue = false)] + public string Net10 { get; set; } + + /// + /// Gets or Sets Net11 + /// + [DataMember(Name = "net11", EmitDefaultValue = false)] + public string Net11 { get; set; } + + /// + /// Gets or Sets Net12 + /// + [DataMember(Name = "net12", EmitDefaultValue = false)] + public string Net12 { get; set; } + + /// + /// Gets or Sets Net13 + /// + [DataMember(Name = "net13", EmitDefaultValue = false)] + public string Net13 { get; set; } + + /// + /// Gets or Sets Net14 + /// + [DataMember(Name = "net14", EmitDefaultValue = false)] + public string Net14 { get; set; } + + /// + /// Gets or Sets Net15 + /// + [DataMember(Name = "net15", EmitDefaultValue = false)] + public string Net15 { get; set; } + + /// + /// Gets or Sets Net16 + /// + [DataMember(Name = "net16", EmitDefaultValue = false)] + public string Net16 { get; set; } + + /// + /// Gets or Sets Net17 + /// + [DataMember(Name = "net17", EmitDefaultValue = false)] + public string Net17 { get; set; } + + /// + /// Gets or Sets Net18 + /// + [DataMember(Name = "net18", EmitDefaultValue = false)] + public string Net18 { get; set; } + + /// + /// Gets or Sets Net19 + /// + [DataMember(Name = "net19", EmitDefaultValue = false)] + public string Net19 { get; set; } + + /// + /// Gets or Sets Net20 + /// + [DataMember(Name = "net20", EmitDefaultValue = false)] + public string Net20 { get; set; } + + /// + /// Gets or Sets Net21 + /// + [DataMember(Name = "net21", EmitDefaultValue = false)] + public string Net21 { get; set; } + + /// + /// Gets or Sets Net22 + /// + [DataMember(Name = "net22", EmitDefaultValue = false)] + public string Net22 { get; set; } + + /// + /// Gets or Sets Net23 + /// + [DataMember(Name = "net23", EmitDefaultValue = false)] + public string Net23 { get; set; } + + /// + /// Gets or Sets Net24 + /// + [DataMember(Name = "net24", EmitDefaultValue = false)] + public string Net24 { get; set; } + + /// + /// Gets or Sets Net25 + /// + [DataMember(Name = "net25", EmitDefaultValue = false)] + public string Net25 { get; set; } + + /// + /// Gets or Sets Net26 + /// + [DataMember(Name = "net26", EmitDefaultValue = false)] + public string Net26 { get; set; } + + /// + /// Gets or Sets Net27 + /// + [DataMember(Name = "net27", EmitDefaultValue = false)] + public string Net27 { get; set; } + + /// + /// Gets or Sets Net28 + /// + [DataMember(Name = "net28", EmitDefaultValue = false)] + public string Net28 { get; set; } + + /// + /// Gets or Sets Net29 + /// + [DataMember(Name = "net29", EmitDefaultValue = false)] + public string Net29 { get; set; } + + /// + /// Gets or Sets Numa + /// + [DataMember(Name = "numa", EmitDefaultValue = true)] + public bool Numa { get; set; } + + /// + /// Gets or Sets Numa0 + /// + [DataMember(Name = "numa0", EmitDefaultValue = false)] + public string Numa0 { get; set; } + + /// + /// Gets or Sets Numa1 + /// + [DataMember(Name = "numa1", EmitDefaultValue = false)] + public string Numa1 { get; set; } + + /// + /// Gets or Sets Numa2 + /// + [DataMember(Name = "numa2", EmitDefaultValue = false)] + public string Numa2 { get; set; } + + /// + /// Gets or Sets Numa3 + /// + [DataMember(Name = "numa3", EmitDefaultValue = false)] + public string Numa3 { get; set; } + + /// + /// Gets or Sets Numa4 + /// + [DataMember(Name = "numa4", EmitDefaultValue = false)] + public string Numa4 { get; set; } + + /// + /// Gets or Sets Numa5 + /// + [DataMember(Name = "numa5", EmitDefaultValue = false)] + public string Numa5 { get; set; } + + /// + /// Gets or Sets Numa6 + /// + [DataMember(Name = "numa6", EmitDefaultValue = false)] + public string Numa6 { get; set; } + + /// + /// Gets or Sets Numa7 + /// + [DataMember(Name = "numa7", EmitDefaultValue = false)] + public string Numa7 { get; set; } + + /// + /// Gets or Sets Numa8 + /// + [DataMember(Name = "numa8", EmitDefaultValue = false)] + public string Numa8 { get; set; } + + /// + /// Gets or Sets Numa9 + /// + [DataMember(Name = "numa9", EmitDefaultValue = false)] + public string Numa9 { get; set; } + + /// + /// Gets or Sets Numa10 + /// + [DataMember(Name = "numa10", EmitDefaultValue = false)] + public string Numa10 { get; set; } + + /// + /// Gets or Sets Numa11 + /// + [DataMember(Name = "numa11", EmitDefaultValue = false)] + public string Numa11 { get; set; } + + /// + /// Gets or Sets Numa12 + /// + [DataMember(Name = "numa12", EmitDefaultValue = false)] + public string Numa12 { get; set; } + + /// + /// Gets or Sets Numa13 + /// + [DataMember(Name = "numa13", EmitDefaultValue = false)] + public string Numa13 { get; set; } + + /// + /// Gets or Sets Numa14 + /// + [DataMember(Name = "numa14", EmitDefaultValue = false)] + public string Numa14 { get; set; } + + /// + /// Gets or Sets Numa15 + /// + [DataMember(Name = "numa15", EmitDefaultValue = false)] + public string Numa15 { get; set; } + + /// + /// Gets or Sets Numa16 + /// + [DataMember(Name = "numa16", EmitDefaultValue = false)] + public string Numa16 { get; set; } + + /// + /// Gets or Sets Numa17 + /// + [DataMember(Name = "numa17", EmitDefaultValue = false)] + public string Numa17 { get; set; } + + /// + /// Gets or Sets Numa18 + /// + [DataMember(Name = "numa18", EmitDefaultValue = false)] + public string Numa18 { get; set; } + + /// + /// Gets or Sets Numa19 + /// + [DataMember(Name = "numa19", EmitDefaultValue = false)] + public string Numa19 { get; set; } + + /// + /// Gets or Sets Numa20 + /// + [DataMember(Name = "numa20", EmitDefaultValue = false)] + public string Numa20 { get; set; } + + /// + /// Gets or Sets Numa21 + /// + [DataMember(Name = "numa21", EmitDefaultValue = false)] + public string Numa21 { get; set; } + + /// + /// Gets or Sets Numa22 + /// + [DataMember(Name = "numa22", EmitDefaultValue = false)] + public string Numa22 { get; set; } + + /// + /// Gets or Sets Numa23 + /// + [DataMember(Name = "numa23", EmitDefaultValue = false)] + public string Numa23 { get; set; } + + /// + /// Gets or Sets Numa24 + /// + [DataMember(Name = "numa24", EmitDefaultValue = false)] + public string Numa24 { get; set; } + + /// + /// Gets or Sets Numa25 + /// + [DataMember(Name = "numa25", EmitDefaultValue = false)] + public string Numa25 { get; set; } + + /// + /// Gets or Sets Numa26 + /// + [DataMember(Name = "numa26", EmitDefaultValue = false)] + public string Numa26 { get; set; } + + /// + /// Gets or Sets Numa27 + /// + [DataMember(Name = "numa27", EmitDefaultValue = false)] + public string Numa27 { get; set; } + + /// + /// Gets or Sets Numa28 + /// + [DataMember(Name = "numa28", EmitDefaultValue = false)] + public string Numa28 { get; set; } + + /// + /// Gets or Sets Numa29 + /// + [DataMember(Name = "numa29", EmitDefaultValue = false)] + public string Numa29 { get; set; } + + /// + /// Gets or Sets Onboot + /// + [DataMember(Name = "onboot", EmitDefaultValue = true)] + public bool Onboot { get; set; } + + /// + /// Gets or Sets Ostype + /// + [DataMember(Name = "ostype", EmitDefaultValue = false)] + public string Ostype { get; set; } + + /// + /// Gets or Sets Parallel0 + /// + [DataMember(Name = "parallel0", EmitDefaultValue = false)] + public string Parallel0 { get; set; } + + /// + /// Gets or Sets Parallel1 + /// + [DataMember(Name = "parallel1", EmitDefaultValue = false)] + public string Parallel1 { get; set; } + + /// + /// Gets or Sets Parallel2 + /// + [DataMember(Name = "parallel2", EmitDefaultValue = false)] + public string Parallel2 { get; set; } + + /// + /// Gets or Sets Parallel3 + /// + [DataMember(Name = "parallel3", EmitDefaultValue = false)] + public string Parallel3 { get; set; } + + /// + /// Gets or Sets Parallel4 + /// + [DataMember(Name = "parallel4", EmitDefaultValue = false)] + public string Parallel4 { get; set; } + + /// + /// Gets or Sets Parallel5 + /// + [DataMember(Name = "parallel5", EmitDefaultValue = false)] + public string Parallel5 { get; set; } + + /// + /// Gets or Sets Parallel6 + /// + [DataMember(Name = "parallel6", EmitDefaultValue = false)] + public string Parallel6 { get; set; } + + /// + /// Gets or Sets Parallel7 + /// + [DataMember(Name = "parallel7", EmitDefaultValue = false)] + public string Parallel7 { get; set; } + + /// + /// Gets or Sets Parallel8 + /// + [DataMember(Name = "parallel8", EmitDefaultValue = false)] + public string Parallel8 { get; set; } + + /// + /// Gets or Sets Parallel9 + /// + [DataMember(Name = "parallel9", EmitDefaultValue = false)] + public string Parallel9 { get; set; } + + /// + /// Gets or Sets Parallel10 + /// + [DataMember(Name = "parallel10", EmitDefaultValue = false)] + public string Parallel10 { get; set; } + + /// + /// Gets or Sets Parallel11 + /// + [DataMember(Name = "parallel11", EmitDefaultValue = false)] + public string Parallel11 { get; set; } + + /// + /// Gets or Sets Parallel12 + /// + [DataMember(Name = "parallel12", EmitDefaultValue = false)] + public string Parallel12 { get; set; } + + /// + /// Gets or Sets Parallel13 + /// + [DataMember(Name = "parallel13", EmitDefaultValue = false)] + public string Parallel13 { get; set; } + + /// + /// Gets or Sets Parallel14 + /// + [DataMember(Name = "parallel14", EmitDefaultValue = false)] + public string Parallel14 { get; set; } + + /// + /// Gets or Sets Parallel15 + /// + [DataMember(Name = "parallel15", EmitDefaultValue = false)] + public string Parallel15 { get; set; } + + /// + /// Gets or Sets Parallel16 + /// + [DataMember(Name = "parallel16", EmitDefaultValue = false)] + public string Parallel16 { get; set; } + + /// + /// Gets or Sets Parallel17 + /// + [DataMember(Name = "parallel17", EmitDefaultValue = false)] + public string Parallel17 { get; set; } + + /// + /// Gets or Sets Parallel18 + /// + [DataMember(Name = "parallel18", EmitDefaultValue = false)] + public string Parallel18 { get; set; } + + /// + /// Gets or Sets Parallel19 + /// + [DataMember(Name = "parallel19", EmitDefaultValue = false)] + public string Parallel19 { get; set; } + + /// + /// Gets or Sets Parallel20 + /// + [DataMember(Name = "parallel20", EmitDefaultValue = false)] + public string Parallel20 { get; set; } + + /// + /// Gets or Sets Parallel21 + /// + [DataMember(Name = "parallel21", EmitDefaultValue = false)] + public string Parallel21 { get; set; } + + /// + /// Gets or Sets Parallel22 + /// + [DataMember(Name = "parallel22", EmitDefaultValue = false)] + public string Parallel22 { get; set; } + + /// + /// Gets or Sets Parallel23 + /// + [DataMember(Name = "parallel23", EmitDefaultValue = false)] + public string Parallel23 { get; set; } + + /// + /// Gets or Sets Parallel24 + /// + [DataMember(Name = "parallel24", EmitDefaultValue = false)] + public string Parallel24 { get; set; } + + /// + /// Gets or Sets Parallel25 + /// + [DataMember(Name = "parallel25", EmitDefaultValue = false)] + public string Parallel25 { get; set; } + + /// + /// Gets or Sets Parallel26 + /// + [DataMember(Name = "parallel26", EmitDefaultValue = false)] + public string Parallel26 { get; set; } + + /// + /// Gets or Sets Parallel27 + /// + [DataMember(Name = "parallel27", EmitDefaultValue = false)] + public string Parallel27 { get; set; } + + /// + /// Gets or Sets Parallel28 + /// + [DataMember(Name = "parallel28", EmitDefaultValue = false)] + public string Parallel28 { get; set; } + + /// + /// Gets or Sets Parallel29 + /// + [DataMember(Name = "parallel29", EmitDefaultValue = false)] + public string Parallel29 { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Protection + /// + [DataMember(Name = "protection", EmitDefaultValue = true)] + public bool Protection { get; set; } + + /// + /// Gets or Sets Reboot + /// + [DataMember(Name = "reboot", EmitDefaultValue = true)] + public bool Reboot { get; set; } + + /// + /// Gets or Sets Rng0 + /// + [DataMember(Name = "rng0", EmitDefaultValue = false)] + public string Rng0 { get; set; } + + /// + /// Gets or Sets Sata0 + /// + [DataMember(Name = "sata0", EmitDefaultValue = false)] + public string Sata0 { get; set; } + + /// + /// Gets or Sets Sata1 + /// + [DataMember(Name = "sata1", EmitDefaultValue = false)] + public string Sata1 { get; set; } + + /// + /// Gets or Sets Sata2 + /// + [DataMember(Name = "sata2", EmitDefaultValue = false)] + public string Sata2 { get; set; } + + /// + /// Gets or Sets Sata3 + /// + [DataMember(Name = "sata3", EmitDefaultValue = false)] + public string Sata3 { get; set; } + + /// + /// Gets or Sets Sata4 + /// + [DataMember(Name = "sata4", EmitDefaultValue = false)] + public string Sata4 { get; set; } + + /// + /// Gets or Sets Sata5 + /// + [DataMember(Name = "sata5", EmitDefaultValue = false)] + public string Sata5 { get; set; } + + /// + /// Gets or Sets Sata6 + /// + [DataMember(Name = "sata6", EmitDefaultValue = false)] + public string Sata6 { get; set; } + + /// + /// Gets or Sets Sata7 + /// + [DataMember(Name = "sata7", EmitDefaultValue = false)] + public string Sata7 { get; set; } + + /// + /// Gets or Sets Sata8 + /// + [DataMember(Name = "sata8", EmitDefaultValue = false)] + public string Sata8 { get; set; } + + /// + /// Gets or Sets Sata9 + /// + [DataMember(Name = "sata9", EmitDefaultValue = false)] + public string Sata9 { get; set; } + + /// + /// Gets or Sets Sata10 + /// + [DataMember(Name = "sata10", EmitDefaultValue = false)] + public string Sata10 { get; set; } + + /// + /// Gets or Sets Sata11 + /// + [DataMember(Name = "sata11", EmitDefaultValue = false)] + public string Sata11 { get; set; } + + /// + /// Gets or Sets Sata12 + /// + [DataMember(Name = "sata12", EmitDefaultValue = false)] + public string Sata12 { get; set; } + + /// + /// Gets or Sets Sata13 + /// + [DataMember(Name = "sata13", EmitDefaultValue = false)] + public string Sata13 { get; set; } + + /// + /// Gets or Sets Sata14 + /// + [DataMember(Name = "sata14", EmitDefaultValue = false)] + public string Sata14 { get; set; } + + /// + /// Gets or Sets Sata15 + /// + [DataMember(Name = "sata15", EmitDefaultValue = false)] + public string Sata15 { get; set; } + + /// + /// Gets or Sets Sata16 + /// + [DataMember(Name = "sata16", EmitDefaultValue = false)] + public string Sata16 { get; set; } + + /// + /// Gets or Sets Sata17 + /// + [DataMember(Name = "sata17", EmitDefaultValue = false)] + public string Sata17 { get; set; } + + /// + /// Gets or Sets Sata18 + /// + [DataMember(Name = "sata18", EmitDefaultValue = false)] + public string Sata18 { get; set; } + + /// + /// Gets or Sets Sata19 + /// + [DataMember(Name = "sata19", EmitDefaultValue = false)] + public string Sata19 { get; set; } + + /// + /// Gets or Sets Sata20 + /// + [DataMember(Name = "sata20", EmitDefaultValue = false)] + public string Sata20 { get; set; } + + /// + /// Gets or Sets Sata21 + /// + [DataMember(Name = "sata21", EmitDefaultValue = false)] + public string Sata21 { get; set; } + + /// + /// Gets or Sets Sata22 + /// + [DataMember(Name = "sata22", EmitDefaultValue = false)] + public string Sata22 { get; set; } + + /// + /// Gets or Sets Sata23 + /// + [DataMember(Name = "sata23", EmitDefaultValue = false)] + public string Sata23 { get; set; } + + /// + /// Gets or Sets Sata24 + /// + [DataMember(Name = "sata24", EmitDefaultValue = false)] + public string Sata24 { get; set; } + + /// + /// Gets or Sets Sata25 + /// + [DataMember(Name = "sata25", EmitDefaultValue = false)] + public string Sata25 { get; set; } + + /// + /// Gets or Sets Sata26 + /// + [DataMember(Name = "sata26", EmitDefaultValue = false)] + public string Sata26 { get; set; } + + /// + /// Gets or Sets Sata27 + /// + [DataMember(Name = "sata27", EmitDefaultValue = false)] + public string Sata27 { get; set; } + + /// + /// Gets or Sets Sata28 + /// + [DataMember(Name = "sata28", EmitDefaultValue = false)] + public string Sata28 { get; set; } + + /// + /// Gets or Sets Sata29 + /// + [DataMember(Name = "sata29", EmitDefaultValue = false)] + public string Sata29 { get; set; } + + /// + /// Gets or Sets Scsi0 + /// + [DataMember(Name = "scsi0", EmitDefaultValue = false)] + public string Scsi0 { get; set; } + + /// + /// Gets or Sets Scsi1 + /// + [DataMember(Name = "scsi1", EmitDefaultValue = false)] + public string Scsi1 { get; set; } + + /// + /// Gets or Sets Scsi2 + /// + [DataMember(Name = "scsi2", EmitDefaultValue = false)] + public string Scsi2 { get; set; } + + /// + /// Gets or Sets Scsi3 + /// + [DataMember(Name = "scsi3", EmitDefaultValue = false)] + public string Scsi3 { get; set; } + + /// + /// Gets or Sets Scsi4 + /// + [DataMember(Name = "scsi4", EmitDefaultValue = false)] + public string Scsi4 { get; set; } + + /// + /// Gets or Sets Scsi5 + /// + [DataMember(Name = "scsi5", EmitDefaultValue = false)] + public string Scsi5 { get; set; } + + /// + /// Gets or Sets Scsi6 + /// + [DataMember(Name = "scsi6", EmitDefaultValue = false)] + public string Scsi6 { get; set; } + + /// + /// Gets or Sets Scsi7 + /// + [DataMember(Name = "scsi7", EmitDefaultValue = false)] + public string Scsi7 { get; set; } + + /// + /// Gets or Sets Scsi8 + /// + [DataMember(Name = "scsi8", EmitDefaultValue = false)] + public string Scsi8 { get; set; } + + /// + /// Gets or Sets Scsi9 + /// + [DataMember(Name = "scsi9", EmitDefaultValue = false)] + public string Scsi9 { get; set; } + + /// + /// Gets or Sets Scsi10 + /// + [DataMember(Name = "scsi10", EmitDefaultValue = false)] + public string Scsi10 { get; set; } + + /// + /// Gets or Sets Scsi11 + /// + [DataMember(Name = "scsi11", EmitDefaultValue = false)] + public string Scsi11 { get; set; } + + /// + /// Gets or Sets Scsi12 + /// + [DataMember(Name = "scsi12", EmitDefaultValue = false)] + public string Scsi12 { get; set; } + + /// + /// Gets or Sets Scsi13 + /// + [DataMember(Name = "scsi13", EmitDefaultValue = false)] + public string Scsi13 { get; set; } + + /// + /// Gets or Sets Scsi14 + /// + [DataMember(Name = "scsi14", EmitDefaultValue = false)] + public string Scsi14 { get; set; } + + /// + /// Gets or Sets Scsi15 + /// + [DataMember(Name = "scsi15", EmitDefaultValue = false)] + public string Scsi15 { get; set; } + + /// + /// Gets or Sets Scsi16 + /// + [DataMember(Name = "scsi16", EmitDefaultValue = false)] + public string Scsi16 { get; set; } + + /// + /// Gets or Sets Scsi17 + /// + [DataMember(Name = "scsi17", EmitDefaultValue = false)] + public string Scsi17 { get; set; } + + /// + /// Gets or Sets Scsi18 + /// + [DataMember(Name = "scsi18", EmitDefaultValue = false)] + public string Scsi18 { get; set; } + + /// + /// Gets or Sets Scsi19 + /// + [DataMember(Name = "scsi19", EmitDefaultValue = false)] + public string Scsi19 { get; set; } + + /// + /// Gets or Sets Scsi20 + /// + [DataMember(Name = "scsi20", EmitDefaultValue = false)] + public string Scsi20 { get; set; } + + /// + /// Gets or Sets Scsi21 + /// + [DataMember(Name = "scsi21", EmitDefaultValue = false)] + public string Scsi21 { get; set; } + + /// + /// Gets or Sets Scsi22 + /// + [DataMember(Name = "scsi22", EmitDefaultValue = false)] + public string Scsi22 { get; set; } + + /// + /// Gets or Sets Scsi23 + /// + [DataMember(Name = "scsi23", EmitDefaultValue = false)] + public string Scsi23 { get; set; } + + /// + /// Gets or Sets Scsi24 + /// + [DataMember(Name = "scsi24", EmitDefaultValue = false)] + public string Scsi24 { get; set; } + + /// + /// Gets or Sets Scsi25 + /// + [DataMember(Name = "scsi25", EmitDefaultValue = false)] + public string Scsi25 { get; set; } + + /// + /// Gets or Sets Scsi26 + /// + [DataMember(Name = "scsi26", EmitDefaultValue = false)] + public string Scsi26 { get; set; } + + /// + /// Gets or Sets Scsi27 + /// + [DataMember(Name = "scsi27", EmitDefaultValue = false)] + public string Scsi27 { get; set; } + + /// + /// Gets or Sets Scsi28 + /// + [DataMember(Name = "scsi28", EmitDefaultValue = false)] + public string Scsi28 { get; set; } + + /// + /// Gets or Sets Scsi29 + /// + [DataMember(Name = "scsi29", EmitDefaultValue = false)] + public string Scsi29 { get; set; } + + /// + /// Gets or Sets Scsihw + /// + [DataMember(Name = "scsihw", EmitDefaultValue = false)] + public string Scsihw { get; set; } + + /// + /// Gets or Sets Searchdomain + /// + [DataMember(Name = "searchdomain", EmitDefaultValue = false)] + public string Searchdomain { get; set; } + + /// + /// Gets or Sets Serial0 + /// + [DataMember(Name = "serial0", EmitDefaultValue = false)] + public string Serial0 { get; set; } + + /// + /// Gets or Sets Serial1 + /// + [DataMember(Name = "serial1", EmitDefaultValue = false)] + public string Serial1 { get; set; } + + /// + /// Gets or Sets Serial2 + /// + [DataMember(Name = "serial2", EmitDefaultValue = false)] + public string Serial2 { get; set; } + + /// + /// Gets or Sets Serial3 + /// + [DataMember(Name = "serial3", EmitDefaultValue = false)] + public string Serial3 { get; set; } + + /// + /// Gets or Sets Serial4 + /// + [DataMember(Name = "serial4", EmitDefaultValue = false)] + public string Serial4 { get; set; } + + /// + /// Gets or Sets Serial5 + /// + [DataMember(Name = "serial5", EmitDefaultValue = false)] + public string Serial5 { get; set; } + + /// + /// Gets or Sets Serial6 + /// + [DataMember(Name = "serial6", EmitDefaultValue = false)] + public string Serial6 { get; set; } + + /// + /// Gets or Sets Serial7 + /// + [DataMember(Name = "serial7", EmitDefaultValue = false)] + public string Serial7 { get; set; } + + /// + /// Gets or Sets Serial8 + /// + [DataMember(Name = "serial8", EmitDefaultValue = false)] + public string Serial8 { get; set; } + + /// + /// Gets or Sets Serial9 + /// + [DataMember(Name = "serial9", EmitDefaultValue = false)] + public string Serial9 { get; set; } + + /// + /// Gets or Sets Serial10 + /// + [DataMember(Name = "serial10", EmitDefaultValue = false)] + public string Serial10 { get; set; } + + /// + /// Gets or Sets Serial11 + /// + [DataMember(Name = "serial11", EmitDefaultValue = false)] + public string Serial11 { get; set; } + + /// + /// Gets or Sets Serial12 + /// + [DataMember(Name = "serial12", EmitDefaultValue = false)] + public string Serial12 { get; set; } + + /// + /// Gets or Sets Serial13 + /// + [DataMember(Name = "serial13", EmitDefaultValue = false)] + public string Serial13 { get; set; } + + /// + /// Gets or Sets Serial14 + /// + [DataMember(Name = "serial14", EmitDefaultValue = false)] + public string Serial14 { get; set; } + + /// + /// Gets or Sets Serial15 + /// + [DataMember(Name = "serial15", EmitDefaultValue = false)] + public string Serial15 { get; set; } + + /// + /// Gets or Sets Serial16 + /// + [DataMember(Name = "serial16", EmitDefaultValue = false)] + public string Serial16 { get; set; } + + /// + /// Gets or Sets Serial17 + /// + [DataMember(Name = "serial17", EmitDefaultValue = false)] + public string Serial17 { get; set; } + + /// + /// Gets or Sets Serial18 + /// + [DataMember(Name = "serial18", EmitDefaultValue = false)] + public string Serial18 { get; set; } + + /// + /// Gets or Sets Serial19 + /// + [DataMember(Name = "serial19", EmitDefaultValue = false)] + public string Serial19 { get; set; } + + /// + /// Gets or Sets Serial20 + /// + [DataMember(Name = "serial20", EmitDefaultValue = false)] + public string Serial20 { get; set; } + + /// + /// Gets or Sets Serial21 + /// + [DataMember(Name = "serial21", EmitDefaultValue = false)] + public string Serial21 { get; set; } + + /// + /// Gets or Sets Serial22 + /// + [DataMember(Name = "serial22", EmitDefaultValue = false)] + public string Serial22 { get; set; } + + /// + /// Gets or Sets Serial23 + /// + [DataMember(Name = "serial23", EmitDefaultValue = false)] + public string Serial23 { get; set; } + + /// + /// Gets or Sets Serial24 + /// + [DataMember(Name = "serial24", EmitDefaultValue = false)] + public string Serial24 { get; set; } + + /// + /// Gets or Sets Serial25 + /// + [DataMember(Name = "serial25", EmitDefaultValue = false)] + public string Serial25 { get; set; } + + /// + /// Gets or Sets Serial26 + /// + [DataMember(Name = "serial26", EmitDefaultValue = false)] + public string Serial26 { get; set; } + + /// + /// Gets or Sets Serial27 + /// + [DataMember(Name = "serial27", EmitDefaultValue = false)] + public string Serial27 { get; set; } + + /// + /// Gets or Sets Serial28 + /// + [DataMember(Name = "serial28", EmitDefaultValue = false)] + public string Serial28 { get; set; } + + /// + /// Gets or Sets Serial29 + /// + [DataMember(Name = "serial29", EmitDefaultValue = false)] + public string Serial29 { get; set; } + + /// + /// Gets or Sets Shares + /// + [DataMember(Name = "shares", EmitDefaultValue = false)] + public int Shares { get; set; } + + /// + /// Gets or Sets Smbios1 + /// + [DataMember(Name = "smbios1", EmitDefaultValue = false)] + public string Smbios1 { get; set; } + + /// + /// Gets or Sets Smp + /// + [DataMember(Name = "smp", EmitDefaultValue = false)] + public int Smp { get; set; } + + /// + /// Gets or Sets Sockets + /// + [DataMember(Name = "sockets", EmitDefaultValue = false)] + public int Sockets { get; set; } + + /// + /// Gets or Sets SpiceEnhancements + /// + [DataMember(Name = "spice_enhancements", EmitDefaultValue = false)] + public string SpiceEnhancements { get; set; } + + /// + /// Gets or Sets Sshkeys + /// + [DataMember(Name = "sshkeys", EmitDefaultValue = false)] + public string Sshkeys { get; set; } + + /// + /// Gets or Sets Start + /// + [DataMember(Name = "start", EmitDefaultValue = true)] + public bool Start { get; set; } + + /// + /// Gets or Sets Startdate + /// + [DataMember(Name = "startdate", EmitDefaultValue = false)] + public string Startdate { get; set; } + + /// + /// Gets or Sets Startup + /// + [DataMember(Name = "startup", EmitDefaultValue = false)] + public string Startup { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Tablet + /// + [DataMember(Name = "tablet", EmitDefaultValue = true)] + public bool Tablet { get; set; } + + /// + /// Gets or Sets Tags + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Gets or Sets Tdf + /// + [DataMember(Name = "tdf", EmitDefaultValue = true)] + public bool Tdf { get; set; } + + /// + /// Gets or Sets Template + /// + [DataMember(Name = "template", EmitDefaultValue = true)] + public bool Template { get; set; } + + /// + /// Gets or Sets Tpmstate0 + /// + [DataMember(Name = "tpmstate0", EmitDefaultValue = false)] + public string Tpmstate0 { get; set; } + + /// + /// Gets or Sets Unique + /// + [DataMember(Name = "unique", EmitDefaultValue = true)] + public bool Unique { get; set; } + + /// + /// Gets or Sets Unused0 + /// + [DataMember(Name = "unused0", EmitDefaultValue = false)] + public string Unused0 { get; set; } + + /// + /// Gets or Sets Unused1 + /// + [DataMember(Name = "unused1", EmitDefaultValue = false)] + public string Unused1 { get; set; } + + /// + /// Gets or Sets Unused2 + /// + [DataMember(Name = "unused2", EmitDefaultValue = false)] + public string Unused2 { get; set; } + + /// + /// Gets or Sets Unused3 + /// + [DataMember(Name = "unused3", EmitDefaultValue = false)] + public string Unused3 { get; set; } + + /// + /// Gets or Sets Unused4 + /// + [DataMember(Name = "unused4", EmitDefaultValue = false)] + public string Unused4 { get; set; } + + /// + /// Gets or Sets Unused5 + /// + [DataMember(Name = "unused5", EmitDefaultValue = false)] + public string Unused5 { get; set; } + + /// + /// Gets or Sets Unused6 + /// + [DataMember(Name = "unused6", EmitDefaultValue = false)] + public string Unused6 { get; set; } + + /// + /// Gets or Sets Unused7 + /// + [DataMember(Name = "unused7", EmitDefaultValue = false)] + public string Unused7 { get; set; } + + /// + /// Gets or Sets Unused8 + /// + [DataMember(Name = "unused8", EmitDefaultValue = false)] + public string Unused8 { get; set; } + + /// + /// Gets or Sets Unused9 + /// + [DataMember(Name = "unused9", EmitDefaultValue = false)] + public string Unused9 { get; set; } + + /// + /// Gets or Sets Unused10 + /// + [DataMember(Name = "unused10", EmitDefaultValue = false)] + public string Unused10 { get; set; } + + /// + /// Gets or Sets Unused11 + /// + [DataMember(Name = "unused11", EmitDefaultValue = false)] + public string Unused11 { get; set; } + + /// + /// Gets or Sets Unused12 + /// + [DataMember(Name = "unused12", EmitDefaultValue = false)] + public string Unused12 { get; set; } + + /// + /// Gets or Sets Unused13 + /// + [DataMember(Name = "unused13", EmitDefaultValue = false)] + public string Unused13 { get; set; } + + /// + /// Gets or Sets Unused14 + /// + [DataMember(Name = "unused14", EmitDefaultValue = false)] + public string Unused14 { get; set; } + + /// + /// Gets or Sets Unused15 + /// + [DataMember(Name = "unused15", EmitDefaultValue = false)] + public string Unused15 { get; set; } + + /// + /// Gets or Sets Unused16 + /// + [DataMember(Name = "unused16", EmitDefaultValue = false)] + public string Unused16 { get; set; } + + /// + /// Gets or Sets Unused17 + /// + [DataMember(Name = "unused17", EmitDefaultValue = false)] + public string Unused17 { get; set; } + + /// + /// Gets or Sets Unused18 + /// + [DataMember(Name = "unused18", EmitDefaultValue = false)] + public string Unused18 { get; set; } + + /// + /// Gets or Sets Unused19 + /// + [DataMember(Name = "unused19", EmitDefaultValue = false)] + public string Unused19 { get; set; } + + /// + /// Gets or Sets Unused20 + /// + [DataMember(Name = "unused20", EmitDefaultValue = false)] + public string Unused20 { get; set; } + + /// + /// Gets or Sets Unused21 + /// + [DataMember(Name = "unused21", EmitDefaultValue = false)] + public string Unused21 { get; set; } + + /// + /// Gets or Sets Unused22 + /// + [DataMember(Name = "unused22", EmitDefaultValue = false)] + public string Unused22 { get; set; } + + /// + /// Gets or Sets Unused23 + /// + [DataMember(Name = "unused23", EmitDefaultValue = false)] + public string Unused23 { get; set; } + + /// + /// Gets or Sets Unused24 + /// + [DataMember(Name = "unused24", EmitDefaultValue = false)] + public string Unused24 { get; set; } + + /// + /// Gets or Sets Unused25 + /// + [DataMember(Name = "unused25", EmitDefaultValue = false)] + public string Unused25 { get; set; } + + /// + /// Gets or Sets Unused26 + /// + [DataMember(Name = "unused26", EmitDefaultValue = false)] + public string Unused26 { get; set; } + + /// + /// Gets or Sets Unused27 + /// + [DataMember(Name = "unused27", EmitDefaultValue = false)] + public string Unused27 { get; set; } + + /// + /// Gets or Sets Unused28 + /// + [DataMember(Name = "unused28", EmitDefaultValue = false)] + public string Unused28 { get; set; } + + /// + /// Gets or Sets Unused29 + /// + [DataMember(Name = "unused29", EmitDefaultValue = false)] + public string Unused29 { get; set; } + + /// + /// Gets or Sets Usb0 + /// + [DataMember(Name = "usb0", EmitDefaultValue = false)] + public string Usb0 { get; set; } + + /// + /// Gets or Sets Usb1 + /// + [DataMember(Name = "usb1", EmitDefaultValue = false)] + public string Usb1 { get; set; } + + /// + /// Gets or Sets Usb2 + /// + [DataMember(Name = "usb2", EmitDefaultValue = false)] + public string Usb2 { get; set; } + + /// + /// Gets or Sets Usb3 + /// + [DataMember(Name = "usb3", EmitDefaultValue = false)] + public string Usb3 { get; set; } + + /// + /// Gets or Sets Usb4 + /// + [DataMember(Name = "usb4", EmitDefaultValue = false)] + public string Usb4 { get; set; } + + /// + /// Gets or Sets Usb5 + /// + [DataMember(Name = "usb5", EmitDefaultValue = false)] + public string Usb5 { get; set; } + + /// + /// Gets or Sets Usb6 + /// + [DataMember(Name = "usb6", EmitDefaultValue = false)] + public string Usb6 { get; set; } + + /// + /// Gets or Sets Usb7 + /// + [DataMember(Name = "usb7", EmitDefaultValue = false)] + public string Usb7 { get; set; } + + /// + /// Gets or Sets Usb8 + /// + [DataMember(Name = "usb8", EmitDefaultValue = false)] + public string Usb8 { get; set; } + + /// + /// Gets or Sets Usb9 + /// + [DataMember(Name = "usb9", EmitDefaultValue = false)] + public string Usb9 { get; set; } + + /// + /// Gets or Sets Usb10 + /// + [DataMember(Name = "usb10", EmitDefaultValue = false)] + public string Usb10 { get; set; } + + /// + /// Gets or Sets Usb11 + /// + [DataMember(Name = "usb11", EmitDefaultValue = false)] + public string Usb11 { get; set; } + + /// + /// Gets or Sets Usb12 + /// + [DataMember(Name = "usb12", EmitDefaultValue = false)] + public string Usb12 { get; set; } + + /// + /// Gets or Sets Usb13 + /// + [DataMember(Name = "usb13", EmitDefaultValue = false)] + public string Usb13 { get; set; } + + /// + /// Gets or Sets Usb14 + /// + [DataMember(Name = "usb14", EmitDefaultValue = false)] + public string Usb14 { get; set; } + + /// + /// Gets or Sets Usb15 + /// + [DataMember(Name = "usb15", EmitDefaultValue = false)] + public string Usb15 { get; set; } + + /// + /// Gets or Sets Usb16 + /// + [DataMember(Name = "usb16", EmitDefaultValue = false)] + public string Usb16 { get; set; } + + /// + /// Gets or Sets Usb17 + /// + [DataMember(Name = "usb17", EmitDefaultValue = false)] + public string Usb17 { get; set; } + + /// + /// Gets or Sets Usb18 + /// + [DataMember(Name = "usb18", EmitDefaultValue = false)] + public string Usb18 { get; set; } + + /// + /// Gets or Sets Usb19 + /// + [DataMember(Name = "usb19", EmitDefaultValue = false)] + public string Usb19 { get; set; } + + /// + /// Gets or Sets Usb20 + /// + [DataMember(Name = "usb20", EmitDefaultValue = false)] + public string Usb20 { get; set; } + + /// + /// Gets or Sets Usb21 + /// + [DataMember(Name = "usb21", EmitDefaultValue = false)] + public string Usb21 { get; set; } + + /// + /// Gets or Sets Usb22 + /// + [DataMember(Name = "usb22", EmitDefaultValue = false)] + public string Usb22 { get; set; } + + /// + /// Gets or Sets Usb23 + /// + [DataMember(Name = "usb23", EmitDefaultValue = false)] + public string Usb23 { get; set; } + + /// + /// Gets or Sets Usb24 + /// + [DataMember(Name = "usb24", EmitDefaultValue = false)] + public string Usb24 { get; set; } + + /// + /// Gets or Sets Usb25 + /// + [DataMember(Name = "usb25", EmitDefaultValue = false)] + public string Usb25 { get; set; } + + /// + /// Gets or Sets Usb26 + /// + [DataMember(Name = "usb26", EmitDefaultValue = false)] + public string Usb26 { get; set; } + + /// + /// Gets or Sets Usb27 + /// + [DataMember(Name = "usb27", EmitDefaultValue = false)] + public string Usb27 { get; set; } + + /// + /// Gets or Sets Usb28 + /// + [DataMember(Name = "usb28", EmitDefaultValue = false)] + public string Usb28 { get; set; } + + /// + /// Gets or Sets Usb29 + /// + [DataMember(Name = "usb29", EmitDefaultValue = false)] + public string Usb29 { get; set; } + + /// + /// Gets or Sets Vcpus + /// + [DataMember(Name = "vcpus", EmitDefaultValue = false)] + public int Vcpus { get; set; } + + /// + /// Gets or Sets Vga + /// + [DataMember(Name = "vga", EmitDefaultValue = false)] + public string Vga { get; set; } + + /// + /// Gets or Sets Virtio0 + /// + [DataMember(Name = "virtio0", EmitDefaultValue = false)] + public string Virtio0 { get; set; } + + /// + /// Gets or Sets Virtio1 + /// + [DataMember(Name = "virtio1", EmitDefaultValue = false)] + public string Virtio1 { get; set; } + + /// + /// Gets or Sets Virtio2 + /// + [DataMember(Name = "virtio2", EmitDefaultValue = false)] + public string Virtio2 { get; set; } + + /// + /// Gets or Sets Virtio3 + /// + [DataMember(Name = "virtio3", EmitDefaultValue = false)] + public string Virtio3 { get; set; } + + /// + /// Gets or Sets Virtio4 + /// + [DataMember(Name = "virtio4", EmitDefaultValue = false)] + public string Virtio4 { get; set; } + + /// + /// Gets or Sets Virtio5 + /// + [DataMember(Name = "virtio5", EmitDefaultValue = false)] + public string Virtio5 { get; set; } + + /// + /// Gets or Sets Virtio6 + /// + [DataMember(Name = "virtio6", EmitDefaultValue = false)] + public string Virtio6 { get; set; } + + /// + /// Gets or Sets Virtio7 + /// + [DataMember(Name = "virtio7", EmitDefaultValue = false)] + public string Virtio7 { get; set; } + + /// + /// Gets or Sets Virtio8 + /// + [DataMember(Name = "virtio8", EmitDefaultValue = false)] + public string Virtio8 { get; set; } + + /// + /// Gets or Sets Virtio9 + /// + [DataMember(Name = "virtio9", EmitDefaultValue = false)] + public string Virtio9 { get; set; } + + /// + /// Gets or Sets Virtio10 + /// + [DataMember(Name = "virtio10", EmitDefaultValue = false)] + public string Virtio10 { get; set; } + + /// + /// Gets or Sets Virtio11 + /// + [DataMember(Name = "virtio11", EmitDefaultValue = false)] + public string Virtio11 { get; set; } + + /// + /// Gets or Sets Virtio12 + /// + [DataMember(Name = "virtio12", EmitDefaultValue = false)] + public string Virtio12 { get; set; } + + /// + /// Gets or Sets Virtio13 + /// + [DataMember(Name = "virtio13", EmitDefaultValue = false)] + public string Virtio13 { get; set; } + + /// + /// Gets or Sets Virtio14 + /// + [DataMember(Name = "virtio14", EmitDefaultValue = false)] + public string Virtio14 { get; set; } + + /// + /// Gets or Sets Virtio15 + /// + [DataMember(Name = "virtio15", EmitDefaultValue = false)] + public string Virtio15 { get; set; } + + /// + /// Gets or Sets Virtio16 + /// + [DataMember(Name = "virtio16", EmitDefaultValue = false)] + public string Virtio16 { get; set; } + + /// + /// Gets or Sets Virtio17 + /// + [DataMember(Name = "virtio17", EmitDefaultValue = false)] + public string Virtio17 { get; set; } + + /// + /// Gets or Sets Virtio18 + /// + [DataMember(Name = "virtio18", EmitDefaultValue = false)] + public string Virtio18 { get; set; } + + /// + /// Gets or Sets Virtio19 + /// + [DataMember(Name = "virtio19", EmitDefaultValue = false)] + public string Virtio19 { get; set; } + + /// + /// Gets or Sets Virtio20 + /// + [DataMember(Name = "virtio20", EmitDefaultValue = false)] + public string Virtio20 { get; set; } + + /// + /// Gets or Sets Virtio21 + /// + [DataMember(Name = "virtio21", EmitDefaultValue = false)] + public string Virtio21 { get; set; } + + /// + /// Gets or Sets Virtio22 + /// + [DataMember(Name = "virtio22", EmitDefaultValue = false)] + public string Virtio22 { get; set; } + + /// + /// Gets or Sets Virtio23 + /// + [DataMember(Name = "virtio23", EmitDefaultValue = false)] + public string Virtio23 { get; set; } + + /// + /// Gets or Sets Virtio24 + /// + [DataMember(Name = "virtio24", EmitDefaultValue = false)] + public string Virtio24 { get; set; } + + /// + /// Gets or Sets Virtio25 + /// + [DataMember(Name = "virtio25", EmitDefaultValue = false)] + public string Virtio25 { get; set; } + + /// + /// Gets or Sets Virtio26 + /// + [DataMember(Name = "virtio26", EmitDefaultValue = false)] + public string Virtio26 { get; set; } + + /// + /// Gets or Sets Virtio27 + /// + [DataMember(Name = "virtio27", EmitDefaultValue = false)] + public string Virtio27 { get; set; } + + /// + /// Gets or Sets Virtio28 + /// + [DataMember(Name = "virtio28", EmitDefaultValue = false)] + public string Virtio28 { get; set; } + + /// + /// Gets or Sets Virtio29 + /// + [DataMember(Name = "virtio29", EmitDefaultValue = false)] + public string Virtio29 { get; set; } + + /// + /// Gets or Sets Virtiofs0 + /// + [DataMember(Name = "virtiofs0", EmitDefaultValue = false)] + public string Virtiofs0 { get; set; } + + /// + /// Gets or Sets Virtiofs1 + /// + [DataMember(Name = "virtiofs1", EmitDefaultValue = false)] + public string Virtiofs1 { get; set; } + + /// + /// Gets or Sets Virtiofs2 + /// + [DataMember(Name = "virtiofs2", EmitDefaultValue = false)] + public string Virtiofs2 { get; set; } + + /// + /// Gets or Sets Virtiofs3 + /// + [DataMember(Name = "virtiofs3", EmitDefaultValue = false)] + public string Virtiofs3 { get; set; } + + /// + /// Gets or Sets Virtiofs4 + /// + [DataMember(Name = "virtiofs4", EmitDefaultValue = false)] + public string Virtiofs4 { get; set; } + + /// + /// Gets or Sets Virtiofs5 + /// + [DataMember(Name = "virtiofs5", EmitDefaultValue = false)] + public string Virtiofs5 { get; set; } + + /// + /// Gets or Sets Virtiofs6 + /// + [DataMember(Name = "virtiofs6", EmitDefaultValue = false)] + public string Virtiofs6 { get; set; } + + /// + /// Gets or Sets Virtiofs7 + /// + [DataMember(Name = "virtiofs7", EmitDefaultValue = false)] + public string Virtiofs7 { get; set; } + + /// + /// Gets or Sets Virtiofs8 + /// + [DataMember(Name = "virtiofs8", EmitDefaultValue = false)] + public string Virtiofs8 { get; set; } + + /// + /// Gets or Sets Virtiofs9 + /// + [DataMember(Name = "virtiofs9", EmitDefaultValue = false)] + public string Virtiofs9 { get; set; } + + /// + /// Gets or Sets Virtiofs10 + /// + [DataMember(Name = "virtiofs10", EmitDefaultValue = false)] + public string Virtiofs10 { get; set; } + + /// + /// Gets or Sets Virtiofs11 + /// + [DataMember(Name = "virtiofs11", EmitDefaultValue = false)] + public string Virtiofs11 { get; set; } + + /// + /// Gets or Sets Virtiofs12 + /// + [DataMember(Name = "virtiofs12", EmitDefaultValue = false)] + public string Virtiofs12 { get; set; } + + /// + /// Gets or Sets Virtiofs13 + /// + [DataMember(Name = "virtiofs13", EmitDefaultValue = false)] + public string Virtiofs13 { get; set; } + + /// + /// Gets or Sets Virtiofs14 + /// + [DataMember(Name = "virtiofs14", EmitDefaultValue = false)] + public string Virtiofs14 { get; set; } + + /// + /// Gets or Sets Virtiofs15 + /// + [DataMember(Name = "virtiofs15", EmitDefaultValue = false)] + public string Virtiofs15 { get; set; } + + /// + /// Gets or Sets Virtiofs16 + /// + [DataMember(Name = "virtiofs16", EmitDefaultValue = false)] + public string Virtiofs16 { get; set; } + + /// + /// Gets or Sets Virtiofs17 + /// + [DataMember(Name = "virtiofs17", EmitDefaultValue = false)] + public string Virtiofs17 { get; set; } + + /// + /// Gets or Sets Virtiofs18 + /// + [DataMember(Name = "virtiofs18", EmitDefaultValue = false)] + public string Virtiofs18 { get; set; } + + /// + /// Gets or Sets Virtiofs19 + /// + [DataMember(Name = "virtiofs19", EmitDefaultValue = false)] + public string Virtiofs19 { get; set; } + + /// + /// Gets or Sets Virtiofs20 + /// + [DataMember(Name = "virtiofs20", EmitDefaultValue = false)] + public string Virtiofs20 { get; set; } + + /// + /// Gets or Sets Virtiofs21 + /// + [DataMember(Name = "virtiofs21", EmitDefaultValue = false)] + public string Virtiofs21 { get; set; } + + /// + /// Gets or Sets Virtiofs22 + /// + [DataMember(Name = "virtiofs22", EmitDefaultValue = false)] + public string Virtiofs22 { get; set; } + + /// + /// Gets or Sets Virtiofs23 + /// + [DataMember(Name = "virtiofs23", EmitDefaultValue = false)] + public string Virtiofs23 { get; set; } + + /// + /// Gets or Sets Virtiofs24 + /// + [DataMember(Name = "virtiofs24", EmitDefaultValue = false)] + public string Virtiofs24 { get; set; } + + /// + /// Gets or Sets Virtiofs25 + /// + [DataMember(Name = "virtiofs25", EmitDefaultValue = false)] + public string Virtiofs25 { get; set; } + + /// + /// Gets or Sets Virtiofs26 + /// + [DataMember(Name = "virtiofs26", EmitDefaultValue = false)] + public string Virtiofs26 { get; set; } + + /// + /// Gets or Sets Virtiofs27 + /// + [DataMember(Name = "virtiofs27", EmitDefaultValue = false)] + public string Virtiofs27 { get; set; } + + /// + /// Gets or Sets Virtiofs28 + /// + [DataMember(Name = "virtiofs28", EmitDefaultValue = false)] + public string Virtiofs28 { get; set; } + + /// + /// Gets or Sets Virtiofs29 + /// + [DataMember(Name = "virtiofs29", EmitDefaultValue = false)] + public string Virtiofs29 { get; set; } + + /// + /// Gets or Sets Vmgenid + /// + [DataMember(Name = "vmgenid", EmitDefaultValue = false)] + public string Vmgenid { get; set; } + + /// + /// Gets or Sets Vmid + /// + [DataMember(Name = "vmid", IsRequired = true, EmitDefaultValue = true)] + public int Vmid { get; set; } + + /// + /// Gets or Sets Vmstatestorage + /// + [DataMember(Name = "vmstatestorage", EmitDefaultValue = false)] + public string Vmstatestorage { get; set; } + + /// + /// Gets or Sets Watchdog + /// + [DataMember(Name = "watchdog", EmitDefaultValue = false)] + public string Watchdog { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateVMRequest {\n"); + sb.Append(" Acpi: ").Append(Acpi).Append("\n"); + sb.Append(" Affinity: ").Append(Affinity).Append("\n"); + sb.Append(" Agent: ").Append(Agent).Append("\n"); + sb.Append(" AllowKsm: ").Append(AllowKsm).Append("\n"); + sb.Append(" AmdSev: ").Append(AmdSev).Append("\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" Archive: ").Append(Archive).Append("\n"); + sb.Append(" Args: ").Append(Args).Append("\n"); + sb.Append(" Audio0: ").Append(Audio0).Append("\n"); + sb.Append(" Autostart: ").Append(Autostart).Append("\n"); + sb.Append(" Balloon: ").Append(Balloon).Append("\n"); + sb.Append(" Bios: ").Append(Bios).Append("\n"); + sb.Append(" Boot: ").Append(Boot).Append("\n"); + sb.Append(" Bootdisk: ").Append(Bootdisk).Append("\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Cdrom: ").Append(Cdrom).Append("\n"); + sb.Append(" Cicustom: ").Append(Cicustom).Append("\n"); + sb.Append(" Cipassword: ").Append(Cipassword).Append("\n"); + sb.Append(" Citype: ").Append(Citype).Append("\n"); + sb.Append(" Ciupgrade: ").Append(Ciupgrade).Append("\n"); + sb.Append(" Ciuser: ").Append(Ciuser).Append("\n"); + sb.Append(" Cores: ").Append(Cores).Append("\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpulimit: ").Append(Cpulimit).Append("\n"); + sb.Append(" Cpuunits: ").Append(Cpuunits).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Efidisk0: ").Append(Efidisk0).Append("\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" Freeze: ").Append(Freeze).Append("\n"); + sb.Append(" HaManaged: ").Append(HaManaged).Append("\n"); + sb.Append(" Hookscript: ").Append(Hookscript).Append("\n"); + sb.Append(" Hostpci0: ").Append(Hostpci0).Append("\n"); + sb.Append(" Hostpci1: ").Append(Hostpci1).Append("\n"); + sb.Append(" Hostpci2: ").Append(Hostpci2).Append("\n"); + sb.Append(" Hostpci3: ").Append(Hostpci3).Append("\n"); + sb.Append(" Hostpci4: ").Append(Hostpci4).Append("\n"); + sb.Append(" Hostpci5: ").Append(Hostpci5).Append("\n"); + sb.Append(" Hostpci6: ").Append(Hostpci6).Append("\n"); + sb.Append(" Hostpci7: ").Append(Hostpci7).Append("\n"); + sb.Append(" Hostpci8: ").Append(Hostpci8).Append("\n"); + sb.Append(" Hostpci9: ").Append(Hostpci9).Append("\n"); + sb.Append(" Hostpci10: ").Append(Hostpci10).Append("\n"); + sb.Append(" Hostpci11: ").Append(Hostpci11).Append("\n"); + sb.Append(" Hostpci12: ").Append(Hostpci12).Append("\n"); + sb.Append(" Hostpci13: ").Append(Hostpci13).Append("\n"); + sb.Append(" Hostpci14: ").Append(Hostpci14).Append("\n"); + sb.Append(" Hostpci15: ").Append(Hostpci15).Append("\n"); + sb.Append(" Hostpci16: ").Append(Hostpci16).Append("\n"); + sb.Append(" Hostpci17: ").Append(Hostpci17).Append("\n"); + sb.Append(" Hostpci18: ").Append(Hostpci18).Append("\n"); + sb.Append(" Hostpci19: ").Append(Hostpci19).Append("\n"); + sb.Append(" Hostpci20: ").Append(Hostpci20).Append("\n"); + sb.Append(" Hostpci21: ").Append(Hostpci21).Append("\n"); + sb.Append(" Hostpci22: ").Append(Hostpci22).Append("\n"); + sb.Append(" Hostpci23: ").Append(Hostpci23).Append("\n"); + sb.Append(" Hostpci24: ").Append(Hostpci24).Append("\n"); + sb.Append(" Hostpci25: ").Append(Hostpci25).Append("\n"); + sb.Append(" Hostpci26: ").Append(Hostpci26).Append("\n"); + sb.Append(" Hostpci27: ").Append(Hostpci27).Append("\n"); + sb.Append(" Hostpci28: ").Append(Hostpci28).Append("\n"); + sb.Append(" Hostpci29: ").Append(Hostpci29).Append("\n"); + sb.Append(" Hotplug: ").Append(Hotplug).Append("\n"); + sb.Append(" Hugepages: ").Append(Hugepages).Append("\n"); + sb.Append(" Ide0: ").Append(Ide0).Append("\n"); + sb.Append(" Ide1: ").Append(Ide1).Append("\n"); + sb.Append(" Ide2: ").Append(Ide2).Append("\n"); + sb.Append(" Ide3: ").Append(Ide3).Append("\n"); + sb.Append(" Ide4: ").Append(Ide4).Append("\n"); + sb.Append(" Ide5: ").Append(Ide5).Append("\n"); + sb.Append(" Ide6: ").Append(Ide6).Append("\n"); + sb.Append(" Ide7: ").Append(Ide7).Append("\n"); + sb.Append(" Ide8: ").Append(Ide8).Append("\n"); + sb.Append(" Ide9: ").Append(Ide9).Append("\n"); + sb.Append(" Ide10: ").Append(Ide10).Append("\n"); + sb.Append(" Ide11: ").Append(Ide11).Append("\n"); + sb.Append(" Ide12: ").Append(Ide12).Append("\n"); + sb.Append(" Ide13: ").Append(Ide13).Append("\n"); + sb.Append(" Ide14: ").Append(Ide14).Append("\n"); + sb.Append(" Ide15: ").Append(Ide15).Append("\n"); + sb.Append(" Ide16: ").Append(Ide16).Append("\n"); + sb.Append(" Ide17: ").Append(Ide17).Append("\n"); + sb.Append(" Ide18: ").Append(Ide18).Append("\n"); + sb.Append(" Ide19: ").Append(Ide19).Append("\n"); + sb.Append(" Ide20: ").Append(Ide20).Append("\n"); + sb.Append(" Ide21: ").Append(Ide21).Append("\n"); + sb.Append(" Ide22: ").Append(Ide22).Append("\n"); + sb.Append(" Ide23: ").Append(Ide23).Append("\n"); + sb.Append(" Ide24: ").Append(Ide24).Append("\n"); + sb.Append(" Ide25: ").Append(Ide25).Append("\n"); + sb.Append(" Ide26: ").Append(Ide26).Append("\n"); + sb.Append(" Ide27: ").Append(Ide27).Append("\n"); + sb.Append(" Ide28: ").Append(Ide28).Append("\n"); + sb.Append(" Ide29: ").Append(Ide29).Append("\n"); + sb.Append(" ImportWorkingStorage: ").Append(ImportWorkingStorage).Append("\n"); + sb.Append(" IntelTdx: ").Append(IntelTdx).Append("\n"); + sb.Append(" Ipconfig0: ").Append(Ipconfig0).Append("\n"); + sb.Append(" Ipconfig1: ").Append(Ipconfig1).Append("\n"); + sb.Append(" Ipconfig2: ").Append(Ipconfig2).Append("\n"); + sb.Append(" Ipconfig3: ").Append(Ipconfig3).Append("\n"); + sb.Append(" Ipconfig4: ").Append(Ipconfig4).Append("\n"); + sb.Append(" Ipconfig5: ").Append(Ipconfig5).Append("\n"); + sb.Append(" Ipconfig6: ").Append(Ipconfig6).Append("\n"); + sb.Append(" Ipconfig7: ").Append(Ipconfig7).Append("\n"); + sb.Append(" Ipconfig8: ").Append(Ipconfig8).Append("\n"); + sb.Append(" Ipconfig9: ").Append(Ipconfig9).Append("\n"); + sb.Append(" Ipconfig10: ").Append(Ipconfig10).Append("\n"); + sb.Append(" Ipconfig11: ").Append(Ipconfig11).Append("\n"); + sb.Append(" Ipconfig12: ").Append(Ipconfig12).Append("\n"); + sb.Append(" Ipconfig13: ").Append(Ipconfig13).Append("\n"); + sb.Append(" Ipconfig14: ").Append(Ipconfig14).Append("\n"); + sb.Append(" Ipconfig15: ").Append(Ipconfig15).Append("\n"); + sb.Append(" Ipconfig16: ").Append(Ipconfig16).Append("\n"); + sb.Append(" Ipconfig17: ").Append(Ipconfig17).Append("\n"); + sb.Append(" Ipconfig18: ").Append(Ipconfig18).Append("\n"); + sb.Append(" Ipconfig19: ").Append(Ipconfig19).Append("\n"); + sb.Append(" Ipconfig20: ").Append(Ipconfig20).Append("\n"); + sb.Append(" Ipconfig21: ").Append(Ipconfig21).Append("\n"); + sb.Append(" Ipconfig22: ").Append(Ipconfig22).Append("\n"); + sb.Append(" Ipconfig23: ").Append(Ipconfig23).Append("\n"); + sb.Append(" Ipconfig24: ").Append(Ipconfig24).Append("\n"); + sb.Append(" Ipconfig25: ").Append(Ipconfig25).Append("\n"); + sb.Append(" Ipconfig26: ").Append(Ipconfig26).Append("\n"); + sb.Append(" Ipconfig27: ").Append(Ipconfig27).Append("\n"); + sb.Append(" Ipconfig28: ").Append(Ipconfig28).Append("\n"); + sb.Append(" Ipconfig29: ").Append(Ipconfig29).Append("\n"); + sb.Append(" Ivshmem: ").Append(Ivshmem).Append("\n"); + sb.Append(" Keephugepages: ").Append(Keephugepages).Append("\n"); + sb.Append(" Keyboard: ").Append(Keyboard).Append("\n"); + sb.Append(" Kvm: ").Append(Kvm).Append("\n"); + sb.Append(" LiveRestore: ").Append(LiveRestore).Append("\n"); + sb.Append(" Localtime: ").Append(Localtime).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Machine: ").Append(Machine).Append("\n"); + sb.Append(" Memory: ").Append(Memory).Append("\n"); + sb.Append(" MigrateDowntime: ").Append(MigrateDowntime).Append("\n"); + sb.Append(" MigrateSpeed: ").Append(MigrateSpeed).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Nameserver: ").Append(Nameserver).Append("\n"); + sb.Append(" Net0: ").Append(Net0).Append("\n"); + sb.Append(" Net1: ").Append(Net1).Append("\n"); + sb.Append(" Net2: ").Append(Net2).Append("\n"); + sb.Append(" Net3: ").Append(Net3).Append("\n"); + sb.Append(" Net4: ").Append(Net4).Append("\n"); + sb.Append(" Net5: ").Append(Net5).Append("\n"); + sb.Append(" Net6: ").Append(Net6).Append("\n"); + sb.Append(" Net7: ").Append(Net7).Append("\n"); + sb.Append(" Net8: ").Append(Net8).Append("\n"); + sb.Append(" Net9: ").Append(Net9).Append("\n"); + sb.Append(" Net10: ").Append(Net10).Append("\n"); + sb.Append(" Net11: ").Append(Net11).Append("\n"); + sb.Append(" Net12: ").Append(Net12).Append("\n"); + sb.Append(" Net13: ").Append(Net13).Append("\n"); + sb.Append(" Net14: ").Append(Net14).Append("\n"); + sb.Append(" Net15: ").Append(Net15).Append("\n"); + sb.Append(" Net16: ").Append(Net16).Append("\n"); + sb.Append(" Net17: ").Append(Net17).Append("\n"); + sb.Append(" Net18: ").Append(Net18).Append("\n"); + sb.Append(" Net19: ").Append(Net19).Append("\n"); + sb.Append(" Net20: ").Append(Net20).Append("\n"); + sb.Append(" Net21: ").Append(Net21).Append("\n"); + sb.Append(" Net22: ").Append(Net22).Append("\n"); + sb.Append(" Net23: ").Append(Net23).Append("\n"); + sb.Append(" Net24: ").Append(Net24).Append("\n"); + sb.Append(" Net25: ").Append(Net25).Append("\n"); + sb.Append(" Net26: ").Append(Net26).Append("\n"); + sb.Append(" Net27: ").Append(Net27).Append("\n"); + sb.Append(" Net28: ").Append(Net28).Append("\n"); + sb.Append(" Net29: ").Append(Net29).Append("\n"); + sb.Append(" Numa: ").Append(Numa).Append("\n"); + sb.Append(" Numa0: ").Append(Numa0).Append("\n"); + sb.Append(" Numa1: ").Append(Numa1).Append("\n"); + sb.Append(" Numa2: ").Append(Numa2).Append("\n"); + sb.Append(" Numa3: ").Append(Numa3).Append("\n"); + sb.Append(" Numa4: ").Append(Numa4).Append("\n"); + sb.Append(" Numa5: ").Append(Numa5).Append("\n"); + sb.Append(" Numa6: ").Append(Numa6).Append("\n"); + sb.Append(" Numa7: ").Append(Numa7).Append("\n"); + sb.Append(" Numa8: ").Append(Numa8).Append("\n"); + sb.Append(" Numa9: ").Append(Numa9).Append("\n"); + sb.Append(" Numa10: ").Append(Numa10).Append("\n"); + sb.Append(" Numa11: ").Append(Numa11).Append("\n"); + sb.Append(" Numa12: ").Append(Numa12).Append("\n"); + sb.Append(" Numa13: ").Append(Numa13).Append("\n"); + sb.Append(" Numa14: ").Append(Numa14).Append("\n"); + sb.Append(" Numa15: ").Append(Numa15).Append("\n"); + sb.Append(" Numa16: ").Append(Numa16).Append("\n"); + sb.Append(" Numa17: ").Append(Numa17).Append("\n"); + sb.Append(" Numa18: ").Append(Numa18).Append("\n"); + sb.Append(" Numa19: ").Append(Numa19).Append("\n"); + sb.Append(" Numa20: ").Append(Numa20).Append("\n"); + sb.Append(" Numa21: ").Append(Numa21).Append("\n"); + sb.Append(" Numa22: ").Append(Numa22).Append("\n"); + sb.Append(" Numa23: ").Append(Numa23).Append("\n"); + sb.Append(" Numa24: ").Append(Numa24).Append("\n"); + sb.Append(" Numa25: ").Append(Numa25).Append("\n"); + sb.Append(" Numa26: ").Append(Numa26).Append("\n"); + sb.Append(" Numa27: ").Append(Numa27).Append("\n"); + sb.Append(" Numa28: ").Append(Numa28).Append("\n"); + sb.Append(" Numa29: ").Append(Numa29).Append("\n"); + sb.Append(" Onboot: ").Append(Onboot).Append("\n"); + sb.Append(" Ostype: ").Append(Ostype).Append("\n"); + sb.Append(" Parallel0: ").Append(Parallel0).Append("\n"); + sb.Append(" Parallel1: ").Append(Parallel1).Append("\n"); + sb.Append(" Parallel2: ").Append(Parallel2).Append("\n"); + sb.Append(" Parallel3: ").Append(Parallel3).Append("\n"); + sb.Append(" Parallel4: ").Append(Parallel4).Append("\n"); + sb.Append(" Parallel5: ").Append(Parallel5).Append("\n"); + sb.Append(" Parallel6: ").Append(Parallel6).Append("\n"); + sb.Append(" Parallel7: ").Append(Parallel7).Append("\n"); + sb.Append(" Parallel8: ").Append(Parallel8).Append("\n"); + sb.Append(" Parallel9: ").Append(Parallel9).Append("\n"); + sb.Append(" Parallel10: ").Append(Parallel10).Append("\n"); + sb.Append(" Parallel11: ").Append(Parallel11).Append("\n"); + sb.Append(" Parallel12: ").Append(Parallel12).Append("\n"); + sb.Append(" Parallel13: ").Append(Parallel13).Append("\n"); + sb.Append(" Parallel14: ").Append(Parallel14).Append("\n"); + sb.Append(" Parallel15: ").Append(Parallel15).Append("\n"); + sb.Append(" Parallel16: ").Append(Parallel16).Append("\n"); + sb.Append(" Parallel17: ").Append(Parallel17).Append("\n"); + sb.Append(" Parallel18: ").Append(Parallel18).Append("\n"); + sb.Append(" Parallel19: ").Append(Parallel19).Append("\n"); + sb.Append(" Parallel20: ").Append(Parallel20).Append("\n"); + sb.Append(" Parallel21: ").Append(Parallel21).Append("\n"); + sb.Append(" Parallel22: ").Append(Parallel22).Append("\n"); + sb.Append(" Parallel23: ").Append(Parallel23).Append("\n"); + sb.Append(" Parallel24: ").Append(Parallel24).Append("\n"); + sb.Append(" Parallel25: ").Append(Parallel25).Append("\n"); + sb.Append(" Parallel26: ").Append(Parallel26).Append("\n"); + sb.Append(" Parallel27: ").Append(Parallel27).Append("\n"); + sb.Append(" Parallel28: ").Append(Parallel28).Append("\n"); + sb.Append(" Parallel29: ").Append(Parallel29).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Protection: ").Append(Protection).Append("\n"); + sb.Append(" Reboot: ").Append(Reboot).Append("\n"); + sb.Append(" Rng0: ").Append(Rng0).Append("\n"); + sb.Append(" Sata0: ").Append(Sata0).Append("\n"); + sb.Append(" Sata1: ").Append(Sata1).Append("\n"); + sb.Append(" Sata2: ").Append(Sata2).Append("\n"); + sb.Append(" Sata3: ").Append(Sata3).Append("\n"); + sb.Append(" Sata4: ").Append(Sata4).Append("\n"); + sb.Append(" Sata5: ").Append(Sata5).Append("\n"); + sb.Append(" Sata6: ").Append(Sata6).Append("\n"); + sb.Append(" Sata7: ").Append(Sata7).Append("\n"); + sb.Append(" Sata8: ").Append(Sata8).Append("\n"); + sb.Append(" Sata9: ").Append(Sata9).Append("\n"); + sb.Append(" Sata10: ").Append(Sata10).Append("\n"); + sb.Append(" Sata11: ").Append(Sata11).Append("\n"); + sb.Append(" Sata12: ").Append(Sata12).Append("\n"); + sb.Append(" Sata13: ").Append(Sata13).Append("\n"); + sb.Append(" Sata14: ").Append(Sata14).Append("\n"); + sb.Append(" Sata15: ").Append(Sata15).Append("\n"); + sb.Append(" Sata16: ").Append(Sata16).Append("\n"); + sb.Append(" Sata17: ").Append(Sata17).Append("\n"); + sb.Append(" Sata18: ").Append(Sata18).Append("\n"); + sb.Append(" Sata19: ").Append(Sata19).Append("\n"); + sb.Append(" Sata20: ").Append(Sata20).Append("\n"); + sb.Append(" Sata21: ").Append(Sata21).Append("\n"); + sb.Append(" Sata22: ").Append(Sata22).Append("\n"); + sb.Append(" Sata23: ").Append(Sata23).Append("\n"); + sb.Append(" Sata24: ").Append(Sata24).Append("\n"); + sb.Append(" Sata25: ").Append(Sata25).Append("\n"); + sb.Append(" Sata26: ").Append(Sata26).Append("\n"); + sb.Append(" Sata27: ").Append(Sata27).Append("\n"); + sb.Append(" Sata28: ").Append(Sata28).Append("\n"); + sb.Append(" Sata29: ").Append(Sata29).Append("\n"); + sb.Append(" Scsi0: ").Append(Scsi0).Append("\n"); + sb.Append(" Scsi1: ").Append(Scsi1).Append("\n"); + sb.Append(" Scsi2: ").Append(Scsi2).Append("\n"); + sb.Append(" Scsi3: ").Append(Scsi3).Append("\n"); + sb.Append(" Scsi4: ").Append(Scsi4).Append("\n"); + sb.Append(" Scsi5: ").Append(Scsi5).Append("\n"); + sb.Append(" Scsi6: ").Append(Scsi6).Append("\n"); + sb.Append(" Scsi7: ").Append(Scsi7).Append("\n"); + sb.Append(" Scsi8: ").Append(Scsi8).Append("\n"); + sb.Append(" Scsi9: ").Append(Scsi9).Append("\n"); + sb.Append(" Scsi10: ").Append(Scsi10).Append("\n"); + sb.Append(" Scsi11: ").Append(Scsi11).Append("\n"); + sb.Append(" Scsi12: ").Append(Scsi12).Append("\n"); + sb.Append(" Scsi13: ").Append(Scsi13).Append("\n"); + sb.Append(" Scsi14: ").Append(Scsi14).Append("\n"); + sb.Append(" Scsi15: ").Append(Scsi15).Append("\n"); + sb.Append(" Scsi16: ").Append(Scsi16).Append("\n"); + sb.Append(" Scsi17: ").Append(Scsi17).Append("\n"); + sb.Append(" Scsi18: ").Append(Scsi18).Append("\n"); + sb.Append(" Scsi19: ").Append(Scsi19).Append("\n"); + sb.Append(" Scsi20: ").Append(Scsi20).Append("\n"); + sb.Append(" Scsi21: ").Append(Scsi21).Append("\n"); + sb.Append(" Scsi22: ").Append(Scsi22).Append("\n"); + sb.Append(" Scsi23: ").Append(Scsi23).Append("\n"); + sb.Append(" Scsi24: ").Append(Scsi24).Append("\n"); + sb.Append(" Scsi25: ").Append(Scsi25).Append("\n"); + sb.Append(" Scsi26: ").Append(Scsi26).Append("\n"); + sb.Append(" Scsi27: ").Append(Scsi27).Append("\n"); + sb.Append(" Scsi28: ").Append(Scsi28).Append("\n"); + sb.Append(" Scsi29: ").Append(Scsi29).Append("\n"); + sb.Append(" Scsihw: ").Append(Scsihw).Append("\n"); + sb.Append(" Searchdomain: ").Append(Searchdomain).Append("\n"); + sb.Append(" Serial0: ").Append(Serial0).Append("\n"); + sb.Append(" Serial1: ").Append(Serial1).Append("\n"); + sb.Append(" Serial2: ").Append(Serial2).Append("\n"); + sb.Append(" Serial3: ").Append(Serial3).Append("\n"); + sb.Append(" Serial4: ").Append(Serial4).Append("\n"); + sb.Append(" Serial5: ").Append(Serial5).Append("\n"); + sb.Append(" Serial6: ").Append(Serial6).Append("\n"); + sb.Append(" Serial7: ").Append(Serial7).Append("\n"); + sb.Append(" Serial8: ").Append(Serial8).Append("\n"); + sb.Append(" Serial9: ").Append(Serial9).Append("\n"); + sb.Append(" Serial10: ").Append(Serial10).Append("\n"); + sb.Append(" Serial11: ").Append(Serial11).Append("\n"); + sb.Append(" Serial12: ").Append(Serial12).Append("\n"); + sb.Append(" Serial13: ").Append(Serial13).Append("\n"); + sb.Append(" Serial14: ").Append(Serial14).Append("\n"); + sb.Append(" Serial15: ").Append(Serial15).Append("\n"); + sb.Append(" Serial16: ").Append(Serial16).Append("\n"); + sb.Append(" Serial17: ").Append(Serial17).Append("\n"); + sb.Append(" Serial18: ").Append(Serial18).Append("\n"); + sb.Append(" Serial19: ").Append(Serial19).Append("\n"); + sb.Append(" Serial20: ").Append(Serial20).Append("\n"); + sb.Append(" Serial21: ").Append(Serial21).Append("\n"); + sb.Append(" Serial22: ").Append(Serial22).Append("\n"); + sb.Append(" Serial23: ").Append(Serial23).Append("\n"); + sb.Append(" Serial24: ").Append(Serial24).Append("\n"); + sb.Append(" Serial25: ").Append(Serial25).Append("\n"); + sb.Append(" Serial26: ").Append(Serial26).Append("\n"); + sb.Append(" Serial27: ").Append(Serial27).Append("\n"); + sb.Append(" Serial28: ").Append(Serial28).Append("\n"); + sb.Append(" Serial29: ").Append(Serial29).Append("\n"); + sb.Append(" Shares: ").Append(Shares).Append("\n"); + sb.Append(" Smbios1: ").Append(Smbios1).Append("\n"); + sb.Append(" Smp: ").Append(Smp).Append("\n"); + sb.Append(" Sockets: ").Append(Sockets).Append("\n"); + sb.Append(" SpiceEnhancements: ").Append(SpiceEnhancements).Append("\n"); + sb.Append(" Sshkeys: ").Append(Sshkeys).Append("\n"); + sb.Append(" Start: ").Append(Start).Append("\n"); + sb.Append(" Startdate: ").Append(Startdate).Append("\n"); + sb.Append(" Startup: ").Append(Startup).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Tablet: ").Append(Tablet).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Tdf: ").Append(Tdf).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Tpmstate0: ").Append(Tpmstate0).Append("\n"); + sb.Append(" Unique: ").Append(Unique).Append("\n"); + sb.Append(" Unused0: ").Append(Unused0).Append("\n"); + sb.Append(" Unused1: ").Append(Unused1).Append("\n"); + sb.Append(" Unused2: ").Append(Unused2).Append("\n"); + sb.Append(" Unused3: ").Append(Unused3).Append("\n"); + sb.Append(" Unused4: ").Append(Unused4).Append("\n"); + sb.Append(" Unused5: ").Append(Unused5).Append("\n"); + sb.Append(" Unused6: ").Append(Unused6).Append("\n"); + sb.Append(" Unused7: ").Append(Unused7).Append("\n"); + sb.Append(" Unused8: ").Append(Unused8).Append("\n"); + sb.Append(" Unused9: ").Append(Unused9).Append("\n"); + sb.Append(" Unused10: ").Append(Unused10).Append("\n"); + sb.Append(" Unused11: ").Append(Unused11).Append("\n"); + sb.Append(" Unused12: ").Append(Unused12).Append("\n"); + sb.Append(" Unused13: ").Append(Unused13).Append("\n"); + sb.Append(" Unused14: ").Append(Unused14).Append("\n"); + sb.Append(" Unused15: ").Append(Unused15).Append("\n"); + sb.Append(" Unused16: ").Append(Unused16).Append("\n"); + sb.Append(" Unused17: ").Append(Unused17).Append("\n"); + sb.Append(" Unused18: ").Append(Unused18).Append("\n"); + sb.Append(" Unused19: ").Append(Unused19).Append("\n"); + sb.Append(" Unused20: ").Append(Unused20).Append("\n"); + sb.Append(" Unused21: ").Append(Unused21).Append("\n"); + sb.Append(" Unused22: ").Append(Unused22).Append("\n"); + sb.Append(" Unused23: ").Append(Unused23).Append("\n"); + sb.Append(" Unused24: ").Append(Unused24).Append("\n"); + sb.Append(" Unused25: ").Append(Unused25).Append("\n"); + sb.Append(" Unused26: ").Append(Unused26).Append("\n"); + sb.Append(" Unused27: ").Append(Unused27).Append("\n"); + sb.Append(" Unused28: ").Append(Unused28).Append("\n"); + sb.Append(" Unused29: ").Append(Unused29).Append("\n"); + sb.Append(" Usb0: ").Append(Usb0).Append("\n"); + sb.Append(" Usb1: ").Append(Usb1).Append("\n"); + sb.Append(" Usb2: ").Append(Usb2).Append("\n"); + sb.Append(" Usb3: ").Append(Usb3).Append("\n"); + sb.Append(" Usb4: ").Append(Usb4).Append("\n"); + sb.Append(" Usb5: ").Append(Usb5).Append("\n"); + sb.Append(" Usb6: ").Append(Usb6).Append("\n"); + sb.Append(" Usb7: ").Append(Usb7).Append("\n"); + sb.Append(" Usb8: ").Append(Usb8).Append("\n"); + sb.Append(" Usb9: ").Append(Usb9).Append("\n"); + sb.Append(" Usb10: ").Append(Usb10).Append("\n"); + sb.Append(" Usb11: ").Append(Usb11).Append("\n"); + sb.Append(" Usb12: ").Append(Usb12).Append("\n"); + sb.Append(" Usb13: ").Append(Usb13).Append("\n"); + sb.Append(" Usb14: ").Append(Usb14).Append("\n"); + sb.Append(" Usb15: ").Append(Usb15).Append("\n"); + sb.Append(" Usb16: ").Append(Usb16).Append("\n"); + sb.Append(" Usb17: ").Append(Usb17).Append("\n"); + sb.Append(" Usb18: ").Append(Usb18).Append("\n"); + sb.Append(" Usb19: ").Append(Usb19).Append("\n"); + sb.Append(" Usb20: ").Append(Usb20).Append("\n"); + sb.Append(" Usb21: ").Append(Usb21).Append("\n"); + sb.Append(" Usb22: ").Append(Usb22).Append("\n"); + sb.Append(" Usb23: ").Append(Usb23).Append("\n"); + sb.Append(" Usb24: ").Append(Usb24).Append("\n"); + sb.Append(" Usb25: ").Append(Usb25).Append("\n"); + sb.Append(" Usb26: ").Append(Usb26).Append("\n"); + sb.Append(" Usb27: ").Append(Usb27).Append("\n"); + sb.Append(" Usb28: ").Append(Usb28).Append("\n"); + sb.Append(" Usb29: ").Append(Usb29).Append("\n"); + sb.Append(" Vcpus: ").Append(Vcpus).Append("\n"); + sb.Append(" Vga: ").Append(Vga).Append("\n"); + sb.Append(" Virtio0: ").Append(Virtio0).Append("\n"); + sb.Append(" Virtio1: ").Append(Virtio1).Append("\n"); + sb.Append(" Virtio2: ").Append(Virtio2).Append("\n"); + sb.Append(" Virtio3: ").Append(Virtio3).Append("\n"); + sb.Append(" Virtio4: ").Append(Virtio4).Append("\n"); + sb.Append(" Virtio5: ").Append(Virtio5).Append("\n"); + sb.Append(" Virtio6: ").Append(Virtio6).Append("\n"); + sb.Append(" Virtio7: ").Append(Virtio7).Append("\n"); + sb.Append(" Virtio8: ").Append(Virtio8).Append("\n"); + sb.Append(" Virtio9: ").Append(Virtio9).Append("\n"); + sb.Append(" Virtio10: ").Append(Virtio10).Append("\n"); + sb.Append(" Virtio11: ").Append(Virtio11).Append("\n"); + sb.Append(" Virtio12: ").Append(Virtio12).Append("\n"); + sb.Append(" Virtio13: ").Append(Virtio13).Append("\n"); + sb.Append(" Virtio14: ").Append(Virtio14).Append("\n"); + sb.Append(" Virtio15: ").Append(Virtio15).Append("\n"); + sb.Append(" Virtio16: ").Append(Virtio16).Append("\n"); + sb.Append(" Virtio17: ").Append(Virtio17).Append("\n"); + sb.Append(" Virtio18: ").Append(Virtio18).Append("\n"); + sb.Append(" Virtio19: ").Append(Virtio19).Append("\n"); + sb.Append(" Virtio20: ").Append(Virtio20).Append("\n"); + sb.Append(" Virtio21: ").Append(Virtio21).Append("\n"); + sb.Append(" Virtio22: ").Append(Virtio22).Append("\n"); + sb.Append(" Virtio23: ").Append(Virtio23).Append("\n"); + sb.Append(" Virtio24: ").Append(Virtio24).Append("\n"); + sb.Append(" Virtio25: ").Append(Virtio25).Append("\n"); + sb.Append(" Virtio26: ").Append(Virtio26).Append("\n"); + sb.Append(" Virtio27: ").Append(Virtio27).Append("\n"); + sb.Append(" Virtio28: ").Append(Virtio28).Append("\n"); + sb.Append(" Virtio29: ").Append(Virtio29).Append("\n"); + sb.Append(" Virtiofs0: ").Append(Virtiofs0).Append("\n"); + sb.Append(" Virtiofs1: ").Append(Virtiofs1).Append("\n"); + sb.Append(" Virtiofs2: ").Append(Virtiofs2).Append("\n"); + sb.Append(" Virtiofs3: ").Append(Virtiofs3).Append("\n"); + sb.Append(" Virtiofs4: ").Append(Virtiofs4).Append("\n"); + sb.Append(" Virtiofs5: ").Append(Virtiofs5).Append("\n"); + sb.Append(" Virtiofs6: ").Append(Virtiofs6).Append("\n"); + sb.Append(" Virtiofs7: ").Append(Virtiofs7).Append("\n"); + sb.Append(" Virtiofs8: ").Append(Virtiofs8).Append("\n"); + sb.Append(" Virtiofs9: ").Append(Virtiofs9).Append("\n"); + sb.Append(" Virtiofs10: ").Append(Virtiofs10).Append("\n"); + sb.Append(" Virtiofs11: ").Append(Virtiofs11).Append("\n"); + sb.Append(" Virtiofs12: ").Append(Virtiofs12).Append("\n"); + sb.Append(" Virtiofs13: ").Append(Virtiofs13).Append("\n"); + sb.Append(" Virtiofs14: ").Append(Virtiofs14).Append("\n"); + sb.Append(" Virtiofs15: ").Append(Virtiofs15).Append("\n"); + sb.Append(" Virtiofs16: ").Append(Virtiofs16).Append("\n"); + sb.Append(" Virtiofs17: ").Append(Virtiofs17).Append("\n"); + sb.Append(" Virtiofs18: ").Append(Virtiofs18).Append("\n"); + sb.Append(" Virtiofs19: ").Append(Virtiofs19).Append("\n"); + sb.Append(" Virtiofs20: ").Append(Virtiofs20).Append("\n"); + sb.Append(" Virtiofs21: ").Append(Virtiofs21).Append("\n"); + sb.Append(" Virtiofs22: ").Append(Virtiofs22).Append("\n"); + sb.Append(" Virtiofs23: ").Append(Virtiofs23).Append("\n"); + sb.Append(" Virtiofs24: ").Append(Virtiofs24).Append("\n"); + sb.Append(" Virtiofs25: ").Append(Virtiofs25).Append("\n"); + sb.Append(" Virtiofs26: ").Append(Virtiofs26).Append("\n"); + sb.Append(" Virtiofs27: ").Append(Virtiofs27).Append("\n"); + sb.Append(" Virtiofs28: ").Append(Virtiofs28).Append("\n"); + sb.Append(" Virtiofs29: ").Append(Virtiofs29).Append("\n"); + sb.Append(" Vmgenid: ").Append(Vmgenid).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" Vmstatestorage: ").Append(Vmstatestorage).Append("\n"); + sb.Append(" Watchdog: ").Append(Watchdog).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/CreateVMSnapshotRequest.cs b/src/ProxmoxSharp/Model/CreateVMSnapshotRequest.cs new file mode 100644 index 0000000..d87d1f1 --- /dev/null +++ b/src/ProxmoxSharp/Model/CreateVMSnapshotRequest.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// CreateVMSnapshotRequest + /// + [DataContract(Name = "CreateVMSnapshotRequest")] + public partial class CreateVMSnapshotRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateVMSnapshotRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// description. + /// snapname (required). + /// vmstate. + public CreateVMSnapshotRequest(string description = default(string), string snapname = default(string), bool vmstate = default(bool)) + { + // to ensure "snapname" is required (not null) + if (snapname == null) + { + throw new ArgumentNullException("snapname is a required property for CreateVMSnapshotRequest and cannot be null"); + } + this.Snapname = snapname; + this.Description = description; + this.Vmstate = vmstate; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Snapname + /// + [DataMember(Name = "snapname", IsRequired = true, EmitDefaultValue = true)] + public string Snapname { get; set; } + + /// + /// Gets or Sets Vmstate + /// + [DataMember(Name = "vmstate", EmitDefaultValue = true)] + public bool Vmstate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateVMSnapshotRequest {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Snapname: ").Append(Snapname).Append("\n"); + sb.Append(" Vmstate: ").Append(Vmstate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessAcl200Response.cs b/src/ProxmoxSharp/Model/GetAccessAcl200Response.cs new file mode 100644 index 0000000..69ba973 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessAcl200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessAcl200Response + /// + [DataContract(Name = "getAccessAcl_200_response")] + public partial class GetAccessAcl200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessAcl200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessAcl200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessAcl200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetAccessAcl200ResponseDataInner.cs new file mode 100644 index 0000000..4b834c2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessAcl200ResponseDataInner.cs @@ -0,0 +1,121 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessAcl200ResponseDataInner + /// + [DataContract(Name = "getAccessAcl_200_response_data_inner")] + public partial class GetAccessAcl200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Access control path. + /// Allow to propagate (inherit) permissions.. + /// roleid. + /// type. + /// ugid. + public GetAccessAcl200ResponseDataInner(string path = default(string), Int64 propagate = default(Int64), string roleid = default(string), string type = default(string), string ugid = default(string)) + { + this.Path = path; + this.Propagate = propagate; + this.Roleid = roleid; + this.Type = type; + this.Ugid = ugid; + } + + /// + /// Access control path + /// + /// Access control path + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Allow to propagate (inherit) permissions. + /// + /// Allow to propagate (inherit) permissions. + [DataMember(Name = "propagate", EmitDefaultValue = false)] + public Int64 Propagate { get; set; } + + /// + /// Gets or Sets Roleid + /// + [DataMember(Name = "roleid", EmitDefaultValue = false)] + public string Roleid { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Gets or Sets Ugid + /// + [DataMember(Name = "ugid", EmitDefaultValue = false)] + public string Ugid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessAcl200ResponseDataInner {\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Propagate: ").Append(Propagate).Append("\n"); + sb.Append(" Roleid: ").Append(Roleid).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Ugid: ").Append(Ugid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessDomains200Response.cs b/src/ProxmoxSharp/Model/GetAccessDomains200Response.cs new file mode 100644 index 0000000..2faa942 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessDomains200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessDomains200Response + /// + [DataContract(Name = "getAccessDomains_200_response")] + public partial class GetAccessDomains200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessDomains200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessDomains200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessDomains200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetAccessDomains200ResponseDataInner.cs new file mode 100644 index 0000000..23a3a12 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessDomains200ResponseDataInner.cs @@ -0,0 +1,112 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessDomains200ResponseDataInner + /// + [DataContract(Name = "getAccessDomains_200_response_data_inner")] + public partial class GetAccessDomains200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A comment. The GUI use this text when you select a domain (Realm) on the login window.. + /// realm. + /// Two-factor authentication provider.. + /// type. + public GetAccessDomains200ResponseDataInner(string comment = default(string), string realm = default(string), string tfa = default(string), string type = default(string)) + { + this.Comment = comment; + this.Realm = realm; + this.Tfa = tfa; + this.Type = type; + } + + /// + /// A comment. The GUI use this text when you select a domain (Realm) on the login window. + /// + /// A comment. The GUI use this text when you select a domain (Realm) on the login window. + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Realm + /// + [DataMember(Name = "realm", EmitDefaultValue = false)] + public string Realm { get; set; } + + /// + /// Two-factor authentication provider. + /// + /// Two-factor authentication provider. + [DataMember(Name = "tfa", EmitDefaultValue = false)] + public string Tfa { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessDomains200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Realm: ").Append(Realm).Append("\n"); + sb.Append(" Tfa: ").Append(Tfa).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessGroups200Response.cs b/src/ProxmoxSharp/Model/GetAccessGroups200Response.cs new file mode 100644 index 0000000..db12f99 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessGroups200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessGroups200Response + /// + [DataContract(Name = "getAccessGroups_200_response")] + public partial class GetAccessGroups200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessGroups200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessGroups200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessGroups200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetAccessGroups200ResponseDataInner.cs new file mode 100644 index 0000000..90514bd --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessGroups200ResponseDataInner.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessGroups200ResponseDataInner + /// + [DataContract(Name = "getAccessGroups_200_response_data_inner")] + public partial class GetAccessGroups200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// groupid. + /// list of users which form this group. + public GetAccessGroups200ResponseDataInner(string comment = default(string), string groupid = default(string), string users = default(string)) + { + this.Comment = comment; + this.Groupid = groupid; + this.Users = users; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Groupid + /// + [DataMember(Name = "groupid", EmitDefaultValue = false)] + public string Groupid { get; set; } + + /// + /// list of users which form this group + /// + /// list of users which form this group + [DataMember(Name = "users", EmitDefaultValue = false)] + public string Users { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessGroups200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Groupid: ").Append(Groupid).Append("\n"); + sb.Append(" Users: ").Append(Users).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessGroupsSingle200Response.cs b/src/ProxmoxSharp/Model/GetAccessGroupsSingle200Response.cs new file mode 100644 index 0000000..ab1eb8a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessGroupsSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessGroupsSingle200Response + /// + [DataContract(Name = "getAccessGroupsSingle_200_response")] + public partial class GetAccessGroupsSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessGroupsSingle200Response(List errors = default(List), GetAccessGroupsSingle200ResponseData data = default(GetAccessGroupsSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetAccessGroupsSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessGroupsSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessGroupsSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetAccessGroupsSingle200ResponseData.cs new file mode 100644 index 0000000..96e75e9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessGroupsSingle200ResponseData.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessGroupsSingle200ResponseData + /// + [DataContract(Name = "getAccessGroupsSingle_200_response_data")] + public partial class GetAccessGroupsSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// members. + public GetAccessGroupsSingle200ResponseData(string comment = default(string), List members = default(List)) + { + this.Comment = comment; + this.Members = members; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Members + /// + [DataMember(Name = "members", EmitDefaultValue = false)] + public List Members { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessGroupsSingle200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Members: ").Append(Members).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessPermissions200Response.cs b/src/ProxmoxSharp/Model/GetAccessPermissions200Response.cs new file mode 100644 index 0000000..3b32e6c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessPermissions200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessPermissions200Response + /// + [DataContract(Name = "getAccessPermissions_200_response")] + public partial class GetAccessPermissions200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Map of \"path\" => (Map of \"privilege\" => \"propagate boolean\").. + public GetAccessPermissions200Response(List errors = default(List), Object data = default(Object)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Map of \"path\" => (Map of \"privilege\" => \"propagate boolean\"). + /// + /// Map of \"path\" => (Map of \"privilege\" => \"propagate boolean\"). + [DataMember(Name = "data", EmitDefaultValue = false)] + public Object Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessPermissions200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessRoles200Response.cs b/src/ProxmoxSharp/Model/GetAccessRoles200Response.cs new file mode 100644 index 0000000..93d8523 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessRoles200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessRoles200Response + /// + [DataContract(Name = "getAccessRoles_200_response")] + public partial class GetAccessRoles200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessRoles200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessRoles200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessRoles200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetAccessRoles200ResponseDataInner.cs new file mode 100644 index 0000000..cc2a555 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessRoles200ResponseDataInner.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessRoles200ResponseDataInner + /// + [DataContract(Name = "getAccessRoles_200_response_data_inner")] + public partial class GetAccessRoles200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// privs. + /// roleid. + /// special. + public GetAccessRoles200ResponseDataInner(string privs = default(string), string roleid = default(string), Int64 special = default(Int64)) + { + this.Privs = privs; + this.Roleid = roleid; + this.Special = special; + } + + /// + /// Gets or Sets Privs + /// + [DataMember(Name = "privs", EmitDefaultValue = false)] + public string Privs { get; set; } + + /// + /// Gets or Sets Roleid + /// + [DataMember(Name = "roleid", EmitDefaultValue = false)] + public string Roleid { get; set; } + + /// + /// Gets or Sets Special + /// + [DataMember(Name = "special", EmitDefaultValue = false)] + public Int64 Special { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessRoles200ResponseDataInner {\n"); + sb.Append(" Privs: ").Append(Privs).Append("\n"); + sb.Append(" Roleid: ").Append(Roleid).Append("\n"); + sb.Append(" Special: ").Append(Special).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessRolesSingle200Response.cs b/src/ProxmoxSharp/Model/GetAccessRolesSingle200Response.cs new file mode 100644 index 0000000..aebd774 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessRolesSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessRolesSingle200Response + /// + [DataContract(Name = "getAccessRolesSingle_200_response")] + public partial class GetAccessRolesSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessRolesSingle200Response(List errors = default(List), GetAccessRolesSingle200ResponseData data = default(GetAccessRolesSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetAccessRolesSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessRolesSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessRolesSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetAccessRolesSingle200ResponseData.cs new file mode 100644 index 0000000..25ab56d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessRolesSingle200ResponseData.cs @@ -0,0 +1,497 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessRolesSingle200ResponseData + /// + [DataContract(Name = "getAccessRolesSingle_200_response_data")] + public partial class GetAccessRolesSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// datastoreAllocate. + /// datastoreAllocateSpace. + /// datastoreAllocateTemplate. + /// datastoreAudit. + /// groupAllocate. + /// mappingAudit. + /// mappingModify. + /// mappingUse. + /// permissionsModify. + /// poolAllocate. + /// poolAudit. + /// realmAllocate. + /// realmAllocateUser. + /// sDNAllocate. + /// sDNAudit. + /// sDNUse. + /// sysAccessNetwork. + /// sysAudit. + /// sysConsole. + /// sysIncoming. + /// sysModify. + /// sysPowerMgmt. + /// sysSyslog. + /// userModify. + /// vMAllocate. + /// vMAudit. + /// vMBackup. + /// vMClone. + /// vMConfigCDROM. + /// vMConfigCPU. + /// vMConfigCloudinit. + /// vMConfigDisk. + /// vMConfigHWType. + /// vMConfigMemory. + /// vMConfigNetwork. + /// vMConfigOptions. + /// vMConsole. + /// vMGuestAgentAudit. + /// vMGuestAgentFileRead. + /// vMGuestAgentFileSystemMgmt. + /// vMGuestAgentFileWrite. + /// vMGuestAgentUnrestricted. + /// vMMigrate. + /// vMPowerMgmt. + /// vMReplicate. + /// vMSnapshot. + /// vMSnapshotRollback. + public GetAccessRolesSingle200ResponseData(Int64 datastoreAllocate = default(Int64), Int64 datastoreAllocateSpace = default(Int64), Int64 datastoreAllocateTemplate = default(Int64), Int64 datastoreAudit = default(Int64), Int64 groupAllocate = default(Int64), Int64 mappingAudit = default(Int64), Int64 mappingModify = default(Int64), Int64 mappingUse = default(Int64), Int64 permissionsModify = default(Int64), Int64 poolAllocate = default(Int64), Int64 poolAudit = default(Int64), Int64 realmAllocate = default(Int64), Int64 realmAllocateUser = default(Int64), Int64 sDNAllocate = default(Int64), Int64 sDNAudit = default(Int64), Int64 sDNUse = default(Int64), Int64 sysAccessNetwork = default(Int64), Int64 sysAudit = default(Int64), Int64 sysConsole = default(Int64), Int64 sysIncoming = default(Int64), Int64 sysModify = default(Int64), Int64 sysPowerMgmt = default(Int64), Int64 sysSyslog = default(Int64), Int64 userModify = default(Int64), Int64 vMAllocate = default(Int64), Int64 vMAudit = default(Int64), Int64 vMBackup = default(Int64), Int64 vMClone = default(Int64), Int64 vMConfigCDROM = default(Int64), Int64 vMConfigCPU = default(Int64), Int64 vMConfigCloudinit = default(Int64), Int64 vMConfigDisk = default(Int64), Int64 vMConfigHWType = default(Int64), Int64 vMConfigMemory = default(Int64), Int64 vMConfigNetwork = default(Int64), Int64 vMConfigOptions = default(Int64), Int64 vMConsole = default(Int64), Int64 vMGuestAgentAudit = default(Int64), Int64 vMGuestAgentFileRead = default(Int64), Int64 vMGuestAgentFileSystemMgmt = default(Int64), Int64 vMGuestAgentFileWrite = default(Int64), Int64 vMGuestAgentUnrestricted = default(Int64), Int64 vMMigrate = default(Int64), Int64 vMPowerMgmt = default(Int64), Int64 vMReplicate = default(Int64), Int64 vMSnapshot = default(Int64), Int64 vMSnapshotRollback = default(Int64)) + { + this.DatastoreAllocate = datastoreAllocate; + this.DatastoreAllocateSpace = datastoreAllocateSpace; + this.DatastoreAllocateTemplate = datastoreAllocateTemplate; + this.DatastoreAudit = datastoreAudit; + this.GroupAllocate = groupAllocate; + this.MappingAudit = mappingAudit; + this.MappingModify = mappingModify; + this.MappingUse = mappingUse; + this.PermissionsModify = permissionsModify; + this.PoolAllocate = poolAllocate; + this.PoolAudit = poolAudit; + this.RealmAllocate = realmAllocate; + this.RealmAllocateUser = realmAllocateUser; + this.SDNAllocate = sDNAllocate; + this.SDNAudit = sDNAudit; + this.SDNUse = sDNUse; + this.SysAccessNetwork = sysAccessNetwork; + this.SysAudit = sysAudit; + this.SysConsole = sysConsole; + this.SysIncoming = sysIncoming; + this.SysModify = sysModify; + this.SysPowerMgmt = sysPowerMgmt; + this.SysSyslog = sysSyslog; + this.UserModify = userModify; + this.VMAllocate = vMAllocate; + this.VMAudit = vMAudit; + this.VMBackup = vMBackup; + this.VMClone = vMClone; + this.VMConfigCDROM = vMConfigCDROM; + this.VMConfigCPU = vMConfigCPU; + this.VMConfigCloudinit = vMConfigCloudinit; + this.VMConfigDisk = vMConfigDisk; + this.VMConfigHWType = vMConfigHWType; + this.VMConfigMemory = vMConfigMemory; + this.VMConfigNetwork = vMConfigNetwork; + this.VMConfigOptions = vMConfigOptions; + this.VMConsole = vMConsole; + this.VMGuestAgentAudit = vMGuestAgentAudit; + this.VMGuestAgentFileRead = vMGuestAgentFileRead; + this.VMGuestAgentFileSystemMgmt = vMGuestAgentFileSystemMgmt; + this.VMGuestAgentFileWrite = vMGuestAgentFileWrite; + this.VMGuestAgentUnrestricted = vMGuestAgentUnrestricted; + this.VMMigrate = vMMigrate; + this.VMPowerMgmt = vMPowerMgmt; + this.VMReplicate = vMReplicate; + this.VMSnapshot = vMSnapshot; + this.VMSnapshotRollback = vMSnapshotRollback; + } + + /// + /// Gets or Sets DatastoreAllocate + /// + [DataMember(Name = "Datastore.Allocate", EmitDefaultValue = false)] + public Int64 DatastoreAllocate { get; set; } + + /// + /// Gets or Sets DatastoreAllocateSpace + /// + [DataMember(Name = "Datastore.AllocateSpace", EmitDefaultValue = false)] + public Int64 DatastoreAllocateSpace { get; set; } + + /// + /// Gets or Sets DatastoreAllocateTemplate + /// + [DataMember(Name = "Datastore.AllocateTemplate", EmitDefaultValue = false)] + public Int64 DatastoreAllocateTemplate { get; set; } + + /// + /// Gets or Sets DatastoreAudit + /// + [DataMember(Name = "Datastore.Audit", EmitDefaultValue = false)] + public Int64 DatastoreAudit { get; set; } + + /// + /// Gets or Sets GroupAllocate + /// + [DataMember(Name = "Group.Allocate", EmitDefaultValue = false)] + public Int64 GroupAllocate { get; set; } + + /// + /// Gets or Sets MappingAudit + /// + [DataMember(Name = "Mapping.Audit", EmitDefaultValue = false)] + public Int64 MappingAudit { get; set; } + + /// + /// Gets or Sets MappingModify + /// + [DataMember(Name = "Mapping.Modify", EmitDefaultValue = false)] + public Int64 MappingModify { get; set; } + + /// + /// Gets or Sets MappingUse + /// + [DataMember(Name = "Mapping.Use", EmitDefaultValue = false)] + public Int64 MappingUse { get; set; } + + /// + /// Gets or Sets PermissionsModify + /// + [DataMember(Name = "Permissions.Modify", EmitDefaultValue = false)] + public Int64 PermissionsModify { get; set; } + + /// + /// Gets or Sets PoolAllocate + /// + [DataMember(Name = "Pool.Allocate", EmitDefaultValue = false)] + public Int64 PoolAllocate { get; set; } + + /// + /// Gets or Sets PoolAudit + /// + [DataMember(Name = "Pool.Audit", EmitDefaultValue = false)] + public Int64 PoolAudit { get; set; } + + /// + /// Gets or Sets RealmAllocate + /// + [DataMember(Name = "Realm.Allocate", EmitDefaultValue = false)] + public Int64 RealmAllocate { get; set; } + + /// + /// Gets or Sets RealmAllocateUser + /// + [DataMember(Name = "Realm.AllocateUser", EmitDefaultValue = false)] + public Int64 RealmAllocateUser { get; set; } + + /// + /// Gets or Sets SDNAllocate + /// + [DataMember(Name = "SDN.Allocate", EmitDefaultValue = false)] + public Int64 SDNAllocate { get; set; } + + /// + /// Gets or Sets SDNAudit + /// + [DataMember(Name = "SDN.Audit", EmitDefaultValue = false)] + public Int64 SDNAudit { get; set; } + + /// + /// Gets or Sets SDNUse + /// + [DataMember(Name = "SDN.Use", EmitDefaultValue = false)] + public Int64 SDNUse { get; set; } + + /// + /// Gets or Sets SysAccessNetwork + /// + [DataMember(Name = "Sys.AccessNetwork", EmitDefaultValue = false)] + public Int64 SysAccessNetwork { get; set; } + + /// + /// Gets or Sets SysAudit + /// + [DataMember(Name = "Sys.Audit", EmitDefaultValue = false)] + public Int64 SysAudit { get; set; } + + /// + /// Gets or Sets SysConsole + /// + [DataMember(Name = "Sys.Console", EmitDefaultValue = false)] + public Int64 SysConsole { get; set; } + + /// + /// Gets or Sets SysIncoming + /// + [DataMember(Name = "Sys.Incoming", EmitDefaultValue = false)] + public Int64 SysIncoming { get; set; } + + /// + /// Gets or Sets SysModify + /// + [DataMember(Name = "Sys.Modify", EmitDefaultValue = false)] + public Int64 SysModify { get; set; } + + /// + /// Gets or Sets SysPowerMgmt + /// + [DataMember(Name = "Sys.PowerMgmt", EmitDefaultValue = false)] + public Int64 SysPowerMgmt { get; set; } + + /// + /// Gets or Sets SysSyslog + /// + [DataMember(Name = "Sys.Syslog", EmitDefaultValue = false)] + public Int64 SysSyslog { get; set; } + + /// + /// Gets or Sets UserModify + /// + [DataMember(Name = "User.Modify", EmitDefaultValue = false)] + public Int64 UserModify { get; set; } + + /// + /// Gets or Sets VMAllocate + /// + [DataMember(Name = "VM.Allocate", EmitDefaultValue = false)] + public Int64 VMAllocate { get; set; } + + /// + /// Gets or Sets VMAudit + /// + [DataMember(Name = "VM.Audit", EmitDefaultValue = false)] + public Int64 VMAudit { get; set; } + + /// + /// Gets or Sets VMBackup + /// + [DataMember(Name = "VM.Backup", EmitDefaultValue = false)] + public Int64 VMBackup { get; set; } + + /// + /// Gets or Sets VMClone + /// + [DataMember(Name = "VM.Clone", EmitDefaultValue = false)] + public Int64 VMClone { get; set; } + + /// + /// Gets or Sets VMConfigCDROM + /// + [DataMember(Name = "VM.Config.CDROM", EmitDefaultValue = false)] + public Int64 VMConfigCDROM { get; set; } + + /// + /// Gets or Sets VMConfigCPU + /// + [DataMember(Name = "VM.Config.CPU", EmitDefaultValue = false)] + public Int64 VMConfigCPU { get; set; } + + /// + /// Gets or Sets VMConfigCloudinit + /// + [DataMember(Name = "VM.Config.Cloudinit", EmitDefaultValue = false)] + public Int64 VMConfigCloudinit { get; set; } + + /// + /// Gets or Sets VMConfigDisk + /// + [DataMember(Name = "VM.Config.Disk", EmitDefaultValue = false)] + public Int64 VMConfigDisk { get; set; } + + /// + /// Gets or Sets VMConfigHWType + /// + [DataMember(Name = "VM.Config.HWType", EmitDefaultValue = false)] + public Int64 VMConfigHWType { get; set; } + + /// + /// Gets or Sets VMConfigMemory + /// + [DataMember(Name = "VM.Config.Memory", EmitDefaultValue = false)] + public Int64 VMConfigMemory { get; set; } + + /// + /// Gets or Sets VMConfigNetwork + /// + [DataMember(Name = "VM.Config.Network", EmitDefaultValue = false)] + public Int64 VMConfigNetwork { get; set; } + + /// + /// Gets or Sets VMConfigOptions + /// + [DataMember(Name = "VM.Config.Options", EmitDefaultValue = false)] + public Int64 VMConfigOptions { get; set; } + + /// + /// Gets or Sets VMConsole + /// + [DataMember(Name = "VM.Console", EmitDefaultValue = false)] + public Int64 VMConsole { get; set; } + + /// + /// Gets or Sets VMGuestAgentAudit + /// + [DataMember(Name = "VM.GuestAgent.Audit", EmitDefaultValue = false)] + public Int64 VMGuestAgentAudit { get; set; } + + /// + /// Gets or Sets VMGuestAgentFileRead + /// + [DataMember(Name = "VM.GuestAgent.FileRead", EmitDefaultValue = false)] + public Int64 VMGuestAgentFileRead { get; set; } + + /// + /// Gets or Sets VMGuestAgentFileSystemMgmt + /// + [DataMember(Name = "VM.GuestAgent.FileSystemMgmt", EmitDefaultValue = false)] + public Int64 VMGuestAgentFileSystemMgmt { get; set; } + + /// + /// Gets or Sets VMGuestAgentFileWrite + /// + [DataMember(Name = "VM.GuestAgent.FileWrite", EmitDefaultValue = false)] + public Int64 VMGuestAgentFileWrite { get; set; } + + /// + /// Gets or Sets VMGuestAgentUnrestricted + /// + [DataMember(Name = "VM.GuestAgent.Unrestricted", EmitDefaultValue = false)] + public Int64 VMGuestAgentUnrestricted { get; set; } + + /// + /// Gets or Sets VMMigrate + /// + [DataMember(Name = "VM.Migrate", EmitDefaultValue = false)] + public Int64 VMMigrate { get; set; } + + /// + /// Gets or Sets VMPowerMgmt + /// + [DataMember(Name = "VM.PowerMgmt", EmitDefaultValue = false)] + public Int64 VMPowerMgmt { get; set; } + + /// + /// Gets or Sets VMReplicate + /// + [DataMember(Name = "VM.Replicate", EmitDefaultValue = false)] + public Int64 VMReplicate { get; set; } + + /// + /// Gets or Sets VMSnapshot + /// + [DataMember(Name = "VM.Snapshot", EmitDefaultValue = false)] + public Int64 VMSnapshot { get; set; } + + /// + /// Gets or Sets VMSnapshotRollback + /// + [DataMember(Name = "VM.Snapshot.Rollback", EmitDefaultValue = false)] + public Int64 VMSnapshotRollback { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessRolesSingle200ResponseData {\n"); + sb.Append(" DatastoreAllocate: ").Append(DatastoreAllocate).Append("\n"); + sb.Append(" DatastoreAllocateSpace: ").Append(DatastoreAllocateSpace).Append("\n"); + sb.Append(" DatastoreAllocateTemplate: ").Append(DatastoreAllocateTemplate).Append("\n"); + sb.Append(" DatastoreAudit: ").Append(DatastoreAudit).Append("\n"); + sb.Append(" GroupAllocate: ").Append(GroupAllocate).Append("\n"); + sb.Append(" MappingAudit: ").Append(MappingAudit).Append("\n"); + sb.Append(" MappingModify: ").Append(MappingModify).Append("\n"); + sb.Append(" MappingUse: ").Append(MappingUse).Append("\n"); + sb.Append(" PermissionsModify: ").Append(PermissionsModify).Append("\n"); + sb.Append(" PoolAllocate: ").Append(PoolAllocate).Append("\n"); + sb.Append(" PoolAudit: ").Append(PoolAudit).Append("\n"); + sb.Append(" RealmAllocate: ").Append(RealmAllocate).Append("\n"); + sb.Append(" RealmAllocateUser: ").Append(RealmAllocateUser).Append("\n"); + sb.Append(" SDNAllocate: ").Append(SDNAllocate).Append("\n"); + sb.Append(" SDNAudit: ").Append(SDNAudit).Append("\n"); + sb.Append(" SDNUse: ").Append(SDNUse).Append("\n"); + sb.Append(" SysAccessNetwork: ").Append(SysAccessNetwork).Append("\n"); + sb.Append(" SysAudit: ").Append(SysAudit).Append("\n"); + sb.Append(" SysConsole: ").Append(SysConsole).Append("\n"); + sb.Append(" SysIncoming: ").Append(SysIncoming).Append("\n"); + sb.Append(" SysModify: ").Append(SysModify).Append("\n"); + sb.Append(" SysPowerMgmt: ").Append(SysPowerMgmt).Append("\n"); + sb.Append(" SysSyslog: ").Append(SysSyslog).Append("\n"); + sb.Append(" UserModify: ").Append(UserModify).Append("\n"); + sb.Append(" VMAllocate: ").Append(VMAllocate).Append("\n"); + sb.Append(" VMAudit: ").Append(VMAudit).Append("\n"); + sb.Append(" VMBackup: ").Append(VMBackup).Append("\n"); + sb.Append(" VMClone: ").Append(VMClone).Append("\n"); + sb.Append(" VMConfigCDROM: ").Append(VMConfigCDROM).Append("\n"); + sb.Append(" VMConfigCPU: ").Append(VMConfigCPU).Append("\n"); + sb.Append(" VMConfigCloudinit: ").Append(VMConfigCloudinit).Append("\n"); + sb.Append(" VMConfigDisk: ").Append(VMConfigDisk).Append("\n"); + sb.Append(" VMConfigHWType: ").Append(VMConfigHWType).Append("\n"); + sb.Append(" VMConfigMemory: ").Append(VMConfigMemory).Append("\n"); + sb.Append(" VMConfigNetwork: ").Append(VMConfigNetwork).Append("\n"); + sb.Append(" VMConfigOptions: ").Append(VMConfigOptions).Append("\n"); + sb.Append(" VMConsole: ").Append(VMConsole).Append("\n"); + sb.Append(" VMGuestAgentAudit: ").Append(VMGuestAgentAudit).Append("\n"); + sb.Append(" VMGuestAgentFileRead: ").Append(VMGuestAgentFileRead).Append("\n"); + sb.Append(" VMGuestAgentFileSystemMgmt: ").Append(VMGuestAgentFileSystemMgmt).Append("\n"); + sb.Append(" VMGuestAgentFileWrite: ").Append(VMGuestAgentFileWrite).Append("\n"); + sb.Append(" VMGuestAgentUnrestricted: ").Append(VMGuestAgentUnrestricted).Append("\n"); + sb.Append(" VMMigrate: ").Append(VMMigrate).Append("\n"); + sb.Append(" VMPowerMgmt: ").Append(VMPowerMgmt).Append("\n"); + sb.Append(" VMReplicate: ").Append(VMReplicate).Append("\n"); + sb.Append(" VMSnapshot: ").Append(VMSnapshot).Append("\n"); + sb.Append(" VMSnapshotRollback: ").Append(VMSnapshotRollback).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessTfa200Response.cs b/src/ProxmoxSharp/Model/GetAccessTfa200Response.cs new file mode 100644 index 0000000..101bf74 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessTfa200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessTfa200Response + /// + [DataContract(Name = "getAccessTfa_200_response")] + public partial class GetAccessTfa200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// The list tuples of user and TFA entries.. + public GetAccessTfa200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// The list tuples of user and TFA entries. + /// + /// The list tuples of user and TFA entries. + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessTfa200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessTfa200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetAccessTfa200ResponseDataInner.cs new file mode 100644 index 0000000..05f1afb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessTfa200ResponseDataInner.cs @@ -0,0 +1,113 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessTfa200ResponseDataInner + /// + [DataContract(Name = "getAccessTfa_200_response_data_inner")] + public partial class GetAccessTfa200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// entries. + /// Contains a timestamp until when a user is locked out of 2nd factors.. + /// True if the user is currently locked out of TOTP factors.. + /// User this entry belongs to.. + public GetAccessTfa200ResponseDataInner(List entries = default(List), Int64 tfaLockedUntil = default(Int64), Int64 totpLocked = default(Int64), string userid = default(string)) + { + this.Entries = entries; + this.TfaLockedUntil = tfaLockedUntil; + this.TotpLocked = totpLocked; + this.Userid = userid; + } + + /// + /// Gets or Sets Entries + /// + [DataMember(Name = "entries", EmitDefaultValue = false)] + public List Entries { get; set; } + + /// + /// Contains a timestamp until when a user is locked out of 2nd factors. + /// + /// Contains a timestamp until when a user is locked out of 2nd factors. + [DataMember(Name = "tfa-locked-until", EmitDefaultValue = false)] + public Int64 TfaLockedUntil { get; set; } + + /// + /// True if the user is currently locked out of TOTP factors. + /// + /// True if the user is currently locked out of TOTP factors. + [DataMember(Name = "totp-locked", EmitDefaultValue = false)] + public Int64 TotpLocked { get; set; } + + /// + /// User this entry belongs to. + /// + /// User this entry belongs to. + [DataMember(Name = "userid", EmitDefaultValue = false)] + public string Userid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessTfa200ResponseDataInner {\n"); + sb.Append(" Entries: ").Append(Entries).Append("\n"); + sb.Append(" TfaLockedUntil: ").Append(TfaLockedUntil).Append("\n"); + sb.Append(" TotpLocked: ").Append(TotpLocked).Append("\n"); + sb.Append(" Userid: ").Append(Userid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessTfa200ResponseDataInnerEntriesInner.cs b/src/ProxmoxSharp/Model/GetAccessTfa200ResponseDataInnerEntriesInner.cs new file mode 100644 index 0000000..0d9cfaf --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessTfa200ResponseDataInnerEntriesInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// TFA Entry. + /// + [DataContract(Name = "getAccessTfa_200_response_data_inner_entries_inner")] + public partial class GetAccessTfa200ResponseDataInnerEntriesInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Creation time of this entry as unix epoch.. + /// User chosen description for this entry.. + /// Whether this TFA entry is currently enabled.. + /// The id used to reference this entry.. + /// TFA Entry Type.. + public GetAccessTfa200ResponseDataInnerEntriesInner(Int64 created = default(Int64), string description = default(string), Int64 enable = default(Int64), string id = default(string), string type = default(string)) + { + this.Created = created; + this.Description = description; + this.Enable = enable; + this.Id = id; + this.Type = type; + } + + /// + /// Creation time of this entry as unix epoch. + /// + /// Creation time of this entry as unix epoch. + [DataMember(Name = "created", EmitDefaultValue = false)] + public Int64 Created { get; set; } + + /// + /// User chosen description for this entry. + /// + /// User chosen description for this entry. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Whether this TFA entry is currently enabled. + /// + /// Whether this TFA entry is currently enabled. + [DataMember(Name = "enable", EmitDefaultValue = false)] + public Int64 Enable { get; set; } + + /// + /// The id used to reference this entry. + /// + /// The id used to reference this entry. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// TFA Entry Type. + /// + /// TFA Entry Type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessTfa200ResponseDataInnerEntriesInner {\n"); + sb.Append(" Created: ").Append(Created).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessTfaSingle200Response.cs b/src/ProxmoxSharp/Model/GetAccessTfaSingle200Response.cs new file mode 100644 index 0000000..9dc310e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessTfaSingle200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessTfaSingle200Response + /// + [DataContract(Name = "getAccessTfaSingle_200_response")] + public partial class GetAccessTfaSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// A list of the user's TFA entries.. + public GetAccessTfaSingle200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// A list of the user's TFA entries. + /// + /// A list of the user's TFA entries. + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessTfaSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessTfaSingleSingle200Response.cs b/src/ProxmoxSharp/Model/GetAccessTfaSingleSingle200Response.cs new file mode 100644 index 0000000..91ef2a4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessTfaSingleSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessTfaSingleSingle200Response + /// + [DataContract(Name = "getAccessTfaSingleSingle_200_response")] + public partial class GetAccessTfaSingleSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessTfaSingleSingle200Response(List errors = default(List), GetAccessTfa200ResponseDataInnerEntriesInner data = default(GetAccessTfa200ResponseDataInnerEntriesInner)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetAccessTfa200ResponseDataInnerEntriesInner Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessTfaSingleSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsers200Response.cs b/src/ProxmoxSharp/Model/GetAccessUsers200Response.cs new file mode 100644 index 0000000..2bc2d01 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsers200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsers200Response + /// + [DataContract(Name = "getAccessUsers_200_response")] + public partial class GetAccessUsers200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessUsers200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsers200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsers200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetAccessUsers200ResponseDataInner.cs new file mode 100644 index 0000000..d887a6b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsers200ResponseDataInner.cs @@ -0,0 +1,198 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsers200ResponseDataInner + /// + [DataContract(Name = "getAccessUsers_200_response_data_inner")] + public partial class GetAccessUsers200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// email. + /// Enable the account (default). You can set this to '0' to disable the account. + /// Account expiration date (seconds since epoch). '0' means no expiration date.. + /// firstname. + /// groups. + /// Keys for two factor auth (yubico).. + /// lastname. + /// The type of the users realm. + /// Contains a timestamp until when a user is locked out of 2nd factors.. + /// tokens. + /// True if the user is currently locked out of TOTP factors.. + /// Full User ID, in the `name@realm` format.. + public GetAccessUsers200ResponseDataInner(string comment = default(string), string email = default(string), Int64 enable = default(Int64), Int64 expire = default(Int64), string firstname = default(string), string groups = default(string), string keys = default(string), string lastname = default(string), string realmType = default(string), Int64 tfaLockedUntil = default(Int64), List tokens = default(List), Int64 totpLocked = default(Int64), string userid = default(string)) + { + this.Comment = comment; + this.Email = email; + this.Enable = enable; + this.Expire = expire; + this.Firstname = firstname; + this.Groups = groups; + this.Keys = keys; + this.Lastname = lastname; + this.RealmType = realmType; + this.TfaLockedUntil = tfaLockedUntil; + this.Tokens = tokens; + this.TotpLocked = totpLocked; + this.Userid = userid; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Email + /// + [DataMember(Name = "email", EmitDefaultValue = false)] + public string Email { get; set; } + + /// + /// Enable the account (default). You can set this to '0' to disable the account + /// + /// Enable the account (default). You can set this to '0' to disable the account + [DataMember(Name = "enable", EmitDefaultValue = false)] + public Int64 Enable { get; set; } + + /// + /// Account expiration date (seconds since epoch). '0' means no expiration date. + /// + /// Account expiration date (seconds since epoch). '0' means no expiration date. + [DataMember(Name = "expire", EmitDefaultValue = false)] + public Int64 Expire { get; set; } + + /// + /// Gets or Sets Firstname + /// + [DataMember(Name = "firstname", EmitDefaultValue = false)] + public string Firstname { get; set; } + + /// + /// Gets or Sets Groups + /// + [DataMember(Name = "groups", EmitDefaultValue = false)] + public string Groups { get; set; } + + /// + /// Keys for two factor auth (yubico). + /// + /// Keys for two factor auth (yubico). + [DataMember(Name = "keys", EmitDefaultValue = false)] + public string Keys { get; set; } + + /// + /// Gets or Sets Lastname + /// + [DataMember(Name = "lastname", EmitDefaultValue = false)] + public string Lastname { get; set; } + + /// + /// The type of the users realm + /// + /// The type of the users realm + [DataMember(Name = "realm-type", EmitDefaultValue = false)] + public string RealmType { get; set; } + + /// + /// Contains a timestamp until when a user is locked out of 2nd factors. + /// + /// Contains a timestamp until when a user is locked out of 2nd factors. + [DataMember(Name = "tfa-locked-until", EmitDefaultValue = false)] + public Int64 TfaLockedUntil { get; set; } + + /// + /// Gets or Sets Tokens + /// + [DataMember(Name = "tokens", EmitDefaultValue = false)] + public List Tokens { get; set; } + + /// + /// True if the user is currently locked out of TOTP factors. + /// + /// True if the user is currently locked out of TOTP factors. + [DataMember(Name = "totp-locked", EmitDefaultValue = false)] + public Int64 TotpLocked { get; set; } + + /// + /// Full User ID, in the `name@realm` format. + /// + /// Full User ID, in the `name@realm` format. + [DataMember(Name = "userid", EmitDefaultValue = false)] + public string Userid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsers200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Firstname: ").Append(Firstname).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Keys: ").Append(Keys).Append("\n"); + sb.Append(" Lastname: ").Append(Lastname).Append("\n"); + sb.Append(" RealmType: ").Append(RealmType).Append("\n"); + sb.Append(" TfaLockedUntil: ").Append(TfaLockedUntil).Append("\n"); + sb.Append(" Tokens: ").Append(Tokens).Append("\n"); + sb.Append(" TotpLocked: ").Append(TotpLocked).Append("\n"); + sb.Append(" Userid: ").Append(Userid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsers200ResponseDataInnerTokensInner.cs b/src/ProxmoxSharp/Model/GetAccessUsers200ResponseDataInnerTokensInner.cs new file mode 100644 index 0000000..d116baf --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsers200ResponseDataInnerTokensInner.cs @@ -0,0 +1,113 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsers200ResponseDataInnerTokensInner + /// + [DataContract(Name = "getAccessUsers_200_response_data_inner_tokens_inner")] + public partial class GetAccessUsers200ResponseDataInnerTokensInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// API token expiration date (seconds since epoch). '0' means no expiration date.. + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.. + /// User-specific token identifier.. + public GetAccessUsers200ResponseDataInnerTokensInner(string comment = default(string), Int64 expire = default(Int64), Int64 privsep = default(Int64), string tokenid = default(string)) + { + this.Comment = comment; + this.Expire = expire; + this.Privsep = privsep; + this.Tokenid = tokenid; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// API token expiration date (seconds since epoch). '0' means no expiration date. + /// + /// API token expiration date (seconds since epoch). '0' means no expiration date. + [DataMember(Name = "expire", EmitDefaultValue = false)] + public Int64 Expire { get; set; } + + /// + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user. + /// + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user. + [DataMember(Name = "privsep", EmitDefaultValue = false)] + public Int64 Privsep { get; set; } + + /// + /// User-specific token identifier. + /// + /// User-specific token identifier. + [DataMember(Name = "tokenid", EmitDefaultValue = false)] + public string Tokenid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsers200ResponseDataInnerTokensInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Privsep: ").Append(Privsep).Append("\n"); + sb.Append(" Tokenid: ").Append(Tokenid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsersSingle200Response.cs b/src/ProxmoxSharp/Model/GetAccessUsersSingle200Response.cs new file mode 100644 index 0000000..bc0b53b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsersSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsersSingle200Response + /// + [DataContract(Name = "getAccessUsersSingle_200_response")] + public partial class GetAccessUsersSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessUsersSingle200Response(List errors = default(List), GetAccessUsersSingle200ResponseData data = default(GetAccessUsersSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetAccessUsersSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsersSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsersSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetAccessUsersSingle200ResponseData.cs new file mode 100644 index 0000000..13046d7 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsersSingle200ResponseData.cs @@ -0,0 +1,158 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsersSingle200ResponseData + /// + [DataContract(Name = "getAccessUsersSingle_200_response_data")] + public partial class GetAccessUsersSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// email. + /// Enable the account (default). You can set this to '0' to disable the account. + /// Account expiration date (seconds since epoch). '0' means no expiration date.. + /// firstname. + /// groups. + /// Keys for two factor auth (yubico).. + /// lastname. + /// tokens. + public GetAccessUsersSingle200ResponseData(string comment = default(string), string email = default(string), Int64 enable = default(Int64), Int64 expire = default(Int64), string firstname = default(string), List groups = default(List), string keys = default(string), string lastname = default(string), Object tokens = default(Object)) + { + this.Comment = comment; + this.Email = email; + this.Enable = enable; + this.Expire = expire; + this.Firstname = firstname; + this.Groups = groups; + this.Keys = keys; + this.Lastname = lastname; + this.Tokens = tokens; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Email + /// + [DataMember(Name = "email", EmitDefaultValue = false)] + public string Email { get; set; } + + /// + /// Enable the account (default). You can set this to '0' to disable the account + /// + /// Enable the account (default). You can set this to '0' to disable the account + [DataMember(Name = "enable", EmitDefaultValue = false)] + public Int64 Enable { get; set; } + + /// + /// Account expiration date (seconds since epoch). '0' means no expiration date. + /// + /// Account expiration date (seconds since epoch). '0' means no expiration date. + [DataMember(Name = "expire", EmitDefaultValue = false)] + public Int64 Expire { get; set; } + + /// + /// Gets or Sets Firstname + /// + [DataMember(Name = "firstname", EmitDefaultValue = false)] + public string Firstname { get; set; } + + /// + /// Gets or Sets Groups + /// + [DataMember(Name = "groups", EmitDefaultValue = false)] + public List Groups { get; set; } + + /// + /// Keys for two factor auth (yubico). + /// + /// Keys for two factor auth (yubico). + [DataMember(Name = "keys", EmitDefaultValue = false)] + public string Keys { get; set; } + + /// + /// Gets or Sets Lastname + /// + [DataMember(Name = "lastname", EmitDefaultValue = false)] + public string Lastname { get; set; } + + /// + /// Gets or Sets Tokens + /// + [DataMember(Name = "tokens", EmitDefaultValue = false)] + public Object Tokens { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsersSingle200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Firstname: ").Append(Firstname).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Keys: ").Append(Keys).Append("\n"); + sb.Append(" Lastname: ").Append(Lastname).Append("\n"); + sb.Append(" Tokens: ").Append(Tokens).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsersSingleTfa200Response.cs b/src/ProxmoxSharp/Model/GetAccessUsersSingleTfa200Response.cs new file mode 100644 index 0000000..3cc8354 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsersSingleTfa200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsersSingleTfa200Response + /// + [DataContract(Name = "getAccessUsersSingleTfa_200_response")] + public partial class GetAccessUsersSingleTfa200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessUsersSingleTfa200Response(List errors = default(List), GetAccessUsersSingleTfa200ResponseData data = default(GetAccessUsersSingleTfa200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetAccessUsersSingleTfa200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsersSingleTfa200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsersSingleTfa200ResponseData.cs b/src/ProxmoxSharp/Model/GetAccessUsersSingleTfa200ResponseData.cs new file mode 100644 index 0000000..afc39c2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsersSingleTfa200ResponseData.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsersSingleTfa200ResponseData + /// + [DataContract(Name = "getAccessUsersSingleTfa_200_response_data")] + public partial class GetAccessUsersSingleTfa200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The type of TFA the users realm has set, if any.. + /// Array of the user configured TFA types, if any. Only available if 'multiple' was not passed.. + /// The type of TFA the user has set, if any. Only set if 'multiple' was not passed.. + public GetAccessUsersSingleTfa200ResponseData(string realm = default(string), List types = default(List), string user = default(string)) + { + this.Realm = realm; + this.Types = types; + this.User = user; + } + + /// + /// The type of TFA the users realm has set, if any. + /// + /// The type of TFA the users realm has set, if any. + [DataMember(Name = "realm", EmitDefaultValue = false)] + public string Realm { get; set; } + + /// + /// Array of the user configured TFA types, if any. Only available if 'multiple' was not passed. + /// + /// Array of the user configured TFA types, if any. Only available if 'multiple' was not passed. + [DataMember(Name = "types", EmitDefaultValue = false)] + public List Types { get; set; } + + /// + /// The type of TFA the user has set, if any. Only set if 'multiple' was not passed. + /// + /// The type of TFA the user has set, if any. Only set if 'multiple' was not passed. + [DataMember(Name = "user", EmitDefaultValue = false)] + public string User { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsersSingleTfa200ResponseData {\n"); + sb.Append(" Realm: ").Append(Realm).Append("\n"); + sb.Append(" Types: ").Append(Types).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsersSingleToken200Response.cs b/src/ProxmoxSharp/Model/GetAccessUsersSingleToken200Response.cs new file mode 100644 index 0000000..29bfc8b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsersSingleToken200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsersSingleToken200Response + /// + [DataContract(Name = "getAccessUsersSingleToken_200_response")] + public partial class GetAccessUsersSingleToken200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessUsersSingleToken200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsersSingleToken200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsersSingleTokenSingle200Response.cs b/src/ProxmoxSharp/Model/GetAccessUsersSingleTokenSingle200Response.cs new file mode 100644 index 0000000..1c58eb9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsersSingleTokenSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsersSingleTokenSingle200Response + /// + [DataContract(Name = "getAccessUsersSingleTokenSingle_200_response")] + public partial class GetAccessUsersSingleTokenSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetAccessUsersSingleTokenSingle200Response(List errors = default(List), GetAccessUsersSingleTokenSingle200ResponseData data = default(GetAccessUsersSingleTokenSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetAccessUsersSingleTokenSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsersSingleTokenSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetAccessUsersSingleTokenSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetAccessUsersSingleTokenSingle200ResponseData.cs new file mode 100644 index 0000000..9be26ef --- /dev/null +++ b/src/ProxmoxSharp/Model/GetAccessUsersSingleTokenSingle200ResponseData.cs @@ -0,0 +1,103 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetAccessUsersSingleTokenSingle200ResponseData + /// + [DataContract(Name = "getAccessUsersSingleTokenSingle_200_response_data")] + public partial class GetAccessUsersSingleTokenSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// API token expiration date (seconds since epoch). '0' means no expiration date.. + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.. + public GetAccessUsersSingleTokenSingle200ResponseData(string comment = default(string), Int64 expire = default(Int64), Int64 privsep = default(Int64)) + { + this.Comment = comment; + this.Expire = expire; + this.Privsep = privsep; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// API token expiration date (seconds since epoch). '0' means no expiration date. + /// + /// API token expiration date (seconds since epoch). '0' means no expiration date. + [DataMember(Name = "expire", EmitDefaultValue = false)] + public Int64 Expire { get; set; } + + /// + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user. + /// + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user. + [DataMember(Name = "privsep", EmitDefaultValue = false)] + public Int64 Privsep { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetAccessUsersSingleTokenSingle200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Privsep: ").Append(Privsep).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetCluster200Response.cs b/src/ProxmoxSharp/Model/GetCluster200Response.cs new file mode 100644 index 0000000..b19eb22 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetCluster200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetCluster200Response + /// + [DataContract(Name = "getCluster_200_response")] + public partial class GetCluster200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetCluster200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetCluster200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeAccountSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterAcmeAccountSingle200Response.cs new file mode 100644 index 0000000..77cd13b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeAccountSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeAccountSingle200Response + /// + [DataContract(Name = "getClusterAcmeAccountSingle_200_response")] + public partial class GetClusterAcmeAccountSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterAcmeAccountSingle200Response(List errors = default(List), GetClusterAcmeAccountSingle200ResponseData data = default(GetClusterAcmeAccountSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterAcmeAccountSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeAccountSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeAccountSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterAcmeAccountSingle200ResponseData.cs new file mode 100644 index 0000000..6f0ab16 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeAccountSingle200ResponseData.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeAccountSingle200ResponseData + /// + [DataContract(Name = "getClusterAcmeAccountSingle_200_response_data")] + public partial class GetClusterAcmeAccountSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// account. + /// URL of ACME CA directory endpoint.. + /// location. + /// tos. + public GetClusterAcmeAccountSingle200ResponseData(Object account = default(Object), string directory = default(string), string location = default(string), string tos = default(string)) + { + this.Account = account; + this.Directory = directory; + this.Location = location; + this.Tos = tos; + } + + /// + /// Gets or Sets Account + /// + [DataMember(Name = "account", EmitDefaultValue = false)] + public Object Account { get; set; } + + /// + /// URL of ACME CA directory endpoint. + /// + /// URL of ACME CA directory endpoint. + [DataMember(Name = "directory", EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// Gets or Sets Location + /// + [DataMember(Name = "location", EmitDefaultValue = false)] + public string Location { get; set; } + + /// + /// Gets or Sets Tos + /// + [DataMember(Name = "tos", EmitDefaultValue = false)] + public string Tos { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeAccountSingle200ResponseData {\n"); + sb.Append(" Account: ").Append(Account).Append("\n"); + sb.Append(" Directory: ").Append(Directory).Append("\n"); + sb.Append(" Location: ").Append(Location).Append("\n"); + sb.Append(" Tos: ").Append(Tos).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeChallengeschema200Response.cs b/src/ProxmoxSharp/Model/GetClusterAcmeChallengeschema200Response.cs new file mode 100644 index 0000000..cd3d8dc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeChallengeschema200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeChallengeschema200Response + /// + [DataContract(Name = "getClusterAcmeChallengeschema_200_response")] + public partial class GetClusterAcmeChallengeschema200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterAcmeChallengeschema200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeChallengeschema200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeChallengeschema200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterAcmeChallengeschema200ResponseDataInner.cs new file mode 100644 index 0000000..b837cb2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeChallengeschema200ResponseDataInner.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeChallengeschema200ResponseDataInner + /// + [DataContract(Name = "getClusterAcmeChallengeschema_200_response_data_inner")] + public partial class GetClusterAcmeChallengeschema200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// Human readable name, falls back to id. + /// schema. + /// type. + public GetClusterAcmeChallengeschema200ResponseDataInner(string id = default(string), string name = default(string), Object schema = default(Object), string type = default(string)) + { + this.Id = id; + this.Name = name; + this.Schema = schema; + this.Type = type; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Human readable name, falls back to id + /// + /// Human readable name, falls back to id + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Schema + /// + [DataMember(Name = "schema", EmitDefaultValue = false)] + public Object Schema { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeChallengeschema200ResponseDataInner {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Schema: ").Append(Schema).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeDirectories200Response.cs b/src/ProxmoxSharp/Model/GetClusterAcmeDirectories200Response.cs new file mode 100644 index 0000000..10c0c62 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeDirectories200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeDirectories200Response + /// + [DataContract(Name = "getClusterAcmeDirectories_200_response")] + public partial class GetClusterAcmeDirectories200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterAcmeDirectories200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeDirectories200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeDirectories200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterAcmeDirectories200ResponseDataInner.cs new file mode 100644 index 0000000..fc1439d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeDirectories200ResponseDataInner.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeDirectories200ResponseDataInner + /// + [DataContract(Name = "getClusterAcmeDirectories_200_response_data_inner")] + public partial class GetClusterAcmeDirectories200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// name. + /// URL of ACME CA directory endpoint.. + public GetClusterAcmeDirectories200ResponseDataInner(string name = default(string), string url = default(string)) + { + this.Name = name; + this.Url = url; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// URL of ACME CA directory endpoint. + /// + /// URL of ACME CA directory endpoint. + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeDirectories200ResponseDataInner {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeMeta200Response.cs b/src/ProxmoxSharp/Model/GetClusterAcmeMeta200Response.cs new file mode 100644 index 0000000..259718c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeMeta200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeMeta200Response + /// + [DataContract(Name = "getClusterAcmeMeta_200_response")] + public partial class GetClusterAcmeMeta200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterAcmeMeta200Response(List errors = default(List), GetClusterAcmeMeta200ResponseData data = default(GetClusterAcmeMeta200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterAcmeMeta200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeMeta200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeMeta200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterAcmeMeta200ResponseData.cs new file mode 100644 index 0000000..2d8c018 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeMeta200ResponseData.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeMeta200ResponseData + /// + [DataContract(Name = "getClusterAcmeMeta_200_response_data")] + public partial class GetClusterAcmeMeta200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Hostnames referring to the ACME servers.. + /// EAB Required. + /// ACME TermsOfService URL.. + /// URL to more information about the ACME server.. + public GetClusterAcmeMeta200ResponseData(List caaIdentities = default(List), Int64 externalAccountRequired = default(Int64), string termsOfService = default(string), string website = default(string)) + { + this.CaaIdentities = caaIdentities; + this.ExternalAccountRequired = externalAccountRequired; + this.TermsOfService = termsOfService; + this.Website = website; + } + + /// + /// Hostnames referring to the ACME servers. + /// + /// Hostnames referring to the ACME servers. + [DataMember(Name = "caaIdentities", EmitDefaultValue = false)] + public List CaaIdentities { get; set; } + + /// + /// EAB Required + /// + /// EAB Required + [DataMember(Name = "externalAccountRequired", EmitDefaultValue = false)] + public Int64 ExternalAccountRequired { get; set; } + + /// + /// ACME TermsOfService URL. + /// + /// ACME TermsOfService URL. + [DataMember(Name = "termsOfService", EmitDefaultValue = false)] + public string TermsOfService { get; set; } + + /// + /// URL to more information about the ACME server. + /// + /// URL to more information about the ACME server. + [DataMember(Name = "website", EmitDefaultValue = false)] + public string Website { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeMeta200ResponseData {\n"); + sb.Append(" CaaIdentities: ").Append(CaaIdentities).Append("\n"); + sb.Append(" ExternalAccountRequired: ").Append(ExternalAccountRequired).Append("\n"); + sb.Append(" TermsOfService: ").Append(TermsOfService).Append("\n"); + sb.Append(" Website: ").Append(Website).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmePlugins200Response.cs b/src/ProxmoxSharp/Model/GetClusterAcmePlugins200Response.cs new file mode 100644 index 0000000..2e5dbfc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmePlugins200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmePlugins200Response + /// + [DataContract(Name = "getClusterAcmePlugins_200_response")] + public partial class GetClusterAcmePlugins200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterAcmePlugins200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmePlugins200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmePlugins200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterAcmePlugins200ResponseDataInner.cs new file mode 100644 index 0000000..145daf3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmePlugins200ResponseDataInner.cs @@ -0,0 +1,154 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmePlugins200ResponseDataInner + /// + [DataContract(Name = "getClusterAcmePlugins_200_response_data_inner")] + public partial class GetClusterAcmePlugins200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// API plugin name. + /// DNS plugin data. (base64 encoded). + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Flag to disable the config.. + /// List of cluster node names.. + /// Unique identifier for ACME plugin instance.. + /// ACME challenge type.. + /// Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.. + public GetClusterAcmePlugins200ResponseDataInner(string api = default(string), string data = default(string), string digest = default(string), Int64 disable = default(Int64), string nodes = default(string), string plugin = default(string), string type = default(string), Int64 validationDelay = default(Int64)) + { + this.Api = api; + this.Data = data; + this.Digest = digest; + this.Disable = disable; + this.Nodes = nodes; + this.Plugin = plugin; + this.Type = type; + this.ValidationDelay = validationDelay; + } + + /// + /// API plugin name + /// + /// API plugin name + [DataMember(Name = "api", EmitDefaultValue = false)] + public string Api { get; set; } + + /// + /// DNS plugin data. (base64 encoded) + /// + /// DNS plugin data. (base64 encoded) + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Flag to disable the config. + /// + /// Flag to disable the config. + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// List of cluster node names. + /// + /// List of cluster node names. + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Unique identifier for ACME plugin instance. + /// + /// Unique identifier for ACME plugin instance. + [DataMember(Name = "plugin", EmitDefaultValue = false)] + public string Plugin { get; set; } + + /// + /// ACME challenge type. + /// + /// ACME challenge type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records. + /// + /// Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records. + [DataMember(Name = "validation-delay", EmitDefaultValue = false)] + public Int64 ValidationDelay { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmePlugins200ResponseDataInner {\n"); + sb.Append(" Api: ").Append(Api).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Plugin: ").Append(Plugin).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ValidationDelay: ").Append(ValidationDelay).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmePluginsSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterAcmePluginsSingle200Response.cs new file mode 100644 index 0000000..ed93e2c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmePluginsSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmePluginsSingle200Response + /// + [DataContract(Name = "getClusterAcmePluginsSingle_200_response")] + public partial class GetClusterAcmePluginsSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterAcmePluginsSingle200Response(List errors = default(List), GetClusterAcmePlugins200ResponseDataInner data = default(GetClusterAcmePlugins200ResponseDataInner)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterAcmePlugins200ResponseDataInner Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmePluginsSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterAcmeTos200Response.cs b/src/ProxmoxSharp/Model/GetClusterAcmeTos200Response.cs new file mode 100644 index 0000000..14b2f5b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterAcmeTos200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterAcmeTos200Response + /// + [DataContract(Name = "getClusterAcmeTos_200_response")] + public partial class GetClusterAcmeTos200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// ACME TermsOfService URL.. + public GetClusterAcmeTos200Response(List errors = default(List), string data = default(string)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// ACME TermsOfService URL. + /// + /// ACME TermsOfService URL. + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterAcmeTos200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackup200Response.cs b/src/ProxmoxSharp/Model/GetClusterBackup200Response.cs new file mode 100644 index 0000000..d22cafb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackup200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackup200Response + /// + [DataContract(Name = "getClusterBackup_200_response")] + public partial class GetClusterBackup200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterBackup200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackup200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackup200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterBackup200ResponseDataInner.cs new file mode 100644 index 0000000..3f81008 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackup200ResponseDataInner.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackup200ResponseDataInner + /// + [DataContract(Name = "getClusterBackup_200_response_data_inner")] + public partial class GetClusterBackup200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The job ID.. + public GetClusterBackup200ResponseDataInner(string id = default(string)) + { + this.Id = id; + } + + /// + /// The job ID. + /// + /// The job ID. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackup200ResponseDataInner {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200Response.cs b/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200Response.cs new file mode 100644 index 0000000..55bc012 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackupSingleIncludedvolumes200Response + /// + [DataContract(Name = "getClusterBackupSingleIncludedvolumes_200_response")] + public partial class GetClusterBackupSingleIncludedvolumes200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterBackupSingleIncludedvolumes200Response(List errors = default(List), GetClusterBackupSingleIncludedvolumes200ResponseData data = default(GetClusterBackupSingleIncludedvolumes200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterBackupSingleIncludedvolumes200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackupSingleIncludedvolumes200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseData.cs new file mode 100644 index 0000000..02a127e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseData.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Root node of the tree object. Children represent guests, grandchildren represent volumes of that guest. + /// + [DataContract(Name = "getClusterBackupSingleIncludedvolumes_200_response_data")] + public partial class GetClusterBackupSingleIncludedvolumes200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// children. + public GetClusterBackupSingleIncludedvolumes200ResponseData(List children = default(List)) + { + this.Children = children; + } + + /// + /// Gets or Sets Children + /// + [DataMember(Name = "children", EmitDefaultValue = false)] + public List Children { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackupSingleIncludedvolumes200ResponseData {\n"); + sb.Append(" Children: ").Append(Children).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner.cs b/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner.cs new file mode 100644 index 0000000..3480371 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner + /// + [DataContract(Name = "getClusterBackupSingleIncludedvolumes_200_response_data_children_inner")] + public partial class GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The volumes of the guest with the information if they will be included in backups.. + /// VMID of the guest.. + /// Name of the guest. + /// Type of the guest, VM, CT or unknown for removed but not purged guests.. + public GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner(List children = default(List), Int64 id = default(Int64), string name = default(string), string type = default(string)) + { + this.Children = children; + this.Id = id; + this.Name = name; + this.Type = type; + } + + /// + /// The volumes of the guest with the information if they will be included in backups. + /// + /// The volumes of the guest with the information if they will be included in backups. + [DataMember(Name = "children", EmitDefaultValue = false)] + public List Children { get; set; } + + /// + /// VMID of the guest. + /// + /// VMID of the guest. + [DataMember(Name = "id", EmitDefaultValue = false)] + public Int64 Id { get; set; } + + /// + /// Name of the guest + /// + /// Name of the guest + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Type of the guest, VM, CT or unknown for removed but not purged guests. + /// + /// Type of the guest, VM, CT or unknown for removed but not purged guests. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInner {\n"); + sb.Append(" Children: ").Append(Children).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner.cs b/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner.cs new file mode 100644 index 0000000..5209d83 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner + /// + [DataContract(Name = "getClusterBackupSingleIncludedvolumes_200_response_data_children_inner_children_inner")] + public partial class GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Configuration key of the volume.. + /// Whether the volume is included in the backup or not.. + /// Name of the volume.. + /// The reason why the volume is included (or excluded).. + public GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner(string id = default(string), Int64 included = default(Int64), string name = default(string), string reason = default(string)) + { + this.Id = id; + this.Included = included; + this.Name = name; + this.Reason = reason; + } + + /// + /// Configuration key of the volume. + /// + /// Configuration key of the volume. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Whether the volume is included in the backup or not. + /// + /// Whether the volume is included in the backup or not. + [DataMember(Name = "included", EmitDefaultValue = false)] + public Int64 Included { get; set; } + + /// + /// Name of the volume. + /// + /// Name of the volume. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The reason why the volume is included (or excluded). + /// + /// The reason why the volume is included (or excluded). + [DataMember(Name = "reason", EmitDefaultValue = false)] + public string Reason { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackupSingleIncludedvolumes200ResponseDataChildrenInnerChildrenInner {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Included: ").Append(Included).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackupinfo200Response.cs b/src/ProxmoxSharp/Model/GetClusterBackupinfo200Response.cs new file mode 100644 index 0000000..2f0a6f4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackupinfo200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackupinfo200Response + /// + [DataContract(Name = "getClusterBackupinfo_200_response")] + public partial class GetClusterBackupinfo200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Directory index.. + public GetClusterBackupinfo200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Directory index. + /// + /// Directory index. + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackupinfo200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackupinfo200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterBackupinfo200ResponseDataInner.cs new file mode 100644 index 0000000..ac4dcb9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackupinfo200ResponseDataInner.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackupinfo200ResponseDataInner + /// + [DataContract(Name = "getClusterBackupinfo_200_response_data_inner")] + public partial class GetClusterBackupinfo200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// API sub-directory endpoint. + public GetClusterBackupinfo200ResponseDataInner(string subdir = default(string)) + { + this.Subdir = subdir; + } + + /// + /// API sub-directory endpoint + /// + /// API sub-directory endpoint + [DataMember(Name = "subdir", EmitDefaultValue = false)] + public string Subdir { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackupinfo200ResponseDataInner {\n"); + sb.Append(" Subdir: ").Append(Subdir).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackupinfoNotbackedup200Response.cs b/src/ProxmoxSharp/Model/GetClusterBackupinfoNotbackedup200Response.cs new file mode 100644 index 0000000..fc0ab51 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackupinfoNotbackedup200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackupinfoNotbackedup200Response + /// + [DataContract(Name = "getClusterBackupinfoNotbackedup_200_response")] + public partial class GetClusterBackupinfoNotbackedup200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Contains the guest objects.. + public GetClusterBackupinfoNotbackedup200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Contains the guest objects. + /// + /// Contains the guest objects. + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackupinfoNotbackedup200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterBackupinfoNotbackedup200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterBackupinfoNotbackedup200ResponseDataInner.cs new file mode 100644 index 0000000..c17957a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterBackupinfoNotbackedup200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterBackupinfoNotbackedup200ResponseDataInner + /// + [DataContract(Name = "getClusterBackupinfoNotbackedup_200_response_data_inner")] + public partial class GetClusterBackupinfoNotbackedup200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Name of the guest. + /// Type of the guest.. + /// VMID of the guest.. + public GetClusterBackupinfoNotbackedup200ResponseDataInner(string name = default(string), string type = default(string), Int64 vmid = default(Int64)) + { + this.Name = name; + this.Type = type; + this.Vmid = vmid; + } + + /// + /// Name of the guest + /// + /// Name of the guest + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Type of the guest. + /// + /// Type of the guest. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// VMID of the guest. + /// + /// VMID of the guest. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterBackupinfoNotbackedup200ResponseDataInner {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephFlags200Response.cs b/src/ProxmoxSharp/Model/GetClusterCephFlags200Response.cs new file mode 100644 index 0000000..e9356f9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephFlags200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterCephFlags200Response + /// + [DataContract(Name = "getClusterCephFlags_200_response")] + public partial class GetClusterCephFlags200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterCephFlags200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephFlags200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephFlags200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterCephFlags200ResponseDataInner.cs new file mode 100644 index 0000000..85dc9bd --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephFlags200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterCephFlags200ResponseDataInner + /// + [DataContract(Name = "getClusterCephFlags_200_response_data_inner")] + public partial class GetClusterCephFlags200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Flag description.. + /// Flag name.. + /// Flag value.. + public GetClusterCephFlags200ResponseDataInner(string description = default(string), string name = default(string), Int64 value = default(Int64)) + { + this.Description = description; + this.Name = name; + this.Value = value; + } + + /// + /// Flag description. + /// + /// Flag description. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Flag name. + /// + /// Flag name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Flag value. + /// + /// Flag value. + [DataMember(Name = "value", EmitDefaultValue = false)] + public Int64 Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephFlags200ResponseDataInner {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephFlagsSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterCephFlagsSingle200Response.cs new file mode 100644 index 0000000..22c6796 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephFlagsSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterCephFlagsSingle200Response + /// + [DataContract(Name = "getClusterCephFlagsSingle_200_response")] + public partial class GetClusterCephFlagsSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterCephFlagsSingle200Response(List errors = default(List), Int64 data = default(Int64)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public Int64 Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephFlagsSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200Response.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200Response.cs new file mode 100644 index 0000000..94654b1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterCephMetadata200Response + /// + [DataContract(Name = "getClusterCephMetadata_200_response")] + public partial class GetClusterCephMetadata200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterCephMetadata200Response(List errors = default(List), GetClusterCephMetadata200ResponseData data = default(GetClusterCephMetadata200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseData.cs new file mode 100644 index 0000000..163ba05 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseData.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Items for each type of service containing objects for each instance. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data")] + public partial class GetClusterCephMetadata200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// mds. + /// mgr. + /// mon. + /// node. + /// OSDs configured in the cluster and their properties.. + public GetClusterCephMetadata200ResponseData(GetClusterCephMetadata200ResponseDataMds mds = default(GetClusterCephMetadata200ResponseDataMds), GetClusterCephMetadata200ResponseDataMgr mgr = default(GetClusterCephMetadata200ResponseDataMgr), GetClusterCephMetadata200ResponseDataMon mon = default(GetClusterCephMetadata200ResponseDataMon), GetClusterCephMetadata200ResponseDataNode node = default(GetClusterCephMetadata200ResponseDataNode), List osd = default(List)) + { + this.Mds = mds; + this.Mgr = mgr; + this.Mon = mon; + this.Node = node; + this.Osd = osd; + } + + /// + /// Gets or Sets Mds + /// + [DataMember(Name = "mds", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataMds Mds { get; set; } + + /// + /// Gets or Sets Mgr + /// + [DataMember(Name = "mgr", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataMgr Mgr { get; set; } + + /// + /// Gets or Sets Mon + /// + [DataMember(Name = "mon", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataMon Mon { get; set; } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataNode Node { get; set; } + + /// + /// OSDs configured in the cluster and their properties. + /// + /// OSDs configured in the cluster and their properties. + [DataMember(Name = "osd", EmitDefaultValue = false)] + public List Osd { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseData {\n"); + sb.Append(" Mds: ").Append(Mds).Append("\n"); + sb.Append(" Mgr: ").Append(Mgr).Append("\n"); + sb.Append(" Mon: ").Append(Mon).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Osd: ").Append(Osd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMds.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMds.cs new file mode 100644 index 0000000..c52ee16 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMds.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Metadata servers configured in the cluster and their properties. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_mds")] + public partial class GetClusterCephMetadata200ResponseDataMds : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + public GetClusterCephMetadata200ResponseDataMds(GetClusterCephMetadata200ResponseDataMdsId id = default(GetClusterCephMetadata200ResponseDataMdsId)) + { + this.Id = id; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "{id}", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataMdsId Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataMds {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMdsId.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMdsId.cs new file mode 100644 index 0000000..3435a34 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMdsId.cs @@ -0,0 +1,154 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Useful properties are listed, but not the full list. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_mds__id_")] + public partial class GetClusterCephMetadata200ResponseDataMdsId : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Bind addresses and ports.. + /// Ceph release codename currently used.. + /// Version info currently used by the service.. + /// Short version (numerical) info currently used by the service.. + /// Hostname on which the service is running.. + /// Memory of the service currently in swap.. + /// Memory consumption of the service.. + /// Name of the service instance.. + public GetClusterCephMetadata200ResponseDataMdsId(string addr = default(string), string cephRelease = default(string), string cephVersion = default(string), string cephVersionShort = default(string), string hostname = default(string), Int64 memSwapKb = default(Int64), Int64 memTotalKb = default(Int64), string name = default(string)) + { + this.Addr = addr; + this.CephRelease = cephRelease; + this.CephVersion = cephVersion; + this.CephVersionShort = cephVersionShort; + this.Hostname = hostname; + this.MemSwapKb = memSwapKb; + this.MemTotalKb = memTotalKb; + this.Name = name; + } + + /// + /// Bind addresses and ports. + /// + /// Bind addresses and ports. + [DataMember(Name = "addr", EmitDefaultValue = false)] + public string Addr { get; set; } + + /// + /// Ceph release codename currently used. + /// + /// Ceph release codename currently used. + [DataMember(Name = "ceph_release", EmitDefaultValue = false)] + public string CephRelease { get; set; } + + /// + /// Version info currently used by the service. + /// + /// Version info currently used by the service. + [DataMember(Name = "ceph_version", EmitDefaultValue = false)] + public string CephVersion { get; set; } + + /// + /// Short version (numerical) info currently used by the service. + /// + /// Short version (numerical) info currently used by the service. + [DataMember(Name = "ceph_version_short", EmitDefaultValue = false)] + public string CephVersionShort { get; set; } + + /// + /// Hostname on which the service is running. + /// + /// Hostname on which the service is running. + [DataMember(Name = "hostname", EmitDefaultValue = false)] + public string Hostname { get; set; } + + /// + /// Memory of the service currently in swap. + /// + /// Memory of the service currently in swap. + [DataMember(Name = "mem_swap_kb", EmitDefaultValue = false)] + public Int64 MemSwapKb { get; set; } + + /// + /// Memory consumption of the service. + /// + /// Memory consumption of the service. + [DataMember(Name = "mem_total_kb", EmitDefaultValue = false)] + public Int64 MemTotalKb { get; set; } + + /// + /// Name of the service instance. + /// + /// Name of the service instance. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataMdsId {\n"); + sb.Append(" Addr: ").Append(Addr).Append("\n"); + sb.Append(" CephRelease: ").Append(CephRelease).Append("\n"); + sb.Append(" CephVersion: ").Append(CephVersion).Append("\n"); + sb.Append(" CephVersionShort: ").Append(CephVersionShort).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" MemSwapKb: ").Append(MemSwapKb).Append("\n"); + sb.Append(" MemTotalKb: ").Append(MemTotalKb).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMgr.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMgr.cs new file mode 100644 index 0000000..e93bf24 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMgr.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Managers configured in the cluster and their properties. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_mgr")] + public partial class GetClusterCephMetadata200ResponseDataMgr : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + public GetClusterCephMetadata200ResponseDataMgr(GetClusterCephMetadata200ResponseDataMgrId id = default(GetClusterCephMetadata200ResponseDataMgrId)) + { + this.Id = id; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "{id}", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataMgrId Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataMgr {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMgrId.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMgrId.cs new file mode 100644 index 0000000..3807ae8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMgrId.cs @@ -0,0 +1,154 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Useful properties are listed, but not the full list. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_mgr__id_")] + public partial class GetClusterCephMetadata200ResponseDataMgrId : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Bind address. + /// Ceph release codename currently used.. + /// Version info currently used by the service.. + /// Short version (numerical) info currently used by the service.. + /// Hostname on which the service is running.. + /// Memory of the service currently in swap.. + /// Memory consumption of the service.. + /// Name of the service instance.. + public GetClusterCephMetadata200ResponseDataMgrId(string addr = default(string), string cephRelease = default(string), string cephVersion = default(string), string cephVersionShort = default(string), string hostname = default(string), Int64 memSwapKb = default(Int64), Int64 memTotalKb = default(Int64), string name = default(string)) + { + this.Addr = addr; + this.CephRelease = cephRelease; + this.CephVersion = cephVersion; + this.CephVersionShort = cephVersionShort; + this.Hostname = hostname; + this.MemSwapKb = memSwapKb; + this.MemTotalKb = memTotalKb; + this.Name = name; + } + + /// + /// Bind address + /// + /// Bind address + [DataMember(Name = "addr", EmitDefaultValue = false)] + public string Addr { get; set; } + + /// + /// Ceph release codename currently used. + /// + /// Ceph release codename currently used. + [DataMember(Name = "ceph_release", EmitDefaultValue = false)] + public string CephRelease { get; set; } + + /// + /// Version info currently used by the service. + /// + /// Version info currently used by the service. + [DataMember(Name = "ceph_version", EmitDefaultValue = false)] + public string CephVersion { get; set; } + + /// + /// Short version (numerical) info currently used by the service. + /// + /// Short version (numerical) info currently used by the service. + [DataMember(Name = "ceph_version_short", EmitDefaultValue = false)] + public string CephVersionShort { get; set; } + + /// + /// Hostname on which the service is running. + /// + /// Hostname on which the service is running. + [DataMember(Name = "hostname", EmitDefaultValue = false)] + public string Hostname { get; set; } + + /// + /// Memory of the service currently in swap. + /// + /// Memory of the service currently in swap. + [DataMember(Name = "mem_swap_kb", EmitDefaultValue = false)] + public Int64 MemSwapKb { get; set; } + + /// + /// Memory consumption of the service. + /// + /// Memory consumption of the service. + [DataMember(Name = "mem_total_kb", EmitDefaultValue = false)] + public Int64 MemTotalKb { get; set; } + + /// + /// Name of the service instance. + /// + /// Name of the service instance. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataMgrId {\n"); + sb.Append(" Addr: ").Append(Addr).Append("\n"); + sb.Append(" CephRelease: ").Append(CephRelease).Append("\n"); + sb.Append(" CephVersion: ").Append(CephVersion).Append("\n"); + sb.Append(" CephVersionShort: ").Append(CephVersionShort).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" MemSwapKb: ").Append(MemSwapKb).Append("\n"); + sb.Append(" MemTotalKb: ").Append(MemTotalKb).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMon.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMon.cs new file mode 100644 index 0000000..42ee214 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMon.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Monitors configured in the cluster and their properties. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_mon")] + public partial class GetClusterCephMetadata200ResponseDataMon : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + public GetClusterCephMetadata200ResponseDataMon(GetClusterCephMetadata200ResponseDataMonId id = default(GetClusterCephMetadata200ResponseDataMonId)) + { + this.Id = id; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "{id}", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataMonId Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataMon {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMonId.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMonId.cs new file mode 100644 index 0000000..5b495e2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataMonId.cs @@ -0,0 +1,154 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Useful properties are listed, but not the full list. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_mon__id_")] + public partial class GetClusterCephMetadata200ResponseDataMonId : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Bind addresses and ports.. + /// Ceph release codename currently used.. + /// Version info currently used by the service.. + /// Short version (numerical) info currently used by the service.. + /// Hostname on which the service is running.. + /// Memory of the service currently in swap.. + /// Memory consumption of the service.. + /// Name of the service instance.. + public GetClusterCephMetadata200ResponseDataMonId(string addrs = default(string), string cephRelease = default(string), string cephVersion = default(string), string cephVersionShort = default(string), string hostname = default(string), Int64 memSwapKb = default(Int64), Int64 memTotalKb = default(Int64), string name = default(string)) + { + this.Addrs = addrs; + this.CephRelease = cephRelease; + this.CephVersion = cephVersion; + this.CephVersionShort = cephVersionShort; + this.Hostname = hostname; + this.MemSwapKb = memSwapKb; + this.MemTotalKb = memTotalKb; + this.Name = name; + } + + /// + /// Bind addresses and ports. + /// + /// Bind addresses and ports. + [DataMember(Name = "addrs", EmitDefaultValue = false)] + public string Addrs { get; set; } + + /// + /// Ceph release codename currently used. + /// + /// Ceph release codename currently used. + [DataMember(Name = "ceph_release", EmitDefaultValue = false)] + public string CephRelease { get; set; } + + /// + /// Version info currently used by the service. + /// + /// Version info currently used by the service. + [DataMember(Name = "ceph_version", EmitDefaultValue = false)] + public string CephVersion { get; set; } + + /// + /// Short version (numerical) info currently used by the service. + /// + /// Short version (numerical) info currently used by the service. + [DataMember(Name = "ceph_version_short", EmitDefaultValue = false)] + public string CephVersionShort { get; set; } + + /// + /// Hostname on which the service is running. + /// + /// Hostname on which the service is running. + [DataMember(Name = "hostname", EmitDefaultValue = false)] + public string Hostname { get; set; } + + /// + /// Memory of the service currently in swap. + /// + /// Memory of the service currently in swap. + [DataMember(Name = "mem_swap_kb", EmitDefaultValue = false)] + public Int64 MemSwapKb { get; set; } + + /// + /// Memory consumption of the service. + /// + /// Memory consumption of the service. + [DataMember(Name = "mem_total_kb", EmitDefaultValue = false)] + public Int64 MemTotalKb { get; set; } + + /// + /// Name of the service instance. + /// + /// Name of the service instance. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataMonId {\n"); + sb.Append(" Addrs: ").Append(Addrs).Append("\n"); + sb.Append(" CephRelease: ").Append(CephRelease).Append("\n"); + sb.Append(" CephVersion: ").Append(CephVersion).Append("\n"); + sb.Append(" CephVersionShort: ").Append(CephVersionShort).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" MemSwapKb: ").Append(MemSwapKb).Append("\n"); + sb.Append(" MemTotalKb: ").Append(MemTotalKb).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNode.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNode.cs new file mode 100644 index 0000000..41d18c1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNode.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Ceph version installed on the nodes. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_node")] + public partial class GetClusterCephMetadata200ResponseDataNode : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// node. + public GetClusterCephMetadata200ResponseDataNode(GetClusterCephMetadata200ResponseDataNodeNode node = default(GetClusterCephMetadata200ResponseDataNodeNode)) + { + this.Node = node; + } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "{node}", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataNodeNode Node { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataNode {\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNodeNode.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNodeNode.cs new file mode 100644 index 0000000..8b98f06 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNodeNode.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterCephMetadata200ResponseDataNodeNode + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_node__node_")] + public partial class GetClusterCephMetadata200ResponseDataNodeNode : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// GIT commit used for the build.. + /// varVersion. + public GetClusterCephMetadata200ResponseDataNodeNode(string buildcommit = default(string), GetClusterCephMetadata200ResponseDataNodeNodeVersion varVersion = default(GetClusterCephMetadata200ResponseDataNodeNodeVersion)) + { + this.Buildcommit = buildcommit; + this.VarVersion = varVersion; + } + + /// + /// GIT commit used for the build. + /// + /// GIT commit used for the build. + [DataMember(Name = "buildcommit", EmitDefaultValue = false)] + public string Buildcommit { get; set; } + + /// + /// Gets or Sets VarVersion + /// + [DataMember(Name = "version", EmitDefaultValue = false)] + public GetClusterCephMetadata200ResponseDataNodeNodeVersion VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataNodeNode {\n"); + sb.Append(" Buildcommit: ").Append(Buildcommit).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNodeNodeVersion.cs b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNodeNodeVersion.cs new file mode 100644 index 0000000..1d3aa96 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterCephMetadata200ResponseDataNodeNodeVersion.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Version info. + /// + [DataContract(Name = "getClusterCephMetadata_200_response_data_node__node__version")] + public partial class GetClusterCephMetadata200ResponseDataNodeNodeVersion : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// major, minor & patch. + /// Version as single string.. + public GetClusterCephMetadata200ResponseDataNodeNodeVersion(List parts = default(List), string str = default(string)) + { + this.Parts = parts; + this.Str = str; + } + + /// + /// major, minor & patch + /// + /// major, minor & patch + [DataMember(Name = "parts", EmitDefaultValue = false)] + public List Parts { get; set; } + + /// + /// Version as single string. + /// + /// Version as single string. + [DataMember(Name = "str", EmitDefaultValue = false)] + public string Str { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterCephMetadata200ResponseDataNodeNodeVersion {\n"); + sb.Append(" Parts: ").Append(Parts).Append("\n"); + sb.Append(" Str: ").Append(Str).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterConfigApiversion200Response.cs b/src/ProxmoxSharp/Model/GetClusterConfigApiversion200Response.cs new file mode 100644 index 0000000..578864f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterConfigApiversion200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterConfigApiversion200Response + /// + [DataContract(Name = "getClusterConfigApiversion_200_response")] + public partial class GetClusterConfigApiversion200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Cluster Join API version, currently 1. + public GetClusterConfigApiversion200Response(List errors = default(List), Int64 data = default(Int64)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Cluster Join API version, currently 1 + /// + /// Cluster Join API version, currently 1 + [DataMember(Name = "data", EmitDefaultValue = false)] + public Int64 Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterConfigApiversion200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterConfigJoin200Response.cs b/src/ProxmoxSharp/Model/GetClusterConfigJoin200Response.cs new file mode 100644 index 0000000..ca01945 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterConfigJoin200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterConfigJoin200Response + /// + [DataContract(Name = "getClusterConfigJoin_200_response")] + public partial class GetClusterConfigJoin200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterConfigJoin200Response(List errors = default(List), GetClusterConfigJoin200ResponseData data = default(GetClusterConfigJoin200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterConfigJoin200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterConfigJoin200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterConfigJoin200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterConfigJoin200ResponseData.cs new file mode 100644 index 0000000..4d529a3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterConfigJoin200ResponseData.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterConfigJoin200ResponseData + /// + [DataContract(Name = "getClusterConfigJoin_200_response_data")] + public partial class GetClusterConfigJoin200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// configDigest. + /// nodelist. + /// The cluster node name.. + /// totem. + public GetClusterConfigJoin200ResponseData(string configDigest = default(string), List nodelist = default(List), string preferredNode = default(string), Object totem = default(Object)) + { + this.ConfigDigest = configDigest; + this.Nodelist = nodelist; + this.PreferredNode = preferredNode; + this.Totem = totem; + } + + /// + /// Gets or Sets ConfigDigest + /// + [DataMember(Name = "config_digest", EmitDefaultValue = false)] + public string ConfigDigest { get; set; } + + /// + /// Gets or Sets Nodelist + /// + [DataMember(Name = "nodelist", EmitDefaultValue = false)] + public List Nodelist { get; set; } + + /// + /// The cluster node name. + /// + /// The cluster node name. + [DataMember(Name = "preferred_node", EmitDefaultValue = false)] + public string PreferredNode { get; set; } + + /// + /// Gets or Sets Totem + /// + [DataMember(Name = "totem", EmitDefaultValue = false)] + public Object Totem { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterConfigJoin200ResponseData {\n"); + sb.Append(" ConfigDigest: ").Append(ConfigDigest).Append("\n"); + sb.Append(" Nodelist: ").Append(Nodelist).Append("\n"); + sb.Append(" PreferredNode: ").Append(PreferredNode).Append("\n"); + sb.Append(" Totem: ").Append(Totem).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterConfigJoin200ResponseDataNodelistInner.cs b/src/ProxmoxSharp/Model/GetClusterConfigJoin200ResponseDataNodelistInner.cs new file mode 100644 index 0000000..6275e2b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterConfigJoin200ResponseDataNodelistInner.cs @@ -0,0 +1,132 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterConfigJoin200ResponseDataNodelistInner + /// + [DataContract(Name = "getClusterConfigJoin_200_response_data_nodelist_inner")] + public partial class GetClusterConfigJoin200ResponseDataNodelistInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The cluster node name.. + /// Node id for this node.. + /// pveAddr. + /// Certificate SHA 256 fingerprint.. + /// quorumVotes. + /// Address and priority information of a single corosync link. (up to 8 links supported; link0..link7). + public GetClusterConfigJoin200ResponseDataNodelistInner(string name = default(string), Int64 nodeid = default(Int64), string pveAddr = default(string), string pveFp = default(string), Int64 quorumVotes = default(Int64), string ring0Addr = default(string)) + { + this.Name = name; + this.Nodeid = nodeid; + this.PveAddr = pveAddr; + this.PveFp = pveFp; + this.QuorumVotes = quorumVotes; + this.Ring0Addr = ring0Addr; + } + + /// + /// The cluster node name. + /// + /// The cluster node name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Node id for this node. + /// + /// Node id for this node. + [DataMember(Name = "nodeid", EmitDefaultValue = false)] + public Int64 Nodeid { get; set; } + + /// + /// Gets or Sets PveAddr + /// + [DataMember(Name = "pve_addr", EmitDefaultValue = false)] + public string PveAddr { get; set; } + + /// + /// Certificate SHA 256 fingerprint. + /// + /// Certificate SHA 256 fingerprint. + [DataMember(Name = "pve_fp", EmitDefaultValue = false)] + public string PveFp { get; set; } + + /// + /// Gets or Sets QuorumVotes + /// + [DataMember(Name = "quorum_votes", EmitDefaultValue = false)] + public Int64 QuorumVotes { get; set; } + + /// + /// Address and priority information of a single corosync link. (up to 8 links supported; link0..link7) + /// + /// Address and priority information of a single corosync link. (up to 8 links supported; link0..link7) + [DataMember(Name = "ring0_addr", EmitDefaultValue = false)] + public string Ring0Addr { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterConfigJoin200ResponseDataNodelistInner {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Nodeid: ").Append(Nodeid).Append("\n"); + sb.Append(" PveAddr: ").Append(PveAddr).Append("\n"); + sb.Append(" PveFp: ").Append(PveFp).Append("\n"); + sb.Append(" QuorumVotes: ").Append(QuorumVotes).Append("\n"); + sb.Append(" Ring0Addr: ").Append(Ring0Addr).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterConfigNodes200Response.cs b/src/ProxmoxSharp/Model/GetClusterConfigNodes200Response.cs new file mode 100644 index 0000000..09f45e8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterConfigNodes200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterConfigNodes200Response + /// + [DataContract(Name = "getClusterConfigNodes_200_response")] + public partial class GetClusterConfigNodes200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterConfigNodes200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterConfigNodes200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterConfigNodes200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterConfigNodes200ResponseDataInner.cs new file mode 100644 index 0000000..b26bb51 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterConfigNodes200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterConfigNodes200ResponseDataInner + /// + [DataContract(Name = "getClusterConfigNodes_200_response_data_inner")] + public partial class GetClusterConfigNodes200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// node. + public GetClusterConfigNodes200ResponseDataInner(string node = default(string)) + { + this.Node = node; + } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterConfigNodes200ResponseDataInner {\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallAliases200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallAliases200Response.cs new file mode 100644 index 0000000..4885f5f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallAliases200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallAliases200Response + /// + [DataContract(Name = "getClusterFirewallAliases_200_response")] + public partial class GetClusterFirewallAliases200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallAliases200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallAliases200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallAliases200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterFirewallAliases200ResponseDataInner.cs new file mode 100644 index 0000000..a70e4e2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallAliases200ResponseDataInner.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallAliases200ResponseDataInner + /// + [DataContract(Name = "getClusterFirewallAliases_200_response_data_inner")] + public partial class GetClusterFirewallAliases200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cidr. + /// comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// name. + public GetClusterFirewallAliases200ResponseDataInner(string cidr = default(string), string comment = default(string), string digest = default(string), string name = default(string)) + { + this.Cidr = cidr; + this.Comment = comment; + this.Digest = digest; + this.Name = name; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", EmitDefaultValue = false)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallAliases200ResponseDataInner {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallGroupRule200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallGroupRule200Response.cs new file mode 100644 index 0000000..c0b8fc4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallGroupRule200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallGroupRule200Response + /// + [DataContract(Name = "getClusterFirewallGroupRule_200_response")] + public partial class GetClusterFirewallGroupRule200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallGroupRule200Response(List errors = default(List), GetClusterFirewallGroupRules200ResponseDataInner data = default(GetClusterFirewallGroupRules200ResponseDataInner)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterFirewallGroupRules200ResponseDataInner Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallGroupRule200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallGroupRules200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallGroupRules200Response.cs new file mode 100644 index 0000000..1f3a1b8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallGroupRules200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallGroupRules200Response + /// + [DataContract(Name = "getClusterFirewallGroupRules_200_response")] + public partial class GetClusterFirewallGroupRules200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallGroupRules200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallGroupRules200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallGroupRules200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterFirewallGroupRules200ResponseDataInner.cs new file mode 100644 index 0000000..5d8ecf6 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallGroupRules200ResponseDataInner.cs @@ -0,0 +1,224 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallGroupRules200ResponseDataInner + /// + [DataContract(Name = "getClusterFirewallGroupRules_200_response_data_inner")] + public partial class GetClusterFirewallGroupRules200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name. + /// Descriptive comment. + /// Restrict packet destination address. + /// Restrict TCP/UDP destination port. + /// Flag to enable/disable a rule. + /// Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp'. + /// Network interface name. You have to use network configuration key names for VMs and containers. + /// IP version (4 or 6) - automatically determined from source/dest addresses. + /// Log level for firewall rule. + /// Use predefined standard macro. + /// Rule position in the ruleset. + /// IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols'. + /// Restrict packet source address. + /// Restrict TCP/UDP source port. + /// Rule type. + public GetClusterFirewallGroupRules200ResponseDataInner(string action = default(string), string comment = default(string), string dest = default(string), string dport = default(string), Int64 enable = default(Int64), string icmpType = default(string), string iface = default(string), Int64 ipversion = default(Int64), string log = default(string), string macro = default(string), Int64 pos = default(Int64), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + this.Action = action; + this.Comment = comment; + this.Dest = dest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Ipversion = ipversion; + this.Log = log; + this.Macro = macro; + this.Pos = pos; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + this.Type = type; + } + + /// + /// Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name + /// + /// Rule action ('ACCEPT', 'DROP', 'REJECT') or security group name + [DataMember(Name = "action", EmitDefaultValue = false)] + public string Action { get; set; } + + /// + /// Descriptive comment + /// + /// Descriptive comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Restrict packet destination address + /// + /// Restrict packet destination address + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Restrict TCP/UDP destination port + /// + /// Restrict TCP/UDP destination port + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Flag to enable/disable a rule + /// + /// Flag to enable/disable a rule + [DataMember(Name = "enable", EmitDefaultValue = false)] + public Int64 Enable { get; set; } + + /// + /// Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp' + /// + /// Specify icmp-type. Only valid if proto equals 'icmp' or 'icmpv6'/'ipv6-icmp' + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Network interface name. You have to use network configuration key names for VMs and containers + /// + /// Network interface name. You have to use network configuration key names for VMs and containers + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// IP version (4 or 6) - automatically determined from source/dest addresses + /// + /// IP version (4 or 6) - automatically determined from source/dest addresses + [DataMember(Name = "ipversion", EmitDefaultValue = false)] + public Int64 Ipversion { get; set; } + + /// + /// Log level for firewall rule + /// + /// Log level for firewall rule + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Use predefined standard macro + /// + /// Use predefined standard macro + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Rule position in the ruleset + /// + /// Rule position in the ruleset + [DataMember(Name = "pos", EmitDefaultValue = false)] + public Int64 Pos { get; set; } + + /// + /// IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols' + /// + /// IP protocol. You can use protocol names ('tcp'/'udp') or simple numbers, as defined in '/etc/protocols' + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Restrict packet source address + /// + /// Restrict packet source address + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Restrict TCP/UDP source port + /// + /// Restrict TCP/UDP source port + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Rule type + /// + /// Rule type + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallGroupRules200ResponseDataInner {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Ipversion: ").Append(Ipversion).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Pos: ").Append(Pos).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallGroups200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallGroups200Response.cs new file mode 100644 index 0000000..e59db79 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallGroups200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallGroups200Response + /// + [DataContract(Name = "getClusterFirewallGroups_200_response")] + public partial class GetClusterFirewallGroups200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallGroups200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallGroups200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallGroups200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterFirewallGroups200ResponseDataInner.cs new file mode 100644 index 0000000..4b2cb80 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallGroups200ResponseDataInner.cs @@ -0,0 +1,103 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallGroups200ResponseDataInner + /// + [DataContract(Name = "getClusterFirewallGroups_200_response_data_inner")] + public partial class GetClusterFirewallGroups200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Security Group name.. + public GetClusterFirewallGroups200ResponseDataInner(string comment = default(string), string digest = default(string), string group = default(string)) + { + this.Comment = comment; + this.Digest = digest; + this.Group = group; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Security Group name. + /// + /// Security Group name. + [DataMember(Name = "group", EmitDefaultValue = false)] + public string Group { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallGroups200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallIPSet200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallIPSet200Response.cs new file mode 100644 index 0000000..3c50257 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallIPSet200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallIPSet200Response + /// + [DataContract(Name = "getClusterFirewallIPSet_200_response")] + public partial class GetClusterFirewallIPSet200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallIPSet200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallIPSet200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallIPSet200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterFirewallIPSet200ResponseDataInner.cs new file mode 100644 index 0000000..81f2194 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallIPSet200ResponseDataInner.cs @@ -0,0 +1,111 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallIPSet200ResponseDataInner + /// + [DataContract(Name = "getClusterFirewallIPSet_200_response_data_inner")] + public partial class GetClusterFirewallIPSet200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cidr. + /// comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// nomatch. + public GetClusterFirewallIPSet200ResponseDataInner(string cidr = default(string), string comment = default(string), string digest = default(string), Int64 nomatch = default(Int64)) + { + this.Cidr = cidr; + this.Comment = comment; + this.Digest = digest; + this.Nomatch = nomatch; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", EmitDefaultValue = false)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Nomatch + /// + [DataMember(Name = "nomatch", EmitDefaultValue = false)] + public Int64 Nomatch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallIPSet200ResponseDataInner {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Nomatch: ").Append(Nomatch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallIPSets200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallIPSets200Response.cs new file mode 100644 index 0000000..abaadb0 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallIPSets200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallIPSets200Response + /// + [DataContract(Name = "getClusterFirewallIPSets_200_response")] + public partial class GetClusterFirewallIPSets200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallIPSets200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallIPSets200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallIPSets200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterFirewallIPSets200ResponseDataInner.cs new file mode 100644 index 0000000..be8db0d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallIPSets200ResponseDataInner.cs @@ -0,0 +1,103 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallIPSets200ResponseDataInner + /// + [DataContract(Name = "getClusterFirewallIPSets_200_response_data_inner")] + public partial class GetClusterFirewallIPSets200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// IP set name.. + public GetClusterFirewallIPSets200ResponseDataInner(string comment = default(string), string digest = default(string), string name = default(string)) + { + this.Comment = comment; + this.Digest = digest; + this.Name = name; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// IP set name. + /// + /// IP set name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallIPSets200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallMacros200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallMacros200Response.cs new file mode 100644 index 0000000..03390f9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallMacros200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallMacros200Response + /// + [DataContract(Name = "getClusterFirewallMacros_200_response")] + public partial class GetClusterFirewallMacros200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallMacros200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallMacros200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallMacros200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterFirewallMacros200ResponseDataInner.cs new file mode 100644 index 0000000..23dd6cc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallMacros200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallMacros200ResponseDataInner + /// + [DataContract(Name = "getClusterFirewallMacros_200_response_data_inner")] + public partial class GetClusterFirewallMacros200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// More verbose description (if available).. + /// Macro name.. + public GetClusterFirewallMacros200ResponseDataInner(string descr = default(string), string macro = default(string)) + { + this.Descr = descr; + this.Macro = macro; + } + + /// + /// More verbose description (if available). + /// + /// More verbose description (if available). + [DataMember(Name = "descr", EmitDefaultValue = false)] + public string Descr { get; set; } + + /// + /// Macro name. + /// + /// Macro name. + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallMacros200ResponseDataInner {\n"); + sb.Append(" Descr: ").Append(Descr).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallOptions200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallOptions200Response.cs new file mode 100644 index 0000000..86c9a98 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallOptions200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallOptions200Response + /// + [DataContract(Name = "getClusterFirewallOptions_200_response")] + public partial class GetClusterFirewallOptions200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallOptions200Response(List errors = default(List), GetClusterFirewallOptions200ResponseData data = default(GetClusterFirewallOptions200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterFirewallOptions200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallOptions200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallOptions200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterFirewallOptions200ResponseData.cs new file mode 100644 index 0000000..8fa0577 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallOptions200ResponseData.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallOptions200ResponseData + /// + [DataContract(Name = "getClusterFirewallOptions_200_response_data")] + public partial class GetClusterFirewallOptions200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Enable ebtables rules cluster wide.. + /// Enable or disable the firewall cluster wide.. + /// Log ratelimiting settings. + /// Forward policy.. + /// Input policy.. + /// Output policy.. + public GetClusterFirewallOptions200ResponseData(Int64 ebtables = default(Int64), Int64 enable = default(Int64), string logRatelimit = default(string), string policyForward = default(string), string policyIn = default(string), string policyOut = default(string)) + { + this.Ebtables = ebtables; + this.Enable = enable; + this.LogRatelimit = logRatelimit; + this.PolicyForward = policyForward; + this.PolicyIn = policyIn; + this.PolicyOut = policyOut; + } + + /// + /// Enable ebtables rules cluster wide. + /// + /// Enable ebtables rules cluster wide. + [DataMember(Name = "ebtables", EmitDefaultValue = false)] + public Int64 Ebtables { get; set; } + + /// + /// Enable or disable the firewall cluster wide. + /// + /// Enable or disable the firewall cluster wide. + [DataMember(Name = "enable", EmitDefaultValue = false)] + public Int64 Enable { get; set; } + + /// + /// Log ratelimiting settings + /// + /// Log ratelimiting settings + [DataMember(Name = "log_ratelimit", EmitDefaultValue = false)] + public string LogRatelimit { get; set; } + + /// + /// Forward policy. + /// + /// Forward policy. + [DataMember(Name = "policy_forward", EmitDefaultValue = false)] + public string PolicyForward { get; set; } + + /// + /// Input policy. + /// + /// Input policy. + [DataMember(Name = "policy_in", EmitDefaultValue = false)] + public string PolicyIn { get; set; } + + /// + /// Output policy. + /// + /// Output policy. + [DataMember(Name = "policy_out", EmitDefaultValue = false)] + public string PolicyOut { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallOptions200ResponseData {\n"); + sb.Append(" Ebtables: ").Append(Ebtables).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" LogRatelimit: ").Append(LogRatelimit).Append("\n"); + sb.Append(" PolicyForward: ").Append(PolicyForward).Append("\n"); + sb.Append(" PolicyIn: ").Append(PolicyIn).Append("\n"); + sb.Append(" PolicyOut: ").Append(PolicyOut).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallRefs200Response.cs b/src/ProxmoxSharp/Model/GetClusterFirewallRefs200Response.cs new file mode 100644 index 0000000..71c5756 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallRefs200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallRefs200Response + /// + [DataContract(Name = "getClusterFirewallRefs_200_response")] + public partial class GetClusterFirewallRefs200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterFirewallRefs200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallRefs200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterFirewallRefs200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterFirewallRefs200ResponseDataInner.cs new file mode 100644 index 0000000..014d8f8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterFirewallRefs200ResponseDataInner.cs @@ -0,0 +1,119 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterFirewallRefs200ResponseDataInner + /// + [DataContract(Name = "getClusterFirewallRefs_200_response_data_inner")] + public partial class GetClusterFirewallRefs200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// name. + /// varRef. + /// scope. + /// type. + public GetClusterFirewallRefs200ResponseDataInner(string comment = default(string), string name = default(string), string varRef = default(string), string scope = default(string), string type = default(string)) + { + this.Comment = comment; + this.Name = name; + this.Ref = varRef; + this.Scope = scope; + this.Type = type; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Ref + /// + [DataMember(Name = "ref", EmitDefaultValue = false)] + public string Ref { get; set; } + + /// + /// Gets or Sets Scope + /// + [DataMember(Name = "scope", EmitDefaultValue = false)] + public string Scope { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterFirewallRefs200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Ref: ").Append(Ref).Append("\n"); + sb.Append(" Scope: ").Append(Scope).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHa200Response.cs b/src/ProxmoxSharp/Model/GetClusterHa200Response.cs new file mode 100644 index 0000000..f8de8f3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHa200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHa200Response + /// + [DataContract(Name = "getClusterHa_200_response")] + public partial class GetClusterHa200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterHa200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHa200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHa200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterHa200ResponseDataInner.cs new file mode 100644 index 0000000..e11963c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHa200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHa200ResponseDataInner + /// + [DataContract(Name = "getClusterHa_200_response_data_inner")] + public partial class GetClusterHa200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + public GetClusterHa200ResponseDataInner(string id = default(string)) + { + this.Id = id; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHa200ResponseDataInner {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaGroups200Response.cs b/src/ProxmoxSharp/Model/GetClusterHaGroups200Response.cs new file mode 100644 index 0000000..5e6a3fe --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaGroups200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaGroups200Response + /// + [DataContract(Name = "getClusterHaGroups_200_response")] + public partial class GetClusterHaGroups200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterHaGroups200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaGroups200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaGroups200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterHaGroups200ResponseDataInner.cs new file mode 100644 index 0000000..e9a034c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaGroups200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaGroups200ResponseDataInner + /// + [DataContract(Name = "getClusterHaGroups_200_response_data_inner")] + public partial class GetClusterHaGroups200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// group. + public GetClusterHaGroups200ResponseDataInner(string group = default(string)) + { + this.Group = group; + } + + /// + /// Gets or Sets Group + /// + [DataMember(Name = "group", EmitDefaultValue = false)] + public string Group { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaGroups200ResponseDataInner {\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaResources200Response.cs b/src/ProxmoxSharp/Model/GetClusterHaResources200Response.cs new file mode 100644 index 0000000..8735f86 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaResources200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaResources200Response + /// + [DataContract(Name = "getClusterHaResources_200_response")] + public partial class GetClusterHaResources200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterHaResources200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaResources200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaResources200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterHaResources200ResponseDataInner.cs new file mode 100644 index 0000000..c56de5c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaResources200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaResources200ResponseDataInner + /// + [DataContract(Name = "getClusterHaResources_200_response_data_inner")] + public partial class GetClusterHaResources200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// sid. + public GetClusterHaResources200ResponseDataInner(string sid = default(string)) + { + this.Sid = sid; + } + + /// + /// Gets or Sets Sid + /// + [DataMember(Name = "sid", EmitDefaultValue = false)] + public string Sid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaResources200ResponseDataInner {\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaResourcesSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterHaResourcesSingle200Response.cs new file mode 100644 index 0000000..b94cdd0 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaResourcesSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaResourcesSingle200Response + /// + [DataContract(Name = "getClusterHaResourcesSingle_200_response")] + public partial class GetClusterHaResourcesSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterHaResourcesSingle200Response(List errors = default(List), GetClusterHaResourcesSingle200ResponseData data = default(GetClusterHaResourcesSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterHaResourcesSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaResourcesSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaResourcesSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterHaResourcesSingle200ResponseData.cs new file mode 100644 index 0000000..60d8f74 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaResourcesSingle200ResponseData.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaResourcesSingle200ResponseData + /// + [DataContract(Name = "getClusterHaResourcesSingle_200_response_data")] + public partial class GetClusterHaResourcesSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Description.. + /// Can be used to prevent concurrent modifications.. + /// The HA resource is automatically migrated to the node with the highest priority according to their node affinity rule, if a node with a higher priority than the current node comes online.. + /// The HA group identifier.. + /// Maximal number of service relocate tries when a service failes to start.. + /// Maximal number of tries to restart the service on a node after its start failed.. + /// HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).. + /// Requested resource state.. + /// The type of the resources.. + public GetClusterHaResourcesSingle200ResponseData(string comment = default(string), string digest = default(string), Int64 failback = default(Int64), string group = default(string), Int64 maxRelocate = default(Int64), Int64 maxRestart = default(Int64), string sid = default(string), string state = default(string), string type = default(string)) + { + this.Comment = comment; + this.Digest = digest; + this.Failback = failback; + this.Group = group; + this.MaxRelocate = maxRelocate; + this.MaxRestart = maxRestart; + this.Sid = sid; + this.State = state; + this.Type = type; + } + + /// + /// Description. + /// + /// Description. + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Can be used to prevent concurrent modifications. + /// + /// Can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// The HA resource is automatically migrated to the node with the highest priority according to their node affinity rule, if a node with a higher priority than the current node comes online. + /// + /// The HA resource is automatically migrated to the node with the highest priority according to their node affinity rule, if a node with a higher priority than the current node comes online. + [DataMember(Name = "failback", EmitDefaultValue = false)] + public Int64 Failback { get; set; } + + /// + /// The HA group identifier. + /// + /// The HA group identifier. + [DataMember(Name = "group", EmitDefaultValue = false)] + public string Group { get; set; } + + /// + /// Maximal number of service relocate tries when a service failes to start. + /// + /// Maximal number of service relocate tries when a service failes to start. + [DataMember(Name = "max_relocate", EmitDefaultValue = false)] + public Int64 MaxRelocate { get; set; } + + /// + /// Maximal number of tries to restart the service on a node after its start failed. + /// + /// Maximal number of tries to restart the service on a node after its start failed. + [DataMember(Name = "max_restart", EmitDefaultValue = false)] + public Int64 MaxRestart { get; set; } + + /// + /// HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100). + /// + /// HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100). + [DataMember(Name = "sid", EmitDefaultValue = false)] + public string Sid { get; set; } + + /// + /// Requested resource state. + /// + /// Requested resource state. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// The type of the resources. + /// + /// The type of the resources. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaResourcesSingle200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Failback: ").Append(Failback).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" MaxRelocate: ").Append(MaxRelocate).Append("\n"); + sb.Append(" MaxRestart: ").Append(MaxRestart).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaRules200Response.cs b/src/ProxmoxSharp/Model/GetClusterHaRules200Response.cs new file mode 100644 index 0000000..449d9f2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaRules200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaRules200Response + /// + [DataContract(Name = "getClusterHaRules_200_response")] + public partial class GetClusterHaRules200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterHaRules200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaRules200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaRules200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterHaRules200ResponseDataInner.cs new file mode 100644 index 0000000..e2caad8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaRules200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaRules200ResponseDataInner + /// + [DataContract(Name = "getClusterHaRules_200_response_data_inner")] + public partial class GetClusterHaRules200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// rule. + public GetClusterHaRules200ResponseDataInner(string rule = default(string)) + { + this.Rule = rule; + } + + /// + /// Gets or Sets Rule + /// + [DataMember(Name = "rule", EmitDefaultValue = false)] + public string Rule { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaRules200ResponseDataInner {\n"); + sb.Append(" Rule: ").Append(Rule).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaRulesSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterHaRulesSingle200Response.cs new file mode 100644 index 0000000..fc7c479 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaRulesSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaRulesSingle200Response + /// + [DataContract(Name = "getClusterHaRulesSingle_200_response")] + public partial class GetClusterHaRulesSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterHaRulesSingle200Response(List errors = default(List), GetClusterHaRulesSingle200ResponseData data = default(GetClusterHaRulesSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterHaRulesSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaRulesSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaRulesSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterHaRulesSingle200ResponseData.cs new file mode 100644 index 0000000..71f77c8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaRulesSingle200ResponseData.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaRulesSingle200ResponseData + /// + [DataContract(Name = "getClusterHaRulesSingle_200_response_data")] + public partial class GetClusterHaRulesSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// HA rule identifier.. + /// HA rule type.. + public GetClusterHaRulesSingle200ResponseData(string rule = default(string), string type = default(string)) + { + this.Rule = rule; + this.Type = type; + } + + /// + /// HA rule identifier. + /// + /// HA rule identifier. + [DataMember(Name = "rule", EmitDefaultValue = false)] + public string Rule { get; set; } + + /// + /// HA rule type. + /// + /// HA rule type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaRulesSingle200ResponseData {\n"); + sb.Append(" Rule: ").Append(Rule).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaStatusCurrent200Response.cs b/src/ProxmoxSharp/Model/GetClusterHaStatusCurrent200Response.cs new file mode 100644 index 0000000..e1992ad --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaStatusCurrent200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaStatusCurrent200Response + /// + [DataContract(Name = "getClusterHaStatusCurrent_200_response")] + public partial class GetClusterHaStatusCurrent200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterHaStatusCurrent200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaStatusCurrent200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterHaStatusCurrent200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterHaStatusCurrent200ResponseDataInner.cs new file mode 100644 index 0000000..7b0f42d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterHaStatusCurrent200ResponseDataInner.cs @@ -0,0 +1,204 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterHaStatusCurrent200ResponseDataInner + /// + [DataContract(Name = "getClusterHaStatusCurrent_200_response_data_inner")] + public partial class GetClusterHaStatusCurrent200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// For type 'service'. Service state as seen by the CRM.. + /// The HA resource is automatically migrated to the node with the highest priority according to their node affinity rule, if a node with a higher priority than the current node comes online.. + /// Status entry ID (quorum, master, lrm:<node>, service:<sid>).. + /// For type 'service'.. + /// For type 'service'.. + /// Node associated to status entry.. + /// For type 'quorum'. Whether the cluster is quorate or not.. + /// For type 'service'. Requested service state.. + /// For type 'service'. Service ID.. + /// For type 'service'. Verbose service state.. + /// Status of the entry (value depends on type).. + /// For type 'lrm','master'. Timestamp of the status information.. + /// Type of status entry.. + public GetClusterHaStatusCurrent200ResponseDataInner(string crmState = default(string), Int64 failback = default(Int64), string id = default(string), Int64 maxRelocate = default(Int64), Int64 maxRestart = default(Int64), string node = default(string), Int64 quorate = default(Int64), string requestState = default(string), string sid = default(string), string state = default(string), string status = default(string), Int64 timestamp = default(Int64), string type = default(string)) + { + this.CrmState = crmState; + this.Failback = failback; + this.Id = id; + this.MaxRelocate = maxRelocate; + this.MaxRestart = maxRestart; + this.Node = node; + this.Quorate = quorate; + this.RequestState = requestState; + this.Sid = sid; + this.State = state; + this.Status = status; + this.Timestamp = timestamp; + this.Type = type; + } + + /// + /// For type 'service'. Service state as seen by the CRM. + /// + /// For type 'service'. Service state as seen by the CRM. + [DataMember(Name = "crm_state", EmitDefaultValue = false)] + public string CrmState { get; set; } + + /// + /// The HA resource is automatically migrated to the node with the highest priority according to their node affinity rule, if a node with a higher priority than the current node comes online. + /// + /// The HA resource is automatically migrated to the node with the highest priority according to their node affinity rule, if a node with a higher priority than the current node comes online. + [DataMember(Name = "failback", EmitDefaultValue = false)] + public Int64 Failback { get; set; } + + /// + /// Status entry ID (quorum, master, lrm:<node>, service:<sid>). + /// + /// Status entry ID (quorum, master, lrm:<node>, service:<sid>). + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// For type 'service'. + /// + /// For type 'service'. + [DataMember(Name = "max_relocate", EmitDefaultValue = false)] + public Int64 MaxRelocate { get; set; } + + /// + /// For type 'service'. + /// + /// For type 'service'. + [DataMember(Name = "max_restart", EmitDefaultValue = false)] + public Int64 MaxRestart { get; set; } + + /// + /// Node associated to status entry. + /// + /// Node associated to status entry. + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// For type 'quorum'. Whether the cluster is quorate or not. + /// + /// For type 'quorum'. Whether the cluster is quorate or not. + [DataMember(Name = "quorate", EmitDefaultValue = false)] + public Int64 Quorate { get; set; } + + /// + /// For type 'service'. Requested service state. + /// + /// For type 'service'. Requested service state. + [DataMember(Name = "request_state", EmitDefaultValue = false)] + public string RequestState { get; set; } + + /// + /// For type 'service'. Service ID. + /// + /// For type 'service'. Service ID. + [DataMember(Name = "sid", EmitDefaultValue = false)] + public string Sid { get; set; } + + /// + /// For type 'service'. Verbose service state. + /// + /// For type 'service'. Verbose service state. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Status of the entry (value depends on type). + /// + /// Status of the entry (value depends on type). + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// For type 'lrm','master'. Timestamp of the status information. + /// + /// For type 'lrm','master'. Timestamp of the status information. + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public Int64 Timestamp { get; set; } + + /// + /// Type of status entry. + /// + /// Type of status entry. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterHaStatusCurrent200ResponseDataInner {\n"); + sb.Append(" CrmState: ").Append(CrmState).Append("\n"); + sb.Append(" Failback: ").Append(Failback).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" MaxRelocate: ").Append(MaxRelocate).Append("\n"); + sb.Append(" MaxRestart: ").Append(MaxRestart).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Quorate: ").Append(Quorate).Append("\n"); + sb.Append(" RequestState: ").Append(RequestState).Append("\n"); + sb.Append(" Sid: ").Append(Sid).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterJobsRealmsync200Response.cs b/src/ProxmoxSharp/Model/GetClusterJobsRealmsync200Response.cs new file mode 100644 index 0000000..90f618d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterJobsRealmsync200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterJobsRealmsync200Response + /// + [DataContract(Name = "getClusterJobsRealmsync_200_response")] + public partial class GetClusterJobsRealmsync200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterJobsRealmsync200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterJobsRealmsync200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterJobsRealmsync200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterJobsRealmsync200ResponseDataInner.cs new file mode 100644 index 0000000..600ab83 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterJobsRealmsync200ResponseDataInner.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterJobsRealmsync200ResponseDataInner + /// + [DataContract(Name = "getClusterJobsRealmsync_200_response_data_inner")] + public partial class GetClusterJobsRealmsync200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A comment for the job.. + /// If the job is enabled or not.. + /// The ID of the entry.. + /// Last execution time of the job in seconds since the beginning of the UNIX epoch. + /// Next planned execution time of the job in seconds since the beginning of the UNIX epoch.. + /// Authentication domain ID. + /// A semicolon-separated list of things to remove when they or the user vanishes during a sync. The following values are possible: 'entry' removes the user/group when not returned from the sync. 'properties' removes the set properties on existing user/group that do not appear in the source (even custom ones). 'acl' removes acls when the user/group is not returned from the sync. Instead of a list it also can be 'none' (the default).. + /// The configured sync schedule.. + /// Select what to sync.. + public GetClusterJobsRealmsync200ResponseDataInner(string comment = default(string), Int64 enabled = default(Int64), string id = default(string), Int64 lastRun = default(Int64), Int64 nextRun = default(Int64), string realm = default(string), string removeVanished = default(string), string schedule = default(string), string scope = default(string)) + { + this.Comment = comment; + this.Enabled = enabled; + this.Id = id; + this.LastRun = lastRun; + this.NextRun = nextRun; + this.Realm = realm; + this.RemoveVanished = removeVanished; + this.Schedule = schedule; + this.Scope = scope; + } + + /// + /// A comment for the job. + /// + /// A comment for the job. + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// If the job is enabled or not. + /// + /// If the job is enabled or not. + [DataMember(Name = "enabled", EmitDefaultValue = false)] + public Int64 Enabled { get; set; } + + /// + /// The ID of the entry. + /// + /// The ID of the entry. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Last execution time of the job in seconds since the beginning of the UNIX epoch + /// + /// Last execution time of the job in seconds since the beginning of the UNIX epoch + [DataMember(Name = "last-run", EmitDefaultValue = false)] + public Int64 LastRun { get; set; } + + /// + /// Next planned execution time of the job in seconds since the beginning of the UNIX epoch. + /// + /// Next planned execution time of the job in seconds since the beginning of the UNIX epoch. + [DataMember(Name = "next-run", EmitDefaultValue = false)] + public Int64 NextRun { get; set; } + + /// + /// Authentication domain ID + /// + /// Authentication domain ID + [DataMember(Name = "realm", EmitDefaultValue = false)] + public string Realm { get; set; } + + /// + /// A semicolon-separated list of things to remove when they or the user vanishes during a sync. The following values are possible: 'entry' removes the user/group when not returned from the sync. 'properties' removes the set properties on existing user/group that do not appear in the source (even custom ones). 'acl' removes acls when the user/group is not returned from the sync. Instead of a list it also can be 'none' (the default). + /// + /// A semicolon-separated list of things to remove when they or the user vanishes during a sync. The following values are possible: 'entry' removes the user/group when not returned from the sync. 'properties' removes the set properties on existing user/group that do not appear in the source (even custom ones). 'acl' removes acls when the user/group is not returned from the sync. Instead of a list it also can be 'none' (the default). + [DataMember(Name = "remove-vanished", EmitDefaultValue = false)] + public string RemoveVanished { get; set; } + + /// + /// The configured sync schedule. + /// + /// The configured sync schedule. + [DataMember(Name = "schedule", EmitDefaultValue = false)] + public string Schedule { get; set; } + + /// + /// Select what to sync. + /// + /// Select what to sync. + [DataMember(Name = "scope", EmitDefaultValue = false)] + public string Scope { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterJobsRealmsync200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" LastRun: ").Append(LastRun).Append("\n"); + sb.Append(" NextRun: ").Append(NextRun).Append("\n"); + sb.Append(" Realm: ").Append(Realm).Append("\n"); + sb.Append(" RemoveVanished: ").Append(RemoveVanished).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Scope: ").Append(Scope).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterJobsScheduleanalyze200Response.cs b/src/ProxmoxSharp/Model/GetClusterJobsScheduleanalyze200Response.cs new file mode 100644 index 0000000..0f64bdb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterJobsScheduleanalyze200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterJobsScheduleanalyze200Response + /// + [DataContract(Name = "getClusterJobsScheduleanalyze_200_response")] + public partial class GetClusterJobsScheduleanalyze200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// An array of the next <iterations> events since <starttime>.. + public GetClusterJobsScheduleanalyze200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// An array of the next <iterations> events since <starttime>. + /// + /// An array of the next <iterations> events since <starttime>. + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterJobsScheduleanalyze200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterJobsScheduleanalyze200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterJobsScheduleanalyze200ResponseDataInner.cs new file mode 100644 index 0000000..690bff2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterJobsScheduleanalyze200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterJobsScheduleanalyze200ResponseDataInner + /// + [DataContract(Name = "getClusterJobsScheduleanalyze_200_response_data_inner")] + public partial class GetClusterJobsScheduleanalyze200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// UNIX timestamp for the run.. + /// UTC timestamp for the run.. + public GetClusterJobsScheduleanalyze200ResponseDataInner(Int64 timestamp = default(Int64), string utc = default(string)) + { + this.Timestamp = timestamp; + this.Utc = utc; + } + + /// + /// UNIX timestamp for the run. + /// + /// UNIX timestamp for the run. + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public Int64 Timestamp { get; set; } + + /// + /// UTC timestamp for the run. + /// + /// UTC timestamp for the run. + [DataMember(Name = "utc", EmitDefaultValue = false)] + public string Utc { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterJobsScheduleanalyze200ResponseDataInner {\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); + sb.Append(" Utc: ").Append(Utc).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMapping200Response.cs b/src/ProxmoxSharp/Model/GetClusterMapping200Response.cs new file mode 100644 index 0000000..993fe85 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMapping200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMapping200Response + /// + [DataContract(Name = "getClusterMapping_200_response")] + public partial class GetClusterMapping200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterMapping200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMapping200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMappingDir200Response.cs b/src/ProxmoxSharp/Model/GetClusterMappingDir200Response.cs new file mode 100644 index 0000000..e905a42 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMappingDir200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMappingDir200Response + /// + [DataContract(Name = "getClusterMappingDir_200_response")] + public partial class GetClusterMappingDir200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterMappingDir200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMappingDir200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMappingDir200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterMappingDir200ResponseDataInner.cs new file mode 100644 index 0000000..e27925c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMappingDir200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMappingDir200ResponseDataInner + /// + [DataContract(Name = "getClusterMappingDir_200_response_data_inner")] + public partial class GetClusterMappingDir200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A list of checks, only present if 'check-node' is set.. + /// A description of the logical mapping.. + /// The logical ID of the mapping.. + /// The entries of the mapping.. + public GetClusterMappingDir200ResponseDataInner(List checks = default(List), string description = default(string), string id = default(string), List map = default(List)) + { + this.Checks = checks; + this.Description = description; + this.Id = id; + this.Map = map; + } + + /// + /// A list of checks, only present if 'check-node' is set. + /// + /// A list of checks, only present if 'check-node' is set. + [DataMember(Name = "checks", EmitDefaultValue = false)] + public List Checks { get; set; } + + /// + /// A description of the logical mapping. + /// + /// A description of the logical mapping. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// The logical ID of the mapping. + /// + /// The logical ID of the mapping. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// The entries of the mapping. + /// + /// The entries of the mapping. + [DataMember(Name = "map", EmitDefaultValue = false)] + public List Map { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMappingDir200ResponseDataInner {\n"); + sb.Append(" Checks: ").Append(Checks).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMappingDir200ResponseDataInnerChecksInner.cs b/src/ProxmoxSharp/Model/GetClusterMappingDir200ResponseDataInnerChecksInner.cs new file mode 100644 index 0000000..54c8084 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMappingDir200ResponseDataInnerChecksInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMappingDir200ResponseDataInnerChecksInner + /// + [DataContract(Name = "getClusterMappingDir_200_response_data_inner_checks_inner")] + public partial class GetClusterMappingDir200ResponseDataInnerChecksInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The message of the error. + /// The severity of the error. + public GetClusterMappingDir200ResponseDataInnerChecksInner(string message = default(string), string severity = default(string)) + { + this.Message = message; + this.Severity = severity; + } + + /// + /// The message of the error + /// + /// The message of the error + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// The severity of the error + /// + /// The severity of the error + [DataMember(Name = "severity", EmitDefaultValue = false)] + public string Severity { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMappingDir200ResponseDataInnerChecksInner {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Severity: ").Append(Severity).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMappingPci200Response.cs b/src/ProxmoxSharp/Model/GetClusterMappingPci200Response.cs new file mode 100644 index 0000000..9b369b6 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMappingPci200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMappingPci200Response + /// + [DataContract(Name = "getClusterMappingPci_200_response")] + public partial class GetClusterMappingPci200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterMappingPci200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMappingPci200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMappingPci200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterMappingPci200ResponseDataInner.cs new file mode 100644 index 0000000..806b1e9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMappingPci200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMappingPci200ResponseDataInner + /// + [DataContract(Name = "getClusterMappingPci_200_response_data_inner")] + public partial class GetClusterMappingPci200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A list of checks, only present if 'check_node' is set.. + /// A description of the logical mapping.. + /// The logical ID of the mapping.. + /// The entries of the mapping.. + public GetClusterMappingPci200ResponseDataInner(List checks = default(List), string description = default(string), string id = default(string), List map = default(List)) + { + this.Checks = checks; + this.Description = description; + this.Id = id; + this.Map = map; + } + + /// + /// A list of checks, only present if 'check_node' is set. + /// + /// A list of checks, only present if 'check_node' is set. + [DataMember(Name = "checks", EmitDefaultValue = false)] + public List Checks { get; set; } + + /// + /// A description of the logical mapping. + /// + /// A description of the logical mapping. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// The logical ID of the mapping. + /// + /// The logical ID of the mapping. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// The entries of the mapping. + /// + /// The entries of the mapping. + [DataMember(Name = "map", EmitDefaultValue = false)] + public List Map { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMappingPci200ResponseDataInner {\n"); + sb.Append(" Checks: ").Append(Checks).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMappingUsb200Response.cs b/src/ProxmoxSharp/Model/GetClusterMappingUsb200Response.cs new file mode 100644 index 0000000..cdae342 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMappingUsb200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMappingUsb200Response + /// + [DataContract(Name = "getClusterMappingUsb_200_response")] + public partial class GetClusterMappingUsb200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterMappingUsb200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMappingUsb200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMappingUsb200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterMappingUsb200ResponseDataInner.cs new file mode 100644 index 0000000..3176d2a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMappingUsb200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMappingUsb200ResponseDataInner + /// + [DataContract(Name = "getClusterMappingUsb_200_response_data_inner")] + public partial class GetClusterMappingUsb200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// A description of the logical mapping.. + /// A list of errors when 'check_node' is given.. + /// The logical ID of the mapping.. + /// The entries of the mapping.. + public GetClusterMappingUsb200ResponseDataInner(string description = default(string), string error = default(string), string id = default(string), List map = default(List)) + { + this.Description = description; + this.Error = error; + this.Id = id; + this.Map = map; + } + + /// + /// A description of the logical mapping. + /// + /// A description of the logical mapping. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// A list of errors when 'check_node' is given. + /// + /// A list of errors when 'check_node' is given. + [DataMember(Name = "error", EmitDefaultValue = false)] + public string Error { get; set; } + + /// + /// The logical ID of the mapping. + /// + /// The logical ID of the mapping. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// The entries of the mapping. + /// + /// The entries of the mapping. + [DataMember(Name = "map", EmitDefaultValue = false)] + public List Map { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMappingUsb200ResponseDataInner {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Error: ").Append(Error).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMetricsExport200Response.cs b/src/ProxmoxSharp/Model/GetClusterMetricsExport200Response.cs new file mode 100644 index 0000000..db25d36 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMetricsExport200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMetricsExport200Response + /// + [DataContract(Name = "getClusterMetricsExport_200_response")] + public partial class GetClusterMetricsExport200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterMetricsExport200Response(List errors = default(List), GetClusterMetricsExport200ResponseData data = default(GetClusterMetricsExport200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterMetricsExport200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMetricsExport200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMetricsExport200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterMetricsExport200ResponseData.cs new file mode 100644 index 0000000..1f05546 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMetricsExport200ResponseData.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMetricsExport200ResponseData + /// + [DataContract(Name = "getClusterMetricsExport_200_response_data")] + public partial class GetClusterMetricsExport200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Array of system metrics. Metrics are sorted by their timestamp.. + public GetClusterMetricsExport200ResponseData(List data = default(List)) + { + this.Data = data; + } + + /// + /// Array of system metrics. Metrics are sorted by their timestamp. + /// + /// Array of system metrics. Metrics are sorted by their timestamp. + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMetricsExport200ResponseData {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMetricsExport200ResponseDataDataInner.cs b/src/ProxmoxSharp/Model/GetClusterMetricsExport200ResponseDataDataInner.cs new file mode 100644 index 0000000..1c544ee --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMetricsExport200ResponseDataDataInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMetricsExport200ResponseDataDataInner + /// + [DataContract(Name = "getClusterMetricsExport_200_response_data_data_inner")] + public partial class GetClusterMetricsExport200ResponseDataDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Unique identifier for this metric object, for instance 'node/<nodename>' or 'qemu/<vmid>'.. + /// Name of the metric.. + /// Time at which this metric was observed. + /// Type of the metric.. + /// Metric value.. + public GetClusterMetricsExport200ResponseDataDataInner(string id = default(string), string metric = default(string), Int64 timestamp = default(Int64), string type = default(string), decimal value = default(decimal)) + { + this.Id = id; + this.Metric = metric; + this.Timestamp = timestamp; + this.Type = type; + this.Value = value; + } + + /// + /// Unique identifier for this metric object, for instance 'node/<nodename>' or 'qemu/<vmid>'. + /// + /// Unique identifier for this metric object, for instance 'node/<nodename>' or 'qemu/<vmid>'. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Name of the metric. + /// + /// Name of the metric. + [DataMember(Name = "metric", EmitDefaultValue = false)] + public string Metric { get; set; } + + /// + /// Time at which this metric was observed + /// + /// Time at which this metric was observed + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public Int64 Timestamp { get; set; } + + /// + /// Type of the metric. + /// + /// Type of the metric. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Metric value. + /// + /// Metric value. + [DataMember(Name = "value", EmitDefaultValue = false)] + public decimal Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMetricsExport200ResponseDataDataInner {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Metric: ").Append(Metric).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMetricsServer200Response.cs b/src/ProxmoxSharp/Model/GetClusterMetricsServer200Response.cs new file mode 100644 index 0000000..d8cc099 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMetricsServer200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMetricsServer200Response + /// + [DataContract(Name = "getClusterMetricsServer_200_response")] + public partial class GetClusterMetricsServer200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterMetricsServer200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMetricsServer200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMetricsServer200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterMetricsServer200ResponseDataInner.cs new file mode 100644 index 0000000..f48b9ab --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMetricsServer200ResponseDataInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMetricsServer200ResponseDataInner + /// + [DataContract(Name = "getClusterMetricsServer_200_response_data_inner")] + public partial class GetClusterMetricsServer200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Flag to disable the plugin.. + /// The ID of the entry.. + /// Server network port. + /// Server dns name or IP address. + /// Plugin type.. + public GetClusterMetricsServer200ResponseDataInner(Int64 disable = default(Int64), string id = default(string), Int64 port = default(Int64), string server = default(string), string type = default(string)) + { + this.Disable = disable; + this.Id = id; + this.Port = port; + this.Server = server; + this.Type = type; + } + + /// + /// Flag to disable the plugin. + /// + /// Flag to disable the plugin. + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// The ID of the entry. + /// + /// The ID of the entry. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Server network port + /// + /// Server network port + [DataMember(Name = "port", EmitDefaultValue = false)] + public Int64 Port { get; set; } + + /// + /// Server dns name or IP address + /// + /// Server dns name or IP address + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Plugin type. + /// + /// Plugin type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMetricsServer200ResponseDataInner {\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterMetricsServerSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterMetricsServerSingle200Response.cs new file mode 100644 index 0000000..6c1f822 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterMetricsServerSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterMetricsServerSingle200Response + /// + [DataContract(Name = "getClusterMetricsServerSingle_200_response")] + public partial class GetClusterMetricsServerSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterMetricsServerSingle200Response(List errors = default(List), Object data = default(Object)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public Object Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterMetricsServerSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNextid200Response.cs b/src/ProxmoxSharp/Model/GetClusterNextid200Response.cs new file mode 100644 index 0000000..24f60ae --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNextid200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNextid200Response + /// + [DataContract(Name = "getClusterNextid_200_response")] + public partial class GetClusterNextid200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// The next free VMID.. + public GetClusterNextid200Response(List errors = default(List), Int64 data = default(Int64)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// The next free VMID. + /// + /// The next free VMID. + [DataMember(Name = "data", EmitDefaultValue = false)] + public Int64 Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNextid200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotify200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotify200Response.cs new file mode 100644 index 0000000..3abcaa0 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotify200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsGotify200Response + /// + [DataContract(Name = "getClusterNotificationsEndpointsGotify_200_response")] + public partial class GetClusterNotificationsEndpointsGotify200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsEndpointsGotify200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsGotify200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotify200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotify200ResponseDataInner.cs new file mode 100644 index 0000000..c0f9748 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotify200ResponseDataInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsGotify200ResponseDataInner + /// + [DataContract(Name = "getClusterNotificationsEndpointsGotify_200_response_data_inner")] + public partial class GetClusterNotificationsEndpointsGotify200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Comment. + /// Disable this target. + /// The name of the endpoint.. + /// Show if this entry was created by a user or was built-in. + /// Server URL. + public GetClusterNotificationsEndpointsGotify200ResponseDataInner(string comment = default(string), Int64 disable = default(Int64), string name = default(string), string origin = default(string), string server = default(string)) + { + this.Comment = comment; + this.Disable = disable; + this.Name = name; + this.Origin = origin; + this.Server = server; + } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Disable this target + /// + /// Disable this target + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// The name of the endpoint. + /// + /// The name of the endpoint. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Show if this entry was created by a user or was built-in + /// + /// Show if this entry was created by a user or was built-in + [DataMember(Name = "origin", EmitDefaultValue = false)] + public string Origin { get; set; } + + /// + /// Server URL + /// + /// Server URL + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsGotify200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotifySingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotifySingle200Response.cs new file mode 100644 index 0000000..edeed20 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotifySingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsGotifySingle200Response + /// + [DataContract(Name = "getClusterNotificationsEndpointsGotifySingle_200_response")] + public partial class GetClusterNotificationsEndpointsGotifySingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsEndpointsGotifySingle200Response(List errors = default(List), GetClusterNotificationsEndpointsGotifySingle200ResponseData data = default(GetClusterNotificationsEndpointsGotifySingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterNotificationsEndpointsGotifySingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsGotifySingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotifySingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotifySingle200ResponseData.cs new file mode 100644 index 0000000..b6b2aa9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsGotifySingle200ResponseData.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsGotifySingle200ResponseData + /// + [DataContract(Name = "getClusterNotificationsEndpointsGotifySingle_200_response_data")] + public partial class GetClusterNotificationsEndpointsGotifySingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Disable this target. + /// The name of the endpoint.. + /// Server URL. + public GetClusterNotificationsEndpointsGotifySingle200ResponseData(string comment = default(string), string digest = default(string), Int64 disable = default(Int64), string name = default(string), string server = default(string)) + { + this.Comment = comment; + this.Digest = digest; + this.Disable = disable; + this.Name = name; + this.Server = server; + } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Disable this target + /// + /// Disable this target + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// The name of the endpoint. + /// + /// The name of the endpoint. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Server URL + /// + /// Server URL + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsGotifySingle200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmail200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmail200Response.cs new file mode 100644 index 0000000..3cd2407 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmail200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsSendmail200Response + /// + [DataContract(Name = "getClusterNotificationsEndpointsSendmail_200_response")] + public partial class GetClusterNotificationsEndpointsSendmail200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsEndpointsSendmail200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsSendmail200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmail200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmail200ResponseDataInner.cs new file mode 100644 index 0000000..e55c2cf --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmail200ResponseDataInner.cs @@ -0,0 +1,154 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsSendmail200ResponseDataInner + /// + [DataContract(Name = "getClusterNotificationsEndpointsSendmail_200_response_data_inner")] + public partial class GetClusterNotificationsEndpointsSendmail200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Author of the mail. + /// Comment. + /// Disable this target. + /// `From` address for the mail. + /// List of email recipients. + /// List of users. + /// The name of the endpoint.. + /// Show if this entry was created by a user or was built-in. + public GetClusterNotificationsEndpointsSendmail200ResponseDataInner(string author = default(string), string comment = default(string), Int64 disable = default(Int64), string fromAddress = default(string), List mailto = default(List), List mailtoUser = default(List), string name = default(string), string origin = default(string)) + { + this.Author = author; + this.Comment = comment; + this.Disable = disable; + this.FromAddress = fromAddress; + this.Mailto = mailto; + this.MailtoUser = mailtoUser; + this.Name = name; + this.Origin = origin; + } + + /// + /// Author of the mail + /// + /// Author of the mail + [DataMember(Name = "author", EmitDefaultValue = false)] + public string Author { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Disable this target + /// + /// Disable this target + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// `From` address for the mail + /// + /// `From` address for the mail + [DataMember(Name = "from-address", EmitDefaultValue = false)] + public string FromAddress { get; set; } + + /// + /// List of email recipients + /// + /// List of email recipients + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public List Mailto { get; set; } + + /// + /// List of users + /// + /// List of users + [DataMember(Name = "mailto-user", EmitDefaultValue = false)] + public List MailtoUser { get; set; } + + /// + /// The name of the endpoint. + /// + /// The name of the endpoint. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Show if this entry was created by a user or was built-in + /// + /// Show if this entry was created by a user or was built-in + [DataMember(Name = "origin", EmitDefaultValue = false)] + public string Origin { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsSendmail200ResponseDataInner {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" FromAddress: ").Append(FromAddress).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" MailtoUser: ").Append(MailtoUser).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmailSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmailSingle200Response.cs new file mode 100644 index 0000000..27008b1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmailSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsSendmailSingle200Response + /// + [DataContract(Name = "getClusterNotificationsEndpointsSendmailSingle_200_response")] + public partial class GetClusterNotificationsEndpointsSendmailSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsEndpointsSendmailSingle200Response(List errors = default(List), GetClusterNotificationsEndpointsSendmailSingle200ResponseData data = default(GetClusterNotificationsEndpointsSendmailSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterNotificationsEndpointsSendmailSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsSendmailSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmailSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmailSingle200ResponseData.cs new file mode 100644 index 0000000..c221985 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSendmailSingle200ResponseData.cs @@ -0,0 +1,154 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsSendmailSingle200ResponseData + /// + [DataContract(Name = "getClusterNotificationsEndpointsSendmailSingle_200_response_data")] + public partial class GetClusterNotificationsEndpointsSendmailSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Author of the mail. + /// Comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Disable this target. + /// `From` address for the mail. + /// List of email recipients. + /// List of users. + /// The name of the endpoint.. + public GetClusterNotificationsEndpointsSendmailSingle200ResponseData(string author = default(string), string comment = default(string), string digest = default(string), Int64 disable = default(Int64), string fromAddress = default(string), List mailto = default(List), List mailtoUser = default(List), string name = default(string)) + { + this.Author = author; + this.Comment = comment; + this.Digest = digest; + this.Disable = disable; + this.FromAddress = fromAddress; + this.Mailto = mailto; + this.MailtoUser = mailtoUser; + this.Name = name; + } + + /// + /// Author of the mail + /// + /// Author of the mail + [DataMember(Name = "author", EmitDefaultValue = false)] + public string Author { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Disable this target + /// + /// Disable this target + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// `From` address for the mail + /// + /// `From` address for the mail + [DataMember(Name = "from-address", EmitDefaultValue = false)] + public string FromAddress { get; set; } + + /// + /// List of email recipients + /// + /// List of email recipients + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public List Mailto { get; set; } + + /// + /// List of users + /// + /// List of users + [DataMember(Name = "mailto-user", EmitDefaultValue = false)] + public List MailtoUser { get; set; } + + /// + /// The name of the endpoint. + /// + /// The name of the endpoint. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsSendmailSingle200ResponseData {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" FromAddress: ").Append(FromAddress).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" MailtoUser: ").Append(MailtoUser).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtp200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtp200Response.cs new file mode 100644 index 0000000..32d3603 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtp200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsSmtp200Response + /// + [DataContract(Name = "getClusterNotificationsEndpointsSmtp_200_response")] + public partial class GetClusterNotificationsEndpointsSmtp200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsEndpointsSmtp200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsSmtp200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtp200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtp200ResponseDataInner.cs new file mode 100644 index 0000000..d015764 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtp200ResponseDataInner.cs @@ -0,0 +1,194 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsSmtp200ResponseDataInner + /// + [DataContract(Name = "getClusterNotificationsEndpointsSmtp_200_response_data_inner")] + public partial class GetClusterNotificationsEndpointsSmtp200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Author of the mail. Defaults to 'Proxmox VE'.. + /// Comment. + /// Disable this target. + /// `From` address for the mail. + /// List of email recipients. + /// List of users. + /// Determine which encryption method shall be used for the connection.. + /// The name of the endpoint.. + /// Show if this entry was created by a user or was built-in. + /// The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections.. + /// The address of the SMTP server.. + /// Username for SMTP authentication. + public GetClusterNotificationsEndpointsSmtp200ResponseDataInner(string author = default(string), string comment = default(string), Int64 disable = default(Int64), string fromAddress = default(string), List mailto = default(List), List mailtoUser = default(List), string mode = default(string), string name = default(string), string origin = default(string), Int64 port = default(Int64), string server = default(string), string username = default(string)) + { + this.Author = author; + this.Comment = comment; + this.Disable = disable; + this.FromAddress = fromAddress; + this.Mailto = mailto; + this.MailtoUser = mailtoUser; + this.Mode = mode; + this.Name = name; + this.Origin = origin; + this.Port = port; + this.Server = server; + this.Username = username; + } + + /// + /// Author of the mail. Defaults to 'Proxmox VE'. + /// + /// Author of the mail. Defaults to 'Proxmox VE'. + [DataMember(Name = "author", EmitDefaultValue = false)] + public string Author { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Disable this target + /// + /// Disable this target + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// `From` address for the mail + /// + /// `From` address for the mail + [DataMember(Name = "from-address", EmitDefaultValue = false)] + public string FromAddress { get; set; } + + /// + /// List of email recipients + /// + /// List of email recipients + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public List Mailto { get; set; } + + /// + /// List of users + /// + /// List of users + [DataMember(Name = "mailto-user", EmitDefaultValue = false)] + public List MailtoUser { get; set; } + + /// + /// Determine which encryption method shall be used for the connection. + /// + /// Determine which encryption method shall be used for the connection. + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// The name of the endpoint. + /// + /// The name of the endpoint. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Show if this entry was created by a user or was built-in + /// + /// Show if this entry was created by a user or was built-in + [DataMember(Name = "origin", EmitDefaultValue = false)] + public string Origin { get; set; } + + /// + /// The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections. + /// + /// The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections. + [DataMember(Name = "port", EmitDefaultValue = false)] + public Int64 Port { get; set; } + + /// + /// The address of the SMTP server. + /// + /// The address of the SMTP server. + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Username for SMTP authentication + /// + /// Username for SMTP authentication + [DataMember(Name = "username", EmitDefaultValue = false)] + public string Username { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsSmtp200ResponseDataInner {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" FromAddress: ").Append(FromAddress).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" MailtoUser: ").Append(MailtoUser).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtpSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtpSingle200Response.cs new file mode 100644 index 0000000..75bb74b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtpSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsSmtpSingle200Response + /// + [DataContract(Name = "getClusterNotificationsEndpointsSmtpSingle_200_response")] + public partial class GetClusterNotificationsEndpointsSmtpSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsEndpointsSmtpSingle200Response(List errors = default(List), GetClusterNotificationsEndpointsSmtpSingle200ResponseData data = default(GetClusterNotificationsEndpointsSmtpSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterNotificationsEndpointsSmtpSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsSmtpSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtpSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtpSingle200ResponseData.cs new file mode 100644 index 0000000..632abe1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsSmtpSingle200ResponseData.cs @@ -0,0 +1,194 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsSmtpSingle200ResponseData + /// + [DataContract(Name = "getClusterNotificationsEndpointsSmtpSingle_200_response_data")] + public partial class GetClusterNotificationsEndpointsSmtpSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Author of the mail. Defaults to 'Proxmox VE'.. + /// Comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Disable this target. + /// `From` address for the mail. + /// List of email recipients. + /// List of users. + /// Determine which encryption method shall be used for the connection.. + /// The name of the endpoint.. + /// The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections.. + /// The address of the SMTP server.. + /// Username for SMTP authentication. + public GetClusterNotificationsEndpointsSmtpSingle200ResponseData(string author = default(string), string comment = default(string), string digest = default(string), Int64 disable = default(Int64), string fromAddress = default(string), List mailto = default(List), List mailtoUser = default(List), string mode = default(string), string name = default(string), Int64 port = default(Int64), string server = default(string), string username = default(string)) + { + this.Author = author; + this.Comment = comment; + this.Digest = digest; + this.Disable = disable; + this.FromAddress = fromAddress; + this.Mailto = mailto; + this.MailtoUser = mailtoUser; + this.Mode = mode; + this.Name = name; + this.Port = port; + this.Server = server; + this.Username = username; + } + + /// + /// Author of the mail. Defaults to 'Proxmox VE'. + /// + /// Author of the mail. Defaults to 'Proxmox VE'. + [DataMember(Name = "author", EmitDefaultValue = false)] + public string Author { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Disable this target + /// + /// Disable this target + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// `From` address for the mail + /// + /// `From` address for the mail + [DataMember(Name = "from-address", EmitDefaultValue = false)] + public string FromAddress { get; set; } + + /// + /// List of email recipients + /// + /// List of email recipients + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public List Mailto { get; set; } + + /// + /// List of users + /// + /// List of users + [DataMember(Name = "mailto-user", EmitDefaultValue = false)] + public List MailtoUser { get; set; } + + /// + /// Determine which encryption method shall be used for the connection. + /// + /// Determine which encryption method shall be used for the connection. + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// The name of the endpoint. + /// + /// The name of the endpoint. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections. + /// + /// The port to be used. Defaults to 465 for TLS based connections, 587 for STARTTLS based connections and port 25 for insecure plain-text connections. + [DataMember(Name = "port", EmitDefaultValue = false)] + public Int64 Port { get; set; } + + /// + /// The address of the SMTP server. + /// + /// The address of the SMTP server. + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Username for SMTP authentication + /// + /// Username for SMTP authentication + [DataMember(Name = "username", EmitDefaultValue = false)] + public string Username { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsSmtpSingle200ResponseData {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" FromAddress: ").Append(FromAddress).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" MailtoUser: ").Append(MailtoUser).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhook200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhook200Response.cs new file mode 100644 index 0000000..9e5538d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhook200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsWebhook200Response + /// + [DataContract(Name = "getClusterNotificationsEndpointsWebhook_200_response")] + public partial class GetClusterNotificationsEndpointsWebhook200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsEndpointsWebhook200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsWebhook200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhook200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhook200ResponseDataInner.cs new file mode 100644 index 0000000..afbe533 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhook200ResponseDataInner.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsWebhook200ResponseDataInner + /// + [DataContract(Name = "getClusterNotificationsEndpointsWebhook_200_response_data_inner")] + public partial class GetClusterNotificationsEndpointsWebhook200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// HTTP body, base64 encoded. + /// Comment. + /// Disable this target. + /// HTTP headers to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value>. + /// HTTP method. + /// The name of the endpoint.. + /// Show if this entry was created by a user or was built-in. + /// Secrets to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value>. + /// Server URL. + public GetClusterNotificationsEndpointsWebhook200ResponseDataInner(string body = default(string), string comment = default(string), Int64 disable = default(Int64), List header = default(List), string method = default(string), string name = default(string), string origin = default(string), List secret = default(List), string url = default(string)) + { + this.Body = body; + this.Comment = comment; + this.Disable = disable; + this.Header = header; + this.Method = method; + this.Name = name; + this.Origin = origin; + this.Secret = secret; + this.Url = url; + } + + /// + /// HTTP body, base64 encoded + /// + /// HTTP body, base64 encoded + [DataMember(Name = "body", EmitDefaultValue = false)] + public string Body { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Disable this target + /// + /// Disable this target + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// HTTP headers to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value> + /// + /// HTTP headers to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value> + [DataMember(Name = "header", EmitDefaultValue = false)] + public List Header { get; set; } + + /// + /// HTTP method + /// + /// HTTP method + [DataMember(Name = "method", EmitDefaultValue = false)] + public string Method { get; set; } + + /// + /// The name of the endpoint. + /// + /// The name of the endpoint. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Show if this entry was created by a user or was built-in + /// + /// Show if this entry was created by a user or was built-in + [DataMember(Name = "origin", EmitDefaultValue = false)] + public string Origin { get; set; } + + /// + /// Secrets to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value> + /// + /// Secrets to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value> + [DataMember(Name = "secret", EmitDefaultValue = false)] + public List Secret { get; set; } + + /// + /// Server URL + /// + /// Server URL + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsWebhook200ResponseDataInner {\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Header: ").Append(Header).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append(" Secret: ").Append(Secret).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhookSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhookSingle200Response.cs new file mode 100644 index 0000000..710ce86 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhookSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsWebhookSingle200Response + /// + [DataContract(Name = "getClusterNotificationsEndpointsWebhookSingle_200_response")] + public partial class GetClusterNotificationsEndpointsWebhookSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsEndpointsWebhookSingle200Response(List errors = default(List), GetClusterNotificationsEndpointsWebhookSingle200ResponseData data = default(GetClusterNotificationsEndpointsWebhookSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterNotificationsEndpointsWebhookSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsWebhookSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhookSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhookSingle200ResponseData.cs new file mode 100644 index 0000000..e968366 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsEndpointsWebhookSingle200ResponseData.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsEndpointsWebhookSingle200ResponseData + /// + [DataContract(Name = "getClusterNotificationsEndpointsWebhookSingle_200_response_data")] + public partial class GetClusterNotificationsEndpointsWebhookSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// HTTP body, base64 encoded. + /// Comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Disable this target. + /// HTTP headers to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value>. + /// HTTP method. + /// The name of the endpoint.. + /// Secrets to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value>. + /// Server URL. + public GetClusterNotificationsEndpointsWebhookSingle200ResponseData(string body = default(string), string comment = default(string), string digest = default(string), Int64 disable = default(Int64), List header = default(List), string method = default(string), string name = default(string), List secret = default(List), string url = default(string)) + { + this.Body = body; + this.Comment = comment; + this.Digest = digest; + this.Disable = disable; + this.Header = header; + this.Method = method; + this.Name = name; + this.Secret = secret; + this.Url = url; + } + + /// + /// HTTP body, base64 encoded + /// + /// HTTP body, base64 encoded + [DataMember(Name = "body", EmitDefaultValue = false)] + public string Body { get; set; } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Disable this target + /// + /// Disable this target + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// HTTP headers to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value> + /// + /// HTTP headers to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value> + [DataMember(Name = "header", EmitDefaultValue = false)] + public List Header { get; set; } + + /// + /// HTTP method + /// + /// HTTP method + [DataMember(Name = "method", EmitDefaultValue = false)] + public string Method { get; set; } + + /// + /// The name of the endpoint. + /// + /// The name of the endpoint. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Secrets to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value> + /// + /// Secrets to set. These have to be formatted as a property string in the format name=<name>,value=<base64 of value> + [DataMember(Name = "secret", EmitDefaultValue = false)] + public List Secret { get; set; } + + /// + /// Server URL + /// + /// Server URL + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsEndpointsWebhookSingle200ResponseData {\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Header: ").Append(Header).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Secret: ").Append(Secret).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfields200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfields200Response.cs new file mode 100644 index 0000000..b7625f1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfields200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsMatcherfields200Response + /// + [DataContract(Name = "getClusterNotificationsMatcherfields_200_response")] + public partial class GetClusterNotificationsMatcherfields200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsMatcherfields200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsMatcherfields200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfields200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfields200ResponseDataInner.cs new file mode 100644 index 0000000..b622386 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfields200ResponseDataInner.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsMatcherfields200ResponseDataInner + /// + [DataContract(Name = "getClusterNotificationsMatcherfields_200_response_data_inner")] + public partial class GetClusterNotificationsMatcherfields200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Name of the field.. + public GetClusterNotificationsMatcherfields200ResponseDataInner(string name = default(string)) + { + this.Name = name; + } + + /// + /// Name of the field. + /// + /// Name of the field. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsMatcherfields200ResponseDataInner {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfieldvalues200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfieldvalues200Response.cs new file mode 100644 index 0000000..a3dadfc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfieldvalues200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsMatcherfieldvalues200Response + /// + [DataContract(Name = "getClusterNotificationsMatcherfieldvalues_200_response")] + public partial class GetClusterNotificationsMatcherfieldvalues200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsMatcherfieldvalues200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsMatcherfieldvalues200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfieldvalues200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfieldvalues200ResponseDataInner.cs new file mode 100644 index 0000000..22cb476 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsMatcherfieldvalues200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsMatcherfieldvalues200ResponseDataInner + /// + [DataContract(Name = "getClusterNotificationsMatcherfieldvalues_200_response_data_inner")] + public partial class GetClusterNotificationsMatcherfieldvalues200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Additional comment for this value.. + /// Field this value belongs to.. + /// Notification metadata value known by the system.. + public GetClusterNotificationsMatcherfieldvalues200ResponseDataInner(string comment = default(string), string field = default(string), string value = default(string)) + { + this.Comment = comment; + this.Field = field; + this.Value = value; + } + + /// + /// Additional comment for this value. + /// + /// Additional comment for this value. + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Field this value belongs to. + /// + /// Field this value belongs to. + [DataMember(Name = "field", EmitDefaultValue = false)] + public string Field { get; set; } + + /// + /// Notification metadata value known by the system. + /// + /// Notification metadata value known by the system. + [DataMember(Name = "value", EmitDefaultValue = false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsMatcherfieldvalues200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Field: ").Append(Field).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsMatchers200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsMatchers200Response.cs new file mode 100644 index 0000000..dfb4f3d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsMatchers200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsMatchers200Response + /// + [DataContract(Name = "getClusterNotificationsMatchers_200_response")] + public partial class GetClusterNotificationsMatchers200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsMatchers200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsMatchers200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsMatchers200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsMatchers200ResponseDataInner.cs new file mode 100644 index 0000000..32ccb4f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsMatchers200ResponseDataInner.cs @@ -0,0 +1,174 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsMatchers200ResponseDataInner + /// + [DataContract(Name = "getClusterNotificationsMatchers_200_response_data_inner")] + public partial class GetClusterNotificationsMatchers200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Comment. + /// Disable this matcher. + /// Invert match of the whole matcher. + /// Match notification timestamp. + /// Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value>. + /// Notification severities to match. + /// Choose between 'all' and 'any' for when multiple properties are specified. + /// Name of the matcher.. + /// Show if this entry was created by a user or was built-in. + /// Targets to notify on match. + public GetClusterNotificationsMatchers200ResponseDataInner(string comment = default(string), Int64 disable = default(Int64), Int64 invertMatch = default(Int64), List matchCalendar = default(List), List matchField = default(List), List matchSeverity = default(List), string mode = default(string), string name = default(string), string origin = default(string), List target = default(List)) + { + this.Comment = comment; + this.Disable = disable; + this.InvertMatch = invertMatch; + this.MatchCalendar = matchCalendar; + this.MatchField = matchField; + this.MatchSeverity = matchSeverity; + this.Mode = mode; + this.Name = name; + this.Origin = origin; + this.Target = target; + } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Disable this matcher + /// + /// Disable this matcher + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// Invert match of the whole matcher + /// + /// Invert match of the whole matcher + [DataMember(Name = "invert-match", EmitDefaultValue = false)] + public Int64 InvertMatch { get; set; } + + /// + /// Match notification timestamp + /// + /// Match notification timestamp + [DataMember(Name = "match-calendar", EmitDefaultValue = false)] + public List MatchCalendar { get; set; } + + /// + /// Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value> + /// + /// Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value> + [DataMember(Name = "match-field", EmitDefaultValue = false)] + public List MatchField { get; set; } + + /// + /// Notification severities to match + /// + /// Notification severities to match + [DataMember(Name = "match-severity", EmitDefaultValue = false)] + public List MatchSeverity { get; set; } + + /// + /// Choose between 'all' and 'any' for when multiple properties are specified + /// + /// Choose between 'all' and 'any' for when multiple properties are specified + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Name of the matcher. + /// + /// Name of the matcher. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Show if this entry was created by a user or was built-in + /// + /// Show if this entry was created by a user or was built-in + [DataMember(Name = "origin", EmitDefaultValue = false)] + public string Origin { get; set; } + + /// + /// Targets to notify on match + /// + /// Targets to notify on match + [DataMember(Name = "target", EmitDefaultValue = false)] + public List Target { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsMatchers200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" InvertMatch: ").Append(InvertMatch).Append("\n"); + sb.Append(" MatchCalendar: ").Append(MatchCalendar).Append("\n"); + sb.Append(" MatchField: ").Append(MatchField).Append("\n"); + sb.Append(" MatchSeverity: ").Append(MatchSeverity).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsMatchersSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsMatchersSingle200Response.cs new file mode 100644 index 0000000..692a71d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsMatchersSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsMatchersSingle200Response + /// + [DataContract(Name = "getClusterNotificationsMatchersSingle_200_response")] + public partial class GetClusterNotificationsMatchersSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsMatchersSingle200Response(List errors = default(List), GetClusterNotificationsMatchersSingle200ResponseData data = default(GetClusterNotificationsMatchersSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterNotificationsMatchersSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsMatchersSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsMatchersSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsMatchersSingle200ResponseData.cs new file mode 100644 index 0000000..b161138 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsMatchersSingle200ResponseData.cs @@ -0,0 +1,174 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsMatchersSingle200ResponseData + /// + [DataContract(Name = "getClusterNotificationsMatchersSingle_200_response_data")] + public partial class GetClusterNotificationsMatchersSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Comment. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Disable this matcher. + /// Invert match of the whole matcher. + /// Match notification timestamp. + /// Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value>. + /// Notification severities to match. + /// Choose between 'all' and 'any' for when multiple properties are specified. + /// Name of the matcher.. + /// Targets to notify on match. + public GetClusterNotificationsMatchersSingle200ResponseData(string comment = default(string), string digest = default(string), Int64 disable = default(Int64), Int64 invertMatch = default(Int64), List matchCalendar = default(List), List matchField = default(List), List matchSeverity = default(List), string mode = default(string), string name = default(string), List target = default(List)) + { + this.Comment = comment; + this.Digest = digest; + this.Disable = disable; + this.InvertMatch = invertMatch; + this.MatchCalendar = matchCalendar; + this.MatchField = matchField; + this.MatchSeverity = matchSeverity; + this.Mode = mode; + this.Name = name; + this.Target = target; + } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Disable this matcher + /// + /// Disable this matcher + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// Invert match of the whole matcher + /// + /// Invert match of the whole matcher + [DataMember(Name = "invert-match", EmitDefaultValue = false)] + public Int64 InvertMatch { get; set; } + + /// + /// Match notification timestamp + /// + /// Match notification timestamp + [DataMember(Name = "match-calendar", EmitDefaultValue = false)] + public List MatchCalendar { get; set; } + + /// + /// Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value> + /// + /// Metadata fields to match (regex or exact match). Must be in the form (regex|exact):<field>=<value> + [DataMember(Name = "match-field", EmitDefaultValue = false)] + public List MatchField { get; set; } + + /// + /// Notification severities to match + /// + /// Notification severities to match + [DataMember(Name = "match-severity", EmitDefaultValue = false)] + public List MatchSeverity { get; set; } + + /// + /// Choose between 'all' and 'any' for when multiple properties are specified + /// + /// Choose between 'all' and 'any' for when multiple properties are specified + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Name of the matcher. + /// + /// Name of the matcher. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Targets to notify on match + /// + /// Targets to notify on match + [DataMember(Name = "target", EmitDefaultValue = false)] + public List Target { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsMatchersSingle200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" InvertMatch: ").Append(InvertMatch).Append("\n"); + sb.Append(" MatchCalendar: ").Append(MatchCalendar).Append("\n"); + sb.Append(" MatchField: ").Append(MatchField).Append("\n"); + sb.Append(" MatchSeverity: ").Append(MatchSeverity).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsTargets200Response.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsTargets200Response.cs new file mode 100644 index 0000000..4fbe0ca --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsTargets200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsTargets200Response + /// + [DataContract(Name = "getClusterNotificationsTargets_200_response")] + public partial class GetClusterNotificationsTargets200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterNotificationsTargets200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsTargets200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterNotificationsTargets200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterNotificationsTargets200ResponseDataInner.cs new file mode 100644 index 0000000..0500e89 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterNotificationsTargets200ResponseDataInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterNotificationsTargets200ResponseDataInner + /// + [DataContract(Name = "getClusterNotificationsTargets_200_response_data_inner")] + public partial class GetClusterNotificationsTargets200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Comment. + /// Show if this target is disabled. + /// Name of the target.. + /// Show if this entry was created by a user or was built-in. + /// Type of the target.. + public GetClusterNotificationsTargets200ResponseDataInner(string comment = default(string), Int64 disable = default(Int64), string name = default(string), string origin = default(string), string type = default(string)) + { + this.Comment = comment; + this.Disable = disable; + this.Name = name; + this.Origin = origin; + this.Type = type; + } + + /// + /// Comment + /// + /// Comment + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Show if this target is disabled + /// + /// Show if this target is disabled + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// Name of the target. + /// + /// Name of the target. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Show if this entry was created by a user or was built-in + /// + /// Show if this entry was created by a user or was built-in + [DataMember(Name = "origin", EmitDefaultValue = false)] + public string Origin { get; set; } + + /// + /// Type of the target. + /// + /// Type of the target. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterNotificationsTargets200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterReplication200Response.cs b/src/ProxmoxSharp/Model/GetClusterReplication200Response.cs new file mode 100644 index 0000000..0c36bee --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterReplication200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterReplication200Response + /// + [DataContract(Name = "getClusterReplication_200_response")] + public partial class GetClusterReplication200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterReplication200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterReplication200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterReplication200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterReplication200ResponseDataInner.cs new file mode 100644 index 0000000..efef912 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterReplication200ResponseDataInner.cs @@ -0,0 +1,184 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterReplication200ResponseDataInner + /// + [DataContract(Name = "getClusterReplication_200_response_data_inner")] + public partial class GetClusterReplication200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Description.. + /// Flag to disable/deactivate the entry.. + /// Guest ID.. + /// Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.. + /// Unique, sequential ID assigned to each job.. + /// Rate limit in mbps (megabytes per second) as floating point number.. + /// Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.. + /// Storage replication schedule. The format is a subset of `systemd` calendar events.. + /// For internal use, to detect if the guest was stolen.. + /// Target node.. + /// Section type.. + public GetClusterReplication200ResponseDataInner(string comment = default(string), Int64 disable = default(Int64), Int64 guest = default(Int64), string id = default(string), Int64 jobnum = default(Int64), decimal rate = default(decimal), string removeJob = default(string), string schedule = default(string), string source = default(string), string target = default(string), string type = default(string)) + { + this.Comment = comment; + this.Disable = disable; + this.Guest = guest; + this.Id = id; + this.Jobnum = jobnum; + this.Rate = rate; + this.RemoveJob = removeJob; + this.Schedule = schedule; + this.Source = source; + this.Target = target; + this.Type = type; + } + + /// + /// Description. + /// + /// Description. + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Flag to disable/deactivate the entry. + /// + /// Flag to disable/deactivate the entry. + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// Guest ID. + /// + /// Guest ID. + [DataMember(Name = "guest", EmitDefaultValue = false)] + public Int64 Guest { get; set; } + + /// + /// Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'. + /// + /// Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Unique, sequential ID assigned to each job. + /// + /// Unique, sequential ID assigned to each job. + [DataMember(Name = "jobnum", EmitDefaultValue = false)] + public Int64 Jobnum { get; set; } + + /// + /// Rate limit in mbps (megabytes per second) as floating point number. + /// + /// Rate limit in mbps (megabytes per second) as floating point number. + [DataMember(Name = "rate", EmitDefaultValue = false)] + public decimal Rate { get; set; } + + /// + /// Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file. + /// + /// Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file. + [DataMember(Name = "remove_job", EmitDefaultValue = false)] + public string RemoveJob { get; set; } + + /// + /// Storage replication schedule. The format is a subset of `systemd` calendar events. + /// + /// Storage replication schedule. The format is a subset of `systemd` calendar events. + [DataMember(Name = "schedule", EmitDefaultValue = false)] + public string Schedule { get; set; } + + /// + /// For internal use, to detect if the guest was stolen. + /// + /// For internal use, to detect if the guest was stolen. + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Target node. + /// + /// Target node. + [DataMember(Name = "target", EmitDefaultValue = false)] + public string Target { get; set; } + + /// + /// Section type. + /// + /// Section type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterReplication200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Guest: ").Append(Guest).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Jobnum: ").Append(Jobnum).Append("\n"); + sb.Append(" Rate: ").Append(Rate).Append("\n"); + sb.Append(" RemoveJob: ").Append(RemoveJob).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterReplicationSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterReplicationSingle200Response.cs new file mode 100644 index 0000000..44dfb20 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterReplicationSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterReplicationSingle200Response + /// + [DataContract(Name = "getClusterReplicationSingle_200_response")] + public partial class GetClusterReplicationSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterReplicationSingle200Response(List errors = default(List), GetClusterReplicationSingle200ResponseData data = default(GetClusterReplicationSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterReplicationSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterReplicationSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterReplicationSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterReplicationSingle200ResponseData.cs new file mode 100644 index 0000000..d8864cc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterReplicationSingle200ResponseData.cs @@ -0,0 +1,194 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterReplicationSingle200ResponseData + /// + [DataContract(Name = "getClusterReplicationSingle_200_response_data")] + public partial class GetClusterReplicationSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Description.. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Flag to disable/deactivate the entry.. + /// Guest ID.. + /// Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.. + /// Unique, sequential ID assigned to each job.. + /// Rate limit in mbps (megabytes per second) as floating point number.. + /// Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.. + /// Storage replication schedule. The format is a subset of `systemd` calendar events.. + /// For internal use, to detect if the guest was stolen.. + /// Target node.. + /// Section type.. + public GetClusterReplicationSingle200ResponseData(string comment = default(string), string digest = default(string), Int64 disable = default(Int64), Int64 guest = default(Int64), string id = default(string), Int64 jobnum = default(Int64), decimal rate = default(decimal), string removeJob = default(string), string schedule = default(string), string source = default(string), string target = default(string), string type = default(string)) + { + this.Comment = comment; + this.Digest = digest; + this.Disable = disable; + this.Guest = guest; + this.Id = id; + this.Jobnum = jobnum; + this.Rate = rate; + this.RemoveJob = removeJob; + this.Schedule = schedule; + this.Source = source; + this.Target = target; + this.Type = type; + } + + /// + /// Description. + /// + /// Description. + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Flag to disable/deactivate the entry. + /// + /// Flag to disable/deactivate the entry. + [DataMember(Name = "disable", EmitDefaultValue = false)] + public Int64 Disable { get; set; } + + /// + /// Guest ID. + /// + /// Guest ID. + [DataMember(Name = "guest", EmitDefaultValue = false)] + public Int64 Guest { get; set; } + + /// + /// Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'. + /// + /// Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Unique, sequential ID assigned to each job. + /// + /// Unique, sequential ID assigned to each job. + [DataMember(Name = "jobnum", EmitDefaultValue = false)] + public Int64 Jobnum { get; set; } + + /// + /// Rate limit in mbps (megabytes per second) as floating point number. + /// + /// Rate limit in mbps (megabytes per second) as floating point number. + [DataMember(Name = "rate", EmitDefaultValue = false)] + public decimal Rate { get; set; } + + /// + /// Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file. + /// + /// Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file. + [DataMember(Name = "remove_job", EmitDefaultValue = false)] + public string RemoveJob { get; set; } + + /// + /// Storage replication schedule. The format is a subset of `systemd` calendar events. + /// + /// Storage replication schedule. The format is a subset of `systemd` calendar events. + [DataMember(Name = "schedule", EmitDefaultValue = false)] + public string Schedule { get; set; } + + /// + /// For internal use, to detect if the guest was stolen. + /// + /// For internal use, to detect if the guest was stolen. + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Target node. + /// + /// Target node. + [DataMember(Name = "target", EmitDefaultValue = false)] + public string Target { get; set; } + + /// + /// Section type. + /// + /// Section type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterReplicationSingle200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Guest: ").Append(Guest).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Jobnum: ").Append(Jobnum).Append("\n"); + sb.Append(" Rate: ").Append(Rate).Append("\n"); + sb.Append(" RemoveJob: ").Append(RemoveJob).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterResources200Response.cs b/src/ProxmoxSharp/Model/GetClusterResources200Response.cs new file mode 100644 index 0000000..cce2d4d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterResources200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterResources200Response + /// + [DataContract(Name = "getClusterResources_200_response")] + public partial class GetClusterResources200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterResources200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterResources200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterResources200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterResources200ResponseDataInner.cs new file mode 100644 index 0000000..fd0434c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterResources200ResponseDataInner.cs @@ -0,0 +1,404 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterResources200ResponseDataInner + /// + [DataContract(Name = "getClusterResources_200_response_data_inner")] + public partial class GetClusterResources200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The cgroup mode the node operates under (for type 'node').. + /// Allowed storage content types (for type 'storage').. + /// CPU utilization (for types 'node', 'qemu' and 'lxc').. + /// Used disk space in bytes (for type 'storage'), used root image space for VMs (for types 'qemu' and 'lxc').. + /// The number of bytes the guest read from its block devices since the guest was started. This info is not available for all storage types. (for types 'qemu' and 'lxc'). + /// The number of bytes the guest wrote to its block devices since the guest was started. This info is not available for all storage types. (for types 'qemu' and 'lxc'). + /// HA service status (for HA managed VMs).. + /// Resource id.. + /// Support level (for type 'node').. + /// The guest's current config lock (for types 'qemu' and 'lxc'). + /// Number of available CPUs (for types 'node', 'qemu' and 'lxc').. + /// Storage size in bytes (for type 'storage'), root image size for VMs (for types 'qemu' and 'lxc').. + /// Number of available memory in bytes (for types 'node', 'qemu' and 'lxc').. + /// Used memory in bytes (for types 'node', 'qemu' and 'lxc').. + /// Used memory in bytes from the point of view of the host (for types 'qemu').. + /// Name of the resource.. + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. (for types 'qemu' and 'lxc'). + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. (for types 'qemu' and 'lxc'). + /// The name of a Network entity (for type 'network').. + /// The type of network resource (for type 'network').. + /// The cluster node name (for types 'node', 'storage', 'qemu', and 'lxc').. + /// More specific type, if available.. + /// The pool name (for types 'pool', 'qemu' and 'lxc').. + /// The protocol of a fabric (for type 'network', network-type 'fabric').. + /// The name of an SDN entity (for type 'sdn'). + /// Resource type dependent status.. + /// The storage identifier (for type 'storage').. + /// The guest's tags (for types 'qemu' and 'lxc'). + /// Determines if the guest is a template. (for types 'qemu' and 'lxc'). + /// Resource type.. + /// Uptime of node or virtual guest in seconds (for types 'node', 'qemu' and 'lxc').. + /// The numerical vmid (for types 'qemu' and 'lxc').. + /// The type of an SDN zone (for type 'sdn').. + public GetClusterResources200ResponseDataInner(Int64 cgroupMode = default(Int64), string content = default(string), decimal cpu = default(decimal), Int64 disk = default(Int64), Int64 diskread = default(Int64), Int64 diskwrite = default(Int64), string hastate = default(string), string id = default(string), string level = default(string), string varLock = default(string), decimal maxcpu = default(decimal), Int64 maxdisk = default(Int64), Int64 maxmem = default(Int64), Int64 mem = default(Int64), Int64 memhost = default(Int64), string name = default(string), Int64 netin = default(Int64), Int64 netout = default(Int64), string network = default(string), string networkType = default(string), string node = default(string), string plugintype = default(string), string pool = default(string), string protocol = default(string), string sdn = default(string), string status = default(string), string storage = default(string), string tags = default(string), Int64 template = default(Int64), string type = default(string), Int64 uptime = default(Int64), Int64 vmid = default(Int64), string zoneType = default(string)) + { + this.CgroupMode = cgroupMode; + this.Content = content; + this.Cpu = cpu; + this.Disk = disk; + this.Diskread = diskread; + this.Diskwrite = diskwrite; + this.Hastate = hastate; + this.Id = id; + this.Level = level; + this.Lock = varLock; + this.Maxcpu = maxcpu; + this.Maxdisk = maxdisk; + this.Maxmem = maxmem; + this.Mem = mem; + this.Memhost = memhost; + this.Name = name; + this.Netin = netin; + this.Netout = netout; + this.Network = network; + this.NetworkType = networkType; + this.Node = node; + this.Plugintype = plugintype; + this.Pool = pool; + this.Protocol = protocol; + this.Sdn = sdn; + this.Status = status; + this.Storage = storage; + this.Tags = tags; + this.Template = template; + this.Type = type; + this.Uptime = uptime; + this.Vmid = vmid; + this.ZoneType = zoneType; + } + + /// + /// The cgroup mode the node operates under (for type 'node'). + /// + /// The cgroup mode the node operates under (for type 'node'). + [DataMember(Name = "cgroup-mode", EmitDefaultValue = false)] + public Int64 CgroupMode { get; set; } + + /// + /// Allowed storage content types (for type 'storage'). + /// + /// Allowed storage content types (for type 'storage'). + [DataMember(Name = "content", EmitDefaultValue = false)] + public string Content { get; set; } + + /// + /// CPU utilization (for types 'node', 'qemu' and 'lxc'). + /// + /// CPU utilization (for types 'node', 'qemu' and 'lxc'). + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public decimal Cpu { get; set; } + + /// + /// Used disk space in bytes (for type 'storage'), used root image space for VMs (for types 'qemu' and 'lxc'). + /// + /// Used disk space in bytes (for type 'storage'), used root image space for VMs (for types 'qemu' and 'lxc'). + [DataMember(Name = "disk", EmitDefaultValue = false)] + public Int64 Disk { get; set; } + + /// + /// The number of bytes the guest read from its block devices since the guest was started. This info is not available for all storage types. (for types 'qemu' and 'lxc') + /// + /// The number of bytes the guest read from its block devices since the guest was started. This info is not available for all storage types. (for types 'qemu' and 'lxc') + [DataMember(Name = "diskread", EmitDefaultValue = false)] + public Int64 Diskread { get; set; } + + /// + /// The number of bytes the guest wrote to its block devices since the guest was started. This info is not available for all storage types. (for types 'qemu' and 'lxc') + /// + /// The number of bytes the guest wrote to its block devices since the guest was started. This info is not available for all storage types. (for types 'qemu' and 'lxc') + [DataMember(Name = "diskwrite", EmitDefaultValue = false)] + public Int64 Diskwrite { get; set; } + + /// + /// HA service status (for HA managed VMs). + /// + /// HA service status (for HA managed VMs). + [DataMember(Name = "hastate", EmitDefaultValue = false)] + public string Hastate { get; set; } + + /// + /// Resource id. + /// + /// Resource id. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Support level (for type 'node'). + /// + /// Support level (for type 'node'). + [DataMember(Name = "level", EmitDefaultValue = false)] + public string Level { get; set; } + + /// + /// The guest's current config lock (for types 'qemu' and 'lxc') + /// + /// The guest's current config lock (for types 'qemu' and 'lxc') + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Number of available CPUs (for types 'node', 'qemu' and 'lxc'). + /// + /// Number of available CPUs (for types 'node', 'qemu' and 'lxc'). + [DataMember(Name = "maxcpu", EmitDefaultValue = false)] + public decimal Maxcpu { get; set; } + + /// + /// Storage size in bytes (for type 'storage'), root image size for VMs (for types 'qemu' and 'lxc'). + /// + /// Storage size in bytes (for type 'storage'), root image size for VMs (for types 'qemu' and 'lxc'). + [DataMember(Name = "maxdisk", EmitDefaultValue = false)] + public Int64 Maxdisk { get; set; } + + /// + /// Number of available memory in bytes (for types 'node', 'qemu' and 'lxc'). + /// + /// Number of available memory in bytes (for types 'node', 'qemu' and 'lxc'). + [DataMember(Name = "maxmem", EmitDefaultValue = false)] + public Int64 Maxmem { get; set; } + + /// + /// Used memory in bytes (for types 'node', 'qemu' and 'lxc'). + /// + /// Used memory in bytes (for types 'node', 'qemu' and 'lxc'). + [DataMember(Name = "mem", EmitDefaultValue = false)] + public Int64 Mem { get; set; } + + /// + /// Used memory in bytes from the point of view of the host (for types 'qemu'). + /// + /// Used memory in bytes from the point of view of the host (for types 'qemu'). + [DataMember(Name = "memhost", EmitDefaultValue = false)] + public Int64 Memhost { get; set; } + + /// + /// Name of the resource. + /// + /// Name of the resource. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. (for types 'qemu' and 'lxc') + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. (for types 'qemu' and 'lxc') + [DataMember(Name = "netin", EmitDefaultValue = false)] + public Int64 Netin { get; set; } + + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. (for types 'qemu' and 'lxc') + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. (for types 'qemu' and 'lxc') + [DataMember(Name = "netout", EmitDefaultValue = false)] + public Int64 Netout { get; set; } + + /// + /// The name of a Network entity (for type 'network'). + /// + /// The name of a Network entity (for type 'network'). + [DataMember(Name = "network", EmitDefaultValue = false)] + public string Network { get; set; } + + /// + /// The type of network resource (for type 'network'). + /// + /// The type of network resource (for type 'network'). + [DataMember(Name = "network-type", EmitDefaultValue = false)] + public string NetworkType { get; set; } + + /// + /// The cluster node name (for types 'node', 'storage', 'qemu', and 'lxc'). + /// + /// The cluster node name (for types 'node', 'storage', 'qemu', and 'lxc'). + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// More specific type, if available. + /// + /// More specific type, if available. + [DataMember(Name = "plugintype", EmitDefaultValue = false)] + public string Plugintype { get; set; } + + /// + /// The pool name (for types 'pool', 'qemu' and 'lxc'). + /// + /// The pool name (for types 'pool', 'qemu' and 'lxc'). + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// The protocol of a fabric (for type 'network', network-type 'fabric'). + /// + /// The protocol of a fabric (for type 'network', network-type 'fabric'). + [DataMember(Name = "protocol", EmitDefaultValue = false)] + public string Protocol { get; set; } + + /// + /// The name of an SDN entity (for type 'sdn') + /// + /// The name of an SDN entity (for type 'sdn') + [DataMember(Name = "sdn", EmitDefaultValue = false)] + public string Sdn { get; set; } + + /// + /// Resource type dependent status. + /// + /// Resource type dependent status. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// The storage identifier (for type 'storage'). + /// + /// The storage identifier (for type 'storage'). + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// The guest's tags (for types 'qemu' and 'lxc') + /// + /// The guest's tags (for types 'qemu' and 'lxc') + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Determines if the guest is a template. (for types 'qemu' and 'lxc') + /// + /// Determines if the guest is a template. (for types 'qemu' and 'lxc') + [DataMember(Name = "template", EmitDefaultValue = false)] + public Int64 Template { get; set; } + + /// + /// Resource type. + /// + /// Resource type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Uptime of node or virtual guest in seconds (for types 'node', 'qemu' and 'lxc'). + /// + /// Uptime of node or virtual guest in seconds (for types 'node', 'qemu' and 'lxc'). + [DataMember(Name = "uptime", EmitDefaultValue = false)] + public Int64 Uptime { get; set; } + + /// + /// The numerical vmid (for types 'qemu' and 'lxc'). + /// + /// The numerical vmid (for types 'qemu' and 'lxc'). + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// The type of an SDN zone (for type 'sdn'). + /// + /// The type of an SDN zone (for type 'sdn'). + [DataMember(Name = "zone-type", EmitDefaultValue = false)] + public string ZoneType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterResources200ResponseDataInner {\n"); + sb.Append(" CgroupMode: ").Append(CgroupMode).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append(" Diskread: ").Append(Diskread).Append("\n"); + sb.Append(" Diskwrite: ").Append(Diskwrite).Append("\n"); + sb.Append(" Hastate: ").Append(Hastate).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Level: ").Append(Level).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Maxcpu: ").Append(Maxcpu).Append("\n"); + sb.Append(" Maxdisk: ").Append(Maxdisk).Append("\n"); + sb.Append(" Maxmem: ").Append(Maxmem).Append("\n"); + sb.Append(" Mem: ").Append(Mem).Append("\n"); + sb.Append(" Memhost: ").Append(Memhost).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Netin: ").Append(Netin).Append("\n"); + sb.Append(" Netout: ").Append(Netout).Append("\n"); + sb.Append(" Network: ").Append(Network).Append("\n"); + sb.Append(" NetworkType: ").Append(NetworkType).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Plugintype: ").Append(Plugintype).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Protocol: ").Append(Protocol).Append("\n"); + sb.Append(" Sdn: ").Append(Sdn).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Uptime: ").Append(Uptime).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" ZoneType: ").Append(ZoneType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNControllers200Response.cs b/src/ProxmoxSharp/Model/GetClusterSDNControllers200Response.cs new file mode 100644 index 0000000..3e240dd --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNControllers200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSDNControllers200Response + /// + [DataContract(Name = "getClusterSDNControllers_200_response")] + public partial class GetClusterSDNControllers200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSDNControllers200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNControllers200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNControllers200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterSDNControllers200ResponseDataInner.cs new file mode 100644 index 0000000..cbc06d4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNControllers200ResponseDataInner.cs @@ -0,0 +1,223 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSDNControllers200ResponseDataInner + /// + [DataContract(Name = "getClusterSDNControllers_200_response_data_inner")] + public partial class GetClusterSDNControllers200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The local ASN of the controller. BGP & EVPN only.. + /// Consider different AS paths of equal length for multipath computation. BGP only.. + /// Name of the controller.. + /// Digest of the controller section.. + /// Enable eBGP (remote-as external). BGP only.. + /// Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only.. + /// Name of the IS-IS domain. IS-IS only.. + /// Comma-separated list of interfaces where IS-IS should be active. IS-IS only.. + /// Network Entity title for this node in the IS-IS network. IS-IS only.. + /// Name of the loopback/dummy interface that provides the Router-IP. BGP only.. + /// Node(s) where this controller is active.. + /// Comma-separated list of the peers IP addresses.. + /// pending. + /// State of the SDN configuration object.. + /// Type of the controller. + public GetClusterSDNControllers200ResponseDataInner(Int64 asn = default(Int64), Int64 bgpMultipathAsRelax = default(Int64), string controller = default(string), string digest = default(string), Int64 ebgp = default(Int64), Int64 ebgpMultihop = default(Int64), string isisDomain = default(string), string isisIfaces = default(string), string isisNet = default(string), string loopback = default(string), string node = default(string), string peers = default(string), GetClusterSDNControllers200ResponseDataInnerPending pending = default(GetClusterSDNControllers200ResponseDataInnerPending), string state = default(string), string type = default(string)) + { + this.Asn = asn; + this.BgpMultipathAsRelax = bgpMultipathAsRelax; + this.Controller = controller; + this.Digest = digest; + this.Ebgp = ebgp; + this.EbgpMultihop = ebgpMultihop; + this.IsisDomain = isisDomain; + this.IsisIfaces = isisIfaces; + this.IsisNet = isisNet; + this.Loopback = loopback; + this.Node = node; + this.Peers = peers; + this.Pending = pending; + this.State = state; + this.Type = type; + } + + /// + /// The local ASN of the controller. BGP & EVPN only. + /// + /// The local ASN of the controller. BGP & EVPN only. + [DataMember(Name = "asn", EmitDefaultValue = false)] + public Int64 Asn { get; set; } + + /// + /// Consider different AS paths of equal length for multipath computation. BGP only. + /// + /// Consider different AS paths of equal length for multipath computation. BGP only. + [DataMember(Name = "bgp-multipath-as-relax", EmitDefaultValue = false)] + public Int64 BgpMultipathAsRelax { get; set; } + + /// + /// Name of the controller. + /// + /// Name of the controller. + [DataMember(Name = "controller", EmitDefaultValue = false)] + public string Controller { get; set; } + + /// + /// Digest of the controller section. + /// + /// Digest of the controller section. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Enable eBGP (remote-as external). BGP only. + /// + /// Enable eBGP (remote-as external). BGP only. + [DataMember(Name = "ebgp", EmitDefaultValue = false)] + public Int64 Ebgp { get; set; } + + /// + /// Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only. + /// + /// Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only. + [DataMember(Name = "ebgp-multihop", EmitDefaultValue = false)] + public Int64 EbgpMultihop { get; set; } + + /// + /// Name of the IS-IS domain. IS-IS only. + /// + /// Name of the IS-IS domain. IS-IS only. + [DataMember(Name = "isis-domain", EmitDefaultValue = false)] + public string IsisDomain { get; set; } + + /// + /// Comma-separated list of interfaces where IS-IS should be active. IS-IS only. + /// + /// Comma-separated list of interfaces where IS-IS should be active. IS-IS only. + [DataMember(Name = "isis-ifaces", EmitDefaultValue = false)] + public string IsisIfaces { get; set; } + + /// + /// Network Entity title for this node in the IS-IS network. IS-IS only. + /// + /// Network Entity title for this node in the IS-IS network. IS-IS only. + [DataMember(Name = "isis-net", EmitDefaultValue = false)] + public string IsisNet { get; set; } + + /// + /// Name of the loopback/dummy interface that provides the Router-IP. BGP only. + /// + /// Name of the loopback/dummy interface that provides the Router-IP. BGP only. + [DataMember(Name = "loopback", EmitDefaultValue = false)] + public string Loopback { get; set; } + + /// + /// Node(s) where this controller is active. + /// + /// Node(s) where this controller is active. + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Comma-separated list of the peers IP addresses. + /// + /// Comma-separated list of the peers IP addresses. + [DataMember(Name = "peers", EmitDefaultValue = false)] + public string Peers { get; set; } + + /// + /// Gets or Sets Pending + /// + [DataMember(Name = "pending", EmitDefaultValue = false)] + public GetClusterSDNControllers200ResponseDataInnerPending Pending { get; set; } + + /// + /// State of the SDN configuration object. + /// + /// State of the SDN configuration object. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Type of the controller + /// + /// Type of the controller + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNControllers200ResponseDataInner {\n"); + sb.Append(" Asn: ").Append(Asn).Append("\n"); + sb.Append(" BgpMultipathAsRelax: ").Append(BgpMultipathAsRelax).Append("\n"); + sb.Append(" Controller: ").Append(Controller).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Ebgp: ").Append(Ebgp).Append("\n"); + sb.Append(" EbgpMultihop: ").Append(EbgpMultihop).Append("\n"); + sb.Append(" IsisDomain: ").Append(IsisDomain).Append("\n"); + sb.Append(" IsisIfaces: ").Append(IsisIfaces).Append("\n"); + sb.Append(" IsisNet: ").Append(IsisNet).Append("\n"); + sb.Append(" Loopback: ").Append(Loopback).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Peers: ").Append(Peers).Append("\n"); + sb.Append(" Pending: ").Append(Pending).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNControllers200ResponseDataInnerPending.cs b/src/ProxmoxSharp/Model/GetClusterSDNControllers200ResponseDataInnerPending.cs new file mode 100644 index 0000000..2ceb697 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNControllers200ResponseDataInnerPending.cs @@ -0,0 +1,174 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Changes that have not yet been applied to the running configuration. + /// + [DataContract(Name = "getClusterSDNControllers_200_response_data_inner_pending")] + public partial class GetClusterSDNControllers200ResponseDataInnerPending : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The local ASN of the controller. BGP & EVPN only.. + /// Consider different AS paths of equal length for multipath computation. BGP only.. + /// Enable eBGP (remote-as external). BGP only.. + /// Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only.. + /// Name of the IS-IS domain. IS-IS only.. + /// Comma-separated list of interfaces where IS-IS should be active. IS-IS only.. + /// Network Entity title for this node in the IS-IS network. IS-IS only.. + /// Name of the loopback/dummy interface that provides the Router-IP. BGP only.. + /// Node(s) where this controller is active.. + /// Comma-separated list of the peers IP addresses.. + public GetClusterSDNControllers200ResponseDataInnerPending(Int64 asn = default(Int64), Int64 bgpMultipathAsRelax = default(Int64), Int64 ebgp = default(Int64), Int64 ebgpMultihop = default(Int64), string isisDomain = default(string), string isisIfaces = default(string), string isisNet = default(string), string loopback = default(string), string node = default(string), string peers = default(string)) + { + this.Asn = asn; + this.BgpMultipathAsRelax = bgpMultipathAsRelax; + this.Ebgp = ebgp; + this.EbgpMultihop = ebgpMultihop; + this.IsisDomain = isisDomain; + this.IsisIfaces = isisIfaces; + this.IsisNet = isisNet; + this.Loopback = loopback; + this.Node = node; + this.Peers = peers; + } + + /// + /// The local ASN of the controller. BGP & EVPN only. + /// + /// The local ASN of the controller. BGP & EVPN only. + [DataMember(Name = "asn", EmitDefaultValue = false)] + public Int64 Asn { get; set; } + + /// + /// Consider different AS paths of equal length for multipath computation. BGP only. + /// + /// Consider different AS paths of equal length for multipath computation. BGP only. + [DataMember(Name = "bgp-multipath-as-relax", EmitDefaultValue = false)] + public Int64 BgpMultipathAsRelax { get; set; } + + /// + /// Enable eBGP (remote-as external). BGP only. + /// + /// Enable eBGP (remote-as external). BGP only. + [DataMember(Name = "ebgp", EmitDefaultValue = false)] + public Int64 Ebgp { get; set; } + + /// + /// Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only. + /// + /// Set maximum amount of hops for eBGP peers. Needs ebgp set to 1. BGP only. + [DataMember(Name = "ebgp-multihop", EmitDefaultValue = false)] + public Int64 EbgpMultihop { get; set; } + + /// + /// Name of the IS-IS domain. IS-IS only. + /// + /// Name of the IS-IS domain. IS-IS only. + [DataMember(Name = "isis-domain", EmitDefaultValue = false)] + public string IsisDomain { get; set; } + + /// + /// Comma-separated list of interfaces where IS-IS should be active. IS-IS only. + /// + /// Comma-separated list of interfaces where IS-IS should be active. IS-IS only. + [DataMember(Name = "isis-ifaces", EmitDefaultValue = false)] + public string IsisIfaces { get; set; } + + /// + /// Network Entity title for this node in the IS-IS network. IS-IS only. + /// + /// Network Entity title for this node in the IS-IS network. IS-IS only. + [DataMember(Name = "isis-net", EmitDefaultValue = false)] + public string IsisNet { get; set; } + + /// + /// Name of the loopback/dummy interface that provides the Router-IP. BGP only. + /// + /// Name of the loopback/dummy interface that provides the Router-IP. BGP only. + [DataMember(Name = "loopback", EmitDefaultValue = false)] + public string Loopback { get; set; } + + /// + /// Node(s) where this controller is active. + /// + /// Node(s) where this controller is active. + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Comma-separated list of the peers IP addresses. + /// + /// Comma-separated list of the peers IP addresses. + [DataMember(Name = "peers", EmitDefaultValue = false)] + public string Peers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNControllers200ResponseDataInnerPending {\n"); + sb.Append(" Asn: ").Append(Asn).Append("\n"); + sb.Append(" BgpMultipathAsRelax: ").Append(BgpMultipathAsRelax).Append("\n"); + sb.Append(" Ebgp: ").Append(Ebgp).Append("\n"); + sb.Append(" EbgpMultihop: ").Append(EbgpMultihop).Append("\n"); + sb.Append(" IsisDomain: ").Append(IsisDomain).Append("\n"); + sb.Append(" IsisIfaces: ").Append(IsisIfaces).Append("\n"); + sb.Append(" IsisNet: ").Append(IsisNet).Append("\n"); + sb.Append(" Loopback: ").Append(Loopback).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Peers: ").Append(Peers).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNVnets200Response.cs b/src/ProxmoxSharp/Model/GetClusterSDNVnets200Response.cs new file mode 100644 index 0000000..2d65ffd --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNVnets200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSDNVnets200Response + /// + [DataContract(Name = "getClusterSDNVnets_200_response")] + public partial class GetClusterSDNVnets200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSDNVnets200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNVnets200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNVnets200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterSDNVnets200ResponseDataInner.cs new file mode 100644 index 0000000..b83c88e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNVnets200ResponseDataInner.cs @@ -0,0 +1,173 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSDNVnets200ResponseDataInner + /// + [DataContract(Name = "getClusterSDNVnets_200_response_data_inner")] + public partial class GetClusterSDNVnets200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Alias name of the VNet.. + /// Digest of the VNet section.. + /// If true, sets the isolated property for all interfaces on the bridge of this VNet.. + /// pending. + /// State of the SDN configuration object.. + /// VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones).. + /// Type of the VNet.. + /// Allow VLANs to pass through this VNet.. + /// Name of the VNet.. + /// Name of the zone this VNet belongs to.. + public GetClusterSDNVnets200ResponseDataInner(string alias = default(string), string digest = default(string), Int64 isolatePorts = default(Int64), GetClusterSDNVnets200ResponseDataInnerPending pending = default(GetClusterSDNVnets200ResponseDataInnerPending), string state = default(string), Int64 tag = default(Int64), string type = default(string), Int64 vlanaware = default(Int64), string vnet = default(string), string zone = default(string)) + { + this.Alias = alias; + this.Digest = digest; + this.IsolatePorts = isolatePorts; + this.Pending = pending; + this.State = state; + this.Tag = tag; + this.Type = type; + this.Vlanaware = vlanaware; + this.Vnet = vnet; + this.Zone = zone; + } + + /// + /// Alias name of the VNet. + /// + /// Alias name of the VNet. + [DataMember(Name = "alias", EmitDefaultValue = false)] + public string Alias { get; set; } + + /// + /// Digest of the VNet section. + /// + /// Digest of the VNet section. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// If true, sets the isolated property for all interfaces on the bridge of this VNet. + /// + /// If true, sets the isolated property for all interfaces on the bridge of this VNet. + [DataMember(Name = "isolate-ports", EmitDefaultValue = false)] + public Int64 IsolatePorts { get; set; } + + /// + /// Gets or Sets Pending + /// + [DataMember(Name = "pending", EmitDefaultValue = false)] + public GetClusterSDNVnets200ResponseDataInnerPending Pending { get; set; } + + /// + /// State of the SDN configuration object. + /// + /// State of the SDN configuration object. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones). + /// + /// VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones). + [DataMember(Name = "tag", EmitDefaultValue = false)] + public Int64 Tag { get; set; } + + /// + /// Type of the VNet. + /// + /// Type of the VNet. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Allow VLANs to pass through this VNet. + /// + /// Allow VLANs to pass through this VNet. + [DataMember(Name = "vlanaware", EmitDefaultValue = false)] + public Int64 Vlanaware { get; set; } + + /// + /// Name of the VNet. + /// + /// Name of the VNet. + [DataMember(Name = "vnet", EmitDefaultValue = false)] + public string Vnet { get; set; } + + /// + /// Name of the zone this VNet belongs to. + /// + /// Name of the zone this VNet belongs to. + [DataMember(Name = "zone", EmitDefaultValue = false)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNVnets200ResponseDataInner {\n"); + sb.Append(" Alias: ").Append(Alias).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" IsolatePorts: ").Append(IsolatePorts).Append("\n"); + sb.Append(" Pending: ").Append(Pending).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Vlanaware: ").Append(Vlanaware).Append("\n"); + sb.Append(" Vnet: ").Append(Vnet).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNVnets200ResponseDataInnerPending.cs b/src/ProxmoxSharp/Model/GetClusterSDNVnets200ResponseDataInnerPending.cs new file mode 100644 index 0000000..6c7ad34 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNVnets200ResponseDataInnerPending.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Changes that have not yet been applied to the running configuration. + /// + [DataContract(Name = "getClusterSDNVnets_200_response_data_inner_pending")] + public partial class GetClusterSDNVnets200ResponseDataInnerPending : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Alias name of the VNet.. + /// If true, sets the isolated property for all interfaces on the bridge of this VNet.. + /// VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones).. + /// Allow VLANs to pass through this VNet.. + /// Name of the zone this VNet belongs to.. + public GetClusterSDNVnets200ResponseDataInnerPending(string alias = default(string), Int64 isolatePorts = default(Int64), Int64 tag = default(Int64), Int64 vlanaware = default(Int64), string zone = default(string)) + { + this.Alias = alias; + this.IsolatePorts = isolatePorts; + this.Tag = tag; + this.Vlanaware = vlanaware; + this.Zone = zone; + } + + /// + /// Alias name of the VNet. + /// + /// Alias name of the VNet. + [DataMember(Name = "alias", EmitDefaultValue = false)] + public string Alias { get; set; } + + /// + /// If true, sets the isolated property for all interfaces on the bridge of this VNet. + /// + /// If true, sets the isolated property for all interfaces on the bridge of this VNet. + [DataMember(Name = "isolate-ports", EmitDefaultValue = false)] + public Int64 IsolatePorts { get; set; } + + /// + /// VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones). + /// + /// VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for VXLAN or EVPN zones). + [DataMember(Name = "tag", EmitDefaultValue = false)] + public Int64 Tag { get; set; } + + /// + /// Allow VLANs to pass through this VNet. + /// + /// Allow VLANs to pass through this VNet. + [DataMember(Name = "vlanaware", EmitDefaultValue = false)] + public Int64 Vlanaware { get; set; } + + /// + /// Name of the zone this VNet belongs to. + /// + /// Name of the zone this VNet belongs to. + [DataMember(Name = "zone", EmitDefaultValue = false)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNVnets200ResponseDataInnerPending {\n"); + sb.Append(" Alias: ").Append(Alias).Append("\n"); + sb.Append(" IsolatePorts: ").Append(IsolatePorts).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" Vlanaware: ").Append(Vlanaware).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNZones200Response.cs b/src/ProxmoxSharp/Model/GetClusterSDNZones200Response.cs new file mode 100644 index 0000000..9c174cc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNZones200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSDNZones200Response + /// + [DataContract(Name = "getClusterSDNZones_200_response")] + public partial class GetClusterSDNZones200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSDNZones200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNZones200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNZones200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterSDNZones200ResponseDataInner.cs new file mode 100644 index 0000000..670f597 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNZones200ResponseDataInner.cs @@ -0,0 +1,343 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSDNZones200ResponseDataInner + /// + [DataContract(Name = "getClusterSDNZones_200_response_data_inner")] + public partial class GetClusterSDNZones200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Advertise IP prefixes (Type-5 routes) instead of MAC/IP pairs (Type-2 routes). EVPN zone only.. + /// the bridge for which VLANs should be managed. VLAN & QinQ zone only.. + /// Disable auto mac learning. VLAN zone only.. + /// ID of the controller for this zone. EVPN zone only.. + /// Name of DHCP server backend for this zone.. + /// Digest of the controller section.. + /// Suppress IPv4 ARP && IPv6 Neighbour Discovery messages. EVPN zone only.. + /// ID of the DNS server for this zone.. + /// Domain name for this zone.. + /// List of PVE Nodes that should act as exit node for this zone. EVPN zone only.. + /// Create routes on the exit nodes, so they can connect to EVPN guests. EVPN zone only.. + /// Force traffic through this exitnode first. EVPN zone only.. + /// ID of the IPAM for this zone.. + /// MAC address of the anycast router for this zone.. + /// MTU of the zone, will be used for the created VNet bridges.. + /// Nodes where this zone should be created.. + /// Comma-separated list of peers, that are part of the VXLAN zone. Usually the IPs of the nodes. VXLAN zone only.. + /// pending. + /// ID of the reverse DNS server for this zone.. + /// Route-Targets that should be imported into the VRF of this zone via BGP. EVPN zone only.. + /// State of the SDN configuration object.. + /// Service-VLAN Tag (outer VLAN). QinQ zone only. + /// Type of the zone.. + /// VLAN protocol for the creation of the QinQ zone. QinQ zone only.. + /// VNI for the zone VRF. EVPN zone only.. + /// UDP port that should be used for the VXLAN tunnel (default 4789). VXLAN zone only.. + /// Name of the zone.. + public GetClusterSDNZones200ResponseDataInner(Int64 advertiseSubnets = default(Int64), string bridge = default(string), Int64 bridgeDisableMacLearning = default(Int64), string controller = default(string), string dhcp = default(string), string digest = default(string), Int64 disableArpNdSuppression = default(Int64), string dns = default(string), string dnszone = default(string), string exitnodes = default(string), Int64 exitnodesLocalRouting = default(Int64), string exitnodesPrimary = default(string), string ipam = default(string), string mac = default(string), Int64 mtu = default(Int64), string nodes = default(string), string peers = default(string), GetClusterSDNZones200ResponseDataInnerPending pending = default(GetClusterSDNZones200ResponseDataInnerPending), string reversedns = default(string), string rtImport = default(string), string state = default(string), Int64 tag = default(Int64), string type = default(string), string vlanProtocol = default(string), Int64 vrfVxlan = default(Int64), Int64 vxlanPort = default(Int64), string zone = default(string)) + { + this.AdvertiseSubnets = advertiseSubnets; + this.Bridge = bridge; + this.BridgeDisableMacLearning = bridgeDisableMacLearning; + this.Controller = controller; + this.Dhcp = dhcp; + this.Digest = digest; + this.DisableArpNdSuppression = disableArpNdSuppression; + this.Dns = dns; + this.Dnszone = dnszone; + this.Exitnodes = exitnodes; + this.ExitnodesLocalRouting = exitnodesLocalRouting; + this.ExitnodesPrimary = exitnodesPrimary; + this.Ipam = ipam; + this.Mac = mac; + this.Mtu = mtu; + this.Nodes = nodes; + this.Peers = peers; + this.Pending = pending; + this.Reversedns = reversedns; + this.RtImport = rtImport; + this.State = state; + this.Tag = tag; + this.Type = type; + this.VlanProtocol = vlanProtocol; + this.VrfVxlan = vrfVxlan; + this.VxlanPort = vxlanPort; + this.Zone = zone; + } + + /// + /// Advertise IP prefixes (Type-5 routes) instead of MAC/IP pairs (Type-2 routes). EVPN zone only. + /// + /// Advertise IP prefixes (Type-5 routes) instead of MAC/IP pairs (Type-2 routes). EVPN zone only. + [DataMember(Name = "advertise-subnets", EmitDefaultValue = false)] + public Int64 AdvertiseSubnets { get; set; } + + /// + /// the bridge for which VLANs should be managed. VLAN & QinQ zone only. + /// + /// the bridge for which VLANs should be managed. VLAN & QinQ zone only. + [DataMember(Name = "bridge", EmitDefaultValue = false)] + public string Bridge { get; set; } + + /// + /// Disable auto mac learning. VLAN zone only. + /// + /// Disable auto mac learning. VLAN zone only. + [DataMember(Name = "bridge-disable-mac-learning", EmitDefaultValue = false)] + public Int64 BridgeDisableMacLearning { get; set; } + + /// + /// ID of the controller for this zone. EVPN zone only. + /// + /// ID of the controller for this zone. EVPN zone only. + [DataMember(Name = "controller", EmitDefaultValue = false)] + public string Controller { get; set; } + + /// + /// Name of DHCP server backend for this zone. + /// + /// Name of DHCP server backend for this zone. + [DataMember(Name = "dhcp", EmitDefaultValue = false)] + public string Dhcp { get; set; } + + /// + /// Digest of the controller section. + /// + /// Digest of the controller section. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Suppress IPv4 ARP && IPv6 Neighbour Discovery messages. EVPN zone only. + /// + /// Suppress IPv4 ARP && IPv6 Neighbour Discovery messages. EVPN zone only. + [DataMember(Name = "disable-arp-nd-suppression", EmitDefaultValue = false)] + public Int64 DisableArpNdSuppression { get; set; } + + /// + /// ID of the DNS server for this zone. + /// + /// ID of the DNS server for this zone. + [DataMember(Name = "dns", EmitDefaultValue = false)] + public string Dns { get; set; } + + /// + /// Domain name for this zone. + /// + /// Domain name for this zone. + [DataMember(Name = "dnszone", EmitDefaultValue = false)] + public string Dnszone { get; set; } + + /// + /// List of PVE Nodes that should act as exit node for this zone. EVPN zone only. + /// + /// List of PVE Nodes that should act as exit node for this zone. EVPN zone only. + [DataMember(Name = "exitnodes", EmitDefaultValue = false)] + public string Exitnodes { get; set; } + + /// + /// Create routes on the exit nodes, so they can connect to EVPN guests. EVPN zone only. + /// + /// Create routes on the exit nodes, so they can connect to EVPN guests. EVPN zone only. + [DataMember(Name = "exitnodes-local-routing", EmitDefaultValue = false)] + public Int64 ExitnodesLocalRouting { get; set; } + + /// + /// Force traffic through this exitnode first. EVPN zone only. + /// + /// Force traffic through this exitnode first. EVPN zone only. + [DataMember(Name = "exitnodes-primary", EmitDefaultValue = false)] + public string ExitnodesPrimary { get; set; } + + /// + /// ID of the IPAM for this zone. + /// + /// ID of the IPAM for this zone. + [DataMember(Name = "ipam", EmitDefaultValue = false)] + public string Ipam { get; set; } + + /// + /// MAC address of the anycast router for this zone. + /// + /// MAC address of the anycast router for this zone. + [DataMember(Name = "mac", EmitDefaultValue = false)] + public string Mac { get; set; } + + /// + /// MTU of the zone, will be used for the created VNet bridges. + /// + /// MTU of the zone, will be used for the created VNet bridges. + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public Int64 Mtu { get; set; } + + /// + /// Nodes where this zone should be created. + /// + /// Nodes where this zone should be created. + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Comma-separated list of peers, that are part of the VXLAN zone. Usually the IPs of the nodes. VXLAN zone only. + /// + /// Comma-separated list of peers, that are part of the VXLAN zone. Usually the IPs of the nodes. VXLAN zone only. + [DataMember(Name = "peers", EmitDefaultValue = false)] + public string Peers { get; set; } + + /// + /// Gets or Sets Pending + /// + [DataMember(Name = "pending", EmitDefaultValue = false)] + public GetClusterSDNZones200ResponseDataInnerPending Pending { get; set; } + + /// + /// ID of the reverse DNS server for this zone. + /// + /// ID of the reverse DNS server for this zone. + [DataMember(Name = "reversedns", EmitDefaultValue = false)] + public string Reversedns { get; set; } + + /// + /// Route-Targets that should be imported into the VRF of this zone via BGP. EVPN zone only. + /// + /// Route-Targets that should be imported into the VRF of this zone via BGP. EVPN zone only. + [DataMember(Name = "rt-import", EmitDefaultValue = false)] + public string RtImport { get; set; } + + /// + /// State of the SDN configuration object. + /// + /// State of the SDN configuration object. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Service-VLAN Tag (outer VLAN). QinQ zone only + /// + /// Service-VLAN Tag (outer VLAN). QinQ zone only + [DataMember(Name = "tag", EmitDefaultValue = false)] + public Int64 Tag { get; set; } + + /// + /// Type of the zone. + /// + /// Type of the zone. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// VLAN protocol for the creation of the QinQ zone. QinQ zone only. + /// + /// VLAN protocol for the creation of the QinQ zone. QinQ zone only. + [DataMember(Name = "vlan-protocol", EmitDefaultValue = false)] + public string VlanProtocol { get; set; } + + /// + /// VNI for the zone VRF. EVPN zone only. + /// + /// VNI for the zone VRF. EVPN zone only. + [DataMember(Name = "vrf-vxlan", EmitDefaultValue = false)] + public Int64 VrfVxlan { get; set; } + + /// + /// UDP port that should be used for the VXLAN tunnel (default 4789). VXLAN zone only. + /// + /// UDP port that should be used for the VXLAN tunnel (default 4789). VXLAN zone only. + [DataMember(Name = "vxlan-port", EmitDefaultValue = false)] + public Int64 VxlanPort { get; set; } + + /// + /// Name of the zone. + /// + /// Name of the zone. + [DataMember(Name = "zone", EmitDefaultValue = false)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNZones200ResponseDataInner {\n"); + sb.Append(" AdvertiseSubnets: ").Append(AdvertiseSubnets).Append("\n"); + sb.Append(" Bridge: ").Append(Bridge).Append("\n"); + sb.Append(" BridgeDisableMacLearning: ").Append(BridgeDisableMacLearning).Append("\n"); + sb.Append(" Controller: ").Append(Controller).Append("\n"); + sb.Append(" Dhcp: ").Append(Dhcp).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" DisableArpNdSuppression: ").Append(DisableArpNdSuppression).Append("\n"); + sb.Append(" Dns: ").Append(Dns).Append("\n"); + sb.Append(" Dnszone: ").Append(Dnszone).Append("\n"); + sb.Append(" Exitnodes: ").Append(Exitnodes).Append("\n"); + sb.Append(" ExitnodesLocalRouting: ").Append(ExitnodesLocalRouting).Append("\n"); + sb.Append(" ExitnodesPrimary: ").Append(ExitnodesPrimary).Append("\n"); + sb.Append(" Ipam: ").Append(Ipam).Append("\n"); + sb.Append(" Mac: ").Append(Mac).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Peers: ").Append(Peers).Append("\n"); + sb.Append(" Pending: ").Append(Pending).Append("\n"); + sb.Append(" Reversedns: ").Append(Reversedns).Append("\n"); + sb.Append(" RtImport: ").Append(RtImport).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" VlanProtocol: ").Append(VlanProtocol).Append("\n"); + sb.Append(" VrfVxlan: ").Append(VrfVxlan).Append("\n"); + sb.Append(" VxlanPort: ").Append(VxlanPort).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSDNZones200ResponseDataInnerPending.cs b/src/ProxmoxSharp/Model/GetClusterSDNZones200ResponseDataInnerPending.cs new file mode 100644 index 0000000..dce97b5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSDNZones200ResponseDataInnerPending.cs @@ -0,0 +1,294 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Changes that have not yet been applied to the running configuration. + /// + [DataContract(Name = "getClusterSDNZones_200_response_data_inner_pending")] + public partial class GetClusterSDNZones200ResponseDataInnerPending : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Advertise IP prefixes (Type-5 routes) instead of MAC/IP pairs (Type-2 routes). EVPN zone only.. + /// the bridge for which VLANs should be managed. VLAN & QinQ zone only.. + /// Disable auto mac learning. VLAN zone only.. + /// ID of the controller for this zone. EVPN zone only.. + /// Name of DHCP server backend for this zone.. + /// Suppress IPv4 ARP && IPv6 Neighbour Discovery messages. EVPN zone only.. + /// ID of the DNS server for this zone.. + /// Domain name for this zone.. + /// List of PVE Nodes that should act as exit node for this zone. EVPN zone only.. + /// Create routes on the exit nodes, so they can connect to EVPN guests. EVPN zone only.. + /// Force traffic through this exitnode first. EVPN zone only.. + /// ID of the IPAM for this zone.. + /// MAC address of the anycast router for this zone.. + /// MTU of the zone, will be used for the created VNet bridges.. + /// Nodes where this zone should be created.. + /// Comma-separated list of peers, that are part of the VXLAN zone. Usually the IPs of the nodes. VXLAN zone only.. + /// ID of the reverse DNS server for this zone.. + /// Route-Targets that should be imported into the VRF of this zone via BGP. EVPN zone only.. + /// Service-VLAN Tag (outer VLAN). QinQ zone only. + /// VLAN protocol for the creation of the QinQ zone. QinQ zone only.. + /// VNI for the zone VRF. EVPN zone only.. + /// UDP port that should be used for the VXLAN tunnel (default 4789). VXLAN zone only.. + public GetClusterSDNZones200ResponseDataInnerPending(Int64 advertiseSubnets = default(Int64), string bridge = default(string), Int64 bridgeDisableMacLearning = default(Int64), string controller = default(string), string dhcp = default(string), Int64 disableArpNdSuppression = default(Int64), string dns = default(string), string dnszone = default(string), string exitnodes = default(string), Int64 exitnodesLocalRouting = default(Int64), string exitnodesPrimary = default(string), string ipam = default(string), string mac = default(string), Int64 mtu = default(Int64), string nodes = default(string), string peers = default(string), string reversedns = default(string), string rtImport = default(string), Int64 tag = default(Int64), string vlanProtocol = default(string), Int64 vrfVxlan = default(Int64), Int64 vxlanPort = default(Int64)) + { + this.AdvertiseSubnets = advertiseSubnets; + this.Bridge = bridge; + this.BridgeDisableMacLearning = bridgeDisableMacLearning; + this.Controller = controller; + this.Dhcp = dhcp; + this.DisableArpNdSuppression = disableArpNdSuppression; + this.Dns = dns; + this.Dnszone = dnszone; + this.Exitnodes = exitnodes; + this.ExitnodesLocalRouting = exitnodesLocalRouting; + this.ExitnodesPrimary = exitnodesPrimary; + this.Ipam = ipam; + this.Mac = mac; + this.Mtu = mtu; + this.Nodes = nodes; + this.Peers = peers; + this.Reversedns = reversedns; + this.RtImport = rtImport; + this.Tag = tag; + this.VlanProtocol = vlanProtocol; + this.VrfVxlan = vrfVxlan; + this.VxlanPort = vxlanPort; + } + + /// + /// Advertise IP prefixes (Type-5 routes) instead of MAC/IP pairs (Type-2 routes). EVPN zone only. + /// + /// Advertise IP prefixes (Type-5 routes) instead of MAC/IP pairs (Type-2 routes). EVPN zone only. + [DataMember(Name = "advertise-subnets", EmitDefaultValue = false)] + public Int64 AdvertiseSubnets { get; set; } + + /// + /// the bridge for which VLANs should be managed. VLAN & QinQ zone only. + /// + /// the bridge for which VLANs should be managed. VLAN & QinQ zone only. + [DataMember(Name = "bridge", EmitDefaultValue = false)] + public string Bridge { get; set; } + + /// + /// Disable auto mac learning. VLAN zone only. + /// + /// Disable auto mac learning. VLAN zone only. + [DataMember(Name = "bridge-disable-mac-learning", EmitDefaultValue = false)] + public Int64 BridgeDisableMacLearning { get; set; } + + /// + /// ID of the controller for this zone. EVPN zone only. + /// + /// ID of the controller for this zone. EVPN zone only. + [DataMember(Name = "controller", EmitDefaultValue = false)] + public string Controller { get; set; } + + /// + /// Name of DHCP server backend for this zone. + /// + /// Name of DHCP server backend for this zone. + [DataMember(Name = "dhcp", EmitDefaultValue = false)] + public string Dhcp { get; set; } + + /// + /// Suppress IPv4 ARP && IPv6 Neighbour Discovery messages. EVPN zone only. + /// + /// Suppress IPv4 ARP && IPv6 Neighbour Discovery messages. EVPN zone only. + [DataMember(Name = "disable-arp-nd-suppression", EmitDefaultValue = false)] + public Int64 DisableArpNdSuppression { get; set; } + + /// + /// ID of the DNS server for this zone. + /// + /// ID of the DNS server for this zone. + [DataMember(Name = "dns", EmitDefaultValue = false)] + public string Dns { get; set; } + + /// + /// Domain name for this zone. + /// + /// Domain name for this zone. + [DataMember(Name = "dnszone", EmitDefaultValue = false)] + public string Dnszone { get; set; } + + /// + /// List of PVE Nodes that should act as exit node for this zone. EVPN zone only. + /// + /// List of PVE Nodes that should act as exit node for this zone. EVPN zone only. + [DataMember(Name = "exitnodes", EmitDefaultValue = false)] + public string Exitnodes { get; set; } + + /// + /// Create routes on the exit nodes, so they can connect to EVPN guests. EVPN zone only. + /// + /// Create routes on the exit nodes, so they can connect to EVPN guests. EVPN zone only. + [DataMember(Name = "exitnodes-local-routing", EmitDefaultValue = false)] + public Int64 ExitnodesLocalRouting { get; set; } + + /// + /// Force traffic through this exitnode first. EVPN zone only. + /// + /// Force traffic through this exitnode first. EVPN zone only. + [DataMember(Name = "exitnodes-primary", EmitDefaultValue = false)] + public string ExitnodesPrimary { get; set; } + + /// + /// ID of the IPAM for this zone. + /// + /// ID of the IPAM for this zone. + [DataMember(Name = "ipam", EmitDefaultValue = false)] + public string Ipam { get; set; } + + /// + /// MAC address of the anycast router for this zone. + /// + /// MAC address of the anycast router for this zone. + [DataMember(Name = "mac", EmitDefaultValue = false)] + public string Mac { get; set; } + + /// + /// MTU of the zone, will be used for the created VNet bridges. + /// + /// MTU of the zone, will be used for the created VNet bridges. + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public Int64 Mtu { get; set; } + + /// + /// Nodes where this zone should be created. + /// + /// Nodes where this zone should be created. + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Comma-separated list of peers, that are part of the VXLAN zone. Usually the IPs of the nodes. VXLAN zone only. + /// + /// Comma-separated list of peers, that are part of the VXLAN zone. Usually the IPs of the nodes. VXLAN zone only. + [DataMember(Name = "peers", EmitDefaultValue = false)] + public string Peers { get; set; } + + /// + /// ID of the reverse DNS server for this zone. + /// + /// ID of the reverse DNS server for this zone. + [DataMember(Name = "reversedns", EmitDefaultValue = false)] + public string Reversedns { get; set; } + + /// + /// Route-Targets that should be imported into the VRF of this zone via BGP. EVPN zone only. + /// + /// Route-Targets that should be imported into the VRF of this zone via BGP. EVPN zone only. + [DataMember(Name = "rt-import", EmitDefaultValue = false)] + public string RtImport { get; set; } + + /// + /// Service-VLAN Tag (outer VLAN). QinQ zone only + /// + /// Service-VLAN Tag (outer VLAN). QinQ zone only + [DataMember(Name = "tag", EmitDefaultValue = false)] + public Int64 Tag { get; set; } + + /// + /// VLAN protocol for the creation of the QinQ zone. QinQ zone only. + /// + /// VLAN protocol for the creation of the QinQ zone. QinQ zone only. + [DataMember(Name = "vlan-protocol", EmitDefaultValue = false)] + public string VlanProtocol { get; set; } + + /// + /// VNI for the zone VRF. EVPN zone only. + /// + /// VNI for the zone VRF. EVPN zone only. + [DataMember(Name = "vrf-vxlan", EmitDefaultValue = false)] + public Int64 VrfVxlan { get; set; } + + /// + /// UDP port that should be used for the VXLAN tunnel (default 4789). VXLAN zone only. + /// + /// UDP port that should be used for the VXLAN tunnel (default 4789). VXLAN zone only. + [DataMember(Name = "vxlan-port", EmitDefaultValue = false)] + public Int64 VxlanPort { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSDNZones200ResponseDataInnerPending {\n"); + sb.Append(" AdvertiseSubnets: ").Append(AdvertiseSubnets).Append("\n"); + sb.Append(" Bridge: ").Append(Bridge).Append("\n"); + sb.Append(" BridgeDisableMacLearning: ").Append(BridgeDisableMacLearning).Append("\n"); + sb.Append(" Controller: ").Append(Controller).Append("\n"); + sb.Append(" Dhcp: ").Append(Dhcp).Append("\n"); + sb.Append(" DisableArpNdSuppression: ").Append(DisableArpNdSuppression).Append("\n"); + sb.Append(" Dns: ").Append(Dns).Append("\n"); + sb.Append(" Dnszone: ").Append(Dnszone).Append("\n"); + sb.Append(" Exitnodes: ").Append(Exitnodes).Append("\n"); + sb.Append(" ExitnodesLocalRouting: ").Append(ExitnodesLocalRouting).Append("\n"); + sb.Append(" ExitnodesPrimary: ").Append(ExitnodesPrimary).Append("\n"); + sb.Append(" Ipam: ").Append(Ipam).Append("\n"); + sb.Append(" Mac: ").Append(Mac).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Peers: ").Append(Peers).Append("\n"); + sb.Append(" Reversedns: ").Append(Reversedns).Append("\n"); + sb.Append(" RtImport: ").Append(RtImport).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" VlanProtocol: ").Append(VlanProtocol).Append("\n"); + sb.Append(" VrfVxlan: ").Append(VrfVxlan).Append("\n"); + sb.Append(" VxlanPort: ").Append(VxlanPort).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnDns200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnDns200Response.cs new file mode 100644 index 0000000..81197f3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnDns200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnDns200Response + /// + [DataContract(Name = "getClusterSdnDns_200_response")] + public partial class GetClusterSdnDns200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnDns200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnDns200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnDns200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterSdnDns200ResponseDataInner.cs new file mode 100644 index 0000000..8ea2691 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnDns200ResponseDataInner.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnDns200ResponseDataInner + /// + [DataContract(Name = "getClusterSdnDns_200_response_data_inner")] + public partial class GetClusterSdnDns200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// dns. + /// type. + public GetClusterSdnDns200ResponseDataInner(string dns = default(string), string type = default(string)) + { + this.Dns = dns; + this.Type = type; + } + + /// + /// Gets or Sets Dns + /// + [DataMember(Name = "dns", EmitDefaultValue = false)] + public string Dns { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnDns200ResponseDataInner {\n"); + sb.Append(" Dns: ").Append(Dns).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabrics200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabrics200Response.cs new file mode 100644 index 0000000..a21618b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabrics200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabrics200Response + /// + [DataContract(Name = "getClusterSdnFabrics_200_response")] + public partial class GetClusterSdnFabrics200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnFabrics200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabrics200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabrics200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabrics200ResponseDataInner.cs new file mode 100644 index 0000000..d5c5688 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabrics200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabrics200ResponseDataInner + /// + [DataContract(Name = "getClusterSdnFabrics_200_response_data_inner")] + public partial class GetClusterSdnFabrics200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// subdir. + public GetClusterSdnFabrics200ResponseDataInner(string subdir = default(string)) + { + this.Subdir = subdir; + } + + /// + /// Gets or Sets Subdir + /// + [DataMember(Name = "subdir", EmitDefaultValue = false)] + public string Subdir { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabrics200ResponseDataInner {\n"); + sb.Append(" Subdir: ").Append(Subdir).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabricsAll200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabricsAll200Response.cs new file mode 100644 index 0000000..523a241 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabricsAll200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabricsAll200Response + /// + [DataContract(Name = "getClusterSdnFabricsAll_200_response")] + public partial class GetClusterSdnFabricsAll200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnFabricsAll200Response(List errors = default(List), GetClusterSdnFabricsAll200ResponseData data = default(GetClusterSdnFabricsAll200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterSdnFabricsAll200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabricsAll200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabricsAll200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabricsAll200ResponseData.cs new file mode 100644 index 0000000..c6f6370 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabricsAll200ResponseData.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabricsAll200ResponseData + /// + [DataContract(Name = "getClusterSdnFabricsAll_200_response_data")] + public partial class GetClusterSdnFabricsAll200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// fabrics. + /// nodes. + public GetClusterSdnFabricsAll200ResponseData(List fabrics = default(List), List nodes = default(List)) + { + this.Fabrics = fabrics; + this.Nodes = nodes; + } + + /// + /// Gets or Sets Fabrics + /// + [DataMember(Name = "fabrics", EmitDefaultValue = false)] + public List Fabrics { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public List Nodes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabricsAll200ResponseData {\n"); + sb.Append(" Fabrics: ").Append(Fabrics).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabric200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabric200Response.cs new file mode 100644 index 0000000..c2a0d3b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabric200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabricsFabric200Response + /// + [DataContract(Name = "getClusterSdnFabricsFabric_200_response")] + public partial class GetClusterSdnFabricsFabric200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnFabricsFabric200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabricsFabric200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabric200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabric200ResponseDataInner.cs new file mode 100644 index 0000000..e248cd4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabric200ResponseDataInner.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabricsFabric200ResponseDataInner + /// + [DataContract(Name = "getClusterSdnFabricsFabric_200_response_data_inner")] + public partial class GetClusterSdnFabricsFabric200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// OSPF area. Either a IPv4 address or a 32-bit number. Gets validated in rust.. + /// The csnp_interval property for Openfabric. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// The hello_interval property for Openfabric. + /// Identifier for SDN fabrics. + /// The IP prefix for Node IPs. + /// The IP prefix for Node IPs. + /// the token for unlocking the global SDN configuration. + /// Type of configuration entry in an SDN Fabric section config. + public GetClusterSdnFabricsFabric200ResponseDataInner(string area = default(string), decimal csnpInterval = default(decimal), string digest = default(string), decimal helloInterval = default(decimal), string id = default(string), string ip6Prefix = default(string), string ipPrefix = default(string), string lockToken = default(string), string protocol = default(string)) + { + this.Area = area; + this.CsnpInterval = csnpInterval; + this.Digest = digest; + this.HelloInterval = helloInterval; + this.Id = id; + this.Ip6Prefix = ip6Prefix; + this.IpPrefix = ipPrefix; + this.LockToken = lockToken; + this.Protocol = protocol; + } + + /// + /// OSPF area. Either a IPv4 address or a 32-bit number. Gets validated in rust. + /// + /// OSPF area. Either a IPv4 address or a 32-bit number. Gets validated in rust. + [DataMember(Name = "area", EmitDefaultValue = false)] + public string Area { get; set; } + + /// + /// The csnp_interval property for Openfabric + /// + /// The csnp_interval property for Openfabric + [DataMember(Name = "csnp_interval", EmitDefaultValue = false)] + public decimal CsnpInterval { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// The hello_interval property for Openfabric + /// + /// The hello_interval property for Openfabric + [DataMember(Name = "hello_interval", EmitDefaultValue = false)] + public decimal HelloInterval { get; set; } + + /// + /// Identifier for SDN fabrics + /// + /// Identifier for SDN fabrics + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// The IP prefix for Node IPs + /// + /// The IP prefix for Node IPs + [DataMember(Name = "ip6_prefix", EmitDefaultValue = false)] + public string Ip6Prefix { get; set; } + + /// + /// The IP prefix for Node IPs + /// + /// The IP prefix for Node IPs + [DataMember(Name = "ip_prefix", EmitDefaultValue = false)] + public string IpPrefix { get; set; } + + /// + /// the token for unlocking the global SDN configuration + /// + /// the token for unlocking the global SDN configuration + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Type of configuration entry in an SDN Fabric section config + /// + /// Type of configuration entry in an SDN Fabric section config + [DataMember(Name = "protocol", EmitDefaultValue = false)] + public string Protocol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabricsFabric200ResponseDataInner {\n"); + sb.Append(" Area: ").Append(Area).Append("\n"); + sb.Append(" CsnpInterval: ").Append(CsnpInterval).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" HelloInterval: ").Append(HelloInterval).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Ip6Prefix: ").Append(Ip6Prefix).Append("\n"); + sb.Append(" IpPrefix: ").Append(IpPrefix).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Protocol: ").Append(Protocol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabricSingle200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabricSingle200Response.cs new file mode 100644 index 0000000..e3eacf3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabricsFabricSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabricsFabricSingle200Response + /// + [DataContract(Name = "getClusterSdnFabricsFabricSingle_200_response")] + public partial class GetClusterSdnFabricsFabricSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnFabricsFabricSingle200Response(List errors = default(List), GetClusterSdnFabricsFabric200ResponseDataInner data = default(GetClusterSdnFabricsFabric200ResponseDataInner)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterSdnFabricsFabric200ResponseDataInner Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabricsFabricSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabricsNode200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabricsNode200Response.cs new file mode 100644 index 0000000..f4ff47a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabricsNode200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabricsNode200Response + /// + [DataContract(Name = "getClusterSdnFabricsNode_200_response")] + public partial class GetClusterSdnFabricsNode200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnFabricsNode200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabricsNode200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnFabricsNode200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterSdnFabricsNode200ResponseDataInner.cs new file mode 100644 index 0000000..8373ec9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnFabricsNode200ResponseDataInner.cs @@ -0,0 +1,153 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnFabricsNode200ResponseDataInner + /// + [DataContract(Name = "getClusterSdnFabricsNode_200_response_data_inner")] + public partial class GetClusterSdnFabricsNode200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + /// Identifier for SDN fabrics. + /// interfaces. + /// IPv4 address for this node. + /// IPv6 address for this node. + /// the token for unlocking the global SDN configuration. + /// Identifier for nodes in an SDN fabric. + /// Type of configuration entry in an SDN Fabric section config. + public GetClusterSdnFabricsNode200ResponseDataInner(string digest = default(string), string fabricId = default(string), List interfaces = default(List), string ip = default(string), string ip6 = default(string), string lockToken = default(string), string nodeId = default(string), string protocol = default(string)) + { + this.Digest = digest; + this.FabricId = fabricId; + this.Interfaces = interfaces; + this.Ip = ip; + this.Ip6 = ip6; + this.LockToken = lockToken; + this.NodeId = nodeId; + this.Protocol = protocol; + } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Identifier for SDN fabrics + /// + /// Identifier for SDN fabrics + [DataMember(Name = "fabric_id", EmitDefaultValue = false)] + public string FabricId { get; set; } + + /// + /// Gets or Sets Interfaces + /// + [DataMember(Name = "interfaces", EmitDefaultValue = false)] + public List Interfaces { get; set; } + + /// + /// IPv4 address for this node + /// + /// IPv4 address for this node + [DataMember(Name = "ip", EmitDefaultValue = false)] + public string Ip { get; set; } + + /// + /// IPv6 address for this node + /// + /// IPv6 address for this node + [DataMember(Name = "ip6", EmitDefaultValue = false)] + public string Ip6 { get; set; } + + /// + /// the token for unlocking the global SDN configuration + /// + /// the token for unlocking the global SDN configuration + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Identifier for nodes in an SDN fabric + /// + /// Identifier for nodes in an SDN fabric + [DataMember(Name = "node_id", EmitDefaultValue = false)] + public string NodeId { get; set; } + + /// + /// Type of configuration entry in an SDN Fabric section config + /// + /// Type of configuration entry in an SDN Fabric section config + [DataMember(Name = "protocol", EmitDefaultValue = false)] + public string Protocol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnFabricsNode200ResponseDataInner {\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" FabricId: ").Append(FabricId).Append("\n"); + sb.Append(" Interfaces: ").Append(Interfaces).Append("\n"); + sb.Append(" Ip: ").Append(Ip).Append("\n"); + sb.Append(" Ip6: ").Append(Ip6).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" NodeId: ").Append(NodeId).Append("\n"); + sb.Append(" Protocol: ").Append(Protocol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnIpams200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnIpams200Response.cs new file mode 100644 index 0000000..952621e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnIpams200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnIpams200Response + /// + [DataContract(Name = "getClusterSdnIpams_200_response")] + public partial class GetClusterSdnIpams200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnIpams200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnIpams200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnIpams200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterSdnIpams200ResponseDataInner.cs new file mode 100644 index 0000000..fbb3a65 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnIpams200ResponseDataInner.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnIpams200ResponseDataInner + /// + [DataContract(Name = "getClusterSdnIpams_200_response_data_inner")] + public partial class GetClusterSdnIpams200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// ipam. + /// type. + public GetClusterSdnIpams200ResponseDataInner(string ipam = default(string), string type = default(string)) + { + this.Ipam = ipam; + this.Type = type; + } + + /// + /// Gets or Sets Ipam + /// + [DataMember(Name = "ipam", EmitDefaultValue = false)] + public string Ipam { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnIpams200ResponseDataInner {\n"); + sb.Append(" Ipam: ").Append(Ipam).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnIpamsSingleStatus200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnIpamsSingleStatus200Response.cs new file mode 100644 index 0000000..6334d9f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnIpamsSingleStatus200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnIpamsSingleStatus200Response + /// + [DataContract(Name = "getClusterSdnIpamsSingleStatus_200_response")] + public partial class GetClusterSdnIpamsSingleStatus200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnIpamsSingleStatus200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnIpamsSingleStatus200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnVnetsSingleFirewallOptions200Response.cs b/src/ProxmoxSharp/Model/GetClusterSdnVnetsSingleFirewallOptions200Response.cs new file mode 100644 index 0000000..dc6434e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnVnetsSingleFirewallOptions200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnVnetsSingleFirewallOptions200Response + /// + [DataContract(Name = "getClusterSdnVnetsSingleFirewallOptions_200_response")] + public partial class GetClusterSdnVnetsSingleFirewallOptions200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterSdnVnetsSingleFirewallOptions200Response(List errors = default(List), GetClusterSdnVnetsSingleFirewallOptions200ResponseData data = default(GetClusterSdnVnetsSingleFirewallOptions200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetClusterSdnVnetsSingleFirewallOptions200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnVnetsSingleFirewallOptions200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterSdnVnetsSingleFirewallOptions200ResponseData.cs b/src/ProxmoxSharp/Model/GetClusterSdnVnetsSingleFirewallOptions200ResponseData.cs new file mode 100644 index 0000000..b305a18 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterSdnVnetsSingleFirewallOptions200ResponseData.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterSdnVnetsSingleFirewallOptions200ResponseData + /// + [DataContract(Name = "getClusterSdnVnetsSingleFirewallOptions_200_response_data")] + public partial class GetClusterSdnVnetsSingleFirewallOptions200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Enable/disable firewall rules.. + /// Log level for forwarded traffic.. + /// Forward policy.. + public GetClusterSdnVnetsSingleFirewallOptions200ResponseData(Int64 enable = default(Int64), string logLevelForward = default(string), string policyForward = default(string)) + { + this.Enable = enable; + this.LogLevelForward = logLevelForward; + this.PolicyForward = policyForward; + } + + /// + /// Enable/disable firewall rules. + /// + /// Enable/disable firewall rules. + [DataMember(Name = "enable", EmitDefaultValue = false)] + public Int64 Enable { get; set; } + + /// + /// Log level for forwarded traffic. + /// + /// Log level for forwarded traffic. + [DataMember(Name = "log_level_forward", EmitDefaultValue = false)] + public string LogLevelForward { get; set; } + + /// + /// Forward policy. + /// + /// Forward policy. + [DataMember(Name = "policy_forward", EmitDefaultValue = false)] + public string PolicyForward { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterSdnVnetsSingleFirewallOptions200ResponseData {\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" LogLevelForward: ").Append(LogLevelForward).Append("\n"); + sb.Append(" PolicyForward: ").Append(PolicyForward).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterStatus200Response.cs b/src/ProxmoxSharp/Model/GetClusterStatus200Response.cs new file mode 100644 index 0000000..0964062 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterStatus200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterStatus200Response + /// + [DataContract(Name = "getClusterStatus_200_response")] + public partial class GetClusterStatus200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterStatus200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterStatus200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterStatus200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterStatus200ResponseDataInner.cs new file mode 100644 index 0000000..fad2507 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterStatus200ResponseDataInner.cs @@ -0,0 +1,182 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterStatus200ResponseDataInner + /// + [DataContract(Name = "getClusterStatus_200_response_data_inner")] + public partial class GetClusterStatus200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// [node] IP of the resolved nodename.. + /// [node] Proxmox VE Subscription level, indicates if eligible for enterprise support as well as access to the stable Proxmox VE Enterprise Repository.. + /// [node] Indicates if this is the responding node.. + /// name. + /// [node] ID of the node from the corosync configuration.. + /// [cluster] Nodes count, including offline nodes.. + /// [node] Indicates if the node is online or offline.. + /// [cluster] Indicates if there is a majority of nodes online to make decisions. + /// Indicates the type, either cluster or node. The type defines the object properties e.g. quorate available for type cluster.. + /// [cluster] Current version of the corosync configuration file.. + public GetClusterStatus200ResponseDataInner(string id = default(string), string ip = default(string), string level = default(string), Int64 local = default(Int64), string name = default(string), Int64 nodeid = default(Int64), Int64 nodes = default(Int64), Int64 online = default(Int64), Int64 quorate = default(Int64), string type = default(string), Int64 varVersion = default(Int64)) + { + this.Id = id; + this.Ip = ip; + this.Level = level; + this.Local = local; + this.Name = name; + this.Nodeid = nodeid; + this.Nodes = nodes; + this.Online = online; + this.Quorate = quorate; + this.Type = type; + this.VarVersion = varVersion; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// [node] IP of the resolved nodename. + /// + /// [node] IP of the resolved nodename. + [DataMember(Name = "ip", EmitDefaultValue = false)] + public string Ip { get; set; } + + /// + /// [node] Proxmox VE Subscription level, indicates if eligible for enterprise support as well as access to the stable Proxmox VE Enterprise Repository. + /// + /// [node] Proxmox VE Subscription level, indicates if eligible for enterprise support as well as access to the stable Proxmox VE Enterprise Repository. + [DataMember(Name = "level", EmitDefaultValue = false)] + public string Level { get; set; } + + /// + /// [node] Indicates if this is the responding node. + /// + /// [node] Indicates if this is the responding node. + [DataMember(Name = "local", EmitDefaultValue = false)] + public Int64 Local { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// [node] ID of the node from the corosync configuration. + /// + /// [node] ID of the node from the corosync configuration. + [DataMember(Name = "nodeid", EmitDefaultValue = false)] + public Int64 Nodeid { get; set; } + + /// + /// [cluster] Nodes count, including offline nodes. + /// + /// [cluster] Nodes count, including offline nodes. + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public Int64 Nodes { get; set; } + + /// + /// [node] Indicates if the node is online or offline. + /// + /// [node] Indicates if the node is online or offline. + [DataMember(Name = "online", EmitDefaultValue = false)] + public Int64 Online { get; set; } + + /// + /// [cluster] Indicates if there is a majority of nodes online to make decisions + /// + /// [cluster] Indicates if there is a majority of nodes online to make decisions + [DataMember(Name = "quorate", EmitDefaultValue = false)] + public Int64 Quorate { get; set; } + + /// + /// Indicates the type, either cluster or node. The type defines the object properties e.g. quorate available for type cluster. + /// + /// Indicates the type, either cluster or node. The type defines the object properties e.g. quorate available for type cluster. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// [cluster] Current version of the corosync configuration file. + /// + /// [cluster] Current version of the corosync configuration file. + [DataMember(Name = "version", EmitDefaultValue = false)] + public Int64 VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterStatus200ResponseDataInner {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Ip: ").Append(Ip).Append("\n"); + sb.Append(" Level: ").Append(Level).Append("\n"); + sb.Append(" Local: ").Append(Local).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Nodeid: ").Append(Nodeid).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Online: ").Append(Online).Append("\n"); + sb.Append(" Quorate: ").Append(Quorate).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterTasks200Response.cs b/src/ProxmoxSharp/Model/GetClusterTasks200Response.cs new file mode 100644 index 0000000..6251c80 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterTasks200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterTasks200Response + /// + [DataContract(Name = "getClusterTasks_200_response")] + public partial class GetClusterTasks200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetClusterTasks200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterTasks200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetClusterTasks200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetClusterTasks200ResponseDataInner.cs new file mode 100644 index 0000000..1886588 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetClusterTasks200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetClusterTasks200ResponseDataInner + /// + [DataContract(Name = "getClusterTasks_200_response_data_inner")] + public partial class GetClusterTasks200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// upid. + public GetClusterTasks200ResponseDataInner(string upid = default(string)) + { + this.Upid = upid; + } + + /// + /// Gets or Sets Upid + /// + [DataMember(Name = "upid", EmitDefaultValue = false)] + public string Upid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetClusterTasks200ResponseDataInner {\n"); + sb.Append(" Upid: ").Append(Upid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetCurrentVMStatus200Response.cs b/src/ProxmoxSharp/Model/GetCurrentVMStatus200Response.cs new file mode 100644 index 0000000..7cac0c5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetCurrentVMStatus200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetCurrentVMStatus200Response + /// + [DataContract(Name = "getCurrentVMStatus_200_response")] + public partial class GetCurrentVMStatus200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetCurrentVMStatus200Response(List errors = default(List), GetCurrentVMStatus200ResponseData data = default(GetCurrentVMStatus200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetCurrentVMStatus200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetCurrentVMStatus200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetCurrentVMStatus200ResponseData.cs b/src/ProxmoxSharp/Model/GetCurrentVMStatus200ResponseData.cs new file mode 100644 index 0000000..757a7c1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetCurrentVMStatus200ResponseData.cs @@ -0,0 +1,394 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetCurrentVMStatus200ResponseData + /// + [DataContract(Name = "getCurrentVMStatus_200_response_data")] + public partial class GetCurrentVMStatus200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// QEMU Guest Agent is enabled in config.. + /// Enable a specific clipboard. If not set, depending on the display type the SPICE one will be added.. + /// Current CPU usage.. + /// Maximum usable CPUs.. + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.). + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.). + /// HA manager service status.. + /// The current config lock, if any.. + /// Root disk size in bytes.. + /// Maximum memory in bytes.. + /// Currently used memory in bytes.. + /// Current memory usage on the host.. + /// VM (host)name.. + /// The amount of traffic in bytes that was sent to the guest over the network since it was started.. + /// The amount of traffic in bytes that was sent from the guest over the network since it was started.. + /// PID of the QEMU process, if the VM is running.. + /// CPU Full pressure stall average over the last 10 seconds.. + /// CPU Some pressure stall average over the last 10 seconds.. + /// IO Full pressure stall average over the last 10 seconds.. + /// IO Some pressure stall average over the last 10 seconds.. + /// Memory Full pressure stall average over the last 10 seconds.. + /// Memory Some pressure stall average over the last 10 seconds.. + /// VM run state from the 'query-status' QMP monitor command.. + /// The currently running machine type (if running).. + /// The QEMU version the VM is currently using (if running).. + /// Guest has serial device configured.. + /// QEMU VGA configuration supports spice.. + /// QEMU process status.. + /// The current configured tags, if any. + /// Determines if the guest is a template.. + /// Uptime in seconds.. + /// The (unique) ID of the VM.. + public GetCurrentVMStatus200ResponseData(Int64 agent = default(Int64), string clipboard = default(string), decimal cpu = default(decimal), decimal cpus = default(decimal), Int64 diskread = default(Int64), Int64 diskwrite = default(Int64), Object ha = default(Object), string varLock = default(string), Int64 maxdisk = default(Int64), Int64 maxmem = default(Int64), Int64 mem = default(Int64), Int64 memhost = default(Int64), string name = default(string), Int64 netin = default(Int64), Int64 netout = default(Int64), Int64 pid = default(Int64), decimal pressurecpufull = default(decimal), decimal pressurecpusome = default(decimal), decimal pressureiofull = default(decimal), decimal pressureiosome = default(decimal), decimal pressurememoryfull = default(decimal), decimal pressurememorysome = default(decimal), string qmpstatus = default(string), string runningMachine = default(string), string runningQemu = default(string), Int64 serial = default(Int64), Int64 spice = default(Int64), string status = default(string), string tags = default(string), Int64 template = default(Int64), Int64 uptime = default(Int64), Int64 vmid = default(Int64)) + { + this.Agent = agent; + this.Clipboard = clipboard; + this.Cpu = cpu; + this.Cpus = cpus; + this.Diskread = diskread; + this.Diskwrite = diskwrite; + this.Ha = ha; + this.Lock = varLock; + this.Maxdisk = maxdisk; + this.Maxmem = maxmem; + this.Mem = mem; + this.Memhost = memhost; + this.Name = name; + this.Netin = netin; + this.Netout = netout; + this.Pid = pid; + this.Pressurecpufull = pressurecpufull; + this.Pressurecpusome = pressurecpusome; + this.Pressureiofull = pressureiofull; + this.Pressureiosome = pressureiosome; + this.Pressurememoryfull = pressurememoryfull; + this.Pressurememorysome = pressurememorysome; + this.Qmpstatus = qmpstatus; + this.RunningMachine = runningMachine; + this.RunningQemu = runningQemu; + this.Serial = serial; + this.Spice = spice; + this.Status = status; + this.Tags = tags; + this.Template = template; + this.Uptime = uptime; + this.Vmid = vmid; + } + + /// + /// QEMU Guest Agent is enabled in config. + /// + /// QEMU Guest Agent is enabled in config. + [DataMember(Name = "agent", EmitDefaultValue = false)] + public Int64 Agent { get; set; } + + /// + /// Enable a specific clipboard. If not set, depending on the display type the SPICE one will be added. + /// + /// Enable a specific clipboard. If not set, depending on the display type the SPICE one will be added. + [DataMember(Name = "clipboard", EmitDefaultValue = false)] + public string Clipboard { get; set; } + + /// + /// Current CPU usage. + /// + /// Current CPU usage. + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public decimal Cpu { get; set; } + + /// + /// Maximum usable CPUs. + /// + /// Maximum usable CPUs. + [DataMember(Name = "cpus", EmitDefaultValue = false)] + public decimal Cpus { get; set; } + + /// + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + /// + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + [DataMember(Name = "diskread", EmitDefaultValue = false)] + public Int64 Diskread { get; set; } + + /// + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + /// + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + [DataMember(Name = "diskwrite", EmitDefaultValue = false)] + public Int64 Diskwrite { get; set; } + + /// + /// HA manager service status. + /// + /// HA manager service status. + [DataMember(Name = "ha", EmitDefaultValue = false)] + public Object Ha { get; set; } + + /// + /// The current config lock, if any. + /// + /// The current config lock, if any. + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Root disk size in bytes. + /// + /// Root disk size in bytes. + [DataMember(Name = "maxdisk", EmitDefaultValue = false)] + public Int64 Maxdisk { get; set; } + + /// + /// Maximum memory in bytes. + /// + /// Maximum memory in bytes. + [DataMember(Name = "maxmem", EmitDefaultValue = false)] + public Int64 Maxmem { get; set; } + + /// + /// Currently used memory in bytes. + /// + /// Currently used memory in bytes. + [DataMember(Name = "mem", EmitDefaultValue = false)] + public Int64 Mem { get; set; } + + /// + /// Current memory usage on the host. + /// + /// Current memory usage on the host. + [DataMember(Name = "memhost", EmitDefaultValue = false)] + public Int64 Memhost { get; set; } + + /// + /// VM (host)name. + /// + /// VM (host)name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. + [DataMember(Name = "netin", EmitDefaultValue = false)] + public Int64 Netin { get; set; } + + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. + [DataMember(Name = "netout", EmitDefaultValue = false)] + public Int64 Netout { get; set; } + + /// + /// PID of the QEMU process, if the VM is running. + /// + /// PID of the QEMU process, if the VM is running. + [DataMember(Name = "pid", EmitDefaultValue = false)] + public Int64 Pid { get; set; } + + /// + /// CPU Full pressure stall average over the last 10 seconds. + /// + /// CPU Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurecpufull", EmitDefaultValue = false)] + public decimal Pressurecpufull { get; set; } + + /// + /// CPU Some pressure stall average over the last 10 seconds. + /// + /// CPU Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurecpusome", EmitDefaultValue = false)] + public decimal Pressurecpusome { get; set; } + + /// + /// IO Full pressure stall average over the last 10 seconds. + /// + /// IO Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressureiofull", EmitDefaultValue = false)] + public decimal Pressureiofull { get; set; } + + /// + /// IO Some pressure stall average over the last 10 seconds. + /// + /// IO Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressureiosome", EmitDefaultValue = false)] + public decimal Pressureiosome { get; set; } + + /// + /// Memory Full pressure stall average over the last 10 seconds. + /// + /// Memory Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurememoryfull", EmitDefaultValue = false)] + public decimal Pressurememoryfull { get; set; } + + /// + /// Memory Some pressure stall average over the last 10 seconds. + /// + /// Memory Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurememorysome", EmitDefaultValue = false)] + public decimal Pressurememorysome { get; set; } + + /// + /// VM run state from the 'query-status' QMP monitor command. + /// + /// VM run state from the 'query-status' QMP monitor command. + [DataMember(Name = "qmpstatus", EmitDefaultValue = false)] + public string Qmpstatus { get; set; } + + /// + /// The currently running machine type (if running). + /// + /// The currently running machine type (if running). + [DataMember(Name = "running-machine", EmitDefaultValue = false)] + public string RunningMachine { get; set; } + + /// + /// The QEMU version the VM is currently using (if running). + /// + /// The QEMU version the VM is currently using (if running). + [DataMember(Name = "running-qemu", EmitDefaultValue = false)] + public string RunningQemu { get; set; } + + /// + /// Guest has serial device configured. + /// + /// Guest has serial device configured. + [DataMember(Name = "serial", EmitDefaultValue = false)] + public Int64 Serial { get; set; } + + /// + /// QEMU VGA configuration supports spice. + /// + /// QEMU VGA configuration supports spice. + [DataMember(Name = "spice", EmitDefaultValue = false)] + public Int64 Spice { get; set; } + + /// + /// QEMU process status. + /// + /// QEMU process status. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// The current configured tags, if any + /// + /// The current configured tags, if any + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Determines if the guest is a template. + /// + /// Determines if the guest is a template. + [DataMember(Name = "template", EmitDefaultValue = false)] + public Int64 Template { get; set; } + + /// + /// Uptime in seconds. + /// + /// Uptime in seconds. + [DataMember(Name = "uptime", EmitDefaultValue = false)] + public Int64 Uptime { get; set; } + + /// + /// The (unique) ID of the VM. + /// + /// The (unique) ID of the VM. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetCurrentVMStatus200ResponseData {\n"); + sb.Append(" Agent: ").Append(Agent).Append("\n"); + sb.Append(" Clipboard: ").Append(Clipboard).Append("\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpus: ").Append(Cpus).Append("\n"); + sb.Append(" Diskread: ").Append(Diskread).Append("\n"); + sb.Append(" Diskwrite: ").Append(Diskwrite).Append("\n"); + sb.Append(" Ha: ").Append(Ha).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Maxdisk: ").Append(Maxdisk).Append("\n"); + sb.Append(" Maxmem: ").Append(Maxmem).Append("\n"); + sb.Append(" Mem: ").Append(Mem).Append("\n"); + sb.Append(" Memhost: ").Append(Memhost).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Netin: ").Append(Netin).Append("\n"); + sb.Append(" Netout: ").Append(Netout).Append("\n"); + sb.Append(" Pid: ").Append(Pid).Append("\n"); + sb.Append(" Pressurecpufull: ").Append(Pressurecpufull).Append("\n"); + sb.Append(" Pressurecpusome: ").Append(Pressurecpusome).Append("\n"); + sb.Append(" Pressureiofull: ").Append(Pressureiofull).Append("\n"); + sb.Append(" Pressureiosome: ").Append(Pressureiosome).Append("\n"); + sb.Append(" Pressurememoryfull: ").Append(Pressurememoryfull).Append("\n"); + sb.Append(" Pressurememorysome: ").Append(Pressurememorysome).Append("\n"); + sb.Append(" Qmpstatus: ").Append(Qmpstatus).Append("\n"); + sb.Append(" RunningMachine: ").Append(RunningMachine).Append("\n"); + sb.Append(" RunningQemu: ").Append(RunningQemu).Append("\n"); + sb.Append(" Serial: ").Append(Serial).Append("\n"); + sb.Append(" Spice: ").Append(Spice).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Uptime: ").Append(Uptime).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeFirewallOptions200Response.cs b/src/ProxmoxSharp/Model/GetNodeFirewallOptions200Response.cs new file mode 100644 index 0000000..33d2e49 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeFirewallOptions200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeFirewallOptions200Response + /// + [DataContract(Name = "getNodeFirewallOptions_200_response")] + public partial class GetNodeFirewallOptions200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodeFirewallOptions200Response(List errors = default(List), GetNodeFirewallOptions200ResponseData data = default(GetNodeFirewallOptions200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodeFirewallOptions200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeFirewallOptions200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeFirewallOptions200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodeFirewallOptions200ResponseData.cs new file mode 100644 index 0000000..bb32ae9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeFirewallOptions200ResponseData.cs @@ -0,0 +1,264 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeFirewallOptions200ResponseData + /// + [DataContract(Name = "getNodeFirewallOptions_200_response_data")] + public partial class GetNodeFirewallOptions200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Enable host firewall rules.. + /// Log level for forwarded traffic.. + /// Log level for incoming traffic.. + /// Log level for outgoing traffic.. + /// Enable logging of conntrack information.. + /// Enable NDP (Neighbor Discovery Protocol).. + /// Allow invalid packets on connection tracking.. + /// Enable conntrack helpers for specific protocols. Supported protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, snmp, tftp. + /// Maximum number of tracked connections.. + /// Conntrack established timeout.. + /// Conntrack syn recv timeout.. + /// Enable nftables based firewall (tech preview). + /// Enable SMURFS filter.. + /// Enable synflood protection. + /// Synflood protection rate burst by ip src.. + /// Synflood protection rate syn/sec by ip src.. + /// Log level for SMURFS filter.. + /// Log level for illegal tcp flags filter.. + /// Filter illegal combinations of TCP flags.. + public GetNodeFirewallOptions200ResponseData(Int64 enable = default(Int64), string logLevelForward = default(string), string logLevelIn = default(string), string logLevelOut = default(string), Int64 logNfConntrack = default(Int64), Int64 ndp = default(Int64), Int64 nfConntrackAllowInvalid = default(Int64), string nfConntrackHelpers = default(string), Int64 nfConntrackMax = default(Int64), Int64 nfConntrackTcpTimeoutEstablished = default(Int64), Int64 nfConntrackTcpTimeoutSynRecv = default(Int64), Int64 nftables = default(Int64), Int64 nosmurfs = default(Int64), Int64 protectionSynflood = default(Int64), Int64 protectionSynfloodBurst = default(Int64), Int64 protectionSynfloodRate = default(Int64), string smurfLogLevel = default(string), string tcpFlagsLogLevel = default(string), Int64 tcpflags = default(Int64)) + { + this.Enable = enable; + this.LogLevelForward = logLevelForward; + this.LogLevelIn = logLevelIn; + this.LogLevelOut = logLevelOut; + this.LogNfConntrack = logNfConntrack; + this.Ndp = ndp; + this.NfConntrackAllowInvalid = nfConntrackAllowInvalid; + this.NfConntrackHelpers = nfConntrackHelpers; + this.NfConntrackMax = nfConntrackMax; + this.NfConntrackTcpTimeoutEstablished = nfConntrackTcpTimeoutEstablished; + this.NfConntrackTcpTimeoutSynRecv = nfConntrackTcpTimeoutSynRecv; + this.Nftables = nftables; + this.Nosmurfs = nosmurfs; + this.ProtectionSynflood = protectionSynflood; + this.ProtectionSynfloodBurst = protectionSynfloodBurst; + this.ProtectionSynfloodRate = protectionSynfloodRate; + this.SmurfLogLevel = smurfLogLevel; + this.TcpFlagsLogLevel = tcpFlagsLogLevel; + this.Tcpflags = tcpflags; + } + + /// + /// Enable host firewall rules. + /// + /// Enable host firewall rules. + [DataMember(Name = "enable", EmitDefaultValue = false)] + public Int64 Enable { get; set; } + + /// + /// Log level for forwarded traffic. + /// + /// Log level for forwarded traffic. + [DataMember(Name = "log_level_forward", EmitDefaultValue = false)] + public string LogLevelForward { get; set; } + + /// + /// Log level for incoming traffic. + /// + /// Log level for incoming traffic. + [DataMember(Name = "log_level_in", EmitDefaultValue = false)] + public string LogLevelIn { get; set; } + + /// + /// Log level for outgoing traffic. + /// + /// Log level for outgoing traffic. + [DataMember(Name = "log_level_out", EmitDefaultValue = false)] + public string LogLevelOut { get; set; } + + /// + /// Enable logging of conntrack information. + /// + /// Enable logging of conntrack information. + [DataMember(Name = "log_nf_conntrack", EmitDefaultValue = false)] + public Int64 LogNfConntrack { get; set; } + + /// + /// Enable NDP (Neighbor Discovery Protocol). + /// + /// Enable NDP (Neighbor Discovery Protocol). + [DataMember(Name = "ndp", EmitDefaultValue = false)] + public Int64 Ndp { get; set; } + + /// + /// Allow invalid packets on connection tracking. + /// + /// Allow invalid packets on connection tracking. + [DataMember(Name = "nf_conntrack_allow_invalid", EmitDefaultValue = false)] + public Int64 NfConntrackAllowInvalid { get; set; } + + /// + /// Enable conntrack helpers for specific protocols. Supported protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, snmp, tftp + /// + /// Enable conntrack helpers for specific protocols. Supported protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, snmp, tftp + [DataMember(Name = "nf_conntrack_helpers", EmitDefaultValue = false)] + public string NfConntrackHelpers { get; set; } + + /// + /// Maximum number of tracked connections. + /// + /// Maximum number of tracked connections. + [DataMember(Name = "nf_conntrack_max", EmitDefaultValue = false)] + public Int64 NfConntrackMax { get; set; } + + /// + /// Conntrack established timeout. + /// + /// Conntrack established timeout. + [DataMember(Name = "nf_conntrack_tcp_timeout_established", EmitDefaultValue = false)] + public Int64 NfConntrackTcpTimeoutEstablished { get; set; } + + /// + /// Conntrack syn recv timeout. + /// + /// Conntrack syn recv timeout. + [DataMember(Name = "nf_conntrack_tcp_timeout_syn_recv", EmitDefaultValue = false)] + public Int64 NfConntrackTcpTimeoutSynRecv { get; set; } + + /// + /// Enable nftables based firewall (tech preview) + /// + /// Enable nftables based firewall (tech preview) + [DataMember(Name = "nftables", EmitDefaultValue = false)] + public Int64 Nftables { get; set; } + + /// + /// Enable SMURFS filter. + /// + /// Enable SMURFS filter. + [DataMember(Name = "nosmurfs", EmitDefaultValue = false)] + public Int64 Nosmurfs { get; set; } + + /// + /// Enable synflood protection + /// + /// Enable synflood protection + [DataMember(Name = "protection_synflood", EmitDefaultValue = false)] + public Int64 ProtectionSynflood { get; set; } + + /// + /// Synflood protection rate burst by ip src. + /// + /// Synflood protection rate burst by ip src. + [DataMember(Name = "protection_synflood_burst", EmitDefaultValue = false)] + public Int64 ProtectionSynfloodBurst { get; set; } + + /// + /// Synflood protection rate syn/sec by ip src. + /// + /// Synflood protection rate syn/sec by ip src. + [DataMember(Name = "protection_synflood_rate", EmitDefaultValue = false)] + public Int64 ProtectionSynfloodRate { get; set; } + + /// + /// Log level for SMURFS filter. + /// + /// Log level for SMURFS filter. + [DataMember(Name = "smurf_log_level", EmitDefaultValue = false)] + public string SmurfLogLevel { get; set; } + + /// + /// Log level for illegal tcp flags filter. + /// + /// Log level for illegal tcp flags filter. + [DataMember(Name = "tcp_flags_log_level", EmitDefaultValue = false)] + public string TcpFlagsLogLevel { get; set; } + + /// + /// Filter illegal combinations of TCP flags. + /// + /// Filter illegal combinations of TCP flags. + [DataMember(Name = "tcpflags", EmitDefaultValue = false)] + public Int64 Tcpflags { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeFirewallOptions200ResponseData {\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" LogLevelForward: ").Append(LogLevelForward).Append("\n"); + sb.Append(" LogLevelIn: ").Append(LogLevelIn).Append("\n"); + sb.Append(" LogLevelOut: ").Append(LogLevelOut).Append("\n"); + sb.Append(" LogNfConntrack: ").Append(LogNfConntrack).Append("\n"); + sb.Append(" Ndp: ").Append(Ndp).Append("\n"); + sb.Append(" NfConntrackAllowInvalid: ").Append(NfConntrackAllowInvalid).Append("\n"); + sb.Append(" NfConntrackHelpers: ").Append(NfConntrackHelpers).Append("\n"); + sb.Append(" NfConntrackMax: ").Append(NfConntrackMax).Append("\n"); + sb.Append(" NfConntrackTcpTimeoutEstablished: ").Append(NfConntrackTcpTimeoutEstablished).Append("\n"); + sb.Append(" NfConntrackTcpTimeoutSynRecv: ").Append(NfConntrackTcpTimeoutSynRecv).Append("\n"); + sb.Append(" Nftables: ").Append(Nftables).Append("\n"); + sb.Append(" Nosmurfs: ").Append(Nosmurfs).Append("\n"); + sb.Append(" ProtectionSynflood: ").Append(ProtectionSynflood).Append("\n"); + sb.Append(" ProtectionSynfloodBurst: ").Append(ProtectionSynfloodBurst).Append("\n"); + sb.Append(" ProtectionSynfloodRate: ").Append(ProtectionSynfloodRate).Append("\n"); + sb.Append(" SmurfLogLevel: ").Append(SmurfLogLevel).Append("\n"); + sb.Append(" TcpFlagsLogLevel: ").Append(TcpFlagsLogLevel).Append("\n"); + sb.Append(" Tcpflags: ").Append(Tcpflags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeSDNZoneContent200Response.cs b/src/ProxmoxSharp/Model/GetNodeSDNZoneContent200Response.cs new file mode 100644 index 0000000..d7364b2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeSDNZoneContent200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeSDNZoneContent200Response + /// + [DataContract(Name = "getNodeSDNZoneContent_200_response")] + public partial class GetNodeSDNZoneContent200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodeSDNZoneContent200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeSDNZoneContent200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeSDNZoneContent200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodeSDNZoneContent200ResponseDataInner.cs new file mode 100644 index 0000000..a1655c5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeSDNZoneContent200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeSDNZoneContent200ResponseDataInner + /// + [DataContract(Name = "getNodeSDNZoneContent_200_response_data_inner")] + public partial class GetNodeSDNZoneContent200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Status.. + /// Status details. + /// Vnet identifier.. + public GetNodeSDNZoneContent200ResponseDataInner(string status = default(string), string statusmsg = default(string), string vnet = default(string)) + { + this.Status = status; + this.Statusmsg = statusmsg; + this.Vnet = vnet; + } + + /// + /// Status. + /// + /// Status. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// Status details + /// + /// Status details + [DataMember(Name = "statusmsg", EmitDefaultValue = false)] + public string Statusmsg { get; set; } + + /// + /// Vnet identifier. + /// + /// Vnet identifier. + [DataMember(Name = "vnet", EmitDefaultValue = false)] + public string Vnet { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeSDNZoneContent200ResponseDataInner {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Statusmsg: ").Append(Statusmsg).Append("\n"); + sb.Append(" Vnet: ").Append(Vnet).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeSDNZones200Response.cs b/src/ProxmoxSharp/Model/GetNodeSDNZones200Response.cs new file mode 100644 index 0000000..b236e83 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeSDNZones200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeSDNZones200Response + /// + [DataContract(Name = "getNodeSDNZones_200_response")] + public partial class GetNodeSDNZones200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodeSDNZones200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeSDNZones200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeSDNZones200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodeSDNZones200ResponseDataInner.cs new file mode 100644 index 0000000..4366afa --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeSDNZones200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeSDNZones200ResponseDataInner + /// + [DataContract(Name = "getNodeSDNZones_200_response_data_inner")] + public partial class GetNodeSDNZones200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Status of zone. + /// The SDN zone object identifier.. + public GetNodeSDNZones200ResponseDataInner(string status = default(string), string zone = default(string)) + { + this.Status = status; + this.Zone = zone; + } + + /// + /// Status of zone + /// + /// Status of zone + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// The SDN zone object identifier. + /// + /// The SDN zone object identifier. + [DataMember(Name = "zone", EmitDefaultValue = false)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeSDNZones200ResponseDataInner {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeTaskStatus200Response.cs b/src/ProxmoxSharp/Model/GetNodeTaskStatus200Response.cs new file mode 100644 index 0000000..7e5b5bc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeTaskStatus200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeTaskStatus200Response + /// + [DataContract(Name = "getNodeTaskStatus_200_response")] + public partial class GetNodeTaskStatus200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodeTaskStatus200Response(List errors = default(List), GetNodeTaskStatus200ResponseData data = default(GetNodeTaskStatus200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodeTaskStatus200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeTaskStatus200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeTaskStatus200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodeTaskStatus200ResponseData.cs new file mode 100644 index 0000000..6acda76 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeTaskStatus200ResponseData.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeTaskStatus200ResponseData + /// + [DataContract(Name = "getNodeTaskStatus_200_response_data")] + public partial class GetNodeTaskStatus200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// exitstatus. + /// id. + /// node. + /// pid. + /// pstart. + /// starttime. + /// status. + /// type. + /// upid. + /// user. + public GetNodeTaskStatus200ResponseData(string exitstatus = default(string), string id = default(string), string node = default(string), Int64 pid = default(Int64), Int64 pstart = default(Int64), Int64 starttime = default(Int64), string status = default(string), string type = default(string), string upid = default(string), string user = default(string)) + { + this.Exitstatus = exitstatus; + this.Id = id; + this.Node = node; + this.Pid = pid; + this.Pstart = pstart; + this.Starttime = starttime; + this.Status = status; + this.Type = type; + this.Upid = upid; + this.User = user; + } + + /// + /// Gets or Sets Exitstatus + /// + [DataMember(Name = "exitstatus", EmitDefaultValue = false)] + public string Exitstatus { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Gets or Sets Pid + /// + [DataMember(Name = "pid", EmitDefaultValue = false)] + public Int64 Pid { get; set; } + + /// + /// Gets or Sets Pstart + /// + [DataMember(Name = "pstart", EmitDefaultValue = false)] + public Int64 Pstart { get; set; } + + /// + /// Gets or Sets Starttime + /// + [DataMember(Name = "starttime", EmitDefaultValue = false)] + public Int64 Starttime { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Gets or Sets Upid + /// + [DataMember(Name = "upid", EmitDefaultValue = false)] + public string Upid { get; set; } + + /// + /// Gets or Sets User + /// + [DataMember(Name = "user", EmitDefaultValue = false)] + public string User { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeTaskStatus200ResponseData {\n"); + sb.Append(" Exitstatus: ").Append(Exitstatus).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Pid: ").Append(Pid).Append("\n"); + sb.Append(" Pstart: ").Append(Pstart).Append("\n"); + sb.Append(" Starttime: ").Append(Starttime).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Upid: ").Append(Upid).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeTasks200Response.cs b/src/ProxmoxSharp/Model/GetNodeTasks200Response.cs new file mode 100644 index 0000000..9259388 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeTasks200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeTasks200Response + /// + [DataContract(Name = "getNodeTasks_200_response")] + public partial class GetNodeTasks200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodeTasks200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeTasks200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodeTasks200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodeTasks200ResponseDataInner.cs new file mode 100644 index 0000000..3c7091b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodeTasks200ResponseDataInner.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodeTasks200ResponseDataInner + /// + [DataContract(Name = "getNodeTasks_200_response_data_inner")] + public partial class GetNodeTasks200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// endtime. + /// id. + /// node. + /// pid. + /// pstart. + /// starttime. + /// status. + /// type. + /// upid. + /// user. + public GetNodeTasks200ResponseDataInner(Int64 endtime = default(Int64), string id = default(string), string node = default(string), Int64 pid = default(Int64), Int64 pstart = default(Int64), Int64 starttime = default(Int64), string status = default(string), string type = default(string), string upid = default(string), string user = default(string)) + { + this.Endtime = endtime; + this.Id = id; + this.Node = node; + this.Pid = pid; + this.Pstart = pstart; + this.Starttime = starttime; + this.Status = status; + this.Type = type; + this.Upid = upid; + this.User = user; + } + + /// + /// Gets or Sets Endtime + /// + [DataMember(Name = "endtime", EmitDefaultValue = false)] + public Int64 Endtime { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Gets or Sets Pid + /// + [DataMember(Name = "pid", EmitDefaultValue = false)] + public Int64 Pid { get; set; } + + /// + /// Gets or Sets Pstart + /// + [DataMember(Name = "pstart", EmitDefaultValue = false)] + public Int64 Pstart { get; set; } + + /// + /// Gets or Sets Starttime + /// + [DataMember(Name = "starttime", EmitDefaultValue = false)] + public Int64 Starttime { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Gets or Sets Upid + /// + [DataMember(Name = "upid", EmitDefaultValue = false)] + public string Upid { get; set; } + + /// + /// Gets or Sets User + /// + [DataMember(Name = "user", EmitDefaultValue = false)] + public string User { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodeTasks200ResponseDataInner {\n"); + sb.Append(" Endtime: ").Append(Endtime).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Pid: ").Append(Pid).Append("\n"); + sb.Append(" Pstart: ").Append(Pstart).Append("\n"); + sb.Append(" Starttime: ").Append(Starttime).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Upid: ").Append(Upid).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodes200Response.cs b/src/ProxmoxSharp/Model/GetNodes200Response.cs new file mode 100644 index 0000000..81c0577 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodes200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodes200Response + /// + [DataContract(Name = "getNodes_200_response")] + public partial class GetNodes200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodes200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodes200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodes200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodes200ResponseDataInner.cs new file mode 100644 index 0000000..479186a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodes200ResponseDataInner.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodes200ResponseDataInner + /// + [DataContract(Name = "getNodes_200_response_data_inner")] + public partial class GetNodes200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// CPU utilization.. + /// Support level.. + /// Number of available CPUs.. + /// Number of available memory in bytes.. + /// Used memory in bytes.. + /// The cluster node name.. + /// The SSL fingerprint for the node certificate.. + /// Node status.. + /// Node uptime in seconds.. + public GetNodes200ResponseDataInner(decimal cpu = default(decimal), string level = default(string), Int64 maxcpu = default(Int64), Int64 maxmem = default(Int64), Int64 mem = default(Int64), string node = default(string), string sslFingerprint = default(string), string status = default(string), Int64 uptime = default(Int64)) + { + this.Cpu = cpu; + this.Level = level; + this.Maxcpu = maxcpu; + this.Maxmem = maxmem; + this.Mem = mem; + this.Node = node; + this.SslFingerprint = sslFingerprint; + this.Status = status; + this.Uptime = uptime; + } + + /// + /// CPU utilization. + /// + /// CPU utilization. + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public decimal Cpu { get; set; } + + /// + /// Support level. + /// + /// Support level. + [DataMember(Name = "level", EmitDefaultValue = false)] + public string Level { get; set; } + + /// + /// Number of available CPUs. + /// + /// Number of available CPUs. + [DataMember(Name = "maxcpu", EmitDefaultValue = false)] + public Int64 Maxcpu { get; set; } + + /// + /// Number of available memory in bytes. + /// + /// Number of available memory in bytes. + [DataMember(Name = "maxmem", EmitDefaultValue = false)] + public Int64 Maxmem { get; set; } + + /// + /// Used memory in bytes. + /// + /// Used memory in bytes. + [DataMember(Name = "mem", EmitDefaultValue = false)] + public Int64 Mem { get; set; } + + /// + /// The cluster node name. + /// + /// The cluster node name. + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// The SSL fingerprint for the node certificate. + /// + /// The SSL fingerprint for the node certificate. + [DataMember(Name = "ssl_fingerprint", EmitDefaultValue = false)] + public string SslFingerprint { get; set; } + + /// + /// Node status. + /// + /// Node status. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// Node uptime in seconds. + /// + /// Node uptime in seconds. + [DataMember(Name = "uptime", EmitDefaultValue = false)] + public Int64 Uptime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodes200ResponseDataInner {\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Level: ").Append(Level).Append("\n"); + sb.Append(" Maxcpu: ").Append(Maxcpu).Append("\n"); + sb.Append(" Maxmem: ").Append(Maxmem).Append("\n"); + sb.Append(" Mem: ").Append(Mem).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" SslFingerprint: ").Append(SslFingerprint).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Uptime: ").Append(Uptime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200Response.cs new file mode 100644 index 0000000..8d1849e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptRepositories200Response + /// + [DataContract(Name = "getNodesSingleAptRepositories_200_response")] + public partial class GetNodesSingleAptRepositories200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleAptRepositories200Response(List errors = default(List), GetNodesSingleAptRepositories200ResponseData data = default(GetNodesSingleAptRepositories200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleAptRepositories200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptRepositories200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseData.cs new file mode 100644 index 0000000..2990778 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseData.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Result from parsing the APT repository files in /etc/apt/. + /// + [DataContract(Name = "getNodesSingleAptRepositories_200_response_data")] + public partial class GetNodesSingleAptRepositories200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Common digest of all files.. + /// List of problematic repository files.. + /// List of parsed repository files.. + /// Additional information/warnings for APT repositories.. + /// List of standard repositories and their configuration status. + public GetNodesSingleAptRepositories200ResponseData(string digest = default(string), List errors = default(List), List files = default(List), List infos = default(List), List standardRepos = default(List)) + { + this.Digest = digest; + this.Errors = errors; + this.Files = files; + this.Infos = infos; + this.StandardRepos = standardRepos; + } + + /// + /// Common digest of all files. + /// + /// Common digest of all files. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// List of problematic repository files. + /// + /// List of problematic repository files. + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// List of parsed repository files. + /// + /// List of parsed repository files. + [DataMember(Name = "files", EmitDefaultValue = false)] + public List Files { get; set; } + + /// + /// Additional information/warnings for APT repositories. + /// + /// Additional information/warnings for APT repositories. + [DataMember(Name = "infos", EmitDefaultValue = false)] + public List Infos { get; set; } + + /// + /// List of standard repositories and their configuration status + /// + /// List of standard repositories and their configuration status + [DataMember(Name = "standard-repos", EmitDefaultValue = false)] + public List StandardRepos { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptRepositories200ResponseData {\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Files: ").Append(Files).Append("\n"); + sb.Append(" Infos: ").Append(Infos).Append("\n"); + sb.Append(" StandardRepos: ").Append(StandardRepos).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataErrorsInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataErrorsInner.cs new file mode 100644 index 0000000..0d0248c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataErrorsInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptRepositories200ResponseDataErrorsInner + /// + [DataContract(Name = "getNodesSingleAptRepositories_200_response_data_errors_inner")] + public partial class GetNodesSingleAptRepositories200ResponseDataErrorsInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The error message. + /// Path to the problematic file.. + public GetNodesSingleAptRepositories200ResponseDataErrorsInner(string error = default(string), string path = default(string)) + { + this.Error = error; + this.Path = path; + } + + /// + /// The error message + /// + /// The error message + [DataMember(Name = "error", EmitDefaultValue = false)] + public string Error { get; set; } + + /// + /// Path to the problematic file. + /// + /// Path to the problematic file. + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptRepositories200ResponseDataErrorsInner {\n"); + sb.Append(" Error: ").Append(Error).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInner.cs new file mode 100644 index 0000000..f26a47e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptRepositories200ResponseDataFilesInner + /// + [DataContract(Name = "getNodesSingleAptRepositories_200_response_data_files_inner")] + public partial class GetNodesSingleAptRepositories200ResponseDataFilesInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Digest of the file as bytes.. + /// Format of the file.. + /// Path to the problematic file.. + /// The parsed repositories.. + public GetNodesSingleAptRepositories200ResponseDataFilesInner(List digest = default(List), string fileType = default(string), string path = default(string), List repositories = default(List)) + { + this.Digest = digest; + this.FileType = fileType; + this.Path = path; + this.Repositories = repositories; + } + + /// + /// Digest of the file as bytes. + /// + /// Digest of the file as bytes. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public List Digest { get; set; } + + /// + /// Format of the file. + /// + /// Format of the file. + [DataMember(Name = "file-type", EmitDefaultValue = false)] + public string FileType { get; set; } + + /// + /// Path to the problematic file. + /// + /// Path to the problematic file. + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// The parsed repositories. + /// + /// The parsed repositories. + [DataMember(Name = "repositories", EmitDefaultValue = false)] + public List Repositories { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptRepositories200ResponseDataFilesInner {\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" FileType: ").Append(FileType).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Repositories: ").Append(Repositories).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner.cs new file mode 100644 index 0000000..6042805 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner.cs @@ -0,0 +1,154 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner + /// + [DataContract(Name = "getNodesSingleAptRepositories_200_response_data_files_inner_repositories_inner")] + public partial class GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Associated comment. + /// List of repository components. + /// Whether the repository is enabled or not. + /// Format of the defining file.. + /// Additional options. + /// List of package distribuitions. + /// List of package types.. + /// List of repository URIs.. + public GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner(string comment = default(string), List components = default(List), Int64 enabled = default(Int64), string fileType = default(string), List options = default(List), List suites = default(List), List types = default(List), List uRIs = default(List)) + { + this.Comment = comment; + this.Components = components; + this.Enabled = enabled; + this.FileType = fileType; + this.Options = options; + this.Suites = suites; + this.Types = types; + this.URIs = uRIs; + } + + /// + /// Associated comment + /// + /// Associated comment + [DataMember(Name = "Comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// List of repository components + /// + /// List of repository components + [DataMember(Name = "Components", EmitDefaultValue = false)] + public List Components { get; set; } + + /// + /// Whether the repository is enabled or not + /// + /// Whether the repository is enabled or not + [DataMember(Name = "Enabled", EmitDefaultValue = false)] + public Int64 Enabled { get; set; } + + /// + /// Format of the defining file. + /// + /// Format of the defining file. + [DataMember(Name = "FileType", EmitDefaultValue = false)] + public string FileType { get; set; } + + /// + /// Additional options + /// + /// Additional options + [DataMember(Name = "Options", EmitDefaultValue = false)] + public List Options { get; set; } + + /// + /// List of package distribuitions + /// + /// List of package distribuitions + [DataMember(Name = "Suites", EmitDefaultValue = false)] + public List Suites { get; set; } + + /// + /// List of package types. + /// + /// List of package types. + [DataMember(Name = "Types", EmitDefaultValue = false)] + public List Types { get; set; } + + /// + /// List of repository URIs. + /// + /// List of repository URIs. + [DataMember(Name = "URIs", EmitDefaultValue = false)] + public List URIs { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Components: ").Append(Components).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" FileType: ").Append(FileType).Append("\n"); + sb.Append(" Options: ").Append(Options).Append("\n"); + sb.Append(" Suites: ").Append(Suites).Append("\n"); + sb.Append(" Types: ").Append(Types).Append("\n"); + sb.Append(" URIs: ").Append(URIs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInnerOptionsInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInnerOptionsInner.cs new file mode 100644 index 0000000..f85ef65 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInnerOptionsInner.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInnerOptionsInner + /// + [DataContract(Name = "getNodesSingleAptRepositories_200_response_data_files_inner_repositories_inner_Options_inner")] + public partial class GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInnerOptionsInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// key. + /// values. + public GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInnerOptionsInner(string key = default(string), List values = default(List)) + { + this.Key = key; + this.Values = values; + } + + /// + /// Gets or Sets Key + /// + [DataMember(Name = "Key", EmitDefaultValue = false)] + public string Key { get; set; } + + /// + /// Gets or Sets Values + /// + [DataMember(Name = "Values", EmitDefaultValue = false)] + public List Values { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInnerOptionsInner {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Values: ").Append(Values).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataInfosInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataInfosInner.cs new file mode 100644 index 0000000..d8dc12f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataInfosInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptRepositories200ResponseDataInfosInner + /// + [DataContract(Name = "getNodesSingleAptRepositories_200_response_data_infos_inner")] + public partial class GetNodesSingleAptRepositories200ResponseDataInfosInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Index of the associated repository within the file.. + /// Kind of the information (e.g. warning).. + /// Information message.. + /// Path to the associated file.. + /// Property from which the info originates.. + public GetNodesSingleAptRepositories200ResponseDataInfosInner(string index = default(string), string kind = default(string), string message = default(string), string path = default(string), string property = default(string)) + { + this.Index = index; + this.Kind = kind; + this.Message = message; + this.Path = path; + this.Property = property; + } + + /// + /// Index of the associated repository within the file. + /// + /// Index of the associated repository within the file. + [DataMember(Name = "index", EmitDefaultValue = false)] + public string Index { get; set; } + + /// + /// Kind of the information (e.g. warning). + /// + /// Kind of the information (e.g. warning). + [DataMember(Name = "kind", EmitDefaultValue = false)] + public string Kind { get; set; } + + /// + /// Information message. + /// + /// Information message. + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Path to the associated file. + /// + /// Path to the associated file. + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Property from which the info originates. + /// + /// Property from which the info originates. + [DataMember(Name = "property", EmitDefaultValue = false)] + public string Property { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptRepositories200ResponseDataInfosInner {\n"); + sb.Append(" Index: ").Append(Index).Append("\n"); + sb.Append(" Kind: ").Append(Kind).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Property: ").Append(Property).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataStandardReposInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataStandardReposInner.cs new file mode 100644 index 0000000..e5dc8a3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptRepositories200ResponseDataStandardReposInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptRepositories200ResponseDataStandardReposInner + /// + [DataContract(Name = "getNodesSingleAptRepositories_200_response_data_standard_repos_inner")] + public partial class GetNodesSingleAptRepositories200ResponseDataStandardReposInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Handle to identify the repository.. + /// Full name of the repository.. + /// Indicating enabled/disabled status, if the repository is configured.. + public GetNodesSingleAptRepositories200ResponseDataStandardReposInner(string handle = default(string), string name = default(string), Int64 status = default(Int64)) + { + this.Handle = handle; + this.Name = name; + this.Status = status; + } + + /// + /// Handle to identify the repository. + /// + /// Handle to identify the repository. + [DataMember(Name = "handle", EmitDefaultValue = false)] + public string Handle { get; set; } + + /// + /// Full name of the repository. + /// + /// Full name of the repository. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Indicating enabled/disabled status, if the repository is configured. + /// + /// Indicating enabled/disabled status, if the repository is configured. + [DataMember(Name = "status", EmitDefaultValue = false)] + public Int64 Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptRepositories200ResponseDataStandardReposInner {\n"); + sb.Append(" Handle: ").Append(Handle).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptUpdate200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptUpdate200Response.cs new file mode 100644 index 0000000..a269c27 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptUpdate200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptUpdate200Response + /// + [DataContract(Name = "getNodesSingleAptUpdate_200_response")] + public partial class GetNodesSingleAptUpdate200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleAptUpdate200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptUpdate200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptUpdate200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptUpdate200ResponseDataInner.cs new file mode 100644 index 0000000..edebacc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptUpdate200ResponseDataInner.cs @@ -0,0 +1,174 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptUpdate200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleAptUpdate_200_response_data_inner")] + public partial class GetNodesSingleAptUpdate200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Package Architecture.. + /// Package description.. + /// Version for which PVE has already sent an update notification for.. + /// Old version currently installed.. + /// Package origin, e.g., 'Proxmox' or 'Debian'.. + /// Package name.. + /// Package priority.. + /// Package section.. + /// Package title.. + /// New version to be updated to.. + public GetNodesSingleAptUpdate200ResponseDataInner(string arch = default(string), string description = default(string), string notifyStatus = default(string), string oldVersion = default(string), string origin = default(string), string package = default(string), string priority = default(string), string section = default(string), string title = default(string), string varVersion = default(string)) + { + this.Arch = arch; + this.Description = description; + this.NotifyStatus = notifyStatus; + this.OldVersion = oldVersion; + this.Origin = origin; + this.Package = package; + this.Priority = priority; + this.Section = section; + this.Title = title; + this.VarVersion = varVersion; + } + + /// + /// Package Architecture. + /// + /// Package Architecture. + [DataMember(Name = "Arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Package description. + /// + /// Package description. + [DataMember(Name = "Description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Version for which PVE has already sent an update notification for. + /// + /// Version for which PVE has already sent an update notification for. + [DataMember(Name = "NotifyStatus", EmitDefaultValue = false)] + public string NotifyStatus { get; set; } + + /// + /// Old version currently installed. + /// + /// Old version currently installed. + [DataMember(Name = "OldVersion", EmitDefaultValue = false)] + public string OldVersion { get; set; } + + /// + /// Package origin, e.g., 'Proxmox' or 'Debian'. + /// + /// Package origin, e.g., 'Proxmox' or 'Debian'. + [DataMember(Name = "Origin", EmitDefaultValue = false)] + public string Origin { get; set; } + + /// + /// Package name. + /// + /// Package name. + [DataMember(Name = "Package", EmitDefaultValue = false)] + public string Package { get; set; } + + /// + /// Package priority. + /// + /// Package priority. + [DataMember(Name = "Priority", EmitDefaultValue = false)] + public string Priority { get; set; } + + /// + /// Package section. + /// + /// Package section. + [DataMember(Name = "Section", EmitDefaultValue = false)] + public string Section { get; set; } + + /// + /// Package title. + /// + /// Package title. + [DataMember(Name = "Title", EmitDefaultValue = false)] + public string Title { get; set; } + + /// + /// New version to be updated to. + /// + /// New version to be updated to. + [DataMember(Name = "Version", EmitDefaultValue = false)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptUpdate200ResponseDataInner {\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" NotifyStatus: ").Append(NotifyStatus).Append("\n"); + sb.Append(" OldVersion: ").Append(OldVersion).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append(" Package: ").Append(Package).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" Section: ").Append(Section).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptVersions200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptVersions200Response.cs new file mode 100644 index 0000000..959f72a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptVersions200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptVersions200Response + /// + [DataContract(Name = "getNodesSingleAptVersions_200_response")] + public partial class GetNodesSingleAptVersions200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleAptVersions200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptVersions200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleAptVersions200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleAptVersions200ResponseDataInner.cs new file mode 100644 index 0000000..db9580c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleAptVersions200ResponseDataInner.cs @@ -0,0 +1,204 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleAptVersions200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleAptVersions_200_response_data_inner")] + public partial class GetNodesSingleAptVersions200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Package Architecture.. + /// Current state of the package installed on the system.. + /// Package description.. + /// Version of the currently running pve-manager API server.. + /// Version for which PVE has already sent an update notification for.. + /// Old version currently installed.. + /// Package origin, e.g., 'Proxmox' or 'Debian'.. + /// Package name.. + /// Package priority.. + /// Kernel release, only for package 'proxmox-ve'.. + /// Package section.. + /// Package title.. + /// New version to be updated to.. + public GetNodesSingleAptVersions200ResponseDataInner(string arch = default(string), string currentState = default(string), string description = default(string), string managerVersion = default(string), string notifyStatus = default(string), string oldVersion = default(string), string origin = default(string), string package = default(string), string priority = default(string), string runningKernel = default(string), string section = default(string), string title = default(string), string varVersion = default(string)) + { + this.Arch = arch; + this.CurrentState = currentState; + this.Description = description; + this.ManagerVersion = managerVersion; + this.NotifyStatus = notifyStatus; + this.OldVersion = oldVersion; + this.Origin = origin; + this.Package = package; + this.Priority = priority; + this.RunningKernel = runningKernel; + this.Section = section; + this.Title = title; + this.VarVersion = varVersion; + } + + /// + /// Package Architecture. + /// + /// Package Architecture. + [DataMember(Name = "Arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Current state of the package installed on the system. + /// + /// Current state of the package installed on the system. + [DataMember(Name = "CurrentState", EmitDefaultValue = false)] + public string CurrentState { get; set; } + + /// + /// Package description. + /// + /// Package description. + [DataMember(Name = "Description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Version of the currently running pve-manager API server. + /// + /// Version of the currently running pve-manager API server. + [DataMember(Name = "ManagerVersion", EmitDefaultValue = false)] + public string ManagerVersion { get; set; } + + /// + /// Version for which PVE has already sent an update notification for. + /// + /// Version for which PVE has already sent an update notification for. + [DataMember(Name = "NotifyStatus", EmitDefaultValue = false)] + public string NotifyStatus { get; set; } + + /// + /// Old version currently installed. + /// + /// Old version currently installed. + [DataMember(Name = "OldVersion", EmitDefaultValue = false)] + public string OldVersion { get; set; } + + /// + /// Package origin, e.g., 'Proxmox' or 'Debian'. + /// + /// Package origin, e.g., 'Proxmox' or 'Debian'. + [DataMember(Name = "Origin", EmitDefaultValue = false)] + public string Origin { get; set; } + + /// + /// Package name. + /// + /// Package name. + [DataMember(Name = "Package", EmitDefaultValue = false)] + public string Package { get; set; } + + /// + /// Package priority. + /// + /// Package priority. + [DataMember(Name = "Priority", EmitDefaultValue = false)] + public string Priority { get; set; } + + /// + /// Kernel release, only for package 'proxmox-ve'. + /// + /// Kernel release, only for package 'proxmox-ve'. + [DataMember(Name = "RunningKernel", EmitDefaultValue = false)] + public string RunningKernel { get; set; } + + /// + /// Package section. + /// + /// Package section. + [DataMember(Name = "Section", EmitDefaultValue = false)] + public string Section { get; set; } + + /// + /// Package title. + /// + /// Package title. + [DataMember(Name = "Title", EmitDefaultValue = false)] + public string Title { get; set; } + + /// + /// New version to be updated to. + /// + /// New version to be updated to. + [DataMember(Name = "Version", EmitDefaultValue = false)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleAptVersions200ResponseDataInner {\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" CurrentState: ").Append(CurrentState).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" ManagerVersion: ").Append(ManagerVersion).Append("\n"); + sb.Append(" NotifyStatus: ").Append(NotifyStatus).Append("\n"); + sb.Append(" OldVersion: ").Append(OldVersion).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append(" Package: ").Append(Package).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" RunningKernel: ").Append(RunningKernel).Append("\n"); + sb.Append(" Section: ").Append(Section).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpu200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpu200Response.cs new file mode 100644 index 0000000..53a98b1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpu200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCapabilitiesQemuCpu200Response + /// + [DataContract(Name = "getNodesSingleCapabilitiesQemuCpu_200_response")] + public partial class GetNodesSingleCapabilitiesQemuCpu200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCapabilitiesQemuCpu200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCapabilitiesQemuCpu200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner.cs new file mode 100644 index 0000000..8fc340f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCapabilitiesQemuCpu_200_response_data_inner")] + public partial class GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// True if this is a custom CPU model.. + /// Name of the CPU model. Identifies it for subsequent API calls. Prefixed with 'custom-' for custom models.. + /// CPU vendor visible to the guest when this model is selected. Vendor of 'reported-model' in case of custom models.. + public GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner(Int64 custom = default(Int64), string name = default(string), string vendor = default(string)) + { + this.Custom = custom; + this.Name = name; + this.Vendor = vendor; + } + + /// + /// True if this is a custom CPU model. + /// + /// True if this is a custom CPU model. + [DataMember(Name = "custom", EmitDefaultValue = false)] + public Int64 Custom { get; set; } + + /// + /// Name of the CPU model. Identifies it for subsequent API calls. Prefixed with 'custom-' for custom models. + /// + /// Name of the CPU model. Identifies it for subsequent API calls. Prefixed with 'custom-' for custom models. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// CPU vendor visible to the guest when this model is selected. Vendor of 'reported-model' in case of custom models. + /// + /// CPU vendor visible to the guest when this model is selected. Vendor of 'reported-model' in case of custom models. + [DataMember(Name = "vendor", EmitDefaultValue = false)] + public string Vendor { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCapabilitiesQemuCpu200ResponseDataInner {\n"); + sb.Append(" Custom: ").Append(Custom).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Vendor: ").Append(Vendor).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpuflags200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpuflags200Response.cs new file mode 100644 index 0000000..683ce90 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpuflags200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCapabilitiesQemuCpuflags200Response + /// + [DataContract(Name = "getNodesSingleCapabilitiesQemuCpuflags_200_response")] + public partial class GetNodesSingleCapabilitiesQemuCpuflags200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCapabilitiesQemuCpuflags200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCapabilitiesQemuCpuflags200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpuflags200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpuflags200ResponseDataInner.cs new file mode 100644 index 0000000..16c1766 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuCpuflags200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCapabilitiesQemuCpuflags200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCapabilitiesQemuCpuflags_200_response_data_inner")] + public partial class GetNodesSingleCapabilitiesQemuCpuflags200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Description of the CPU flag.. + /// Name of the CPU flag.. + public GetNodesSingleCapabilitiesQemuCpuflags200ResponseDataInner(string description = default(string), string name = default(string)) + { + this.Description = description; + this.Name = name; + } + + /// + /// Description of the CPU flag. + /// + /// Description of the CPU flag. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Name of the CPU flag. + /// + /// Name of the CPU flag. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCapabilitiesQemuCpuflags200ResponseDataInner {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMachines200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMachines200Response.cs new file mode 100644 index 0000000..76f1fe1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMachines200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCapabilitiesQemuMachines200Response + /// + [DataContract(Name = "getNodesSingleCapabilitiesQemuMachines_200_response")] + public partial class GetNodesSingleCapabilitiesQemuMachines200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCapabilitiesQemuMachines200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCapabilitiesQemuMachines200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner.cs new file mode 100644 index 0000000..9d2d4bf --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCapabilitiesQemuMachines_200_response_data_inner")] + public partial class GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Notable changes of a version, currently only set for +pveX versions.. + /// Full name of machine type and version.. + /// The machine type.. + /// The machine version.. + public GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner(string changes = default(string), string id = default(string), string type = default(string), string varVersion = default(string)) + { + this.Changes = changes; + this.Id = id; + this.Type = type; + this.VarVersion = varVersion; + } + + /// + /// Notable changes of a version, currently only set for +pveX versions. + /// + /// Notable changes of a version, currently only set for +pveX versions. + [DataMember(Name = "changes", EmitDefaultValue = false)] + public string Changes { get; set; } + + /// + /// Full name of machine type and version. + /// + /// Full name of machine type and version. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// The machine type. + /// + /// The machine type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// The machine version. + /// + /// The machine version. + [DataMember(Name = "version", EmitDefaultValue = false)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCapabilitiesQemuMachines200ResponseDataInner {\n"); + sb.Append(" Changes: ").Append(Changes).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMigration200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMigration200Response.cs new file mode 100644 index 0000000..705a045 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMigration200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCapabilitiesQemuMigration200Response + /// + [DataContract(Name = "getNodesSingleCapabilitiesQemuMigration_200_response")] + public partial class GetNodesSingleCapabilitiesQemuMigration200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCapabilitiesQemuMigration200Response(List errors = default(List), GetNodesSingleCapabilitiesQemuMigration200ResponseData data = default(GetNodesSingleCapabilitiesQemuMigration200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleCapabilitiesQemuMigration200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCapabilitiesQemuMigration200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMigration200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMigration200ResponseData.cs new file mode 100644 index 0000000..d189ba5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCapabilitiesQemuMigration200ResponseData.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCapabilitiesQemuMigration200ResponseData + /// + [DataContract(Name = "getNodesSingleCapabilitiesQemuMigration_200_response_data")] + public partial class GetNodesSingleCapabilitiesQemuMigration200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Whether the host supports live-migrating additional VM state via the dbus-vmstate helper.. + public GetNodesSingleCapabilitiesQemuMigration200ResponseData(Int64 hasDbusVmstate = default(Int64)) + { + this.HasDbusVmstate = hasDbusVmstate; + } + + /// + /// Whether the host supports live-migrating additional VM state via the dbus-vmstate helper. + /// + /// Whether the host supports live-migrating additional VM state via the dbus-vmstate helper. + [DataMember(Name = "has-dbus-vmstate", EmitDefaultValue = false)] + public Int64 HasDbusVmstate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCapabilitiesQemuMigration200ResponseData {\n"); + sb.Append(" HasDbusVmstate: ").Append(HasDbusVmstate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephCfgDb200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephCfgDb200Response.cs new file mode 100644 index 0000000..3a59652 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephCfgDb200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephCfgDb200Response + /// + [DataContract(Name = "getNodesSingleCephCfgDb_200_response")] + public partial class GetNodesSingleCephCfgDb200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephCfgDb200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephCfgDb200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephCfgDb200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephCfgDb200ResponseDataInner.cs new file mode 100644 index 0000000..a516e11 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephCfgDb200ResponseDataInner.cs @@ -0,0 +1,128 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephCfgDb200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCephCfgDb_200_response_data_inner")] + public partial class GetNodesSingleCephCfgDb200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// canUpdateAtRuntime. + /// level. + /// mask. + /// name. + /// section. + /// value. + public GetNodesSingleCephCfgDb200ResponseDataInner(Int64 canUpdateAtRuntime = default(Int64), string level = default(string), string mask = default(string), string name = default(string), string section = default(string), string value = default(string)) + { + this.CanUpdateAtRuntime = canUpdateAtRuntime; + this.Level = level; + this.Mask = mask; + this.Name = name; + this.Section = section; + this.Value = value; + } + + /// + /// Gets or Sets CanUpdateAtRuntime + /// + [DataMember(Name = "can_update_at_runtime", EmitDefaultValue = false)] + public Int64 CanUpdateAtRuntime { get; set; } + + /// + /// Gets or Sets Level + /// + [DataMember(Name = "level", EmitDefaultValue = false)] + public string Level { get; set; } + + /// + /// Gets or Sets Mask + /// + [DataMember(Name = "mask", EmitDefaultValue = false)] + public string Mask { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Section + /// + [DataMember(Name = "section", EmitDefaultValue = false)] + public string Section { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", EmitDefaultValue = false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephCfgDb200ResponseDataInner {\n"); + sb.Append(" CanUpdateAtRuntime: ").Append(CanUpdateAtRuntime).Append("\n"); + sb.Append(" Level: ").Append(Level).Append("\n"); + sb.Append(" Mask: ").Append(Mask).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Section: ").Append(Section).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephCfgValue200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephCfgValue200Response.cs new file mode 100644 index 0000000..2f7de2b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephCfgValue200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephCfgValue200Response + /// + [DataContract(Name = "getNodesSingleCephCfgValue_200_response")] + public partial class GetNodesSingleCephCfgValue200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Contains {section}->{key} children with the values. + public GetNodesSingleCephCfgValue200Response(List errors = default(List), Object data = default(Object)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Contains {section}->{key} children with the values + /// + /// Contains {section}->{key} children with the values + [DataMember(Name = "data", EmitDefaultValue = false)] + public Object Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephCfgValue200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephCmdsafety200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephCmdsafety200Response.cs new file mode 100644 index 0000000..7689dc5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephCmdsafety200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephCmdsafety200Response + /// + [DataContract(Name = "getNodesSingleCephCmdsafety_200_response")] + public partial class GetNodesSingleCephCmdsafety200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephCmdsafety200Response(List errors = default(List), GetNodesSingleCephCmdsafety200ResponseData data = default(GetNodesSingleCephCmdsafety200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleCephCmdsafety200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephCmdsafety200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephCmdsafety200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephCmdsafety200ResponseData.cs new file mode 100644 index 0000000..42adacb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephCmdsafety200ResponseData.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephCmdsafety200ResponseData + /// + [DataContract(Name = "getNodesSingleCephCmdsafety_200_response_data")] + public partial class GetNodesSingleCephCmdsafety200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// If it is safe to run the command.. + /// Status message given by Ceph.. + public GetNodesSingleCephCmdsafety200ResponseData(Int64 safe = default(Int64), string status = default(string)) + { + this.Safe = safe; + this.Status = status; + } + + /// + /// If it is safe to run the command. + /// + /// If it is safe to run the command. + [DataMember(Name = "safe", EmitDefaultValue = false)] + public Int64 Safe { get; set; } + + /// + /// Status message given by Ceph. + /// + /// Status message given by Ceph. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephCmdsafety200ResponseData {\n"); + sb.Append(" Safe: ").Append(Safe).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephFs200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephFs200Response.cs new file mode 100644 index 0000000..d908992 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephFs200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephFs200Response + /// + [DataContract(Name = "getNodesSingleCephFs_200_response")] + public partial class GetNodesSingleCephFs200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephFs200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephFs200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephFs200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephFs200ResponseDataInner.cs new file mode 100644 index 0000000..893a27c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephFs200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephFs200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCephFs_200_response_data_inner")] + public partial class GetNodesSingleCephFs200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the data pool.. + /// The name of the metadata pool.. + /// The ceph filesystem name.. + public GetNodesSingleCephFs200ResponseDataInner(string dataPool = default(string), string metadataPool = default(string), string name = default(string)) + { + this.DataPool = dataPool; + this.MetadataPool = metadataPool; + this.Name = name; + } + + /// + /// The name of the data pool. + /// + /// The name of the data pool. + [DataMember(Name = "data_pool", EmitDefaultValue = false)] + public string DataPool { get; set; } + + /// + /// The name of the metadata pool. + /// + /// The name of the metadata pool. + [DataMember(Name = "metadata_pool", EmitDefaultValue = false)] + public string MetadataPool { get; set; } + + /// + /// The ceph filesystem name. + /// + /// The ceph filesystem name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephFs200ResponseDataInner {\n"); + sb.Append(" DataPool: ").Append(DataPool).Append("\n"); + sb.Append(" MetadataPool: ").Append(MetadataPool).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephMds200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephMds200Response.cs new file mode 100644 index 0000000..9a9c60c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephMds200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephMds200Response + /// + [DataContract(Name = "getNodesSingleCephMds_200_response")] + public partial class GetNodesSingleCephMds200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephMds200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephMds200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephMds200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephMds200ResponseDataInner.cs new file mode 100644 index 0000000..703154d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephMds200ResponseDataInner.cs @@ -0,0 +1,131 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephMds200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCephMds_200_response_data_inner")] + public partial class GetNodesSingleCephMds200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// addr. + /// host. + /// The name (ID) for the MDS. + /// rank. + /// If true, the standby MDS is polling the active MDS for faster recovery (hot standby).. + /// State of the MDS. + public GetNodesSingleCephMds200ResponseDataInner(string addr = default(string), string host = default(string), string name = default(string), Int64 rank = default(Int64), Int64 standbyReplay = default(Int64), string state = default(string)) + { + this.Addr = addr; + this.Host = host; + this.Name = name; + this.Rank = rank; + this.StandbyReplay = standbyReplay; + this.State = state; + } + + /// + /// Gets or Sets Addr + /// + [DataMember(Name = "addr", EmitDefaultValue = false)] + public string Addr { get; set; } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", EmitDefaultValue = false)] + public string Host { get; set; } + + /// + /// The name (ID) for the MDS + /// + /// The name (ID) for the MDS + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Rank + /// + [DataMember(Name = "rank", EmitDefaultValue = false)] + public Int64 Rank { get; set; } + + /// + /// If true, the standby MDS is polling the active MDS for faster recovery (hot standby). + /// + /// If true, the standby MDS is polling the active MDS for faster recovery (hot standby). + [DataMember(Name = "standby_replay", EmitDefaultValue = false)] + public Int64 StandbyReplay { get; set; } + + /// + /// State of the MDS + /// + /// State of the MDS + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephMds200ResponseDataInner {\n"); + sb.Append(" Addr: ").Append(Addr).Append("\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Rank: ").Append(Rank).Append("\n"); + sb.Append(" StandbyReplay: ").Append(StandbyReplay).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephMgr200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephMgr200Response.cs new file mode 100644 index 0000000..de72f26 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephMgr200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephMgr200Response + /// + [DataContract(Name = "getNodesSingleCephMgr_200_response")] + public partial class GetNodesSingleCephMgr200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephMgr200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephMgr200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephMgr200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephMgr200ResponseDataInner.cs new file mode 100644 index 0000000..118f9f5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephMgr200ResponseDataInner.cs @@ -0,0 +1,112 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephMgr200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCephMgr_200_response_data_inner")] + public partial class GetNodesSingleCephMgr200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// addr. + /// host. + /// The name (ID) for the MGR. + /// State of the MGR. + public GetNodesSingleCephMgr200ResponseDataInner(string addr = default(string), string host = default(string), string name = default(string), string state = default(string)) + { + this.Addr = addr; + this.Host = host; + this.Name = name; + this.State = state; + } + + /// + /// Gets or Sets Addr + /// + [DataMember(Name = "addr", EmitDefaultValue = false)] + public string Addr { get; set; } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", EmitDefaultValue = false)] + public string Host { get; set; } + + /// + /// The name (ID) for the MGR + /// + /// The name (ID) for the MGR + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// State of the MGR + /// + /// State of the MGR + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephMgr200ResponseDataInner {\n"); + sb.Append(" Addr: ").Append(Addr).Append("\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephMon200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephMon200Response.cs new file mode 100644 index 0000000..47a6763 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephMon200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephMon200Response + /// + [DataContract(Name = "getNodesSingleCephMon_200_response")] + public partial class GetNodesSingleCephMon200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephMon200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephMon200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephMon200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephMon200ResponseDataInner.cs new file mode 100644 index 0000000..a8fc73f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephMon200ResponseDataInner.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephMon200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCephMon_200_response_data_inner")] + public partial class GetNodesSingleCephMon200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// addr. + /// cephVersion. + /// cephVersionShort. + /// direxists. + /// host. + /// name. + /// quorum. + /// rank. + /// service. + /// state. + public GetNodesSingleCephMon200ResponseDataInner(string addr = default(string), string cephVersion = default(string), string cephVersionShort = default(string), string direxists = default(string), Int64 host = default(Int64), string name = default(string), Int64 quorum = default(Int64), Int64 rank = default(Int64), Int64 service = default(Int64), string state = default(string)) + { + this.Addr = addr; + this.CephVersion = cephVersion; + this.CephVersionShort = cephVersionShort; + this.Direxists = direxists; + this.Host = host; + this.Name = name; + this.Quorum = quorum; + this.Rank = rank; + this.Service = service; + this.State = state; + } + + /// + /// Gets or Sets Addr + /// + [DataMember(Name = "addr", EmitDefaultValue = false)] + public string Addr { get; set; } + + /// + /// Gets or Sets CephVersion + /// + [DataMember(Name = "ceph_version", EmitDefaultValue = false)] + public string CephVersion { get; set; } + + /// + /// Gets or Sets CephVersionShort + /// + [DataMember(Name = "ceph_version_short", EmitDefaultValue = false)] + public string CephVersionShort { get; set; } + + /// + /// Gets or Sets Direxists + /// + [DataMember(Name = "direxists", EmitDefaultValue = false)] + public string Direxists { get; set; } + + /// + /// Gets or Sets Host + /// + [DataMember(Name = "host", EmitDefaultValue = false)] + public Int64 Host { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Quorum + /// + [DataMember(Name = "quorum", EmitDefaultValue = false)] + public Int64 Quorum { get; set; } + + /// + /// Gets or Sets Rank + /// + [DataMember(Name = "rank", EmitDefaultValue = false)] + public Int64 Rank { get; set; } + + /// + /// Gets or Sets Service + /// + [DataMember(Name = "service", EmitDefaultValue = false)] + public Int64 Service { get; set; } + + /// + /// Gets or Sets State + /// + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephMon200ResponseDataInner {\n"); + sb.Append(" Addr: ").Append(Addr).Append("\n"); + sb.Append(" CephVersion: ").Append(CephVersion).Append("\n"); + sb.Append(" CephVersionShort: ").Append(CephVersionShort).Append("\n"); + sb.Append(" Direxists: ").Append(Direxists).Append("\n"); + sb.Append(" Host: ").Append(Host).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Quorum: ").Append(Quorum).Append("\n"); + sb.Append(" Rank: ").Append(Rank).Append("\n"); + sb.Append(" Service: ").Append(Service).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleLvinfo200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleLvinfo200Response.cs new file mode 100644 index 0000000..8b88c90 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleLvinfo200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephOsdSingleLvinfo200Response + /// + [DataContract(Name = "getNodesSingleCephOsdSingleLvinfo_200_response")] + public partial class GetNodesSingleCephOsdSingleLvinfo200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephOsdSingleLvinfo200Response(List errors = default(List), GetNodesSingleCephOsdSingleLvinfo200ResponseData data = default(GetNodesSingleCephOsdSingleLvinfo200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleCephOsdSingleLvinfo200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephOsdSingleLvinfo200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleLvinfo200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleLvinfo200ResponseData.cs new file mode 100644 index 0000000..29f67bb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleLvinfo200ResponseData.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephOsdSingleLvinfo200ResponseData + /// + [DataContract(Name = "getNodesSingleCephOsdSingleLvinfo_200_response_data")] + public partial class GetNodesSingleCephOsdSingleLvinfo200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Creation time as reported by `lvs`.. + /// Name of the logical volume (LV).. + /// Path to the logical volume (LV).. + /// Size of the logical volume (LV).. + /// UUID of the logical volume (LV).. + /// Name of the volume group (VG).. + public GetNodesSingleCephOsdSingleLvinfo200ResponseData(string creationTime = default(string), string lvName = default(string), string lvPath = default(string), Int64 lvSize = default(Int64), string lvUuid = default(string), string vgName = default(string)) + { + this.CreationTime = creationTime; + this.LvName = lvName; + this.LvPath = lvPath; + this.LvSize = lvSize; + this.LvUuid = lvUuid; + this.VgName = vgName; + } + + /// + /// Creation time as reported by `lvs`. + /// + /// Creation time as reported by `lvs`. + [DataMember(Name = "creation_time", EmitDefaultValue = false)] + public string CreationTime { get; set; } + + /// + /// Name of the logical volume (LV). + /// + /// Name of the logical volume (LV). + [DataMember(Name = "lv_name", EmitDefaultValue = false)] + public string LvName { get; set; } + + /// + /// Path to the logical volume (LV). + /// + /// Path to the logical volume (LV). + [DataMember(Name = "lv_path", EmitDefaultValue = false)] + public string LvPath { get; set; } + + /// + /// Size of the logical volume (LV). + /// + /// Size of the logical volume (LV). + [DataMember(Name = "lv_size", EmitDefaultValue = false)] + public Int64 LvSize { get; set; } + + /// + /// UUID of the logical volume (LV). + /// + /// UUID of the logical volume (LV). + [DataMember(Name = "lv_uuid", EmitDefaultValue = false)] + public string LvUuid { get; set; } + + /// + /// Name of the volume group (VG). + /// + /// Name of the volume group (VG). + [DataMember(Name = "vg_name", EmitDefaultValue = false)] + public string VgName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephOsdSingleLvinfo200ResponseData {\n"); + sb.Append(" CreationTime: ").Append(CreationTime).Append("\n"); + sb.Append(" LvName: ").Append(LvName).Append("\n"); + sb.Append(" LvPath: ").Append(LvPath).Append("\n"); + sb.Append(" LvSize: ").Append(LvSize).Append("\n"); + sb.Append(" LvUuid: ").Append(LvUuid).Append("\n"); + sb.Append(" VgName: ").Append(VgName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200Response.cs new file mode 100644 index 0000000..ea72e69 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephOsdSingleMetadata200Response + /// + [DataContract(Name = "getNodesSingleCephOsdSingleMetadata_200_response")] + public partial class GetNodesSingleCephOsdSingleMetadata200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephOsdSingleMetadata200Response(List errors = default(List), GetNodesSingleCephOsdSingleMetadata200ResponseData data = default(GetNodesSingleCephOsdSingleMetadata200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleCephOsdSingleMetadata200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephOsdSingleMetadata200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseData.cs new file mode 100644 index 0000000..36aecd0 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseData.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephOsdSingleMetadata200ResponseData + /// + [DataContract(Name = "getNodesSingleCephOsdSingleMetadata_200_response_data")] + public partial class GetNodesSingleCephOsdSingleMetadata200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Array containing data about devices. + /// osd. + public GetNodesSingleCephOsdSingleMetadata200ResponseData(List devices = default(List), GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd osd = default(GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd)) + { + this.Devices = devices; + this.Osd = osd; + } + + /// + /// Array containing data about devices + /// + /// Array containing data about devices + [DataMember(Name = "devices", EmitDefaultValue = false)] + public List Devices { get; set; } + + /// + /// Gets or Sets Osd + /// + [DataMember(Name = "osd", EmitDefaultValue = false)] + public GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd Osd { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephOsdSingleMetadata200ResponseData {\n"); + sb.Append(" Devices: ").Append(Devices).Append("\n"); + sb.Append(" Osd: ").Append(Osd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner.cs new file mode 100644 index 0000000..a4f0703 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner + /// + [DataContract(Name = "getNodesSingleCephOsdSingleMetadata_200_response_data_devices_inner")] + public partial class GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Device node. + /// Kind of OSD device. + /// Physical disks used. + /// Size in bytes. + /// Discard support of the physical device. + /// Type of device. For example, hdd or ssd. + public GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner(string devNode = default(string), string device = default(string), string devices = default(string), Int64 size = default(Int64), Int64 supportDiscard = default(Int64), string type = default(string)) + { + this.DevNode = devNode; + this.Device = device; + this.Devices = devices; + this.Size = size; + this.SupportDiscard = supportDiscard; + this.Type = type; + } + + /// + /// Device node + /// + /// Device node + [DataMember(Name = "dev_node", EmitDefaultValue = false)] + public string DevNode { get; set; } + + /// + /// Kind of OSD device + /// + /// Kind of OSD device + [DataMember(Name = "device", EmitDefaultValue = false)] + public string Device { get; set; } + + /// + /// Physical disks used + /// + /// Physical disks used + [DataMember(Name = "devices", EmitDefaultValue = false)] + public string Devices { get; set; } + + /// + /// Size in bytes + /// + /// Size in bytes + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Discard support of the physical device + /// + /// Discard support of the physical device + [DataMember(Name = "support_discard", EmitDefaultValue = false)] + public Int64 SupportDiscard { get; set; } + + /// + /// Type of device. For example, hdd or ssd + /// + /// Type of device. For example, hdd or ssd + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner {\n"); + sb.Append(" DevNode: ").Append(DevNode).Append("\n"); + sb.Append(" Device: ").Append(Device).Append("\n"); + sb.Append(" Devices: ").Append(Devices).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" SupportDiscard: ").Append(SupportDiscard).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd.cs new file mode 100644 index 0000000..cbc3332 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd.cs @@ -0,0 +1,184 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// General information about the OSD + /// + [DataContract(Name = "getNodesSingleCephOsdSingleMetadata_200_response_data_osd")] + public partial class GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Address and port used to talk to other OSDs.. + /// Address and port used to talk to clients and monitors.. + /// Heartbeat address and port for other OSDs.. + /// Heartbeat address and port for clients and monitors.. + /// Name of the host containing the OSD.. + /// ID of the OSD.. + /// Memory usage of the OSD service.. + /// Path to the OSD's data directory.. + /// The type of object store used.. + /// OSD process ID.. + /// Ceph version of the OSD service.. + public GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd(string backAddr = default(string), string frontAddr = default(string), string hbBackAddr = default(string), string hbFrontAddr = default(string), string hostname = default(string), Int64 id = default(Int64), Int64 memUsage = default(Int64), string osdData = default(string), string osdObjectstore = default(string), Int64 pid = default(Int64), string varVersion = default(string)) + { + this.BackAddr = backAddr; + this.FrontAddr = frontAddr; + this.HbBackAddr = hbBackAddr; + this.HbFrontAddr = hbFrontAddr; + this.Hostname = hostname; + this.Id = id; + this.MemUsage = memUsage; + this.OsdData = osdData; + this.OsdObjectstore = osdObjectstore; + this.Pid = pid; + this.VarVersion = varVersion; + } + + /// + /// Address and port used to talk to other OSDs. + /// + /// Address and port used to talk to other OSDs. + [DataMember(Name = "back_addr", EmitDefaultValue = false)] + public string BackAddr { get; set; } + + /// + /// Address and port used to talk to clients and monitors. + /// + /// Address and port used to talk to clients and monitors. + [DataMember(Name = "front_addr", EmitDefaultValue = false)] + public string FrontAddr { get; set; } + + /// + /// Heartbeat address and port for other OSDs. + /// + /// Heartbeat address and port for other OSDs. + [DataMember(Name = "hb_back_addr", EmitDefaultValue = false)] + public string HbBackAddr { get; set; } + + /// + /// Heartbeat address and port for clients and monitors. + /// + /// Heartbeat address and port for clients and monitors. + [DataMember(Name = "hb_front_addr", EmitDefaultValue = false)] + public string HbFrontAddr { get; set; } + + /// + /// Name of the host containing the OSD. + /// + /// Name of the host containing the OSD. + [DataMember(Name = "hostname", EmitDefaultValue = false)] + public string Hostname { get; set; } + + /// + /// ID of the OSD. + /// + /// ID of the OSD. + [DataMember(Name = "id", EmitDefaultValue = false)] + public Int64 Id { get; set; } + + /// + /// Memory usage of the OSD service. + /// + /// Memory usage of the OSD service. + [DataMember(Name = "mem_usage", EmitDefaultValue = false)] + public Int64 MemUsage { get; set; } + + /// + /// Path to the OSD's data directory. + /// + /// Path to the OSD's data directory. + [DataMember(Name = "osd_data", EmitDefaultValue = false)] + public string OsdData { get; set; } + + /// + /// The type of object store used. + /// + /// The type of object store used. + [DataMember(Name = "osd_objectstore", EmitDefaultValue = false)] + public string OsdObjectstore { get; set; } + + /// + /// OSD process ID. + /// + /// OSD process ID. + [DataMember(Name = "pid", EmitDefaultValue = false)] + public Int64 Pid { get; set; } + + /// + /// Ceph version of the OSD service. + /// + /// Ceph version of the OSD service. + [DataMember(Name = "version", EmitDefaultValue = false)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd {\n"); + sb.Append(" BackAddr: ").Append(BackAddr).Append("\n"); + sb.Append(" FrontAddr: ").Append(FrontAddr).Append("\n"); + sb.Append(" HbBackAddr: ").Append(HbBackAddr).Append("\n"); + sb.Append(" HbFrontAddr: ").Append(HbFrontAddr).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" MemUsage: ").Append(MemUsage).Append("\n"); + sb.Append(" OsdData: ").Append(OsdData).Append("\n"); + sb.Append(" OsdObjectstore: ").Append(OsdObjectstore).Append("\n"); + sb.Append(" Pid: ").Append(Pid).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephPool200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephPool200Response.cs new file mode 100644 index 0000000..f7e0e45 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephPool200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephPool200Response + /// + [DataContract(Name = "getNodesSingleCephPool_200_response")] + public partial class GetNodesSingleCephPool200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephPool200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephPool200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephPool200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephPool200ResponseDataInner.cs new file mode 100644 index 0000000..b26a293 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephPool200ResponseDataInner.cs @@ -0,0 +1,227 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephPool200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCephPool_200_response_data_inner")] + public partial class GetNodesSingleCephPool200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// applicationMetadata. + /// autoscaleStatus. + /// bytesUsed. + /// crushRule. + /// crushRuleName. + /// minSize. + /// percentUsed. + /// pgAutoscaleMode. + /// pgNum. + /// pgNumFinal. + /// pgNumMin. + /// pool. + /// poolName. + /// size. + /// targetSize. + /// targetSizeRatio. + /// type. + public GetNodesSingleCephPool200ResponseDataInner(Object applicationMetadata = default(Object), Object autoscaleStatus = default(Object), Int64 bytesUsed = default(Int64), Int64 crushRule = default(Int64), string crushRuleName = default(string), Int64 minSize = default(Int64), decimal percentUsed = default(decimal), string pgAutoscaleMode = default(string), Int64 pgNum = default(Int64), Int64 pgNumFinal = default(Int64), Int64 pgNumMin = default(Int64), Int64 pool = default(Int64), string poolName = default(string), Int64 size = default(Int64), Int64 targetSize = default(Int64), decimal targetSizeRatio = default(decimal), string type = default(string)) + { + this.ApplicationMetadata = applicationMetadata; + this.AutoscaleStatus = autoscaleStatus; + this.BytesUsed = bytesUsed; + this.CrushRule = crushRule; + this.CrushRuleName = crushRuleName; + this.MinSize = minSize; + this.PercentUsed = percentUsed; + this.PgAutoscaleMode = pgAutoscaleMode; + this.PgNum = pgNum; + this.PgNumFinal = pgNumFinal; + this.PgNumMin = pgNumMin; + this.Pool = pool; + this.PoolName = poolName; + this.Size = size; + this.TargetSize = targetSize; + this.TargetSizeRatio = targetSizeRatio; + this.Type = type; + } + + /// + /// Gets or Sets ApplicationMetadata + /// + [DataMember(Name = "application_metadata", EmitDefaultValue = false)] + public Object ApplicationMetadata { get; set; } + + /// + /// Gets or Sets AutoscaleStatus + /// + [DataMember(Name = "autoscale_status", EmitDefaultValue = false)] + public Object AutoscaleStatus { get; set; } + + /// + /// Gets or Sets BytesUsed + /// + [DataMember(Name = "bytes_used", EmitDefaultValue = false)] + public Int64 BytesUsed { get; set; } + + /// + /// Gets or Sets CrushRule + /// + [DataMember(Name = "crush_rule", EmitDefaultValue = false)] + public Int64 CrushRule { get; set; } + + /// + /// Gets or Sets CrushRuleName + /// + [DataMember(Name = "crush_rule_name", EmitDefaultValue = false)] + public string CrushRuleName { get; set; } + + /// + /// Gets or Sets MinSize + /// + [DataMember(Name = "min_size", EmitDefaultValue = false)] + public Int64 MinSize { get; set; } + + /// + /// Gets or Sets PercentUsed + /// + [DataMember(Name = "percent_used", EmitDefaultValue = false)] + public decimal PercentUsed { get; set; } + + /// + /// Gets or Sets PgAutoscaleMode + /// + [DataMember(Name = "pg_autoscale_mode", EmitDefaultValue = false)] + public string PgAutoscaleMode { get; set; } + + /// + /// Gets or Sets PgNum + /// + [DataMember(Name = "pg_num", EmitDefaultValue = false)] + public Int64 PgNum { get; set; } + + /// + /// Gets or Sets PgNumFinal + /// + [DataMember(Name = "pg_num_final", EmitDefaultValue = false)] + public Int64 PgNumFinal { get; set; } + + /// + /// Gets or Sets PgNumMin + /// + [DataMember(Name = "pg_num_min", EmitDefaultValue = false)] + public Int64 PgNumMin { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public Int64 Pool { get; set; } + + /// + /// Gets or Sets PoolName + /// + [DataMember(Name = "pool_name", EmitDefaultValue = false)] + public string PoolName { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Gets or Sets TargetSize + /// + [DataMember(Name = "target_size", EmitDefaultValue = false)] + public Int64 TargetSize { get; set; } + + /// + /// Gets or Sets TargetSizeRatio + /// + [DataMember(Name = "target_size_ratio", EmitDefaultValue = false)] + public decimal TargetSizeRatio { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephPool200ResponseDataInner {\n"); + sb.Append(" ApplicationMetadata: ").Append(ApplicationMetadata).Append("\n"); + sb.Append(" AutoscaleStatus: ").Append(AutoscaleStatus).Append("\n"); + sb.Append(" BytesUsed: ").Append(BytesUsed).Append("\n"); + sb.Append(" CrushRule: ").Append(CrushRule).Append("\n"); + sb.Append(" CrushRuleName: ").Append(CrushRuleName).Append("\n"); + sb.Append(" MinSize: ").Append(MinSize).Append("\n"); + sb.Append(" PercentUsed: ").Append(PercentUsed).Append("\n"); + sb.Append(" PgAutoscaleMode: ").Append(PgAutoscaleMode).Append("\n"); + sb.Append(" PgNum: ").Append(PgNum).Append("\n"); + sb.Append(" PgNumFinal: ").Append(PgNumFinal).Append("\n"); + sb.Append(" PgNumMin: ").Append(PgNumMin).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" PoolName: ").Append(PoolName).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" TargetSize: ").Append(TargetSize).Append("\n"); + sb.Append(" TargetSizeRatio: ").Append(TargetSizeRatio).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephPoolSingleStatus200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephPoolSingleStatus200Response.cs new file mode 100644 index 0000000..cda6925 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephPoolSingleStatus200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephPoolSingleStatus200Response + /// + [DataContract(Name = "getNodesSingleCephPoolSingleStatus_200_response")] + public partial class GetNodesSingleCephPoolSingleStatus200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephPoolSingleStatus200Response(List errors = default(List), GetNodesSingleCephPoolSingleStatus200ResponseData data = default(GetNodesSingleCephPoolSingleStatus200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleCephPoolSingleStatus200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephPoolSingleStatus200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephPoolSingleStatus200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephPoolSingleStatus200ResponseData.cs new file mode 100644 index 0000000..0d5f289 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephPoolSingleStatus200ResponseData.cs @@ -0,0 +1,300 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephPoolSingleStatus200ResponseData + /// + [DataContract(Name = "getNodesSingleCephPoolSingleStatus_200_response_data")] + public partial class GetNodesSingleCephPoolSingleStatus200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The application of the pool.. + /// applicationList. + /// autoscaleStatus. + /// The rule to use for mapping object placement in the cluster.. + /// fastRead. + /// hashpspool. + /// id. + /// Minimum number of replicas per object. + /// The name of the pool. It must be unique.. + /// nodeepScrub. + /// nodelete. + /// nopgchange. + /// noscrub. + /// nosizechange. + /// The automatic PG scaling mode of the pool.. + /// Number of placement groups.. + /// Minimal number of placement groups.. + /// pgpNum. + /// Number of replicas per object. + /// statistics. + /// The estimated target size of the pool for the PG autoscaler.. + /// The estimated target ratio of the pool for the PG autoscaler.. + /// useGmtHitset. + /// writeFadviseDontneed. + public GetNodesSingleCephPoolSingleStatus200ResponseData(string application = default(string), List applicationList = default(List), Object autoscaleStatus = default(Object), string crushRule = default(string), Int64 fastRead = default(Int64), Int64 hashpspool = default(Int64), Int64 id = default(Int64), Int64 minSize = default(Int64), string name = default(string), Int64 nodeepScrub = default(Int64), Int64 nodelete = default(Int64), Int64 nopgchange = default(Int64), Int64 noscrub = default(Int64), Int64 nosizechange = default(Int64), string pgAutoscaleMode = default(string), Int64 pgNum = default(Int64), Int64 pgNumMin = default(Int64), Int64 pgpNum = default(Int64), Int64 size = default(Int64), Object statistics = default(Object), string targetSize = default(string), decimal targetSizeRatio = default(decimal), Int64 useGmtHitset = default(Int64), Int64 writeFadviseDontneed = default(Int64)) + { + this.Application = application; + this.ApplicationList = applicationList; + this.AutoscaleStatus = autoscaleStatus; + this.CrushRule = crushRule; + this.FastRead = fastRead; + this.Hashpspool = hashpspool; + this.Id = id; + this.MinSize = minSize; + this.Name = name; + this.NodeepScrub = nodeepScrub; + this.Nodelete = nodelete; + this.Nopgchange = nopgchange; + this.Noscrub = noscrub; + this.Nosizechange = nosizechange; + this.PgAutoscaleMode = pgAutoscaleMode; + this.PgNum = pgNum; + this.PgNumMin = pgNumMin; + this.PgpNum = pgpNum; + this.Size = size; + this.Statistics = statistics; + this.TargetSize = targetSize; + this.TargetSizeRatio = targetSizeRatio; + this.UseGmtHitset = useGmtHitset; + this.WriteFadviseDontneed = writeFadviseDontneed; + } + + /// + /// The application of the pool. + /// + /// The application of the pool. + [DataMember(Name = "application", EmitDefaultValue = false)] + public string Application { get; set; } + + /// + /// Gets or Sets ApplicationList + /// + [DataMember(Name = "application_list", EmitDefaultValue = false)] + public List ApplicationList { get; set; } + + /// + /// Gets or Sets AutoscaleStatus + /// + [DataMember(Name = "autoscale_status", EmitDefaultValue = false)] + public Object AutoscaleStatus { get; set; } + + /// + /// The rule to use for mapping object placement in the cluster. + /// + /// The rule to use for mapping object placement in the cluster. + [DataMember(Name = "crush_rule", EmitDefaultValue = false)] + public string CrushRule { get; set; } + + /// + /// Gets or Sets FastRead + /// + [DataMember(Name = "fast_read", EmitDefaultValue = false)] + public Int64 FastRead { get; set; } + + /// + /// Gets or Sets Hashpspool + /// + [DataMember(Name = "hashpspool", EmitDefaultValue = false)] + public Int64 Hashpspool { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Int64 Id { get; set; } + + /// + /// Minimum number of replicas per object + /// + /// Minimum number of replicas per object + [DataMember(Name = "min_size", EmitDefaultValue = false)] + public Int64 MinSize { get; set; } + + /// + /// The name of the pool. It must be unique. + /// + /// The name of the pool. It must be unique. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets NodeepScrub + /// + [DataMember(Name = "nodeep-scrub", EmitDefaultValue = false)] + public Int64 NodeepScrub { get; set; } + + /// + /// Gets or Sets Nodelete + /// + [DataMember(Name = "nodelete", EmitDefaultValue = false)] + public Int64 Nodelete { get; set; } + + /// + /// Gets or Sets Nopgchange + /// + [DataMember(Name = "nopgchange", EmitDefaultValue = false)] + public Int64 Nopgchange { get; set; } + + /// + /// Gets or Sets Noscrub + /// + [DataMember(Name = "noscrub", EmitDefaultValue = false)] + public Int64 Noscrub { get; set; } + + /// + /// Gets or Sets Nosizechange + /// + [DataMember(Name = "nosizechange", EmitDefaultValue = false)] + public Int64 Nosizechange { get; set; } + + /// + /// The automatic PG scaling mode of the pool. + /// + /// The automatic PG scaling mode of the pool. + [DataMember(Name = "pg_autoscale_mode", EmitDefaultValue = false)] + public string PgAutoscaleMode { get; set; } + + /// + /// Number of placement groups. + /// + /// Number of placement groups. + [DataMember(Name = "pg_num", EmitDefaultValue = false)] + public Int64 PgNum { get; set; } + + /// + /// Minimal number of placement groups. + /// + /// Minimal number of placement groups. + [DataMember(Name = "pg_num_min", EmitDefaultValue = false)] + public Int64 PgNumMin { get; set; } + + /// + /// Gets or Sets PgpNum + /// + [DataMember(Name = "pgp_num", EmitDefaultValue = false)] + public Int64 PgpNum { get; set; } + + /// + /// Number of replicas per object + /// + /// Number of replicas per object + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Gets or Sets Statistics + /// + [DataMember(Name = "statistics", EmitDefaultValue = false)] + public Object Statistics { get; set; } + + /// + /// The estimated target size of the pool for the PG autoscaler. + /// + /// The estimated target size of the pool for the PG autoscaler. + [DataMember(Name = "target_size", EmitDefaultValue = false)] + public string TargetSize { get; set; } + + /// + /// The estimated target ratio of the pool for the PG autoscaler. + /// + /// The estimated target ratio of the pool for the PG autoscaler. + [DataMember(Name = "target_size_ratio", EmitDefaultValue = false)] + public decimal TargetSizeRatio { get; set; } + + /// + /// Gets or Sets UseGmtHitset + /// + [DataMember(Name = "use_gmt_hitset", EmitDefaultValue = false)] + public Int64 UseGmtHitset { get; set; } + + /// + /// Gets or Sets WriteFadviseDontneed + /// + [DataMember(Name = "write_fadvise_dontneed", EmitDefaultValue = false)] + public Int64 WriteFadviseDontneed { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephPoolSingleStatus200ResponseData {\n"); + sb.Append(" Application: ").Append(Application).Append("\n"); + sb.Append(" ApplicationList: ").Append(ApplicationList).Append("\n"); + sb.Append(" AutoscaleStatus: ").Append(AutoscaleStatus).Append("\n"); + sb.Append(" CrushRule: ").Append(CrushRule).Append("\n"); + sb.Append(" FastRead: ").Append(FastRead).Append("\n"); + sb.Append(" Hashpspool: ").Append(Hashpspool).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" MinSize: ").Append(MinSize).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" NodeepScrub: ").Append(NodeepScrub).Append("\n"); + sb.Append(" Nodelete: ").Append(Nodelete).Append("\n"); + sb.Append(" Nopgchange: ").Append(Nopgchange).Append("\n"); + sb.Append(" Noscrub: ").Append(Noscrub).Append("\n"); + sb.Append(" Nosizechange: ").Append(Nosizechange).Append("\n"); + sb.Append(" PgAutoscaleMode: ").Append(PgAutoscaleMode).Append("\n"); + sb.Append(" PgNum: ").Append(PgNum).Append("\n"); + sb.Append(" PgNumMin: ").Append(PgNumMin).Append("\n"); + sb.Append(" PgpNum: ").Append(PgpNum).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Statistics: ").Append(Statistics).Append("\n"); + sb.Append(" TargetSize: ").Append(TargetSize).Append("\n"); + sb.Append(" TargetSizeRatio: ").Append(TargetSizeRatio).Append("\n"); + sb.Append(" UseGmtHitset: ").Append(UseGmtHitset).Append("\n"); + sb.Append(" WriteFadviseDontneed: ").Append(WriteFadviseDontneed).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephRules200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephRules200Response.cs new file mode 100644 index 0000000..bfeb039 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephRules200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephRules200Response + /// + [DataContract(Name = "getNodesSingleCephRules_200_response")] + public partial class GetNodesSingleCephRules200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCephRules200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephRules200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCephRules200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCephRules200ResponseDataInner.cs new file mode 100644 index 0000000..cdb5d5d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCephRules200ResponseDataInner.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCephRules200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCephRules_200_response_data_inner")] + public partial class GetNodesSingleCephRules200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Name of the CRUSH rule.. + public GetNodesSingleCephRules200ResponseDataInner(string name = default(string)) + { + this.Name = name; + } + + /// + /// Name of the CRUSH rule. + /// + /// Name of the CRUSH rule. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCephRules200ResponseDataInner {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCertificatesInfo200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleCertificatesInfo200Response.cs new file mode 100644 index 0000000..65711a6 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCertificatesInfo200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCertificatesInfo200Response + /// + [DataContract(Name = "getNodesSingleCertificatesInfo_200_response")] + public partial class GetNodesSingleCertificatesInfo200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleCertificatesInfo200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCertificatesInfo200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleCertificatesInfo200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleCertificatesInfo200ResponseDataInner.cs new file mode 100644 index 0000000..5425dc9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleCertificatesInfo200ResponseDataInner.cs @@ -0,0 +1,173 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleCertificatesInfo200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleCertificatesInfo_200_response_data_inner")] + public partial class GetNodesSingleCertificatesInfo200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// filename. + /// Certificate SHA 256 fingerprint.. + /// Certificate issuer name.. + /// Certificate's notAfter timestamp (UNIX epoch).. + /// Certificate's notBefore timestamp (UNIX epoch).. + /// Certificate in PEM format. + /// Certificate's public key size. + /// Certificate's public key algorithm. + /// List of Certificate's SubjectAlternativeName entries.. + /// Certificate subject name.. + public GetNodesSingleCertificatesInfo200ResponseDataInner(string filename = default(string), string fingerprint = default(string), string issuer = default(string), Int64 notafter = default(Int64), Int64 notbefore = default(Int64), string pem = default(string), Int64 publicKeyBits = default(Int64), string publicKeyType = default(string), List san = default(List), string subject = default(string)) + { + this.Filename = filename; + this.Fingerprint = fingerprint; + this.Issuer = issuer; + this.Notafter = notafter; + this.Notbefore = notbefore; + this.Pem = pem; + this.PublicKeyBits = publicKeyBits; + this.PublicKeyType = publicKeyType; + this.San = san; + this.Subject = subject; + } + + /// + /// Gets or Sets Filename + /// + [DataMember(Name = "filename", EmitDefaultValue = false)] + public string Filename { get; set; } + + /// + /// Certificate SHA 256 fingerprint. + /// + /// Certificate SHA 256 fingerprint. + [DataMember(Name = "fingerprint", EmitDefaultValue = false)] + public string Fingerprint { get; set; } + + /// + /// Certificate issuer name. + /// + /// Certificate issuer name. + [DataMember(Name = "issuer", EmitDefaultValue = false)] + public string Issuer { get; set; } + + /// + /// Certificate's notAfter timestamp (UNIX epoch). + /// + /// Certificate's notAfter timestamp (UNIX epoch). + [DataMember(Name = "notafter", EmitDefaultValue = false)] + public Int64 Notafter { get; set; } + + /// + /// Certificate's notBefore timestamp (UNIX epoch). + /// + /// Certificate's notBefore timestamp (UNIX epoch). + [DataMember(Name = "notbefore", EmitDefaultValue = false)] + public Int64 Notbefore { get; set; } + + /// + /// Certificate in PEM format + /// + /// Certificate in PEM format + [DataMember(Name = "pem", EmitDefaultValue = false)] + public string Pem { get; set; } + + /// + /// Certificate's public key size + /// + /// Certificate's public key size + [DataMember(Name = "public-key-bits", EmitDefaultValue = false)] + public Int64 PublicKeyBits { get; set; } + + /// + /// Certificate's public key algorithm + /// + /// Certificate's public key algorithm + [DataMember(Name = "public-key-type", EmitDefaultValue = false)] + public string PublicKeyType { get; set; } + + /// + /// List of Certificate's SubjectAlternativeName entries. + /// + /// List of Certificate's SubjectAlternativeName entries. + [DataMember(Name = "san", EmitDefaultValue = false)] + public List San { get; set; } + + /// + /// Certificate subject name. + /// + /// Certificate subject name. + [DataMember(Name = "subject", EmitDefaultValue = false)] + public string Subject { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleCertificatesInfo200ResponseDataInner {\n"); + sb.Append(" Filename: ").Append(Filename).Append("\n"); + sb.Append(" Fingerprint: ").Append(Fingerprint).Append("\n"); + sb.Append(" Issuer: ").Append(Issuer).Append("\n"); + sb.Append(" Notafter: ").Append(Notafter).Append("\n"); + sb.Append(" Notbefore: ").Append(Notbefore).Append("\n"); + sb.Append(" Pem: ").Append(Pem).Append("\n"); + sb.Append(" PublicKeyBits: ").Append(PublicKeyBits).Append("\n"); + sb.Append(" PublicKeyType: ").Append(PublicKeyType).Append("\n"); + sb.Append(" San: ").Append(San).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleConfig200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleConfig200Response.cs new file mode 100644 index 0000000..2bb1b74 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleConfig200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleConfig200Response + /// + [DataContract(Name = "getNodesSingleConfig_200_response")] + public partial class GetNodesSingleConfig200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleConfig200Response(List errors = default(List), GetNodesSingleConfig200ResponseData data = default(GetNodesSingleConfig200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleConfig200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleConfig200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleConfig200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleConfig200ResponseData.cs new file mode 100644 index 0000000..1326c81 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleConfig200ResponseData.cs @@ -0,0 +1,434 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleConfig200ResponseData + /// + [DataContract(Name = "getNodesSingleConfig_200_response_data")] + public partial class GetNodesSingleConfig200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Node specific ACME settings.. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// ACME domain and validation plugin. + /// RAM usage target for ballooning (in percent of total memory). + /// Description for the Node. Shown in the web-interface node notes panel. This is saved as comment inside the configuration file.. + /// Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.. + /// Initial delay in seconds, before starting all the Virtual Guests with on-boot enabled.. + /// Node specific wake on LAN settings.. + public GetNodesSingleConfig200ResponseData(string acme = default(string), string acmedomain0 = default(string), string acmedomain1 = default(string), string acmedomain2 = default(string), string acmedomain3 = default(string), string acmedomain4 = default(string), string acmedomain5 = default(string), string acmedomain6 = default(string), string acmedomain7 = default(string), string acmedomain8 = default(string), string acmedomain9 = default(string), string acmedomain10 = default(string), string acmedomain11 = default(string), string acmedomain12 = default(string), string acmedomain13 = default(string), string acmedomain14 = default(string), string acmedomain15 = default(string), string acmedomain16 = default(string), string acmedomain17 = default(string), string acmedomain18 = default(string), string acmedomain19 = default(string), string acmedomain20 = default(string), string acmedomain21 = default(string), string acmedomain22 = default(string), string acmedomain23 = default(string), string acmedomain24 = default(string), string acmedomain25 = default(string), string acmedomain26 = default(string), string acmedomain27 = default(string), string acmedomain28 = default(string), string acmedomain29 = default(string), Int64 ballooningTarget = default(Int64), string description = default(string), string digest = default(string), Int64 startallOnbootDelay = default(Int64), string wakeonlan = default(string)) + { + this.Acme = acme; + this.Acmedomain0 = acmedomain0; + this.Acmedomain1 = acmedomain1; + this.Acmedomain2 = acmedomain2; + this.Acmedomain3 = acmedomain3; + this.Acmedomain4 = acmedomain4; + this.Acmedomain5 = acmedomain5; + this.Acmedomain6 = acmedomain6; + this.Acmedomain7 = acmedomain7; + this.Acmedomain8 = acmedomain8; + this.Acmedomain9 = acmedomain9; + this.Acmedomain10 = acmedomain10; + this.Acmedomain11 = acmedomain11; + this.Acmedomain12 = acmedomain12; + this.Acmedomain13 = acmedomain13; + this.Acmedomain14 = acmedomain14; + this.Acmedomain15 = acmedomain15; + this.Acmedomain16 = acmedomain16; + this.Acmedomain17 = acmedomain17; + this.Acmedomain18 = acmedomain18; + this.Acmedomain19 = acmedomain19; + this.Acmedomain20 = acmedomain20; + this.Acmedomain21 = acmedomain21; + this.Acmedomain22 = acmedomain22; + this.Acmedomain23 = acmedomain23; + this.Acmedomain24 = acmedomain24; + this.Acmedomain25 = acmedomain25; + this.Acmedomain26 = acmedomain26; + this.Acmedomain27 = acmedomain27; + this.Acmedomain28 = acmedomain28; + this.Acmedomain29 = acmedomain29; + this.BallooningTarget = ballooningTarget; + this.Description = description; + this.Digest = digest; + this.StartallOnbootDelay = startallOnbootDelay; + this.Wakeonlan = wakeonlan; + } + + /// + /// Node specific ACME settings. + /// + /// Node specific ACME settings. + [DataMember(Name = "acme", EmitDefaultValue = false)] + public string Acme { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain0", EmitDefaultValue = false)] + public string Acmedomain0 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain1", EmitDefaultValue = false)] + public string Acmedomain1 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain2", EmitDefaultValue = false)] + public string Acmedomain2 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain3", EmitDefaultValue = false)] + public string Acmedomain3 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain4", EmitDefaultValue = false)] + public string Acmedomain4 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain5", EmitDefaultValue = false)] + public string Acmedomain5 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain6", EmitDefaultValue = false)] + public string Acmedomain6 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain7", EmitDefaultValue = false)] + public string Acmedomain7 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain8", EmitDefaultValue = false)] + public string Acmedomain8 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain9", EmitDefaultValue = false)] + public string Acmedomain9 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain10", EmitDefaultValue = false)] + public string Acmedomain10 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain11", EmitDefaultValue = false)] + public string Acmedomain11 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain12", EmitDefaultValue = false)] + public string Acmedomain12 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain13", EmitDefaultValue = false)] + public string Acmedomain13 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain14", EmitDefaultValue = false)] + public string Acmedomain14 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain15", EmitDefaultValue = false)] + public string Acmedomain15 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain16", EmitDefaultValue = false)] + public string Acmedomain16 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain17", EmitDefaultValue = false)] + public string Acmedomain17 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain18", EmitDefaultValue = false)] + public string Acmedomain18 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain19", EmitDefaultValue = false)] + public string Acmedomain19 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain20", EmitDefaultValue = false)] + public string Acmedomain20 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain21", EmitDefaultValue = false)] + public string Acmedomain21 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain22", EmitDefaultValue = false)] + public string Acmedomain22 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain23", EmitDefaultValue = false)] + public string Acmedomain23 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain24", EmitDefaultValue = false)] + public string Acmedomain24 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain25", EmitDefaultValue = false)] + public string Acmedomain25 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain26", EmitDefaultValue = false)] + public string Acmedomain26 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain27", EmitDefaultValue = false)] + public string Acmedomain27 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain28", EmitDefaultValue = false)] + public string Acmedomain28 { get; set; } + + /// + /// ACME domain and validation plugin + /// + /// ACME domain and validation plugin + [DataMember(Name = "acmedomain29", EmitDefaultValue = false)] + public string Acmedomain29 { get; set; } + + /// + /// RAM usage target for ballooning (in percent of total memory) + /// + /// RAM usage target for ballooning (in percent of total memory) + [DataMember(Name = "ballooning-target", EmitDefaultValue = false)] + public Int64 BallooningTarget { get; set; } + + /// + /// Description for the Node. Shown in the web-interface node notes panel. This is saved as comment inside the configuration file. + /// + /// Description for the Node. Shown in the web-interface node notes panel. This is saved as comment inside the configuration file. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Initial delay in seconds, before starting all the Virtual Guests with on-boot enabled. + /// + /// Initial delay in seconds, before starting all the Virtual Guests with on-boot enabled. + [DataMember(Name = "startall-onboot-delay", EmitDefaultValue = false)] + public Int64 StartallOnbootDelay { get; set; } + + /// + /// Node specific wake on LAN settings. + /// + /// Node specific wake on LAN settings. + [DataMember(Name = "wakeonlan", EmitDefaultValue = false)] + public string Wakeonlan { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleConfig200ResponseData {\n"); + sb.Append(" Acme: ").Append(Acme).Append("\n"); + sb.Append(" Acmedomain0: ").Append(Acmedomain0).Append("\n"); + sb.Append(" Acmedomain1: ").Append(Acmedomain1).Append("\n"); + sb.Append(" Acmedomain2: ").Append(Acmedomain2).Append("\n"); + sb.Append(" Acmedomain3: ").Append(Acmedomain3).Append("\n"); + sb.Append(" Acmedomain4: ").Append(Acmedomain4).Append("\n"); + sb.Append(" Acmedomain5: ").Append(Acmedomain5).Append("\n"); + sb.Append(" Acmedomain6: ").Append(Acmedomain6).Append("\n"); + sb.Append(" Acmedomain7: ").Append(Acmedomain7).Append("\n"); + sb.Append(" Acmedomain8: ").Append(Acmedomain8).Append("\n"); + sb.Append(" Acmedomain9: ").Append(Acmedomain9).Append("\n"); + sb.Append(" Acmedomain10: ").Append(Acmedomain10).Append("\n"); + sb.Append(" Acmedomain11: ").Append(Acmedomain11).Append("\n"); + sb.Append(" Acmedomain12: ").Append(Acmedomain12).Append("\n"); + sb.Append(" Acmedomain13: ").Append(Acmedomain13).Append("\n"); + sb.Append(" Acmedomain14: ").Append(Acmedomain14).Append("\n"); + sb.Append(" Acmedomain15: ").Append(Acmedomain15).Append("\n"); + sb.Append(" Acmedomain16: ").Append(Acmedomain16).Append("\n"); + sb.Append(" Acmedomain17: ").Append(Acmedomain17).Append("\n"); + sb.Append(" Acmedomain18: ").Append(Acmedomain18).Append("\n"); + sb.Append(" Acmedomain19: ").Append(Acmedomain19).Append("\n"); + sb.Append(" Acmedomain20: ").Append(Acmedomain20).Append("\n"); + sb.Append(" Acmedomain21: ").Append(Acmedomain21).Append("\n"); + sb.Append(" Acmedomain22: ").Append(Acmedomain22).Append("\n"); + sb.Append(" Acmedomain23: ").Append(Acmedomain23).Append("\n"); + sb.Append(" Acmedomain24: ").Append(Acmedomain24).Append("\n"); + sb.Append(" Acmedomain25: ").Append(Acmedomain25).Append("\n"); + sb.Append(" Acmedomain26: ").Append(Acmedomain26).Append("\n"); + sb.Append(" Acmedomain27: ").Append(Acmedomain27).Append("\n"); + sb.Append(" Acmedomain28: ").Append(Acmedomain28).Append("\n"); + sb.Append(" Acmedomain29: ").Append(Acmedomain29).Append("\n"); + sb.Append(" BallooningTarget: ").Append(BallooningTarget).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" StartallOnbootDelay: ").Append(StartallOnbootDelay).Append("\n"); + sb.Append(" Wakeonlan: ").Append(Wakeonlan).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksDirectory200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksDirectory200Response.cs new file mode 100644 index 0000000..3eae641 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksDirectory200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksDirectory200Response + /// + [DataContract(Name = "getNodesSingleDisksDirectory_200_response")] + public partial class GetNodesSingleDisksDirectory200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleDisksDirectory200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksDirectory200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksDirectory200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksDirectory200ResponseDataInner.cs new file mode 100644 index 0000000..969b97c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksDirectory200ResponseDataInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksDirectory200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleDisksDirectory_200_response_data_inner")] + public partial class GetNodesSingleDisksDirectory200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The mounted device.. + /// The mount options.. + /// The mount path.. + /// The filesystem type.. + /// The path of the mount unit.. + public GetNodesSingleDisksDirectory200ResponseDataInner(string device = default(string), string options = default(string), string path = default(string), string type = default(string), string unitfile = default(string)) + { + this.Device = device; + this.Options = options; + this.Path = path; + this.Type = type; + this.Unitfile = unitfile; + } + + /// + /// The mounted device. + /// + /// The mounted device. + [DataMember(Name = "device", EmitDefaultValue = false)] + public string Device { get; set; } + + /// + /// The mount options. + /// + /// The mount options. + [DataMember(Name = "options", EmitDefaultValue = false)] + public string Options { get; set; } + + /// + /// The mount path. + /// + /// The mount path. + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// The filesystem type. + /// + /// The filesystem type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// The path of the mount unit. + /// + /// The path of the mount unit. + [DataMember(Name = "unitfile", EmitDefaultValue = false)] + public string Unitfile { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksDirectory200ResponseDataInner {\n"); + sb.Append(" Device: ").Append(Device).Append("\n"); + sb.Append(" Options: ").Append(Options).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Unitfile: ").Append(Unitfile).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksList200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksList200Response.cs new file mode 100644 index 0000000..3ba635c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksList200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksList200Response + /// + [DataContract(Name = "getNodesSingleDisksList_200_response")] + public partial class GetNodesSingleDisksList200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleDisksList200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksList200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksList200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksList200ResponseDataInner.cs new file mode 100644 index 0000000..42a38bf --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksList200ResponseDataInner.cs @@ -0,0 +1,193 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksList200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleDisksList_200_response_data_inner")] + public partial class GetNodesSingleDisksList200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The device path. + /// gpt. + /// health. + /// model. + /// mounted. + /// osdid. + /// osdidList. + /// For partitions only. The device path of the disk the partition resides on.. + /// serial. + /// size. + /// used. + /// vendor. + /// wwn. + public GetNodesSingleDisksList200ResponseDataInner(string devpath = default(string), Int64 gpt = default(Int64), string health = default(string), string model = default(string), Int64 mounted = default(Int64), Int64 osdid = default(Int64), List osdidList = default(List), string parent = default(string), string serial = default(string), Int64 size = default(Int64), string used = default(string), string vendor = default(string), string wwn = default(string)) + { + this.Devpath = devpath; + this.Gpt = gpt; + this.Health = health; + this.Model = model; + this.Mounted = mounted; + this.Osdid = osdid; + this.OsdidList = osdidList; + this.Parent = parent; + this.Serial = serial; + this.Size = size; + this.Used = used; + this.Vendor = vendor; + this.Wwn = wwn; + } + + /// + /// The device path + /// + /// The device path + [DataMember(Name = "devpath", EmitDefaultValue = false)] + public string Devpath { get; set; } + + /// + /// Gets or Sets Gpt + /// + [DataMember(Name = "gpt", EmitDefaultValue = false)] + public Int64 Gpt { get; set; } + + /// + /// Gets or Sets Health + /// + [DataMember(Name = "health", EmitDefaultValue = false)] + public string Health { get; set; } + + /// + /// Gets or Sets Model + /// + [DataMember(Name = "model", EmitDefaultValue = false)] + public string Model { get; set; } + + /// + /// Gets or Sets Mounted + /// + [DataMember(Name = "mounted", EmitDefaultValue = false)] + public Int64 Mounted { get; set; } + + /// + /// Gets or Sets Osdid + /// + [DataMember(Name = "osdid", EmitDefaultValue = false)] + public Int64 Osdid { get; set; } + + /// + /// Gets or Sets OsdidList + /// + [DataMember(Name = "osdid-list", EmitDefaultValue = false)] + public List OsdidList { get; set; } + + /// + /// For partitions only. The device path of the disk the partition resides on. + /// + /// For partitions only. The device path of the disk the partition resides on. + [DataMember(Name = "parent", EmitDefaultValue = false)] + public string Parent { get; set; } + + /// + /// Gets or Sets Serial + /// + [DataMember(Name = "serial", EmitDefaultValue = false)] + public string Serial { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Gets or Sets Used + /// + [DataMember(Name = "used", EmitDefaultValue = false)] + public string Used { get; set; } + + /// + /// Gets or Sets Vendor + /// + [DataMember(Name = "vendor", EmitDefaultValue = false)] + public string Vendor { get; set; } + + /// + /// Gets or Sets Wwn + /// + [DataMember(Name = "wwn", EmitDefaultValue = false)] + public string Wwn { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksList200ResponseDataInner {\n"); + sb.Append(" Devpath: ").Append(Devpath).Append("\n"); + sb.Append(" Gpt: ").Append(Gpt).Append("\n"); + sb.Append(" Health: ").Append(Health).Append("\n"); + sb.Append(" Model: ").Append(Model).Append("\n"); + sb.Append(" Mounted: ").Append(Mounted).Append("\n"); + sb.Append(" Osdid: ").Append(Osdid).Append("\n"); + sb.Append(" OsdidList: ").Append(OsdidList).Append("\n"); + sb.Append(" Parent: ").Append(Parent).Append("\n"); + sb.Append(" Serial: ").Append(Serial).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Used: ").Append(Used).Append("\n"); + sb.Append(" Vendor: ").Append(Vendor).Append("\n"); + sb.Append(" Wwn: ").Append(Wwn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200Response.cs new file mode 100644 index 0000000..25408cb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksLvm200Response + /// + [DataContract(Name = "getNodesSingleDisksLvm_200_response")] + public partial class GetNodesSingleDisksLvm200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleDisksLvm200Response(List errors = default(List), GetNodesSingleDisksLvm200ResponseData data = default(GetNodesSingleDisksLvm200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleDisksLvm200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksLvm200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseData.cs new file mode 100644 index 0000000..c9d5660 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseData.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksLvm200ResponseData + /// + [DataContract(Name = "getNodesSingleDisksLvm_200_response_data")] + public partial class GetNodesSingleDisksLvm200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// children. + /// leaf. + public GetNodesSingleDisksLvm200ResponseData(List children = default(List), Int64 leaf = default(Int64)) + { + this.Children = children; + this.Leaf = leaf; + } + + /// + /// Gets or Sets Children + /// + [DataMember(Name = "children", EmitDefaultValue = false)] + public List Children { get; set; } + + /// + /// Gets or Sets Leaf + /// + [DataMember(Name = "leaf", EmitDefaultValue = false)] + public Int64 Leaf { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksLvm200ResponseData {\n"); + sb.Append(" Children: ").Append(Children).Append("\n"); + sb.Append(" Leaf: ").Append(Leaf).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseDataChildrenInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseDataChildrenInner.cs new file mode 100644 index 0000000..8ecaec3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseDataChildrenInner.cs @@ -0,0 +1,123 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksLvm200ResponseDataChildrenInner + /// + [DataContract(Name = "getNodesSingleDisksLvm_200_response_data_children_inner")] + public partial class GetNodesSingleDisksLvm200ResponseDataChildrenInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The underlying physical volumes. + /// The free bytes in the volume group. + /// leaf. + /// The name of the volume group. + /// The size of the volume group in bytes. + public GetNodesSingleDisksLvm200ResponseDataChildrenInner(List children = default(List), Int64 free = default(Int64), Int64 leaf = default(Int64), string name = default(string), Int64 size = default(Int64)) + { + this.Children = children; + this.Free = free; + this.Leaf = leaf; + this.Name = name; + this.Size = size; + } + + /// + /// The underlying physical volumes + /// + /// The underlying physical volumes + [DataMember(Name = "children", EmitDefaultValue = false)] + public List Children { get; set; } + + /// + /// The free bytes in the volume group + /// + /// The free bytes in the volume group + [DataMember(Name = "free", EmitDefaultValue = false)] + public Int64 Free { get; set; } + + /// + /// Gets or Sets Leaf + /// + [DataMember(Name = "leaf", EmitDefaultValue = false)] + public Int64 Leaf { get; set; } + + /// + /// The name of the volume group + /// + /// The name of the volume group + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The size of the volume group in bytes + /// + /// The size of the volume group in bytes + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksLvm200ResponseDataChildrenInner {\n"); + sb.Append(" Children: ").Append(Children).Append("\n"); + sb.Append(" Free: ").Append(Free).Append("\n"); + sb.Append(" Leaf: ").Append(Leaf).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseDataChildrenInnerChildrenInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseDataChildrenInnerChildrenInner.cs new file mode 100644 index 0000000..e665f46 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvm200ResponseDataChildrenInnerChildrenInner.cs @@ -0,0 +1,113 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksLvm200ResponseDataChildrenInnerChildrenInner + /// + [DataContract(Name = "getNodesSingleDisksLvm_200_response_data_children_inner_children_inner")] + public partial class GetNodesSingleDisksLvm200ResponseDataChildrenInnerChildrenInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The free bytes in the physical volume. + /// leaf. + /// The name of the physical volume. + /// The size of the physical volume in bytes. + public GetNodesSingleDisksLvm200ResponseDataChildrenInnerChildrenInner(Int64 free = default(Int64), Int64 leaf = default(Int64), string name = default(string), Int64 size = default(Int64)) + { + this.Free = free; + this.Leaf = leaf; + this.Name = name; + this.Size = size; + } + + /// + /// The free bytes in the physical volume + /// + /// The free bytes in the physical volume + [DataMember(Name = "free", EmitDefaultValue = false)] + public Int64 Free { get; set; } + + /// + /// Gets or Sets Leaf + /// + [DataMember(Name = "leaf", EmitDefaultValue = false)] + public Int64 Leaf { get; set; } + + /// + /// The name of the physical volume + /// + /// The name of the physical volume + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The size of the physical volume in bytes + /// + /// The size of the physical volume in bytes + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksLvm200ResponseDataChildrenInnerChildrenInner {\n"); + sb.Append(" Free: ").Append(Free).Append("\n"); + sb.Append(" Leaf: ").Append(Leaf).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksLvmthin200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvmthin200Response.cs new file mode 100644 index 0000000..91bc73e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvmthin200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksLvmthin200Response + /// + [DataContract(Name = "getNodesSingleDisksLvmthin_200_response")] + public partial class GetNodesSingleDisksLvmthin200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleDisksLvmthin200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksLvmthin200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksLvmthin200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvmthin200ResponseDataInner.cs new file mode 100644 index 0000000..ecae429 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksLvmthin200ResponseDataInner.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksLvmthin200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleDisksLvmthin_200_response_data_inner")] + public partial class GetNodesSingleDisksLvmthin200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the thinpool.. + /// The size of the thinpool in bytes.. + /// The size of the metadata lv in bytes.. + /// The used bytes of the metadata lv.. + /// The used bytes of the thinpool.. + /// The associated volume group.. + public GetNodesSingleDisksLvmthin200ResponseDataInner(string lv = default(string), Int64 lvSize = default(Int64), Int64 metadataSize = default(Int64), Int64 metadataUsed = default(Int64), Int64 used = default(Int64), string vg = default(string)) + { + this.Lv = lv; + this.LvSize = lvSize; + this.MetadataSize = metadataSize; + this.MetadataUsed = metadataUsed; + this.Used = used; + this.Vg = vg; + } + + /// + /// The name of the thinpool. + /// + /// The name of the thinpool. + [DataMember(Name = "lv", EmitDefaultValue = false)] + public string Lv { get; set; } + + /// + /// The size of the thinpool in bytes. + /// + /// The size of the thinpool in bytes. + [DataMember(Name = "lv_size", EmitDefaultValue = false)] + public Int64 LvSize { get; set; } + + /// + /// The size of the metadata lv in bytes. + /// + /// The size of the metadata lv in bytes. + [DataMember(Name = "metadata_size", EmitDefaultValue = false)] + public Int64 MetadataSize { get; set; } + + /// + /// The used bytes of the metadata lv. + /// + /// The used bytes of the metadata lv. + [DataMember(Name = "metadata_used", EmitDefaultValue = false)] + public Int64 MetadataUsed { get; set; } + + /// + /// The used bytes of the thinpool. + /// + /// The used bytes of the thinpool. + [DataMember(Name = "used", EmitDefaultValue = false)] + public Int64 Used { get; set; } + + /// + /// The associated volume group. + /// + /// The associated volume group. + [DataMember(Name = "vg", EmitDefaultValue = false)] + public string Vg { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksLvmthin200ResponseDataInner {\n"); + sb.Append(" Lv: ").Append(Lv).Append("\n"); + sb.Append(" LvSize: ").Append(LvSize).Append("\n"); + sb.Append(" MetadataSize: ").Append(MetadataSize).Append("\n"); + sb.Append(" MetadataUsed: ").Append(MetadataUsed).Append("\n"); + sb.Append(" Used: ").Append(Used).Append("\n"); + sb.Append(" Vg: ").Append(Vg).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksSmart200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksSmart200Response.cs new file mode 100644 index 0000000..d64c449 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksSmart200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksSmart200Response + /// + [DataContract(Name = "getNodesSingleDisksSmart_200_response")] + public partial class GetNodesSingleDisksSmart200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleDisksSmart200Response(List errors = default(List), GetNodesSingleDisksSmart200ResponseData data = default(GetNodesSingleDisksSmart200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleDisksSmart200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksSmart200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksSmart200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksSmart200ResponseData.cs new file mode 100644 index 0000000..cb853d3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksSmart200ResponseData.cs @@ -0,0 +1,110 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksSmart200ResponseData + /// + [DataContract(Name = "getNodesSingleDisksSmart_200_response_data")] + public partial class GetNodesSingleDisksSmart200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// attributes. + /// health. + /// text. + /// type. + public GetNodesSingleDisksSmart200ResponseData(List attributes = default(List), string health = default(string), string text = default(string), string type = default(string)) + { + this.Attributes = attributes; + this.Health = health; + this.Text = text; + this.Type = type; + } + + /// + /// Gets or Sets Attributes + /// + [DataMember(Name = "attributes", EmitDefaultValue = false)] + public List Attributes { get; set; } + + /// + /// Gets or Sets Health + /// + [DataMember(Name = "health", EmitDefaultValue = false)] + public string Health { get; set; } + + /// + /// Gets or Sets Text + /// + [DataMember(Name = "text", EmitDefaultValue = false)] + public string Text { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksSmart200ResponseData {\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" Health: ").Append(Health).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksZfs200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfs200Response.cs new file mode 100644 index 0000000..8b38deb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfs200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksZfs200Response + /// + [DataContract(Name = "getNodesSingleDisksZfs_200_response")] + public partial class GetNodesSingleDisksZfs200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleDisksZfs200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksZfs200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksZfs200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfs200ResponseDataInner.cs new file mode 100644 index 0000000..0fdf1c3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfs200ResponseDataInner.cs @@ -0,0 +1,137 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksZfs200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleDisksZfs_200_response_data_inner")] + public partial class GetNodesSingleDisksZfs200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// alloc. + /// dedup. + /// frag. + /// free. + /// health. + /// name. + /// size. + public GetNodesSingleDisksZfs200ResponseDataInner(Int64 alloc = default(Int64), decimal dedup = default(decimal), Int64 frag = default(Int64), Int64 free = default(Int64), string health = default(string), string name = default(string), Int64 size = default(Int64)) + { + this.Alloc = alloc; + this.Dedup = dedup; + this.Frag = frag; + this.Free = free; + this.Health = health; + this.Name = name; + this.Size = size; + } + + /// + /// Gets or Sets Alloc + /// + [DataMember(Name = "alloc", EmitDefaultValue = false)] + public Int64 Alloc { get; set; } + + /// + /// Gets or Sets Dedup + /// + [DataMember(Name = "dedup", EmitDefaultValue = false)] + public decimal Dedup { get; set; } + + /// + /// Gets or Sets Frag + /// + [DataMember(Name = "frag", EmitDefaultValue = false)] + public Int64 Frag { get; set; } + + /// + /// Gets or Sets Free + /// + [DataMember(Name = "free", EmitDefaultValue = false)] + public Int64 Free { get; set; } + + /// + /// Gets or Sets Health + /// + [DataMember(Name = "health", EmitDefaultValue = false)] + public string Health { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksZfs200ResponseDataInner {\n"); + sb.Append(" Alloc: ").Append(Alloc).Append("\n"); + sb.Append(" Dedup: ").Append(Dedup).Append("\n"); + sb.Append(" Frag: ").Append(Frag).Append("\n"); + sb.Append(" Free: ").Append(Free).Append("\n"); + sb.Append(" Health: ").Append(Health).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200Response.cs new file mode 100644 index 0000000..aa74f02 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksZfsSingle200Response + /// + [DataContract(Name = "getNodesSingleDisksZfsSingle_200_response")] + public partial class GetNodesSingleDisksZfsSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleDisksZfsSingle200Response(List errors = default(List), GetNodesSingleDisksZfsSingle200ResponseData data = default(GetNodesSingleDisksZfsSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleDisksZfsSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksZfsSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200ResponseData.cs new file mode 100644 index 0000000..f42014f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200ResponseData.cs @@ -0,0 +1,144 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksZfsSingle200ResponseData + /// + [DataContract(Name = "getNodesSingleDisksZfsSingle_200_response_data")] + public partial class GetNodesSingleDisksZfsSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Information about the recommended action to fix the state.. + /// The pool configuration information, including the vdevs for each section (e.g. spares, cache), may be nested.. + /// Information about the errors on the zpool.. + /// The name of the zpool.. + /// Information about the last/current scrub.. + /// The state of the zpool.. + /// Information about the state of the zpool.. + public GetNodesSingleDisksZfsSingle200ResponseData(string action = default(string), List children = default(List), string errors = default(string), string name = default(string), string scan = default(string), string state = default(string), string status = default(string)) + { + this.Action = action; + this.Children = children; + this.Errors = errors; + this.Name = name; + this.Scan = scan; + this.State = state; + this.Status = status; + } + + /// + /// Information about the recommended action to fix the state. + /// + /// Information about the recommended action to fix the state. + [DataMember(Name = "action", EmitDefaultValue = false)] + public string Action { get; set; } + + /// + /// The pool configuration information, including the vdevs for each section (e.g. spares, cache), may be nested. + /// + /// The pool configuration information, including the vdevs for each section (e.g. spares, cache), may be nested. + [DataMember(Name = "children", EmitDefaultValue = false)] + public List Children { get; set; } + + /// + /// Information about the errors on the zpool. + /// + /// Information about the errors on the zpool. + [DataMember(Name = "errors", EmitDefaultValue = false)] + public string Errors { get; set; } + + /// + /// The name of the zpool. + /// + /// The name of the zpool. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Information about the last/current scrub. + /// + /// Information about the last/current scrub. + [DataMember(Name = "scan", EmitDefaultValue = false)] + public string Scan { get; set; } + + /// + /// The state of the zpool. + /// + /// The state of the zpool. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Information about the state of the zpool. + /// + /// Information about the state of the zpool. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksZfsSingle200ResponseData {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Children: ").Append(Children).Append("\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Scan: ").Append(Scan).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner.cs new file mode 100644 index 0000000..62b84cc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner.cs @@ -0,0 +1,131 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner + /// + [DataContract(Name = "getNodesSingleDisksZfsSingle_200_response_data_children_inner")] + public partial class GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cksum. + /// An optional message about the vdev.. + /// The name of the vdev or section.. + /// read. + /// The state of the vdev.. + /// write. + public GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner(decimal cksum = default(decimal), string msg = default(string), string name = default(string), decimal read = default(decimal), string state = default(string), decimal write = default(decimal)) + { + this.Cksum = cksum; + this.Msg = msg; + this.Name = name; + this.Read = read; + this.State = state; + this.Write = write; + } + + /// + /// Gets or Sets Cksum + /// + [DataMember(Name = "cksum", EmitDefaultValue = false)] + public decimal Cksum { get; set; } + + /// + /// An optional message about the vdev. + /// + /// An optional message about the vdev. + [DataMember(Name = "msg", EmitDefaultValue = false)] + public string Msg { get; set; } + + /// + /// The name of the vdev or section. + /// + /// The name of the vdev or section. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Read + /// + [DataMember(Name = "read", EmitDefaultValue = false)] + public decimal Read { get; set; } + + /// + /// The state of the vdev. + /// + /// The state of the vdev. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Gets or Sets Write + /// + [DataMember(Name = "write", EmitDefaultValue = false)] + public decimal Write { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner {\n"); + sb.Append(" Cksum: ").Append(Cksum).Append("\n"); + sb.Append(" Msg: ").Append(Msg).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Read: ").Append(Read).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Write: ").Append(Write).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDns200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleDns200Response.cs new file mode 100644 index 0000000..4ca7643 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDns200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDns200Response + /// + [DataContract(Name = "getNodesSingleDns_200_response")] + public partial class GetNodesSingleDns200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleDns200Response(List errors = default(List), GetNodesSingleDns200ResponseData data = default(GetNodesSingleDns200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleDns200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDns200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleDns200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleDns200ResponseData.cs new file mode 100644 index 0000000..5ab44df --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleDns200ResponseData.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleDns200ResponseData + /// + [DataContract(Name = "getNodesSingleDns_200_response_data")] + public partial class GetNodesSingleDns200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// First name server IP address.. + /// Second name server IP address.. + /// Third name server IP address.. + /// Search domain for host-name lookup.. + public GetNodesSingleDns200ResponseData(string dns1 = default(string), string dns2 = default(string), string dns3 = default(string), string search = default(string)) + { + this.Dns1 = dns1; + this.Dns2 = dns2; + this.Dns3 = dns3; + this.Search = search; + } + + /// + /// First name server IP address. + /// + /// First name server IP address. + [DataMember(Name = "dns1", EmitDefaultValue = false)] + public string Dns1 { get; set; } + + /// + /// Second name server IP address. + /// + /// Second name server IP address. + [DataMember(Name = "dns2", EmitDefaultValue = false)] + public string Dns2 { get; set; } + + /// + /// Third name server IP address. + /// + /// Third name server IP address. + [DataMember(Name = "dns3", EmitDefaultValue = false)] + public string Dns3 { get; set; } + + /// + /// Search domain for host-name lookup. + /// + /// Search domain for host-name lookup. + [DataMember(Name = "search", EmitDefaultValue = false)] + public string Search { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleDns200ResponseData {\n"); + sb.Append(" Dns1: ").Append(Dns1).Append("\n"); + sb.Append(" Dns2: ").Append(Dns2).Append("\n"); + sb.Append(" Dns3: ").Append(Dns3).Append("\n"); + sb.Append(" Search: ").Append(Search).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHardware200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleHardware200Response.cs new file mode 100644 index 0000000..57ddb61 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHardware200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHardware200Response + /// + [DataContract(Name = "getNodesSingleHardware_200_response")] + public partial class GetNodesSingleHardware200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleHardware200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHardware200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHardware200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleHardware200ResponseDataInner.cs new file mode 100644 index 0000000..99c8a07 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHardware200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHardware200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleHardware_200_response_data_inner")] + public partial class GetNodesSingleHardware200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// type. + public GetNodesSingleHardware200ResponseDataInner(string type = default(string)) + { + this.Type = type; + } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHardware200ResponseDataInner {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHardwarePci200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleHardwarePci200Response.cs new file mode 100644 index 0000000..b442368 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHardwarePci200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHardwarePci200Response + /// + [DataContract(Name = "getNodesSingleHardwarePci_200_response")] + public partial class GetNodesSingleHardwarePci200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleHardwarePci200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHardwarePci200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHardwarePci200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleHardwarePci200ResponseDataInner.cs new file mode 100644 index 0000000..3f24806 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHardwarePci200ResponseDataInner.cs @@ -0,0 +1,190 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHardwarePci200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleHardwarePci_200_response_data_inner")] + public partial class GetNodesSingleHardwarePci200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The PCI Class of the device.. + /// The Device ID.. + /// deviceName. + /// The PCI ID.. + /// The IOMMU group in which the device is in. If no IOMMU group is detected, it is set to -1.. + /// If set, marks that the device is capable of creating mediated devices.. + /// The Subsystem Device ID.. + /// subsystemDeviceName. + /// The Subsystem Vendor ID.. + /// subsystemVendorName. + /// The Vendor ID.. + /// vendorName. + public GetNodesSingleHardwarePci200ResponseDataInner(string varClass = default(string), string device = default(string), string deviceName = default(string), string id = default(string), Int64 iommugroup = default(Int64), Int64 mdev = default(Int64), string subsystemDevice = default(string), string subsystemDeviceName = default(string), string subsystemVendor = default(string), string subsystemVendorName = default(string), string vendor = default(string), string vendorName = default(string)) + { + this.Class = varClass; + this.Device = device; + this.DeviceName = deviceName; + this.Id = id; + this.Iommugroup = iommugroup; + this.Mdev = mdev; + this.SubsystemDevice = subsystemDevice; + this.SubsystemDeviceName = subsystemDeviceName; + this.SubsystemVendor = subsystemVendor; + this.SubsystemVendorName = subsystemVendorName; + this.Vendor = vendor; + this.VendorName = vendorName; + } + + /// + /// The PCI Class of the device. + /// + /// The PCI Class of the device. + [DataMember(Name = "class", EmitDefaultValue = false)] + public string Class { get; set; } + + /// + /// The Device ID. + /// + /// The Device ID. + [DataMember(Name = "device", EmitDefaultValue = false)] + public string Device { get; set; } + + /// + /// Gets or Sets DeviceName + /// + [DataMember(Name = "device_name", EmitDefaultValue = false)] + public string DeviceName { get; set; } + + /// + /// The PCI ID. + /// + /// The PCI ID. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// The IOMMU group in which the device is in. If no IOMMU group is detected, it is set to -1. + /// + /// The IOMMU group in which the device is in. If no IOMMU group is detected, it is set to -1. + [DataMember(Name = "iommugroup", EmitDefaultValue = false)] + public Int64 Iommugroup { get; set; } + + /// + /// If set, marks that the device is capable of creating mediated devices. + /// + /// If set, marks that the device is capable of creating mediated devices. + [DataMember(Name = "mdev", EmitDefaultValue = false)] + public Int64 Mdev { get; set; } + + /// + /// The Subsystem Device ID. + /// + /// The Subsystem Device ID. + [DataMember(Name = "subsystem_device", EmitDefaultValue = false)] + public string SubsystemDevice { get; set; } + + /// + /// Gets or Sets SubsystemDeviceName + /// + [DataMember(Name = "subsystem_device_name", EmitDefaultValue = false)] + public string SubsystemDeviceName { get; set; } + + /// + /// The Subsystem Vendor ID. + /// + /// The Subsystem Vendor ID. + [DataMember(Name = "subsystem_vendor", EmitDefaultValue = false)] + public string SubsystemVendor { get; set; } + + /// + /// Gets or Sets SubsystemVendorName + /// + [DataMember(Name = "subsystem_vendor_name", EmitDefaultValue = false)] + public string SubsystemVendorName { get; set; } + + /// + /// The Vendor ID. + /// + /// The Vendor ID. + [DataMember(Name = "vendor", EmitDefaultValue = false)] + public string Vendor { get; set; } + + /// + /// Gets or Sets VendorName + /// + [DataMember(Name = "vendor_name", EmitDefaultValue = false)] + public string VendorName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHardwarePci200ResponseDataInner {\n"); + sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" Device: ").Append(Device).Append("\n"); + sb.Append(" DeviceName: ").Append(DeviceName).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Iommugroup: ").Append(Iommugroup).Append("\n"); + sb.Append(" Mdev: ").Append(Mdev).Append("\n"); + sb.Append(" SubsystemDevice: ").Append(SubsystemDevice).Append("\n"); + sb.Append(" SubsystemDeviceName: ").Append(SubsystemDeviceName).Append("\n"); + sb.Append(" SubsystemVendor: ").Append(SubsystemVendor).Append("\n"); + sb.Append(" SubsystemVendorName: ").Append(SubsystemVendorName).Append("\n"); + sb.Append(" Vendor: ").Append(Vendor).Append("\n"); + sb.Append(" VendorName: ").Append(VendorName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHardwarePciSingleMdev200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleHardwarePciSingleMdev200Response.cs new file mode 100644 index 0000000..66e5532 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHardwarePciSingleMdev200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHardwarePciSingleMdev200Response + /// + [DataContract(Name = "getNodesSingleHardwarePciSingleMdev_200_response")] + public partial class GetNodesSingleHardwarePciSingleMdev200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleHardwarePciSingleMdev200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHardwarePciSingleMdev200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHardwarePciSingleMdev200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleHardwarePciSingleMdev200ResponseDataInner.cs new file mode 100644 index 0000000..14f1fd1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHardwarePciSingleMdev200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHardwarePciSingleMdev200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleHardwarePciSingleMdev_200_response_data_inner")] + public partial class GetNodesSingleHardwarePciSingleMdev200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The number of still available instances of this type.. + /// Additional description of the type.. + /// A human readable name for the type.. + /// The name of the mdev type.. + public GetNodesSingleHardwarePciSingleMdev200ResponseDataInner(Int64 available = default(Int64), string description = default(string), string name = default(string), string type = default(string)) + { + this.Available = available; + this.Description = description; + this.Name = name; + this.Type = type; + } + + /// + /// The number of still available instances of this type. + /// + /// The number of still available instances of this type. + [DataMember(Name = "available", EmitDefaultValue = false)] + public Int64 Available { get; set; } + + /// + /// Additional description of the type. + /// + /// Additional description of the type. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// A human readable name for the type. + /// + /// A human readable name for the type. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The name of the mdev type. + /// + /// The name of the mdev type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHardwarePciSingleMdev200ResponseDataInner {\n"); + sb.Append(" Available: ").Append(Available).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHardwareUsb200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleHardwareUsb200Response.cs new file mode 100644 index 0000000..a395f83 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHardwareUsb200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHardwareUsb200Response + /// + [DataContract(Name = "getNodesSingleHardwareUsb_200_response")] + public partial class GetNodesSingleHardwareUsb200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleHardwareUsb200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHardwareUsb200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHardwareUsb200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleHardwareUsb200ResponseDataInner.cs new file mode 100644 index 0000000..63c8b69 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHardwareUsb200ResponseDataInner.cs @@ -0,0 +1,182 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHardwareUsb200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleHardwareUsb_200_response_data_inner")] + public partial class GetNodesSingleHardwareUsb200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// busnum. + /// varClass. + /// devnum. + /// level. + /// manufacturer. + /// port. + /// prodid. + /// product. + /// serial. + /// speed. + /// usbpath. + /// vendid. + public GetNodesSingleHardwareUsb200ResponseDataInner(Int64 busnum = default(Int64), Int64 varClass = default(Int64), Int64 devnum = default(Int64), Int64 level = default(Int64), string manufacturer = default(string), Int64 port = default(Int64), string prodid = default(string), string product = default(string), string serial = default(string), string speed = default(string), string usbpath = default(string), string vendid = default(string)) + { + this.Busnum = busnum; + this.Class = varClass; + this.Devnum = devnum; + this.Level = level; + this.Manufacturer = manufacturer; + this.Port = port; + this.Prodid = prodid; + this.Product = product; + this.Serial = serial; + this.Speed = speed; + this.Usbpath = usbpath; + this.Vendid = vendid; + } + + /// + /// Gets or Sets Busnum + /// + [DataMember(Name = "busnum", EmitDefaultValue = false)] + public Int64 Busnum { get; set; } + + /// + /// Gets or Sets Class + /// + [DataMember(Name = "class", EmitDefaultValue = false)] + public Int64 Class { get; set; } + + /// + /// Gets or Sets Devnum + /// + [DataMember(Name = "devnum", EmitDefaultValue = false)] + public Int64 Devnum { get; set; } + + /// + /// Gets or Sets Level + /// + [DataMember(Name = "level", EmitDefaultValue = false)] + public Int64 Level { get; set; } + + /// + /// Gets or Sets Manufacturer + /// + [DataMember(Name = "manufacturer", EmitDefaultValue = false)] + public string Manufacturer { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public Int64 Port { get; set; } + + /// + /// Gets or Sets Prodid + /// + [DataMember(Name = "prodid", EmitDefaultValue = false)] + public string Prodid { get; set; } + + /// + /// Gets or Sets Product + /// + [DataMember(Name = "product", EmitDefaultValue = false)] + public string Product { get; set; } + + /// + /// Gets or Sets Serial + /// + [DataMember(Name = "serial", EmitDefaultValue = false)] + public string Serial { get; set; } + + /// + /// Gets or Sets Speed + /// + [DataMember(Name = "speed", EmitDefaultValue = false)] + public string Speed { get; set; } + + /// + /// Gets or Sets Usbpath + /// + [DataMember(Name = "usbpath", EmitDefaultValue = false)] + public string Usbpath { get; set; } + + /// + /// Gets or Sets Vendid + /// + [DataMember(Name = "vendid", EmitDefaultValue = false)] + public string Vendid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHardwareUsb200ResponseDataInner {\n"); + sb.Append(" Busnum: ").Append(Busnum).Append("\n"); + sb.Append(" Class: ").Append(Class).Append("\n"); + sb.Append(" Devnum: ").Append(Devnum).Append("\n"); + sb.Append(" Level: ").Append(Level).Append("\n"); + sb.Append(" Manufacturer: ").Append(Manufacturer).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Prodid: ").Append(Prodid).Append("\n"); + sb.Append(" Product: ").Append(Product).Append("\n"); + sb.Append(" Serial: ").Append(Serial).Append("\n"); + sb.Append(" Speed: ").Append(Speed).Append("\n"); + sb.Append(" Usbpath: ").Append(Usbpath).Append("\n"); + sb.Append(" Vendid: ").Append(Vendid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHosts200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleHosts200Response.cs new file mode 100644 index 0000000..a7da8b4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHosts200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHosts200Response + /// + [DataContract(Name = "getNodesSingleHosts_200_response")] + public partial class GetNodesSingleHosts200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleHosts200Response(List errors = default(List), GetNodesSingleHosts200ResponseData data = default(GetNodesSingleHosts200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleHosts200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHosts200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleHosts200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleHosts200ResponseData.cs new file mode 100644 index 0000000..63977d6 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleHosts200ResponseData.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleHosts200ResponseData + /// + [DataContract(Name = "getNodesSingleHosts_200_response_data")] + public partial class GetNodesSingleHosts200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The content of /etc/hosts.. + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.. + public GetNodesSingleHosts200ResponseData(string data = default(string), string digest = default(string)) + { + this.Data = data; + this.Digest = digest; + } + + /// + /// The content of /etc/hosts. + /// + /// The content of /etc/hosts. + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + /// + /// Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleHosts200ResponseData {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleJournal200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleJournal200Response.cs new file mode 100644 index 0000000..a924309 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleJournal200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleJournal200Response + /// + [DataContract(Name = "getNodesSingleJournal_200_response")] + public partial class GetNodesSingleJournal200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleJournal200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleJournal200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxc200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxc200Response.cs new file mode 100644 index 0000000..576398a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxc200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxc200Response + /// + [DataContract(Name = "getNodesSingleLxc_200_response")] + public partial class GetNodesSingleLxc200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleLxc200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxc200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxc200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxc200ResponseDataInner.cs new file mode 100644 index 0000000..fd2b4ba --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxc200ResponseDataInner.cs @@ -0,0 +1,304 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxc200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleLxc_200_response_data_inner")] + public partial class GetNodesSingleLxc200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Current CPU usage.. + /// Maximum usable CPUs.. + /// Root disk image space-usage in bytes.. + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.). + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.). + /// The current config lock, if any.. + /// Root disk image size in bytes.. + /// Maximum memory in bytes.. + /// Maximum SWAP memory in bytes.. + /// Currently used memory in bytes.. + /// Container name.. + /// The amount of traffic in bytes that was sent to the guest over the network since it was started.. + /// The amount of traffic in bytes that was sent from the guest over the network since it was started.. + /// CPU Some pressure stall average over the last 10 seconds.. + /// IO Full pressure stall average over the last 10 seconds.. + /// IO Some pressure stall average over the last 10 seconds.. + /// Memory Full pressure stall average over the last 10 seconds.. + /// Memory Some pressure stall average over the last 10 seconds.. + /// LXC Container status.. + /// The current configured tags, if any.. + /// Determines if the guest is a template.. + /// Uptime in seconds.. + /// The (unique) ID of the VM.. + public GetNodesSingleLxc200ResponseDataInner(decimal cpu = default(decimal), decimal cpus = default(decimal), Int64 disk = default(Int64), Int64 diskread = default(Int64), Int64 diskwrite = default(Int64), string varLock = default(string), Int64 maxdisk = default(Int64), Int64 maxmem = default(Int64), Int64 maxswap = default(Int64), Int64 mem = default(Int64), string name = default(string), Int64 netin = default(Int64), Int64 netout = default(Int64), decimal pressurecpusome = default(decimal), decimal pressureiofull = default(decimal), decimal pressureiosome = default(decimal), decimal pressurememoryfull = default(decimal), decimal pressurememorysome = default(decimal), string status = default(string), string tags = default(string), Int64 template = default(Int64), Int64 uptime = default(Int64), Int64 vmid = default(Int64)) + { + this.Cpu = cpu; + this.Cpus = cpus; + this.Disk = disk; + this.Diskread = diskread; + this.Diskwrite = diskwrite; + this.Lock = varLock; + this.Maxdisk = maxdisk; + this.Maxmem = maxmem; + this.Maxswap = maxswap; + this.Mem = mem; + this.Name = name; + this.Netin = netin; + this.Netout = netout; + this.Pressurecpusome = pressurecpusome; + this.Pressureiofull = pressureiofull; + this.Pressureiosome = pressureiosome; + this.Pressurememoryfull = pressurememoryfull; + this.Pressurememorysome = pressurememorysome; + this.Status = status; + this.Tags = tags; + this.Template = template; + this.Uptime = uptime; + this.Vmid = vmid; + } + + /// + /// Current CPU usage. + /// + /// Current CPU usage. + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public decimal Cpu { get; set; } + + /// + /// Maximum usable CPUs. + /// + /// Maximum usable CPUs. + [DataMember(Name = "cpus", EmitDefaultValue = false)] + public decimal Cpus { get; set; } + + /// + /// Root disk image space-usage in bytes. + /// + /// Root disk image space-usage in bytes. + [DataMember(Name = "disk", EmitDefaultValue = false)] + public Int64 Disk { get; set; } + + /// + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + /// + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + [DataMember(Name = "diskread", EmitDefaultValue = false)] + public Int64 Diskread { get; set; } + + /// + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + /// + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + [DataMember(Name = "diskwrite", EmitDefaultValue = false)] + public Int64 Diskwrite { get; set; } + + /// + /// The current config lock, if any. + /// + /// The current config lock, if any. + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Root disk image size in bytes. + /// + /// Root disk image size in bytes. + [DataMember(Name = "maxdisk", EmitDefaultValue = false)] + public Int64 Maxdisk { get; set; } + + /// + /// Maximum memory in bytes. + /// + /// Maximum memory in bytes. + [DataMember(Name = "maxmem", EmitDefaultValue = false)] + public Int64 Maxmem { get; set; } + + /// + /// Maximum SWAP memory in bytes. + /// + /// Maximum SWAP memory in bytes. + [DataMember(Name = "maxswap", EmitDefaultValue = false)] + public Int64 Maxswap { get; set; } + + /// + /// Currently used memory in bytes. + /// + /// Currently used memory in bytes. + [DataMember(Name = "mem", EmitDefaultValue = false)] + public Int64 Mem { get; set; } + + /// + /// Container name. + /// + /// Container name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. + [DataMember(Name = "netin", EmitDefaultValue = false)] + public Int64 Netin { get; set; } + + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. + [DataMember(Name = "netout", EmitDefaultValue = false)] + public Int64 Netout { get; set; } + + /// + /// CPU Some pressure stall average over the last 10 seconds. + /// + /// CPU Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurecpusome", EmitDefaultValue = false)] + public decimal Pressurecpusome { get; set; } + + /// + /// IO Full pressure stall average over the last 10 seconds. + /// + /// IO Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressureiofull", EmitDefaultValue = false)] + public decimal Pressureiofull { get; set; } + + /// + /// IO Some pressure stall average over the last 10 seconds. + /// + /// IO Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressureiosome", EmitDefaultValue = false)] + public decimal Pressureiosome { get; set; } + + /// + /// Memory Full pressure stall average over the last 10 seconds. + /// + /// Memory Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurememoryfull", EmitDefaultValue = false)] + public decimal Pressurememoryfull { get; set; } + + /// + /// Memory Some pressure stall average over the last 10 seconds. + /// + /// Memory Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurememorysome", EmitDefaultValue = false)] + public decimal Pressurememorysome { get; set; } + + /// + /// LXC Container status. + /// + /// LXC Container status. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// The current configured tags, if any. + /// + /// The current configured tags, if any. + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Determines if the guest is a template. + /// + /// Determines if the guest is a template. + [DataMember(Name = "template", EmitDefaultValue = false)] + public Int64 Template { get; set; } + + /// + /// Uptime in seconds. + /// + /// Uptime in seconds. + [DataMember(Name = "uptime", EmitDefaultValue = false)] + public Int64 Uptime { get; set; } + + /// + /// The (unique) ID of the VM. + /// + /// The (unique) ID of the VM. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxc200ResponseDataInner {\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpus: ").Append(Cpus).Append("\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append(" Diskread: ").Append(Diskread).Append("\n"); + sb.Append(" Diskwrite: ").Append(Diskwrite).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Maxdisk: ").Append(Maxdisk).Append("\n"); + sb.Append(" Maxmem: ").Append(Maxmem).Append("\n"); + sb.Append(" Maxswap: ").Append(Maxswap).Append("\n"); + sb.Append(" Mem: ").Append(Mem).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Netin: ").Append(Netin).Append("\n"); + sb.Append(" Netout: ").Append(Netout).Append("\n"); + sb.Append(" Pressurecpusome: ").Append(Pressurecpusome).Append("\n"); + sb.Append(" Pressureiofull: ").Append(Pressureiofull).Append("\n"); + sb.Append(" Pressureiosome: ").Append(Pressureiosome).Append("\n"); + sb.Append(" Pressurememoryfull: ").Append(Pressurememoryfull).Append("\n"); + sb.Append(" Pressurememorysome: ").Append(Pressurememorysome).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Uptime: ").Append(Uptime).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleConfig200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleConfig200Response.cs new file mode 100644 index 0000000..a215a88 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleConfig200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleConfig200Response + /// + [DataContract(Name = "getNodesSingleLxcSingleConfig_200_response")] + public partial class GetNodesSingleLxcSingleConfig200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleLxcSingleConfig200Response(List errors = default(List), GetNodesSingleLxcSingleConfig200ResponseData data = default(GetNodesSingleLxcSingleConfig200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleLxcSingleConfig200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleConfig200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleConfig200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleConfig200ResponseData.cs new file mode 100644 index 0000000..9b082a4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleConfig200ResponseData.cs @@ -0,0 +1,1574 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleConfig200ResponseData + /// + [DataContract(Name = "getNodesSingleLxcSingleConfig_200_response_data")] + public partial class GetNodesSingleLxcSingleConfig200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// OS architecture type.. + /// Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login).. + /// Attach a console device (/dev/console) to the container.. + /// The number of cores assigned to the container. A container can use all available cores by default.. + /// Limit of CPU usage. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.. + /// CPU weight for a container, will be clamped to [1, 10000] in cgroup v2.. + /// Try to be more verbose. For now this only enables debug log-level on start.. + /// Description for the Container. Shown in the web-interface CT's summary. This is saved as comment inside the configuration file.. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// Device to pass through to the container. + /// SHA1 digest of configuration file. This can be used to prevent concurrent modifications.. + /// Command to run as init, optionally with arguments; may start with an absolute path, relative path, or a binary in $PATH.. + /// The container runtime environment as NUL-separated list. Replaces any lxc.environment.runtime entries in the config.. + /// Allow containers access to advanced features.. + /// Script that will be executed during various steps in the containers lifetime.. + /// Set a host name for the container.. + /// Lock/unlock the container.. + /// Array of lxc low-level configurations ([[key1, value1], [key2, value2] ...]).. + /// Amount of RAM for the container in MB.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.. + /// Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies network interfaces for the container.. + /// Specifies whether a container will be started during system bootup.. + /// OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value 'unmanaged' can be used to skip and OS specific setup.. + /// Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.. + /// Use volume as container root.. + /// Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.. + /// Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.. + /// Amount of SWAP for the container in MB.. + /// Tags of the Container. This is only meta information.. + /// Enable/disable Template.. + /// Time zone to use in the container. If option isn't set, then nothing will be done. Can be set to 'host' to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab. + /// Specify the number of tty available to the container. + /// Makes the container run as unprivileged user. For creation, the default is 1. For restore, the default is the value from the backup. (Should not be modified manually.). + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + public GetNodesSingleLxcSingleConfig200ResponseData(string arch = default(string), string cmode = default(string), Int64 console = default(Int64), Int64 cores = default(Int64), decimal cpulimit = default(decimal), Int64 cpuunits = default(Int64), Int64 debug = default(Int64), string description = default(string), string dev0 = default(string), string dev1 = default(string), string dev2 = default(string), string dev3 = default(string), string dev4 = default(string), string dev5 = default(string), string dev6 = default(string), string dev7 = default(string), string dev8 = default(string), string dev9 = default(string), string dev10 = default(string), string dev11 = default(string), string dev12 = default(string), string dev13 = default(string), string dev14 = default(string), string dev15 = default(string), string dev16 = default(string), string dev17 = default(string), string dev18 = default(string), string dev19 = default(string), string dev20 = default(string), string dev21 = default(string), string dev22 = default(string), string dev23 = default(string), string dev24 = default(string), string dev25 = default(string), string dev26 = default(string), string dev27 = default(string), string dev28 = default(string), string dev29 = default(string), string digest = default(string), string entrypoint = default(string), string env = default(string), string features = default(string), string hookscript = default(string), string hostname = default(string), string varLock = default(string), List> lxc = default(List>), Int64 memory = default(Int64), string mp0 = default(string), string mp1 = default(string), string mp2 = default(string), string mp3 = default(string), string mp4 = default(string), string mp5 = default(string), string mp6 = default(string), string mp7 = default(string), string mp8 = default(string), string mp9 = default(string), string mp10 = default(string), string mp11 = default(string), string mp12 = default(string), string mp13 = default(string), string mp14 = default(string), string mp15 = default(string), string mp16 = default(string), string mp17 = default(string), string mp18 = default(string), string mp19 = default(string), string mp20 = default(string), string mp21 = default(string), string mp22 = default(string), string mp23 = default(string), string mp24 = default(string), string mp25 = default(string), string mp26 = default(string), string mp27 = default(string), string mp28 = default(string), string mp29 = default(string), string nameserver = default(string), string net0 = default(string), string net1 = default(string), string net2 = default(string), string net3 = default(string), string net4 = default(string), string net5 = default(string), string net6 = default(string), string net7 = default(string), string net8 = default(string), string net9 = default(string), string net10 = default(string), string net11 = default(string), string net12 = default(string), string net13 = default(string), string net14 = default(string), string net15 = default(string), string net16 = default(string), string net17 = default(string), string net18 = default(string), string net19 = default(string), string net20 = default(string), string net21 = default(string), string net22 = default(string), string net23 = default(string), string net24 = default(string), string net25 = default(string), string net26 = default(string), string net27 = default(string), string net28 = default(string), string net29 = default(string), Int64 onboot = default(Int64), string ostype = default(string), Int64 protection = default(Int64), string rootfs = default(string), string searchdomain = default(string), string startup = default(string), Int64 swap = default(Int64), string tags = default(string), Int64 template = default(Int64), string timezone = default(string), Int64 tty = default(Int64), Int64 unprivileged = default(Int64), string unused0 = default(string), string unused1 = default(string), string unused2 = default(string), string unused3 = default(string), string unused4 = default(string), string unused5 = default(string), string unused6 = default(string), string unused7 = default(string), string unused8 = default(string), string unused9 = default(string), string unused10 = default(string), string unused11 = default(string), string unused12 = default(string), string unused13 = default(string), string unused14 = default(string), string unused15 = default(string), string unused16 = default(string), string unused17 = default(string), string unused18 = default(string), string unused19 = default(string), string unused20 = default(string), string unused21 = default(string), string unused22 = default(string), string unused23 = default(string), string unused24 = default(string), string unused25 = default(string), string unused26 = default(string), string unused27 = default(string), string unused28 = default(string), string unused29 = default(string)) + { + this.Arch = arch; + this.Cmode = cmode; + this.Console = console; + this.Cores = cores; + this.Cpulimit = cpulimit; + this.Cpuunits = cpuunits; + this.Debug = debug; + this.Description = description; + this.Dev0 = dev0; + this.Dev1 = dev1; + this.Dev2 = dev2; + this.Dev3 = dev3; + this.Dev4 = dev4; + this.Dev5 = dev5; + this.Dev6 = dev6; + this.Dev7 = dev7; + this.Dev8 = dev8; + this.Dev9 = dev9; + this.Dev10 = dev10; + this.Dev11 = dev11; + this.Dev12 = dev12; + this.Dev13 = dev13; + this.Dev14 = dev14; + this.Dev15 = dev15; + this.Dev16 = dev16; + this.Dev17 = dev17; + this.Dev18 = dev18; + this.Dev19 = dev19; + this.Dev20 = dev20; + this.Dev21 = dev21; + this.Dev22 = dev22; + this.Dev23 = dev23; + this.Dev24 = dev24; + this.Dev25 = dev25; + this.Dev26 = dev26; + this.Dev27 = dev27; + this.Dev28 = dev28; + this.Dev29 = dev29; + this.Digest = digest; + this.Entrypoint = entrypoint; + this.Env = env; + this.Features = features; + this.Hookscript = hookscript; + this.Hostname = hostname; + this.Lock = varLock; + this.Lxc = lxc; + this.Memory = memory; + this.Mp0 = mp0; + this.Mp1 = mp1; + this.Mp2 = mp2; + this.Mp3 = mp3; + this.Mp4 = mp4; + this.Mp5 = mp5; + this.Mp6 = mp6; + this.Mp7 = mp7; + this.Mp8 = mp8; + this.Mp9 = mp9; + this.Mp10 = mp10; + this.Mp11 = mp11; + this.Mp12 = mp12; + this.Mp13 = mp13; + this.Mp14 = mp14; + this.Mp15 = mp15; + this.Mp16 = mp16; + this.Mp17 = mp17; + this.Mp18 = mp18; + this.Mp19 = mp19; + this.Mp20 = mp20; + this.Mp21 = mp21; + this.Mp22 = mp22; + this.Mp23 = mp23; + this.Mp24 = mp24; + this.Mp25 = mp25; + this.Mp26 = mp26; + this.Mp27 = mp27; + this.Mp28 = mp28; + this.Mp29 = mp29; + this.Nameserver = nameserver; + this.Net0 = net0; + this.Net1 = net1; + this.Net2 = net2; + this.Net3 = net3; + this.Net4 = net4; + this.Net5 = net5; + this.Net6 = net6; + this.Net7 = net7; + this.Net8 = net8; + this.Net9 = net9; + this.Net10 = net10; + this.Net11 = net11; + this.Net12 = net12; + this.Net13 = net13; + this.Net14 = net14; + this.Net15 = net15; + this.Net16 = net16; + this.Net17 = net17; + this.Net18 = net18; + this.Net19 = net19; + this.Net20 = net20; + this.Net21 = net21; + this.Net22 = net22; + this.Net23 = net23; + this.Net24 = net24; + this.Net25 = net25; + this.Net26 = net26; + this.Net27 = net27; + this.Net28 = net28; + this.Net29 = net29; + this.Onboot = onboot; + this.Ostype = ostype; + this.Protection = protection; + this.Rootfs = rootfs; + this.Searchdomain = searchdomain; + this.Startup = startup; + this.Swap = swap; + this.Tags = tags; + this.Template = template; + this.Timezone = timezone; + this.Tty = tty; + this.Unprivileged = unprivileged; + this.Unused0 = unused0; + this.Unused1 = unused1; + this.Unused2 = unused2; + this.Unused3 = unused3; + this.Unused4 = unused4; + this.Unused5 = unused5; + this.Unused6 = unused6; + this.Unused7 = unused7; + this.Unused8 = unused8; + this.Unused9 = unused9; + this.Unused10 = unused10; + this.Unused11 = unused11; + this.Unused12 = unused12; + this.Unused13 = unused13; + this.Unused14 = unused14; + this.Unused15 = unused15; + this.Unused16 = unused16; + this.Unused17 = unused17; + this.Unused18 = unused18; + this.Unused19 = unused19; + this.Unused20 = unused20; + this.Unused21 = unused21; + this.Unused22 = unused22; + this.Unused23 = unused23; + this.Unused24 = unused24; + this.Unused25 = unused25; + this.Unused26 = unused26; + this.Unused27 = unused27; + this.Unused28 = unused28; + this.Unused29 = unused29; + } + + /// + /// OS architecture type. + /// + /// OS architecture type. + [DataMember(Name = "arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login). + /// + /// Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login). + [DataMember(Name = "cmode", EmitDefaultValue = false)] + public string Cmode { get; set; } + + /// + /// Attach a console device (/dev/console) to the container. + /// + /// Attach a console device (/dev/console) to the container. + [DataMember(Name = "console", EmitDefaultValue = false)] + public Int64 Console { get; set; } + + /// + /// The number of cores assigned to the container. A container can use all available cores by default. + /// + /// The number of cores assigned to the container. A container can use all available cores by default. + [DataMember(Name = "cores", EmitDefaultValue = false)] + public Int64 Cores { get; set; } + + /// + /// Limit of CPU usage. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit. + /// + /// Limit of CPU usage. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit. + [DataMember(Name = "cpulimit", EmitDefaultValue = false)] + public decimal Cpulimit { get; set; } + + /// + /// CPU weight for a container, will be clamped to [1, 10000] in cgroup v2. + /// + /// CPU weight for a container, will be clamped to [1, 10000] in cgroup v2. + [DataMember(Name = "cpuunits", EmitDefaultValue = false)] + public Int64 Cpuunits { get; set; } + + /// + /// Try to be more verbose. For now this only enables debug log-level on start. + /// + /// Try to be more verbose. For now this only enables debug log-level on start. + [DataMember(Name = "debug", EmitDefaultValue = false)] + public Int64 Debug { get; set; } + + /// + /// Description for the Container. Shown in the web-interface CT's summary. This is saved as comment inside the configuration file. + /// + /// Description for the Container. Shown in the web-interface CT's summary. This is saved as comment inside the configuration file. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev0", EmitDefaultValue = false)] + public string Dev0 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev1", EmitDefaultValue = false)] + public string Dev1 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev2", EmitDefaultValue = false)] + public string Dev2 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev3", EmitDefaultValue = false)] + public string Dev3 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev4", EmitDefaultValue = false)] + public string Dev4 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev5", EmitDefaultValue = false)] + public string Dev5 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev6", EmitDefaultValue = false)] + public string Dev6 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev7", EmitDefaultValue = false)] + public string Dev7 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev8", EmitDefaultValue = false)] + public string Dev8 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev9", EmitDefaultValue = false)] + public string Dev9 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev10", EmitDefaultValue = false)] + public string Dev10 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev11", EmitDefaultValue = false)] + public string Dev11 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev12", EmitDefaultValue = false)] + public string Dev12 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev13", EmitDefaultValue = false)] + public string Dev13 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev14", EmitDefaultValue = false)] + public string Dev14 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev15", EmitDefaultValue = false)] + public string Dev15 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev16", EmitDefaultValue = false)] + public string Dev16 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev17", EmitDefaultValue = false)] + public string Dev17 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev18", EmitDefaultValue = false)] + public string Dev18 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev19", EmitDefaultValue = false)] + public string Dev19 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev20", EmitDefaultValue = false)] + public string Dev20 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev21", EmitDefaultValue = false)] + public string Dev21 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev22", EmitDefaultValue = false)] + public string Dev22 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev23", EmitDefaultValue = false)] + public string Dev23 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev24", EmitDefaultValue = false)] + public string Dev24 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev25", EmitDefaultValue = false)] + public string Dev25 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev26", EmitDefaultValue = false)] + public string Dev26 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev27", EmitDefaultValue = false)] + public string Dev27 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev28", EmitDefaultValue = false)] + public string Dev28 { get; set; } + + /// + /// Device to pass through to the container + /// + /// Device to pass through to the container + [DataMember(Name = "dev29", EmitDefaultValue = false)] + public string Dev29 { get; set; } + + /// + /// SHA1 digest of configuration file. This can be used to prevent concurrent modifications. + /// + /// SHA1 digest of configuration file. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Command to run as init, optionally with arguments; may start with an absolute path, relative path, or a binary in $PATH. + /// + /// Command to run as init, optionally with arguments; may start with an absolute path, relative path, or a binary in $PATH. + [DataMember(Name = "entrypoint", EmitDefaultValue = false)] + public string Entrypoint { get; set; } + + /// + /// The container runtime environment as NUL-separated list. Replaces any lxc.environment.runtime entries in the config. + /// + /// The container runtime environment as NUL-separated list. Replaces any lxc.environment.runtime entries in the config. + [DataMember(Name = "env", EmitDefaultValue = false)] + public string Env { get; set; } + + /// + /// Allow containers access to advanced features. + /// + /// Allow containers access to advanced features. + [DataMember(Name = "features", EmitDefaultValue = false)] + public string Features { get; set; } + + /// + /// Script that will be executed during various steps in the containers lifetime. + /// + /// Script that will be executed during various steps in the containers lifetime. + [DataMember(Name = "hookscript", EmitDefaultValue = false)] + public string Hookscript { get; set; } + + /// + /// Set a host name for the container. + /// + /// Set a host name for the container. + [DataMember(Name = "hostname", EmitDefaultValue = false)] + public string Hostname { get; set; } + + /// + /// Lock/unlock the container. + /// + /// Lock/unlock the container. + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Array of lxc low-level configurations ([[key1, value1], [key2, value2] ...]). + /// + /// Array of lxc low-level configurations ([[key1, value1], [key2, value2] ...]). + [DataMember(Name = "lxc", EmitDefaultValue = false)] + public List> Lxc { get; set; } + + /// + /// Amount of RAM for the container in MB. + /// + /// Amount of RAM for the container in MB. + [DataMember(Name = "memory", EmitDefaultValue = false)] + public Int64 Memory { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp0", EmitDefaultValue = false)] + public string Mp0 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp1", EmitDefaultValue = false)] + public string Mp1 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp2", EmitDefaultValue = false)] + public string Mp2 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp3", EmitDefaultValue = false)] + public string Mp3 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp4", EmitDefaultValue = false)] + public string Mp4 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp5", EmitDefaultValue = false)] + public string Mp5 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp6", EmitDefaultValue = false)] + public string Mp6 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp7", EmitDefaultValue = false)] + public string Mp7 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp8", EmitDefaultValue = false)] + public string Mp8 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp9", EmitDefaultValue = false)] + public string Mp9 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp10", EmitDefaultValue = false)] + public string Mp10 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp11", EmitDefaultValue = false)] + public string Mp11 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp12", EmitDefaultValue = false)] + public string Mp12 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp13", EmitDefaultValue = false)] + public string Mp13 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp14", EmitDefaultValue = false)] + public string Mp14 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp15", EmitDefaultValue = false)] + public string Mp15 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp16", EmitDefaultValue = false)] + public string Mp16 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp17", EmitDefaultValue = false)] + public string Mp17 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp18", EmitDefaultValue = false)] + public string Mp18 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp19", EmitDefaultValue = false)] + public string Mp19 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp20", EmitDefaultValue = false)] + public string Mp20 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp21", EmitDefaultValue = false)] + public string Mp21 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp22", EmitDefaultValue = false)] + public string Mp22 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp23", EmitDefaultValue = false)] + public string Mp23 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp24", EmitDefaultValue = false)] + public string Mp24 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp25", EmitDefaultValue = false)] + public string Mp25 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp26", EmitDefaultValue = false)] + public string Mp26 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp27", EmitDefaultValue = false)] + public string Mp27 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp28", EmitDefaultValue = false)] + public string Mp28 { get; set; } + + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + /// + /// Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + [DataMember(Name = "mp29", EmitDefaultValue = false)] + public string Mp29 { get; set; } + + /// + /// Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. + /// + /// Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. + [DataMember(Name = "nameserver", EmitDefaultValue = false)] + public string Nameserver { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net0", EmitDefaultValue = false)] + public string Net0 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net1", EmitDefaultValue = false)] + public string Net1 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net2", EmitDefaultValue = false)] + public string Net2 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net3", EmitDefaultValue = false)] + public string Net3 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net4", EmitDefaultValue = false)] + public string Net4 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net5", EmitDefaultValue = false)] + public string Net5 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net6", EmitDefaultValue = false)] + public string Net6 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net7", EmitDefaultValue = false)] + public string Net7 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net8", EmitDefaultValue = false)] + public string Net8 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net9", EmitDefaultValue = false)] + public string Net9 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net10", EmitDefaultValue = false)] + public string Net10 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net11", EmitDefaultValue = false)] + public string Net11 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net12", EmitDefaultValue = false)] + public string Net12 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net13", EmitDefaultValue = false)] + public string Net13 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net14", EmitDefaultValue = false)] + public string Net14 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net15", EmitDefaultValue = false)] + public string Net15 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net16", EmitDefaultValue = false)] + public string Net16 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net17", EmitDefaultValue = false)] + public string Net17 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net18", EmitDefaultValue = false)] + public string Net18 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net19", EmitDefaultValue = false)] + public string Net19 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net20", EmitDefaultValue = false)] + public string Net20 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net21", EmitDefaultValue = false)] + public string Net21 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net22", EmitDefaultValue = false)] + public string Net22 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net23", EmitDefaultValue = false)] + public string Net23 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net24", EmitDefaultValue = false)] + public string Net24 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net25", EmitDefaultValue = false)] + public string Net25 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net26", EmitDefaultValue = false)] + public string Net26 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net27", EmitDefaultValue = false)] + public string Net27 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net28", EmitDefaultValue = false)] + public string Net28 { get; set; } + + /// + /// Specifies network interfaces for the container. + /// + /// Specifies network interfaces for the container. + [DataMember(Name = "net29", EmitDefaultValue = false)] + public string Net29 { get; set; } + + /// + /// Specifies whether a container will be started during system bootup. + /// + /// Specifies whether a container will be started during system bootup. + [DataMember(Name = "onboot", EmitDefaultValue = false)] + public Int64 Onboot { get; set; } + + /// + /// OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value 'unmanaged' can be used to skip and OS specific setup. + /// + /// OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value 'unmanaged' can be used to skip and OS specific setup. + [DataMember(Name = "ostype", EmitDefaultValue = false)] + public string Ostype { get; set; } + + /// + /// Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation. + /// + /// Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation. + [DataMember(Name = "protection", EmitDefaultValue = false)] + public Int64 Protection { get; set; } + + /// + /// Use volume as container root. + /// + /// Use volume as container root. + [DataMember(Name = "rootfs", EmitDefaultValue = false)] + public string Rootfs { get; set; } + + /// + /// Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. + /// + /// Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. + [DataMember(Name = "searchdomain", EmitDefaultValue = false)] + public string Searchdomain { get; set; } + + /// + /// Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped. + /// + /// Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped. + [DataMember(Name = "startup", EmitDefaultValue = false)] + public string Startup { get; set; } + + /// + /// Amount of SWAP for the container in MB. + /// + /// Amount of SWAP for the container in MB. + [DataMember(Name = "swap", EmitDefaultValue = false)] + public Int64 Swap { get; set; } + + /// + /// Tags of the Container. This is only meta information. + /// + /// Tags of the Container. This is only meta information. + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Enable/disable Template. + /// + /// Enable/disable Template. + [DataMember(Name = "template", EmitDefaultValue = false)] + public Int64 Template { get; set; } + + /// + /// Time zone to use in the container. If option isn't set, then nothing will be done. Can be set to 'host' to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab + /// + /// Time zone to use in the container. If option isn't set, then nothing will be done. Can be set to 'host' to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab + [DataMember(Name = "timezone", EmitDefaultValue = false)] + public string Timezone { get; set; } + + /// + /// Specify the number of tty available to the container + /// + /// Specify the number of tty available to the container + [DataMember(Name = "tty", EmitDefaultValue = false)] + public Int64 Tty { get; set; } + + /// + /// Makes the container run as unprivileged user. For creation, the default is 1. For restore, the default is the value from the backup. (Should not be modified manually.) + /// + /// Makes the container run as unprivileged user. For creation, the default is 1. For restore, the default is the value from the backup. (Should not be modified manually.) + [DataMember(Name = "unprivileged", EmitDefaultValue = false)] + public Int64 Unprivileged { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused0", EmitDefaultValue = false)] + public string Unused0 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused1", EmitDefaultValue = false)] + public string Unused1 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused2", EmitDefaultValue = false)] + public string Unused2 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused3", EmitDefaultValue = false)] + public string Unused3 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused4", EmitDefaultValue = false)] + public string Unused4 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused5", EmitDefaultValue = false)] + public string Unused5 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused6", EmitDefaultValue = false)] + public string Unused6 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused7", EmitDefaultValue = false)] + public string Unused7 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused8", EmitDefaultValue = false)] + public string Unused8 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused9", EmitDefaultValue = false)] + public string Unused9 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused10", EmitDefaultValue = false)] + public string Unused10 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused11", EmitDefaultValue = false)] + public string Unused11 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused12", EmitDefaultValue = false)] + public string Unused12 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused13", EmitDefaultValue = false)] + public string Unused13 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused14", EmitDefaultValue = false)] + public string Unused14 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused15", EmitDefaultValue = false)] + public string Unused15 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused16", EmitDefaultValue = false)] + public string Unused16 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused17", EmitDefaultValue = false)] + public string Unused17 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused18", EmitDefaultValue = false)] + public string Unused18 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused19", EmitDefaultValue = false)] + public string Unused19 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused20", EmitDefaultValue = false)] + public string Unused20 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused21", EmitDefaultValue = false)] + public string Unused21 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused22", EmitDefaultValue = false)] + public string Unused22 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused23", EmitDefaultValue = false)] + public string Unused23 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused24", EmitDefaultValue = false)] + public string Unused24 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused25", EmitDefaultValue = false)] + public string Unused25 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused26", EmitDefaultValue = false)] + public string Unused26 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused27", EmitDefaultValue = false)] + public string Unused27 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused28", EmitDefaultValue = false)] + public string Unused28 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused29", EmitDefaultValue = false)] + public string Unused29 { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleConfig200ResponseData {\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" Cmode: ").Append(Cmode).Append("\n"); + sb.Append(" Console: ").Append(Console).Append("\n"); + sb.Append(" Cores: ").Append(Cores).Append("\n"); + sb.Append(" Cpulimit: ").Append(Cpulimit).Append("\n"); + sb.Append(" Cpuunits: ").Append(Cpuunits).Append("\n"); + sb.Append(" Debug: ").Append(Debug).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Dev0: ").Append(Dev0).Append("\n"); + sb.Append(" Dev1: ").Append(Dev1).Append("\n"); + sb.Append(" Dev2: ").Append(Dev2).Append("\n"); + sb.Append(" Dev3: ").Append(Dev3).Append("\n"); + sb.Append(" Dev4: ").Append(Dev4).Append("\n"); + sb.Append(" Dev5: ").Append(Dev5).Append("\n"); + sb.Append(" Dev6: ").Append(Dev6).Append("\n"); + sb.Append(" Dev7: ").Append(Dev7).Append("\n"); + sb.Append(" Dev8: ").Append(Dev8).Append("\n"); + sb.Append(" Dev9: ").Append(Dev9).Append("\n"); + sb.Append(" Dev10: ").Append(Dev10).Append("\n"); + sb.Append(" Dev11: ").Append(Dev11).Append("\n"); + sb.Append(" Dev12: ").Append(Dev12).Append("\n"); + sb.Append(" Dev13: ").Append(Dev13).Append("\n"); + sb.Append(" Dev14: ").Append(Dev14).Append("\n"); + sb.Append(" Dev15: ").Append(Dev15).Append("\n"); + sb.Append(" Dev16: ").Append(Dev16).Append("\n"); + sb.Append(" Dev17: ").Append(Dev17).Append("\n"); + sb.Append(" Dev18: ").Append(Dev18).Append("\n"); + sb.Append(" Dev19: ").Append(Dev19).Append("\n"); + sb.Append(" Dev20: ").Append(Dev20).Append("\n"); + sb.Append(" Dev21: ").Append(Dev21).Append("\n"); + sb.Append(" Dev22: ").Append(Dev22).Append("\n"); + sb.Append(" Dev23: ").Append(Dev23).Append("\n"); + sb.Append(" Dev24: ").Append(Dev24).Append("\n"); + sb.Append(" Dev25: ").Append(Dev25).Append("\n"); + sb.Append(" Dev26: ").Append(Dev26).Append("\n"); + sb.Append(" Dev27: ").Append(Dev27).Append("\n"); + sb.Append(" Dev28: ").Append(Dev28).Append("\n"); + sb.Append(" Dev29: ").Append(Dev29).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Entrypoint: ").Append(Entrypoint).Append("\n"); + sb.Append(" Env: ").Append(Env).Append("\n"); + sb.Append(" Features: ").Append(Features).Append("\n"); + sb.Append(" Hookscript: ").Append(Hookscript).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Lxc: ").Append(Lxc).Append("\n"); + sb.Append(" Memory: ").Append(Memory).Append("\n"); + sb.Append(" Mp0: ").Append(Mp0).Append("\n"); + sb.Append(" Mp1: ").Append(Mp1).Append("\n"); + sb.Append(" Mp2: ").Append(Mp2).Append("\n"); + sb.Append(" Mp3: ").Append(Mp3).Append("\n"); + sb.Append(" Mp4: ").Append(Mp4).Append("\n"); + sb.Append(" Mp5: ").Append(Mp5).Append("\n"); + sb.Append(" Mp6: ").Append(Mp6).Append("\n"); + sb.Append(" Mp7: ").Append(Mp7).Append("\n"); + sb.Append(" Mp8: ").Append(Mp8).Append("\n"); + sb.Append(" Mp9: ").Append(Mp9).Append("\n"); + sb.Append(" Mp10: ").Append(Mp10).Append("\n"); + sb.Append(" Mp11: ").Append(Mp11).Append("\n"); + sb.Append(" Mp12: ").Append(Mp12).Append("\n"); + sb.Append(" Mp13: ").Append(Mp13).Append("\n"); + sb.Append(" Mp14: ").Append(Mp14).Append("\n"); + sb.Append(" Mp15: ").Append(Mp15).Append("\n"); + sb.Append(" Mp16: ").Append(Mp16).Append("\n"); + sb.Append(" Mp17: ").Append(Mp17).Append("\n"); + sb.Append(" Mp18: ").Append(Mp18).Append("\n"); + sb.Append(" Mp19: ").Append(Mp19).Append("\n"); + sb.Append(" Mp20: ").Append(Mp20).Append("\n"); + sb.Append(" Mp21: ").Append(Mp21).Append("\n"); + sb.Append(" Mp22: ").Append(Mp22).Append("\n"); + sb.Append(" Mp23: ").Append(Mp23).Append("\n"); + sb.Append(" Mp24: ").Append(Mp24).Append("\n"); + sb.Append(" Mp25: ").Append(Mp25).Append("\n"); + sb.Append(" Mp26: ").Append(Mp26).Append("\n"); + sb.Append(" Mp27: ").Append(Mp27).Append("\n"); + sb.Append(" Mp28: ").Append(Mp28).Append("\n"); + sb.Append(" Mp29: ").Append(Mp29).Append("\n"); + sb.Append(" Nameserver: ").Append(Nameserver).Append("\n"); + sb.Append(" Net0: ").Append(Net0).Append("\n"); + sb.Append(" Net1: ").Append(Net1).Append("\n"); + sb.Append(" Net2: ").Append(Net2).Append("\n"); + sb.Append(" Net3: ").Append(Net3).Append("\n"); + sb.Append(" Net4: ").Append(Net4).Append("\n"); + sb.Append(" Net5: ").Append(Net5).Append("\n"); + sb.Append(" Net6: ").Append(Net6).Append("\n"); + sb.Append(" Net7: ").Append(Net7).Append("\n"); + sb.Append(" Net8: ").Append(Net8).Append("\n"); + sb.Append(" Net9: ").Append(Net9).Append("\n"); + sb.Append(" Net10: ").Append(Net10).Append("\n"); + sb.Append(" Net11: ").Append(Net11).Append("\n"); + sb.Append(" Net12: ").Append(Net12).Append("\n"); + sb.Append(" Net13: ").Append(Net13).Append("\n"); + sb.Append(" Net14: ").Append(Net14).Append("\n"); + sb.Append(" Net15: ").Append(Net15).Append("\n"); + sb.Append(" Net16: ").Append(Net16).Append("\n"); + sb.Append(" Net17: ").Append(Net17).Append("\n"); + sb.Append(" Net18: ").Append(Net18).Append("\n"); + sb.Append(" Net19: ").Append(Net19).Append("\n"); + sb.Append(" Net20: ").Append(Net20).Append("\n"); + sb.Append(" Net21: ").Append(Net21).Append("\n"); + sb.Append(" Net22: ").Append(Net22).Append("\n"); + sb.Append(" Net23: ").Append(Net23).Append("\n"); + sb.Append(" Net24: ").Append(Net24).Append("\n"); + sb.Append(" Net25: ").Append(Net25).Append("\n"); + sb.Append(" Net26: ").Append(Net26).Append("\n"); + sb.Append(" Net27: ").Append(Net27).Append("\n"); + sb.Append(" Net28: ").Append(Net28).Append("\n"); + sb.Append(" Net29: ").Append(Net29).Append("\n"); + sb.Append(" Onboot: ").Append(Onboot).Append("\n"); + sb.Append(" Ostype: ").Append(Ostype).Append("\n"); + sb.Append(" Protection: ").Append(Protection).Append("\n"); + sb.Append(" Rootfs: ").Append(Rootfs).Append("\n"); + sb.Append(" Searchdomain: ").Append(Searchdomain).Append("\n"); + sb.Append(" Startup: ").Append(Startup).Append("\n"); + sb.Append(" Swap: ").Append(Swap).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Timezone: ").Append(Timezone).Append("\n"); + sb.Append(" Tty: ").Append(Tty).Append("\n"); + sb.Append(" Unprivileged: ").Append(Unprivileged).Append("\n"); + sb.Append(" Unused0: ").Append(Unused0).Append("\n"); + sb.Append(" Unused1: ").Append(Unused1).Append("\n"); + sb.Append(" Unused2: ").Append(Unused2).Append("\n"); + sb.Append(" Unused3: ").Append(Unused3).Append("\n"); + sb.Append(" Unused4: ").Append(Unused4).Append("\n"); + sb.Append(" Unused5: ").Append(Unused5).Append("\n"); + sb.Append(" Unused6: ").Append(Unused6).Append("\n"); + sb.Append(" Unused7: ").Append(Unused7).Append("\n"); + sb.Append(" Unused8: ").Append(Unused8).Append("\n"); + sb.Append(" Unused9: ").Append(Unused9).Append("\n"); + sb.Append(" Unused10: ").Append(Unused10).Append("\n"); + sb.Append(" Unused11: ").Append(Unused11).Append("\n"); + sb.Append(" Unused12: ").Append(Unused12).Append("\n"); + sb.Append(" Unused13: ").Append(Unused13).Append("\n"); + sb.Append(" Unused14: ").Append(Unused14).Append("\n"); + sb.Append(" Unused15: ").Append(Unused15).Append("\n"); + sb.Append(" Unused16: ").Append(Unused16).Append("\n"); + sb.Append(" Unused17: ").Append(Unused17).Append("\n"); + sb.Append(" Unused18: ").Append(Unused18).Append("\n"); + sb.Append(" Unused19: ").Append(Unused19).Append("\n"); + sb.Append(" Unused20: ").Append(Unused20).Append("\n"); + sb.Append(" Unused21: ").Append(Unused21).Append("\n"); + sb.Append(" Unused22: ").Append(Unused22).Append("\n"); + sb.Append(" Unused23: ").Append(Unused23).Append("\n"); + sb.Append(" Unused24: ").Append(Unused24).Append("\n"); + sb.Append(" Unused25: ").Append(Unused25).Append("\n"); + sb.Append(" Unused26: ").Append(Unused26).Append("\n"); + sb.Append(" Unused27: ").Append(Unused27).Append("\n"); + sb.Append(" Unused28: ").Append(Unused28).Append("\n"); + sb.Append(" Unused29: ").Append(Unused29).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleFeature200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleFeature200Response.cs new file mode 100644 index 0000000..b63e27c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleFeature200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleFeature200Response + /// + [DataContract(Name = "getNodesSingleLxcSingleFeature_200_response")] + public partial class GetNodesSingleLxcSingleFeature200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleLxcSingleFeature200Response(List errors = default(List), GetNodesSingleLxcSingleFeature200ResponseData data = default(GetNodesSingleLxcSingleFeature200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleLxcSingleFeature200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleFeature200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleFeature200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleFeature200ResponseData.cs new file mode 100644 index 0000000..698a8fc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleFeature200ResponseData.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleFeature200ResponseData + /// + [DataContract(Name = "getNodesSingleLxcSingleFeature_200_response_data")] + public partial class GetNodesSingleLxcSingleFeature200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// hasFeature. + public GetNodesSingleLxcSingleFeature200ResponseData(Int64 hasFeature = default(Int64)) + { + this.HasFeature = hasFeature; + } + + /// + /// Gets or Sets HasFeature + /// + [DataMember(Name = "hasFeature", EmitDefaultValue = false)] + public Int64 HasFeature { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleFeature200ResponseData {\n"); + sb.Append(" HasFeature: ").Append(HasFeature).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200Response.cs new file mode 100644 index 0000000..0e1f84c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleInterfaces200Response + /// + [DataContract(Name = "getNodesSingleLxcSingleInterfaces_200_response")] + public partial class GetNodesSingleLxcSingleInterfaces200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleLxcSingleInterfaces200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleInterfaces200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200ResponseDataInner.cs new file mode 100644 index 0000000..71f38d9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200ResponseDataInner.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleInterfaces200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleLxcSingleInterfaces_200_response_data_inner")] + public partial class GetNodesSingleLxcSingleInterfaces200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The MAC address of the interface. + /// The MAC address of the interface. + /// The IPv4 address of the interface. + /// The IPv6 address of the interface. + /// The addresses of the interface. + /// The name of the interface. + public GetNodesSingleLxcSingleInterfaces200ResponseDataInner(string hardwareAddress = default(string), string hwaddr = default(string), string inet = default(string), string inet6 = default(string), List ipAddresses = default(List), string name = default(string)) + { + this.HardwareAddress = hardwareAddress; + this.Hwaddr = hwaddr; + this.Inet = inet; + this.Inet6 = inet6; + this.IpAddresses = ipAddresses; + this.Name = name; + } + + /// + /// The MAC address of the interface + /// + /// The MAC address of the interface + [DataMember(Name = "hardware-address", EmitDefaultValue = false)] + public string HardwareAddress { get; set; } + + /// + /// The MAC address of the interface + /// + /// The MAC address of the interface + [DataMember(Name = "hwaddr", EmitDefaultValue = false)] + public string Hwaddr { get; set; } + + /// + /// The IPv4 address of the interface + /// + /// The IPv4 address of the interface + [DataMember(Name = "inet", EmitDefaultValue = false)] + public string Inet { get; set; } + + /// + /// The IPv6 address of the interface + /// + /// The IPv6 address of the interface + [DataMember(Name = "inet6", EmitDefaultValue = false)] + public string Inet6 { get; set; } + + /// + /// The addresses of the interface + /// + /// The addresses of the interface + [DataMember(Name = "ip-addresses", EmitDefaultValue = false)] + public List IpAddresses { get; set; } + + /// + /// The name of the interface + /// + /// The name of the interface + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleInterfaces200ResponseDataInner {\n"); + sb.Append(" HardwareAddress: ").Append(HardwareAddress).Append("\n"); + sb.Append(" Hwaddr: ").Append(Hwaddr).Append("\n"); + sb.Append(" Inet: ").Append(Inet).Append("\n"); + sb.Append(" Inet6: ").Append(Inet6).Append("\n"); + sb.Append(" IpAddresses: ").Append(IpAddresses).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner.cs new file mode 100644 index 0000000..7cf852a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner + /// + [DataContract(Name = "getNodesSingleLxcSingleInterfaces_200_response_data_inner_ip_addresses_inner")] + public partial class GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// IP-Address. + /// IP-Family. + /// IP-Prefix. + public GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner(string ipAddress = default(string), string ipAddressType = default(string), Int64 prefix = default(Int64)) + { + this.IpAddress = ipAddress; + this.IpAddressType = ipAddressType; + this.Prefix = prefix; + } + + /// + /// IP-Address + /// + /// IP-Address + [DataMember(Name = "ip-address", EmitDefaultValue = false)] + public string IpAddress { get; set; } + + /// + /// IP-Family + /// + /// IP-Family + [DataMember(Name = "ip-address-type", EmitDefaultValue = false)] + public string IpAddressType { get; set; } + + /// + /// IP-Prefix + /// + /// IP-Prefix + [DataMember(Name = "prefix", EmitDefaultValue = false)] + public Int64 Prefix { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner {\n"); + sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); + sb.Append(" IpAddressType: ").Append(IpAddressType).Append("\n"); + sb.Append(" Prefix: ").Append(Prefix).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200Response.cs new file mode 100644 index 0000000..6054875 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleMigrate200Response + /// + [DataContract(Name = "getNodesSingleLxcSingleMigrate_200_response")] + public partial class GetNodesSingleLxcSingleMigrate200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleLxcSingleMigrate200Response(List errors = default(List), GetNodesSingleLxcSingleMigrate200ResponseData data = default(GetNodesSingleLxcSingleMigrate200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleLxcSingleMigrate200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleMigrate200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200ResponseData.cs new file mode 100644 index 0000000..33b8459 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200ResponseData.cs @@ -0,0 +1,113 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleMigrate200ResponseData + /// + [DataContract(Name = "getNodesSingleLxcSingleMigrate_200_response_data")] + public partial class GetNodesSingleLxcSingleMigrate200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// List of nodes allowed for migration.. + /// HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM.. + /// notAllowedNodes. + /// Determines if the container is running.. + public GetNodesSingleLxcSingleMigrate200ResponseData(List allowedNodes = default(List), List dependentHaResources = default(List), GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes notAllowedNodes = default(GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes), Int64 running = default(Int64)) + { + this.AllowedNodes = allowedNodes; + this.DependentHaResources = dependentHaResources; + this.NotAllowedNodes = notAllowedNodes; + this.Running = running; + } + + /// + /// List of nodes allowed for migration. + /// + /// List of nodes allowed for migration. + [DataMember(Name = "allowed-nodes", EmitDefaultValue = false)] + public List AllowedNodes { get; set; } + + /// + /// HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM. + /// + /// HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM. + [DataMember(Name = "dependent-ha-resources", EmitDefaultValue = false)] + public List DependentHaResources { get; set; } + + /// + /// Gets or Sets NotAllowedNodes + /// + [DataMember(Name = "not-allowed-nodes", EmitDefaultValue = false)] + public GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes NotAllowedNodes { get; set; } + + /// + /// Determines if the container is running. + /// + /// Determines if the container is running. + [DataMember(Name = "running", EmitDefaultValue = false)] + public Int64 Running { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleMigrate200ResponseData {\n"); + sb.Append(" AllowedNodes: ").Append(AllowedNodes).Append("\n"); + sb.Append(" DependentHaResources: ").Append(DependentHaResources).Append("\n"); + sb.Append(" NotAllowedNodes: ").Append(NotAllowedNodes).Append("\n"); + sb.Append(" Running: ").Append(Running).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes.cs new file mode 100644 index 0000000..fff07c6 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// List of not allowed nodes with additional information. + /// + [DataContract(Name = "getNodesSingleLxcSingleMigrate_200_response_data_not_allowed_nodes")] + public partial class GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// HA resources, which are blocking the container from being migrated to the node.. + public GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes(List blockingHaResources = default(List)) + { + this.BlockingHaResources = blockingHaResources; + } + + /// + /// HA resources, which are blocking the container from being migrated to the node. + /// + /// HA resources, which are blocking the container from being migrated to the node. + [DataMember(Name = "blocking-ha-resources", EmitDefaultValue = false)] + public List BlockingHaResources { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleMigrate200ResponseDataNotAllowedNodes {\n"); + sb.Append(" BlockingHaResources: ").Append(BlockingHaResources).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSinglePending200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSinglePending200Response.cs new file mode 100644 index 0000000..4a5d6eb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSinglePending200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSinglePending200Response + /// + [DataContract(Name = "getNodesSingleLxcSinglePending_200_response")] + public partial class GetNodesSingleLxcSinglePending200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleLxcSinglePending200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSinglePending200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSinglePending200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSinglePending200ResponseDataInner.cs new file mode 100644 index 0000000..ee93d41 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSinglePending200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSinglePending200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleLxcSinglePending_200_response_data_inner")] + public partial class GetNodesSingleLxcSinglePending200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Indicates a pending delete request if present and not 0.. + /// Configuration option name.. + /// Pending value.. + /// Current value.. + public GetNodesSingleLxcSinglePending200ResponseDataInner(Int64 delete = default(Int64), string key = default(string), string pending = default(string), string value = default(string)) + { + this.Delete = delete; + this.Key = key; + this.Pending = pending; + this.Value = value; + } + + /// + /// Indicates a pending delete request if present and not 0. + /// + /// Indicates a pending delete request if present and not 0. + [DataMember(Name = "delete", EmitDefaultValue = false)] + public Int64 Delete { get; set; } + + /// + /// Configuration option name. + /// + /// Configuration option name. + [DataMember(Name = "key", EmitDefaultValue = false)] + public string Key { get; set; } + + /// + /// Pending value. + /// + /// Pending value. + [DataMember(Name = "pending", EmitDefaultValue = false)] + public string Pending { get; set; } + + /// + /// Current value. + /// + /// Current value. + [DataMember(Name = "value", EmitDefaultValue = false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSinglePending200ResponseDataInner {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Pending: ").Append(Pending).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleSnapshot200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleSnapshot200Response.cs new file mode 100644 index 0000000..8f88d07 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleSnapshot200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleSnapshot200Response + /// + [DataContract(Name = "getNodesSingleLxcSingleSnapshot_200_response")] + public partial class GetNodesSingleLxcSingleSnapshot200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleLxcSingleSnapshot200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleSnapshot200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleSnapshot200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleSnapshot200ResponseDataInner.cs new file mode 100644 index 0000000..6593961 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleSnapshot200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleSnapshot200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleLxcSingleSnapshot_200_response_data_inner")] + public partial class GetNodesSingleLxcSingleSnapshot200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Snapshot description.. + /// Snapshot identifier. Value 'current' identifies the current VM.. + /// Parent snapshot identifier.. + /// Snapshot creation time. + public GetNodesSingleLxcSingleSnapshot200ResponseDataInner(string description = default(string), string name = default(string), string parent = default(string), Int64 snaptime = default(Int64)) + { + this.Description = description; + this.Name = name; + this.Parent = parent; + this.Snaptime = snaptime; + } + + /// + /// Snapshot description. + /// + /// Snapshot description. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Snapshot identifier. Value 'current' identifies the current VM. + /// + /// Snapshot identifier. Value 'current' identifies the current VM. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Parent snapshot identifier. + /// + /// Parent snapshot identifier. + [DataMember(Name = "parent", EmitDefaultValue = false)] + public string Parent { get; set; } + + /// + /// Snapshot creation time + /// + /// Snapshot creation time + [DataMember(Name = "snaptime", EmitDefaultValue = false)] + public Int64 Snaptime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleSnapshot200ResponseDataInner {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Parent: ").Append(Parent).Append("\n"); + sb.Append(" Snaptime: ").Append(Snaptime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleStatusCurrent200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleStatusCurrent200Response.cs new file mode 100644 index 0000000..23608a6 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleStatusCurrent200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleStatusCurrent200Response + /// + [DataContract(Name = "getNodesSingleLxcSingleStatusCurrent_200_response")] + public partial class GetNodesSingleLxcSingleStatusCurrent200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleLxcSingleStatusCurrent200Response(List errors = default(List), GetNodesSingleLxcSingleStatusCurrent200ResponseData data = default(GetNodesSingleLxcSingleStatusCurrent200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleLxcSingleStatusCurrent200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleStatusCurrent200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleStatusCurrent200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleStatusCurrent200ResponseData.cs new file mode 100644 index 0000000..2408a9f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleLxcSingleStatusCurrent200ResponseData.cs @@ -0,0 +1,314 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleLxcSingleStatusCurrent200ResponseData + /// + [DataContract(Name = "getNodesSingleLxcSingleStatusCurrent_200_response_data")] + public partial class GetNodesSingleLxcSingleStatusCurrent200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Current CPU usage.. + /// Maximum usable CPUs.. + /// Root disk image space-usage in bytes.. + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.). + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.). + /// HA manager service status.. + /// The current config lock, if any.. + /// Root disk image size in bytes.. + /// Maximum memory in bytes.. + /// Maximum SWAP memory in bytes.. + /// Currently used memory in bytes.. + /// Container name.. + /// The amount of traffic in bytes that was sent to the guest over the network since it was started.. + /// The amount of traffic in bytes that was sent from the guest over the network since it was started.. + /// CPU Some pressure stall average over the last 10 seconds.. + /// IO Full pressure stall average over the last 10 seconds.. + /// IO Some pressure stall average over the last 10 seconds.. + /// Memory Full pressure stall average over the last 10 seconds.. + /// Memory Some pressure stall average over the last 10 seconds.. + /// LXC Container status.. + /// The current configured tags, if any.. + /// Determines if the guest is a template.. + /// Uptime in seconds.. + /// The (unique) ID of the VM.. + public GetNodesSingleLxcSingleStatusCurrent200ResponseData(decimal cpu = default(decimal), decimal cpus = default(decimal), Int64 disk = default(Int64), Int64 diskread = default(Int64), Int64 diskwrite = default(Int64), Object ha = default(Object), string varLock = default(string), Int64 maxdisk = default(Int64), Int64 maxmem = default(Int64), Int64 maxswap = default(Int64), Int64 mem = default(Int64), string name = default(string), Int64 netin = default(Int64), Int64 netout = default(Int64), decimal pressurecpusome = default(decimal), decimal pressureiofull = default(decimal), decimal pressureiosome = default(decimal), decimal pressurememoryfull = default(decimal), decimal pressurememorysome = default(decimal), string status = default(string), string tags = default(string), Int64 template = default(Int64), Int64 uptime = default(Int64), Int64 vmid = default(Int64)) + { + this.Cpu = cpu; + this.Cpus = cpus; + this.Disk = disk; + this.Diskread = diskread; + this.Diskwrite = diskwrite; + this.Ha = ha; + this.Lock = varLock; + this.Maxdisk = maxdisk; + this.Maxmem = maxmem; + this.Maxswap = maxswap; + this.Mem = mem; + this.Name = name; + this.Netin = netin; + this.Netout = netout; + this.Pressurecpusome = pressurecpusome; + this.Pressureiofull = pressureiofull; + this.Pressureiosome = pressureiosome; + this.Pressurememoryfull = pressurememoryfull; + this.Pressurememorysome = pressurememorysome; + this.Status = status; + this.Tags = tags; + this.Template = template; + this.Uptime = uptime; + this.Vmid = vmid; + } + + /// + /// Current CPU usage. + /// + /// Current CPU usage. + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public decimal Cpu { get; set; } + + /// + /// Maximum usable CPUs. + /// + /// Maximum usable CPUs. + [DataMember(Name = "cpus", EmitDefaultValue = false)] + public decimal Cpus { get; set; } + + /// + /// Root disk image space-usage in bytes. + /// + /// Root disk image space-usage in bytes. + [DataMember(Name = "disk", EmitDefaultValue = false)] + public Int64 Disk { get; set; } + + /// + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + /// + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + [DataMember(Name = "diskread", EmitDefaultValue = false)] + public Int64 Diskread { get; set; } + + /// + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + /// + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + [DataMember(Name = "diskwrite", EmitDefaultValue = false)] + public Int64 Diskwrite { get; set; } + + /// + /// HA manager service status. + /// + /// HA manager service status. + [DataMember(Name = "ha", EmitDefaultValue = false)] + public Object Ha { get; set; } + + /// + /// The current config lock, if any. + /// + /// The current config lock, if any. + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Root disk image size in bytes. + /// + /// Root disk image size in bytes. + [DataMember(Name = "maxdisk", EmitDefaultValue = false)] + public Int64 Maxdisk { get; set; } + + /// + /// Maximum memory in bytes. + /// + /// Maximum memory in bytes. + [DataMember(Name = "maxmem", EmitDefaultValue = false)] + public Int64 Maxmem { get; set; } + + /// + /// Maximum SWAP memory in bytes. + /// + /// Maximum SWAP memory in bytes. + [DataMember(Name = "maxswap", EmitDefaultValue = false)] + public Int64 Maxswap { get; set; } + + /// + /// Currently used memory in bytes. + /// + /// Currently used memory in bytes. + [DataMember(Name = "mem", EmitDefaultValue = false)] + public Int64 Mem { get; set; } + + /// + /// Container name. + /// + /// Container name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. + [DataMember(Name = "netin", EmitDefaultValue = false)] + public Int64 Netin { get; set; } + + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. + [DataMember(Name = "netout", EmitDefaultValue = false)] + public Int64 Netout { get; set; } + + /// + /// CPU Some pressure stall average over the last 10 seconds. + /// + /// CPU Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurecpusome", EmitDefaultValue = false)] + public decimal Pressurecpusome { get; set; } + + /// + /// IO Full pressure stall average over the last 10 seconds. + /// + /// IO Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressureiofull", EmitDefaultValue = false)] + public decimal Pressureiofull { get; set; } + + /// + /// IO Some pressure stall average over the last 10 seconds. + /// + /// IO Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressureiosome", EmitDefaultValue = false)] + public decimal Pressureiosome { get; set; } + + /// + /// Memory Full pressure stall average over the last 10 seconds. + /// + /// Memory Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurememoryfull", EmitDefaultValue = false)] + public decimal Pressurememoryfull { get; set; } + + /// + /// Memory Some pressure stall average over the last 10 seconds. + /// + /// Memory Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurememorysome", EmitDefaultValue = false)] + public decimal Pressurememorysome { get; set; } + + /// + /// LXC Container status. + /// + /// LXC Container status. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// The current configured tags, if any. + /// + /// The current configured tags, if any. + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Determines if the guest is a template. + /// + /// Determines if the guest is a template. + [DataMember(Name = "template", EmitDefaultValue = false)] + public Int64 Template { get; set; } + + /// + /// Uptime in seconds. + /// + /// Uptime in seconds. + [DataMember(Name = "uptime", EmitDefaultValue = false)] + public Int64 Uptime { get; set; } + + /// + /// The (unique) ID of the VM. + /// + /// The (unique) ID of the VM. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleLxcSingleStatusCurrent200ResponseData {\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpus: ").Append(Cpus).Append("\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append(" Diskread: ").Append(Diskread).Append("\n"); + sb.Append(" Diskwrite: ").Append(Diskwrite).Append("\n"); + sb.Append(" Ha: ").Append(Ha).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Maxdisk: ").Append(Maxdisk).Append("\n"); + sb.Append(" Maxmem: ").Append(Maxmem).Append("\n"); + sb.Append(" Maxswap: ").Append(Maxswap).Append("\n"); + sb.Append(" Mem: ").Append(Mem).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Netin: ").Append(Netin).Append("\n"); + sb.Append(" Netout: ").Append(Netout).Append("\n"); + sb.Append(" Pressurecpusome: ").Append(Pressurecpusome).Append("\n"); + sb.Append(" Pressureiofull: ").Append(Pressureiofull).Append("\n"); + sb.Append(" Pressureiosome: ").Append(Pressureiosome).Append("\n"); + sb.Append(" Pressurememoryfull: ").Append(Pressurememoryfull).Append("\n"); + sb.Append(" Pressurememorysome: ").Append(Pressurememorysome).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Uptime: ").Append(Uptime).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleNetwork200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleNetwork200Response.cs new file mode 100644 index 0000000..3b43d0c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleNetwork200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleNetwork200Response + /// + [DataContract(Name = "getNodesSingleNetwork_200_response")] + public partial class GetNodesSingleNetwork200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleNetwork200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleNetwork200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleNetwork200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleNetwork200ResponseDataInner.cs new file mode 100644 index 0000000..9b8118e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleNetwork200ResponseDataInner.cs @@ -0,0 +1,554 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleNetwork200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleNetwork_200_response_data_inner")] + public partial class GetNodesSingleNetwork200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Set to true if the interface is active.. + /// IP address.. + /// IP address.. + /// Automatically start interface on boot.. + /// Specify the primary interface for active-backup bond.. + /// Bonding mode.. + /// Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.. + /// The bridge port access VLAN.. + /// Bridge port ARP/ND suppress flag.. + /// Bridge port learning flag.. + /// Bridge port multicast flood flag.. + /// Bridge port unicast flood flag.. + /// Specify the interfaces you want to add to your bridge.. + /// Specify the allowed VLANs. For example: '2 4 100-200'. Only used if the bridge is VLAN aware.. + /// Enable bridge vlan support.. + /// IPv4 CIDR.. + /// IPv6 CIDR.. + /// Comments. + /// Comments. + /// Set to true if the interface physically exists.. + /// The network families.. + /// Default gateway address.. + /// Default ipv6 gateway address.. + /// Network interface name.. + /// The link type.. + /// The network configuration method for IPv4.. + /// The network configuration method for IPv6.. + /// MTU.. + /// Network mask.. + /// Network mask.. + /// A list of additional interface options for IPv4.. + /// A list of additional interface options for IPv6.. + /// Specify the interfaces used by the bonding device.. + /// The OVS bridge associated with a OVS port. This is required when you create an OVS port.. + /// OVS interface options.. + /// Specify the interfaces you want to add to your bridge.. + /// Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond). + /// The order of the interface.. + /// Specify the interfaces used by the bonding device.. + /// Network interface type. + /// The uplink ID.. + /// vlan-id for a custom named vlan interface (ifupdown2 only).. + /// The VLAN protocol.. + /// Specify the raw interface for the vlan interface.. + /// The VXLAN ID.. + /// The VXLAN local tunnel IP.. + /// The physical device for the VXLAN tunnel.. + /// The VXLAN SVC node IP.. + public GetNodesSingleNetwork200ResponseDataInner(Int64 active = default(Int64), string address = default(string), string address6 = default(string), Int64 autostart = default(Int64), string bondPrimary = default(string), string bondMode = default(string), string bondXmitHashPolicy = default(string), Int64 bridgeAccess = default(Int64), Int64 bridgeArpNdSuppress = default(Int64), Int64 bridgeLearning = default(Int64), Int64 bridgeMulticastFlood = default(Int64), Int64 bridgeUnicastFlood = default(Int64), string bridgePorts = default(string), string bridgeVids = default(string), Int64 bridgeVlanAware = default(Int64), string cidr = default(string), string cidr6 = default(string), string comments = default(string), string comments6 = default(string), Int64 exists = default(Int64), List families = default(List), string gateway = default(string), string gateway6 = default(string), string iface = default(string), string linkType = default(string), string method = default(string), string method6 = default(string), Int64 mtu = default(Int64), string netmask = default(string), Int64 netmask6 = default(Int64), List options = default(List), List options6 = default(List), string ovsBonds = default(string), string ovsBridge = default(string), string ovsOptions = default(string), string ovsPorts = default(string), Int64 ovsTag = default(Int64), Int64 priority = default(Int64), string slaves = default(string), string type = default(string), string uplinkId = default(string), Int64 vlanId = default(Int64), string vlanProtocol = default(string), string vlanRawDevice = default(string), Int64 vxlanId = default(Int64), string vxlanLocalTunnelip = default(string), string vxlanPhysdev = default(string), string vxlanSvcnodeip = default(string)) + { + this.Active = active; + this.Address = address; + this.Address6 = address6; + this.Autostart = autostart; + this.BondPrimary = bondPrimary; + this.BondMode = bondMode; + this.BondXmitHashPolicy = bondXmitHashPolicy; + this.BridgeAccess = bridgeAccess; + this.BridgeArpNdSuppress = bridgeArpNdSuppress; + this.BridgeLearning = bridgeLearning; + this.BridgeMulticastFlood = bridgeMulticastFlood; + this.BridgeUnicastFlood = bridgeUnicastFlood; + this.BridgePorts = bridgePorts; + this.BridgeVids = bridgeVids; + this.BridgeVlanAware = bridgeVlanAware; + this.Cidr = cidr; + this.Cidr6 = cidr6; + this.Comments = comments; + this.Comments6 = comments6; + this.Exists = exists; + this.Families = families; + this.Gateway = gateway; + this.Gateway6 = gateway6; + this.Iface = iface; + this.LinkType = linkType; + this.Method = method; + this.Method6 = method6; + this.Mtu = mtu; + this.Netmask = netmask; + this.Netmask6 = netmask6; + this.Options = options; + this.Options6 = options6; + this.OvsBonds = ovsBonds; + this.OvsBridge = ovsBridge; + this.OvsOptions = ovsOptions; + this.OvsPorts = ovsPorts; + this.OvsTag = ovsTag; + this.Priority = priority; + this.Slaves = slaves; + this.Type = type; + this.UplinkId = uplinkId; + this.VlanId = vlanId; + this.VlanProtocol = vlanProtocol; + this.VlanRawDevice = vlanRawDevice; + this.VxlanId = vxlanId; + this.VxlanLocalTunnelip = vxlanLocalTunnelip; + this.VxlanPhysdev = vxlanPhysdev; + this.VxlanSvcnodeip = vxlanSvcnodeip; + } + + /// + /// Set to true if the interface is active. + /// + /// Set to true if the interface is active. + [DataMember(Name = "active", EmitDefaultValue = false)] + public Int64 Active { get; set; } + + /// + /// IP address. + /// + /// IP address. + [DataMember(Name = "address", EmitDefaultValue = false)] + public string Address { get; set; } + + /// + /// IP address. + /// + /// IP address. + [DataMember(Name = "address6", EmitDefaultValue = false)] + public string Address6 { get; set; } + + /// + /// Automatically start interface on boot. + /// + /// Automatically start interface on boot. + [DataMember(Name = "autostart", EmitDefaultValue = false)] + public Int64 Autostart { get; set; } + + /// + /// Specify the primary interface for active-backup bond. + /// + /// Specify the primary interface for active-backup bond. + [DataMember(Name = "bond-primary", EmitDefaultValue = false)] + public string BondPrimary { get; set; } + + /// + /// Bonding mode. + /// + /// Bonding mode. + [DataMember(Name = "bond_mode", EmitDefaultValue = false)] + public string BondMode { get; set; } + + /// + /// Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes. + /// + /// Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes. + [DataMember(Name = "bond_xmit_hash_policy", EmitDefaultValue = false)] + public string BondXmitHashPolicy { get; set; } + + /// + /// The bridge port access VLAN. + /// + /// The bridge port access VLAN. + [DataMember(Name = "bridge-access", EmitDefaultValue = false)] + public Int64 BridgeAccess { get; set; } + + /// + /// Bridge port ARP/ND suppress flag. + /// + /// Bridge port ARP/ND suppress flag. + [DataMember(Name = "bridge-arp-nd-suppress", EmitDefaultValue = false)] + public Int64 BridgeArpNdSuppress { get; set; } + + /// + /// Bridge port learning flag. + /// + /// Bridge port learning flag. + [DataMember(Name = "bridge-learning", EmitDefaultValue = false)] + public Int64 BridgeLearning { get; set; } + + /// + /// Bridge port multicast flood flag. + /// + /// Bridge port multicast flood flag. + [DataMember(Name = "bridge-multicast-flood", EmitDefaultValue = false)] + public Int64 BridgeMulticastFlood { get; set; } + + /// + /// Bridge port unicast flood flag. + /// + /// Bridge port unicast flood flag. + [DataMember(Name = "bridge-unicast-flood", EmitDefaultValue = false)] + public Int64 BridgeUnicastFlood { get; set; } + + /// + /// Specify the interfaces you want to add to your bridge. + /// + /// Specify the interfaces you want to add to your bridge. + [DataMember(Name = "bridge_ports", EmitDefaultValue = false)] + public string BridgePorts { get; set; } + + /// + /// Specify the allowed VLANs. For example: '2 4 100-200'. Only used if the bridge is VLAN aware. + /// + /// Specify the allowed VLANs. For example: '2 4 100-200'. Only used if the bridge is VLAN aware. + [DataMember(Name = "bridge_vids", EmitDefaultValue = false)] + public string BridgeVids { get; set; } + + /// + /// Enable bridge vlan support. + /// + /// Enable bridge vlan support. + [DataMember(Name = "bridge_vlan_aware", EmitDefaultValue = false)] + public Int64 BridgeVlanAware { get; set; } + + /// + /// IPv4 CIDR. + /// + /// IPv4 CIDR. + [DataMember(Name = "cidr", EmitDefaultValue = false)] + public string Cidr { get; set; } + + /// + /// IPv6 CIDR. + /// + /// IPv6 CIDR. + [DataMember(Name = "cidr6", EmitDefaultValue = false)] + public string Cidr6 { get; set; } + + /// + /// Comments + /// + /// Comments + [DataMember(Name = "comments", EmitDefaultValue = false)] + public string Comments { get; set; } + + /// + /// Comments + /// + /// Comments + [DataMember(Name = "comments6", EmitDefaultValue = false)] + public string Comments6 { get; set; } + + /// + /// Set to true if the interface physically exists. + /// + /// Set to true if the interface physically exists. + [DataMember(Name = "exists", EmitDefaultValue = false)] + public Int64 Exists { get; set; } + + /// + /// The network families. + /// + /// The network families. + [DataMember(Name = "families", EmitDefaultValue = false)] + public List Families { get; set; } + + /// + /// Default gateway address. + /// + /// Default gateway address. + [DataMember(Name = "gateway", EmitDefaultValue = false)] + public string Gateway { get; set; } + + /// + /// Default ipv6 gateway address. + /// + /// Default ipv6 gateway address. + [DataMember(Name = "gateway6", EmitDefaultValue = false)] + public string Gateway6 { get; set; } + + /// + /// Network interface name. + /// + /// Network interface name. + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// The link type. + /// + /// The link type. + [DataMember(Name = "link-type", EmitDefaultValue = false)] + public string LinkType { get; set; } + + /// + /// The network configuration method for IPv4. + /// + /// The network configuration method for IPv4. + [DataMember(Name = "method", EmitDefaultValue = false)] + public string Method { get; set; } + + /// + /// The network configuration method for IPv6. + /// + /// The network configuration method for IPv6. + [DataMember(Name = "method6", EmitDefaultValue = false)] + public string Method6 { get; set; } + + /// + /// MTU. + /// + /// MTU. + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public Int64 Mtu { get; set; } + + /// + /// Network mask. + /// + /// Network mask. + [DataMember(Name = "netmask", EmitDefaultValue = false)] + public string Netmask { get; set; } + + /// + /// Network mask. + /// + /// Network mask. + [DataMember(Name = "netmask6", EmitDefaultValue = false)] + public Int64 Netmask6 { get; set; } + + /// + /// A list of additional interface options for IPv4. + /// + /// A list of additional interface options for IPv4. + [DataMember(Name = "options", EmitDefaultValue = false)] + public List Options { get; set; } + + /// + /// A list of additional interface options for IPv6. + /// + /// A list of additional interface options for IPv6. + [DataMember(Name = "options6", EmitDefaultValue = false)] + public List Options6 { get; set; } + + /// + /// Specify the interfaces used by the bonding device. + /// + /// Specify the interfaces used by the bonding device. + [DataMember(Name = "ovs_bonds", EmitDefaultValue = false)] + public string OvsBonds { get; set; } + + /// + /// The OVS bridge associated with a OVS port. This is required when you create an OVS port. + /// + /// The OVS bridge associated with a OVS port. This is required when you create an OVS port. + [DataMember(Name = "ovs_bridge", EmitDefaultValue = false)] + public string OvsBridge { get; set; } + + /// + /// OVS interface options. + /// + /// OVS interface options. + [DataMember(Name = "ovs_options", EmitDefaultValue = false)] + public string OvsOptions { get; set; } + + /// + /// Specify the interfaces you want to add to your bridge. + /// + /// Specify the interfaces you want to add to your bridge. + [DataMember(Name = "ovs_ports", EmitDefaultValue = false)] + public string OvsPorts { get; set; } + + /// + /// Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond) + /// + /// Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond) + [DataMember(Name = "ovs_tag", EmitDefaultValue = false)] + public Int64 OvsTag { get; set; } + + /// + /// The order of the interface. + /// + /// The order of the interface. + [DataMember(Name = "priority", EmitDefaultValue = false)] + public Int64 Priority { get; set; } + + /// + /// Specify the interfaces used by the bonding device. + /// + /// Specify the interfaces used by the bonding device. + [DataMember(Name = "slaves", EmitDefaultValue = false)] + public string Slaves { get; set; } + + /// + /// Network interface type + /// + /// Network interface type + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// The uplink ID. + /// + /// The uplink ID. + [DataMember(Name = "uplink-id", EmitDefaultValue = false)] + public string UplinkId { get; set; } + + /// + /// vlan-id for a custom named vlan interface (ifupdown2 only). + /// + /// vlan-id for a custom named vlan interface (ifupdown2 only). + [DataMember(Name = "vlan-id", EmitDefaultValue = false)] + public Int64 VlanId { get; set; } + + /// + /// The VLAN protocol. + /// + /// The VLAN protocol. + [DataMember(Name = "vlan-protocol", EmitDefaultValue = false)] + public string VlanProtocol { get; set; } + + /// + /// Specify the raw interface for the vlan interface. + /// + /// Specify the raw interface for the vlan interface. + [DataMember(Name = "vlan-raw-device", EmitDefaultValue = false)] + public string VlanRawDevice { get; set; } + + /// + /// The VXLAN ID. + /// + /// The VXLAN ID. + [DataMember(Name = "vxlan-id", EmitDefaultValue = false)] + public Int64 VxlanId { get; set; } + + /// + /// The VXLAN local tunnel IP. + /// + /// The VXLAN local tunnel IP. + [DataMember(Name = "vxlan-local-tunnelip", EmitDefaultValue = false)] + public string VxlanLocalTunnelip { get; set; } + + /// + /// The physical device for the VXLAN tunnel. + /// + /// The physical device for the VXLAN tunnel. + [DataMember(Name = "vxlan-physdev", EmitDefaultValue = false)] + public string VxlanPhysdev { get; set; } + + /// + /// The VXLAN SVC node IP. + /// + /// The VXLAN SVC node IP. + [DataMember(Name = "vxlan-svcnodeip", EmitDefaultValue = false)] + public string VxlanSvcnodeip { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleNetwork200ResponseDataInner {\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Address6: ").Append(Address6).Append("\n"); + sb.Append(" Autostart: ").Append(Autostart).Append("\n"); + sb.Append(" BondPrimary: ").Append(BondPrimary).Append("\n"); + sb.Append(" BondMode: ").Append(BondMode).Append("\n"); + sb.Append(" BondXmitHashPolicy: ").Append(BondXmitHashPolicy).Append("\n"); + sb.Append(" BridgeAccess: ").Append(BridgeAccess).Append("\n"); + sb.Append(" BridgeArpNdSuppress: ").Append(BridgeArpNdSuppress).Append("\n"); + sb.Append(" BridgeLearning: ").Append(BridgeLearning).Append("\n"); + sb.Append(" BridgeMulticastFlood: ").Append(BridgeMulticastFlood).Append("\n"); + sb.Append(" BridgeUnicastFlood: ").Append(BridgeUnicastFlood).Append("\n"); + sb.Append(" BridgePorts: ").Append(BridgePorts).Append("\n"); + sb.Append(" BridgeVids: ").Append(BridgeVids).Append("\n"); + sb.Append(" BridgeVlanAware: ").Append(BridgeVlanAware).Append("\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Cidr6: ").Append(Cidr6).Append("\n"); + sb.Append(" Comments: ").Append(Comments).Append("\n"); + sb.Append(" Comments6: ").Append(Comments6).Append("\n"); + sb.Append(" Exists: ").Append(Exists).Append("\n"); + sb.Append(" Families: ").Append(Families).Append("\n"); + sb.Append(" Gateway: ").Append(Gateway).Append("\n"); + sb.Append(" Gateway6: ").Append(Gateway6).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" LinkType: ").Append(LinkType).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Method6: ").Append(Method6).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Netmask: ").Append(Netmask).Append("\n"); + sb.Append(" Netmask6: ").Append(Netmask6).Append("\n"); + sb.Append(" Options: ").Append(Options).Append("\n"); + sb.Append(" Options6: ").Append(Options6).Append("\n"); + sb.Append(" OvsBonds: ").Append(OvsBonds).Append("\n"); + sb.Append(" OvsBridge: ").Append(OvsBridge).Append("\n"); + sb.Append(" OvsOptions: ").Append(OvsOptions).Append("\n"); + sb.Append(" OvsPorts: ").Append(OvsPorts).Append("\n"); + sb.Append(" OvsTag: ").Append(OvsTag).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" Slaves: ").Append(Slaves).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" UplinkId: ").Append(UplinkId).Append("\n"); + sb.Append(" VlanId: ").Append(VlanId).Append("\n"); + sb.Append(" VlanProtocol: ").Append(VlanProtocol).Append("\n"); + sb.Append(" VlanRawDevice: ").Append(VlanRawDevice).Append("\n"); + sb.Append(" VxlanId: ").Append(VxlanId).Append("\n"); + sb.Append(" VxlanLocalTunnelip: ").Append(VxlanLocalTunnelip).Append("\n"); + sb.Append(" VxlanPhysdev: ").Append(VxlanPhysdev).Append("\n"); + sb.Append(" VxlanSvcnodeip: ").Append(VxlanSvcnodeip).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleNetworkSingle200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleNetworkSingle200Response.cs new file mode 100644 index 0000000..6755f5e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleNetworkSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleNetworkSingle200Response + /// + [DataContract(Name = "getNodesSingleNetworkSingle_200_response")] + public partial class GetNodesSingleNetworkSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleNetworkSingle200Response(List errors = default(List), GetNodesSingleNetworkSingle200ResponseData data = default(GetNodesSingleNetworkSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleNetworkSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleNetworkSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleNetworkSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleNetworkSingle200ResponseData.cs new file mode 100644 index 0000000..c47a71b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleNetworkSingle200ResponseData.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleNetworkSingle200ResponseData + /// + [DataContract(Name = "getNodesSingleNetworkSingle_200_response_data")] + public partial class GetNodesSingleNetworkSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// method. + /// type. + public GetNodesSingleNetworkSingle200ResponseData(string method = default(string), string type = default(string)) + { + this.Method = method; + this.Type = type; + } + + /// + /// Gets or Sets Method + /// + [DataMember(Name = "method", EmitDefaultValue = false)] + public string Method { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleNetworkSingle200ResponseData {\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgent200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgent200Response.cs new file mode 100644 index 0000000..5dda98e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgent200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleAgent200Response + /// + [DataContract(Name = "getNodesSingleQemuSingleAgent_200_response")] + public partial class GetNodesSingleQemuSingleAgent200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// Returns the list of QEMU Guest Agent commands. + public GetNodesSingleQemuSingleAgent200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Returns the list of QEMU Guest Agent commands + /// + /// Returns the list of QEMU Guest Agent commands + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleAgent200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentExecstatus200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentExecstatus200Response.cs new file mode 100644 index 0000000..bf28807 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentExecstatus200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleAgentExecstatus200Response + /// + [DataContract(Name = "getNodesSingleQemuSingleAgentExecstatus_200_response")] + public partial class GetNodesSingleQemuSingleAgentExecstatus200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleQemuSingleAgentExecstatus200Response(List errors = default(List), GetNodesSingleQemuSingleAgentExecstatus200ResponseData data = default(GetNodesSingleQemuSingleAgentExecstatus200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleQemuSingleAgentExecstatus200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleAgentExecstatus200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentExecstatus200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentExecstatus200ResponseData.cs new file mode 100644 index 0000000..080afcf --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentExecstatus200ResponseData.cs @@ -0,0 +1,144 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleAgentExecstatus200ResponseData + /// + [DataContract(Name = "getNodesSingleQemuSingleAgentExecstatus_200_response_data")] + public partial class GetNodesSingleQemuSingleAgentExecstatus200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// stderr of the process. + /// true if stderr was not fully captured. + /// process exit code if it was normally terminated.. + /// Tells if the given command has exited yet.. + /// stdout of the process. + /// true if stdout was not fully captured. + /// signal number or exception code if the process was abnormally terminated.. + public GetNodesSingleQemuSingleAgentExecstatus200ResponseData(string errData = default(string), Int64 errTruncated = default(Int64), Int64 exitcode = default(Int64), Int64 exited = default(Int64), string outData = default(string), Int64 outTruncated = default(Int64), Int64 signal = default(Int64)) + { + this.ErrData = errData; + this.ErrTruncated = errTruncated; + this.Exitcode = exitcode; + this.Exited = exited; + this.OutData = outData; + this.OutTruncated = outTruncated; + this.Signal = signal; + } + + /// + /// stderr of the process + /// + /// stderr of the process + [DataMember(Name = "err-data", EmitDefaultValue = false)] + public string ErrData { get; set; } + + /// + /// true if stderr was not fully captured + /// + /// true if stderr was not fully captured + [DataMember(Name = "err-truncated", EmitDefaultValue = false)] + public Int64 ErrTruncated { get; set; } + + /// + /// process exit code if it was normally terminated. + /// + /// process exit code if it was normally terminated. + [DataMember(Name = "exitcode", EmitDefaultValue = false)] + public Int64 Exitcode { get; set; } + + /// + /// Tells if the given command has exited yet. + /// + /// Tells if the given command has exited yet. + [DataMember(Name = "exited", EmitDefaultValue = false)] + public Int64 Exited { get; set; } + + /// + /// stdout of the process + /// + /// stdout of the process + [DataMember(Name = "out-data", EmitDefaultValue = false)] + public string OutData { get; set; } + + /// + /// true if stdout was not fully captured + /// + /// true if stdout was not fully captured + [DataMember(Name = "out-truncated", EmitDefaultValue = false)] + public Int64 OutTruncated { get; set; } + + /// + /// signal number or exception code if the process was abnormally terminated. + /// + /// signal number or exception code if the process was abnormally terminated. + [DataMember(Name = "signal", EmitDefaultValue = false)] + public Int64 Signal { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleAgentExecstatus200ResponseData {\n"); + sb.Append(" ErrData: ").Append(ErrData).Append("\n"); + sb.Append(" ErrTruncated: ").Append(ErrTruncated).Append("\n"); + sb.Append(" Exitcode: ").Append(Exitcode).Append("\n"); + sb.Append(" Exited: ").Append(Exited).Append("\n"); + sb.Append(" OutData: ").Append(OutData).Append("\n"); + sb.Append(" OutTruncated: ").Append(OutTruncated).Append("\n"); + sb.Append(" Signal: ").Append(Signal).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentFileread200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentFileread200Response.cs new file mode 100644 index 0000000..f36d504 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentFileread200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleAgentFileread200Response + /// + [DataContract(Name = "getNodesSingleQemuSingleAgentFileread_200_response")] + public partial class GetNodesSingleQemuSingleAgentFileread200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleQemuSingleAgentFileread200Response(List errors = default(List), GetNodesSingleQemuSingleAgentFileread200ResponseData data = default(GetNodesSingleQemuSingleAgentFileread200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleQemuSingleAgentFileread200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleAgentFileread200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentFileread200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentFileread200ResponseData.cs new file mode 100644 index 0000000..f42e8ed --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleAgentFileread200ResponseData.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Returns an object with a `content` property. + /// + [DataContract(Name = "getNodesSingleQemuSingleAgentFileread_200_response_data")] + public partial class GetNodesSingleQemuSingleAgentFileread200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The content of the file, maximum 16777216. + /// If set to 1, the output is truncated and not complete. + public GetNodesSingleQemuSingleAgentFileread200ResponseData(string content = default(string), Int64 truncated = default(Int64)) + { + this.Content = content; + this.Truncated = truncated; + } + + /// + /// The content of the file, maximum 16777216 + /// + /// The content of the file, maximum 16777216 + [DataMember(Name = "content", EmitDefaultValue = false)] + public string Content { get; set; } + + /// + /// If set to 1, the output is truncated and not complete + /// + /// If set to 1, the output is truncated and not complete + [DataMember(Name = "truncated", EmitDefaultValue = false)] + public Int64 Truncated { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleAgentFileread200ResponseData {\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Truncated: ").Append(Truncated).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleCloudinit200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleCloudinit200Response.cs new file mode 100644 index 0000000..2cb6767 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleCloudinit200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleCloudinit200Response + /// + [DataContract(Name = "getNodesSingleQemuSingleCloudinit_200_response")] + public partial class GetNodesSingleQemuSingleCloudinit200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleQemuSingleCloudinit200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleCloudinit200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleCloudinit200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleCloudinit200ResponseDataInner.cs new file mode 100644 index 0000000..52f29c8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleCloudinit200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleCloudinit200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleQemuSingleCloudinit_200_response_data_inner")] + public partial class GetNodesSingleQemuSingleCloudinit200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Indicates a pending delete request if present and not 0.. + /// Configuration option name.. + /// The new pending value.. + /// Value as it was used to generate the current cloudinit image.. + public GetNodesSingleQemuSingleCloudinit200ResponseDataInner(Int64 delete = default(Int64), string key = default(string), string pending = default(string), string value = default(string)) + { + this.Delete = delete; + this.Key = key; + this.Pending = pending; + this.Value = value; + } + + /// + /// Indicates a pending delete request if present and not 0. + /// + /// Indicates a pending delete request if present and not 0. + [DataMember(Name = "delete", EmitDefaultValue = false)] + public Int64 Delete { get; set; } + + /// + /// Configuration option name. + /// + /// Configuration option name. + [DataMember(Name = "key", EmitDefaultValue = false)] + public string Key { get; set; } + + /// + /// The new pending value. + /// + /// The new pending value. + [DataMember(Name = "pending", EmitDefaultValue = false)] + public string Pending { get; set; } + + /// + /// Value as it was used to generate the current cloudinit image. + /// + /// Value as it was used to generate the current cloudinit image. + [DataMember(Name = "value", EmitDefaultValue = false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleCloudinit200ResponseDataInner {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Pending: ").Append(Pending).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFeature200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFeature200Response.cs new file mode 100644 index 0000000..d99b196 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFeature200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleFeature200Response + /// + [DataContract(Name = "getNodesSingleQemuSingleFeature_200_response")] + public partial class GetNodesSingleQemuSingleFeature200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleQemuSingleFeature200Response(List errors = default(List), GetNodesSingleQemuSingleFeature200ResponseData data = default(GetNodesSingleQemuSingleFeature200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleQemuSingleFeature200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleFeature200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFeature200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFeature200ResponseData.cs new file mode 100644 index 0000000..112e43a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFeature200ResponseData.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleFeature200ResponseData + /// + [DataContract(Name = "getNodesSingleQemuSingleFeature_200_response_data")] + public partial class GetNodesSingleQemuSingleFeature200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// hasFeature. + /// nodes. + public GetNodesSingleQemuSingleFeature200ResponseData(Int64 hasFeature = default(Int64), List nodes = default(List)) + { + this.HasFeature = hasFeature; + this.Nodes = nodes; + } + + /// + /// Gets or Sets HasFeature + /// + [DataMember(Name = "hasFeature", EmitDefaultValue = false)] + public Int64 HasFeature { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public List Nodes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleFeature200ResponseData {\n"); + sb.Append(" HasFeature: ").Append(HasFeature).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFirewallLog200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFirewallLog200Response.cs new file mode 100644 index 0000000..bd2550e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFirewallLog200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleFirewallLog200Response + /// + [DataContract(Name = "getNodesSingleQemuSingleFirewallLog_200_response")] + public partial class GetNodesSingleQemuSingleFirewallLog200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleQemuSingleFirewallLog200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleFirewallLog200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFirewallLog200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFirewallLog200ResponseDataInner.cs new file mode 100644 index 0000000..56231a2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleFirewallLog200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleFirewallLog200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleQemuSingleFirewallLog_200_response_data_inner")] + public partial class GetNodesSingleQemuSingleFirewallLog200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Line number. + /// Line text. + public GetNodesSingleQemuSingleFirewallLog200ResponseDataInner(Int64 n = default(Int64), string t = default(string)) + { + this.N = n; + this.T = t; + } + + /// + /// Line number + /// + /// Line number + [DataMember(Name = "n", EmitDefaultValue = false)] + public Int64 N { get; set; } + + /// + /// Line text + /// + /// Line text + [DataMember(Name = "t", EmitDefaultValue = false)] + public string T { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleFirewallLog200ResponseDataInner {\n"); + sb.Append(" N: ").Append(N).Append("\n"); + sb.Append(" T: ").Append(T).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleMtunnelwebsocket200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleMtunnelwebsocket200Response.cs new file mode 100644 index 0000000..99ecfef --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleMtunnelwebsocket200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleMtunnelwebsocket200Response + /// + [DataContract(Name = "getNodesSingleQemuSingleMtunnelwebsocket_200_response")] + public partial class GetNodesSingleQemuSingleMtunnelwebsocket200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleQemuSingleMtunnelwebsocket200Response(List errors = default(List), GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData data = default(GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleMtunnelwebsocket200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData.cs new file mode 100644 index 0000000..9b04434 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData + /// + [DataContract(Name = "getNodesSingleQemuSingleMtunnelwebsocket_200_response_data")] + public partial class GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// port. + /// socket. + public GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData(string port = default(string), string socket = default(string)) + { + this.Port = port; + this.Socket = socket; + } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public string Port { get; set; } + + /// + /// Gets or Sets Socket + /// + [DataMember(Name = "socket", EmitDefaultValue = false)] + public string Socket { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleMtunnelwebsocket200ResponseData {\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Socket: ").Append(Socket).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleVncwebsocket200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleVncwebsocket200Response.cs new file mode 100644 index 0000000..c5dc311 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleVncwebsocket200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleVncwebsocket200Response + /// + [DataContract(Name = "getNodesSingleQemuSingleVncwebsocket_200_response")] + public partial class GetNodesSingleQemuSingleVncwebsocket200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleQemuSingleVncwebsocket200Response(List errors = default(List), GetNodesSingleQemuSingleVncwebsocket200ResponseData data = default(GetNodesSingleQemuSingleVncwebsocket200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleQemuSingleVncwebsocket200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleVncwebsocket200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleVncwebsocket200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleVncwebsocket200ResponseData.cs new file mode 100644 index 0000000..f0869c5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQemuSingleVncwebsocket200ResponseData.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQemuSingleVncwebsocket200ResponseData + /// + [DataContract(Name = "getNodesSingleQemuSingleVncwebsocket_200_response_data")] + public partial class GetNodesSingleQemuSingleVncwebsocket200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// port. + public GetNodesSingleQemuSingleVncwebsocket200ResponseData(string port = default(string)) + { + this.Port = port; + } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public string Port { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQemuSingleVncwebsocket200ResponseData {\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQueryurlmetadata200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleQueryurlmetadata200Response.cs new file mode 100644 index 0000000..f0a207b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQueryurlmetadata200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQueryurlmetadata200Response + /// + [DataContract(Name = "getNodesSingleQueryurlmetadata_200_response")] + public partial class GetNodesSingleQueryurlmetadata200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleQueryurlmetadata200Response(List errors = default(List), GetNodesSingleQueryurlmetadata200ResponseData data = default(GetNodesSingleQueryurlmetadata200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleQueryurlmetadata200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQueryurlmetadata200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleQueryurlmetadata200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleQueryurlmetadata200ResponseData.cs new file mode 100644 index 0000000..72d342e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleQueryurlmetadata200ResponseData.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleQueryurlmetadata200ResponseData + /// + [DataContract(Name = "getNodesSingleQueryurlmetadata_200_response_data")] + public partial class GetNodesSingleQueryurlmetadata200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// filename. + /// mimetype. + /// size. + public GetNodesSingleQueryurlmetadata200ResponseData(string filename = default(string), string mimetype = default(string), Int64 size = default(Int64)) + { + this.Filename = filename; + this.Mimetype = mimetype; + this.Size = size; + } + + /// + /// Gets or Sets Filename + /// + [DataMember(Name = "filename", EmitDefaultValue = false)] + public string Filename { get; set; } + + /// + /// Gets or Sets Mimetype + /// + [DataMember(Name = "mimetype", EmitDefaultValue = false)] + public string Mimetype { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleQueryurlmetadata200ResponseData {\n"); + sb.Append(" Filename: ").Append(Filename).Append("\n"); + sb.Append(" Mimetype: ").Append(Mimetype).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScan200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleScan200Response.cs new file mode 100644 index 0000000..539fd9d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScan200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScan200Response + /// + [DataContract(Name = "getNodesSingleScan_200_response")] + public partial class GetNodesSingleScan200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleScan200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScan200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScan200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleScan200ResponseDataInner.cs new file mode 100644 index 0000000..7ef2ea5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScan200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScan200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleScan_200_response_data_inner")] + public partial class GetNodesSingleScan200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// method. + public GetNodesSingleScan200ResponseDataInner(string method = default(string)) + { + this.Method = method; + } + + /// + /// Gets or Sets Method + /// + [DataMember(Name = "method", EmitDefaultValue = false)] + public string Method { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScan200ResponseDataInner {\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanCifs200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanCifs200Response.cs new file mode 100644 index 0000000..335d91d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanCifs200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanCifs200Response + /// + [DataContract(Name = "getNodesSingleScanCifs_200_response")] + public partial class GetNodesSingleScanCifs200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleScanCifs200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanCifs200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanCifs200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanCifs200ResponseDataInner.cs new file mode 100644 index 0000000..8b38f32 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanCifs200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanCifs200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleScanCifs_200_response_data_inner")] + public partial class GetNodesSingleScanCifs200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Descriptive text from server.. + /// The cifs share name.. + public GetNodesSingleScanCifs200ResponseDataInner(string description = default(string), string share = default(string)) + { + this.Description = description; + this.Share = share; + } + + /// + /// Descriptive text from server. + /// + /// Descriptive text from server. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// The cifs share name. + /// + /// The cifs share name. + [DataMember(Name = "share", EmitDefaultValue = false)] + public string Share { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanCifs200ResponseDataInner {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Share: ").Append(Share).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanIscsi200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanIscsi200Response.cs new file mode 100644 index 0000000..01feac6 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanIscsi200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanIscsi200Response + /// + [DataContract(Name = "getNodesSingleScanIscsi_200_response")] + public partial class GetNodesSingleScanIscsi200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleScanIscsi200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanIscsi200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanIscsi200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanIscsi200ResponseDataInner.cs new file mode 100644 index 0000000..2bf00d1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanIscsi200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanIscsi200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleScanIscsi_200_response_data_inner")] + public partial class GetNodesSingleScanIscsi200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The iSCSI portal name.. + /// The iSCSI target name.. + public GetNodesSingleScanIscsi200ResponseDataInner(string portal = default(string), string target = default(string)) + { + this.Portal = portal; + this.Target = target; + } + + /// + /// The iSCSI portal name. + /// + /// The iSCSI portal name. + [DataMember(Name = "portal", EmitDefaultValue = false)] + public string Portal { get; set; } + + /// + /// The iSCSI target name. + /// + /// The iSCSI target name. + [DataMember(Name = "target", EmitDefaultValue = false)] + public string Target { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanIscsi200ResponseDataInner {\n"); + sb.Append(" Portal: ").Append(Portal).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanLvm200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanLvm200Response.cs new file mode 100644 index 0000000..09c0d96 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanLvm200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanLvm200Response + /// + [DataContract(Name = "getNodesSingleScanLvm_200_response")] + public partial class GetNodesSingleScanLvm200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleScanLvm200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanLvm200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanLvm200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanLvm200ResponseDataInner.cs new file mode 100644 index 0000000..81f6fc6 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanLvm200ResponseDataInner.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanLvm200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleScanLvm_200_response_data_inner")] + public partial class GetNodesSingleScanLvm200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The LVM logical volume group name.. + public GetNodesSingleScanLvm200ResponseDataInner(string vg = default(string)) + { + this.Vg = vg; + } + + /// + /// The LVM logical volume group name. + /// + /// The LVM logical volume group name. + [DataMember(Name = "vg", EmitDefaultValue = false)] + public string Vg { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanLvm200ResponseDataInner {\n"); + sb.Append(" Vg: ").Append(Vg).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanLvmthin200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanLvmthin200Response.cs new file mode 100644 index 0000000..cc0cf6c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanLvmthin200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanLvmthin200Response + /// + [DataContract(Name = "getNodesSingleScanLvmthin_200_response")] + public partial class GetNodesSingleScanLvmthin200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleScanLvmthin200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanLvmthin200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanLvmthin200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanLvmthin200ResponseDataInner.cs new file mode 100644 index 0000000..fef6824 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanLvmthin200ResponseDataInner.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanLvmthin200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleScanLvmthin_200_response_data_inner")] + public partial class GetNodesSingleScanLvmthin200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The LVM Thin Pool name (LVM logical volume).. + public GetNodesSingleScanLvmthin200ResponseDataInner(string lv = default(string)) + { + this.Lv = lv; + } + + /// + /// The LVM Thin Pool name (LVM logical volume). + /// + /// The LVM Thin Pool name (LVM logical volume). + [DataMember(Name = "lv", EmitDefaultValue = false)] + public string Lv { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanLvmthin200ResponseDataInner {\n"); + sb.Append(" Lv: ").Append(Lv).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanNfs200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanNfs200Response.cs new file mode 100644 index 0000000..ff6c494 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanNfs200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanNfs200Response + /// + [DataContract(Name = "getNodesSingleScanNfs_200_response")] + public partial class GetNodesSingleScanNfs200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleScanNfs200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanNfs200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanNfs200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanNfs200ResponseDataInner.cs new file mode 100644 index 0000000..a827681 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanNfs200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanNfs200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleScanNfs_200_response_data_inner")] + public partial class GetNodesSingleScanNfs200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// NFS export options.. + /// The exported path.. + public GetNodesSingleScanNfs200ResponseDataInner(string options = default(string), string path = default(string)) + { + this.Options = options; + this.Path = path; + } + + /// + /// NFS export options. + /// + /// NFS export options. + [DataMember(Name = "options", EmitDefaultValue = false)] + public string Options { get; set; } + + /// + /// The exported path. + /// + /// The exported path. + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanNfs200ResponseDataInner {\n"); + sb.Append(" Options: ").Append(Options).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanPbs200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanPbs200Response.cs new file mode 100644 index 0000000..8ab4e95 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanPbs200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanPbs200Response + /// + [DataContract(Name = "getNodesSingleScanPbs_200_response")] + public partial class GetNodesSingleScanPbs200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleScanPbs200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanPbs200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanPbs200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanPbs200ResponseDataInner.cs new file mode 100644 index 0000000..d638d93 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanPbs200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanPbs200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleScanPbs_200_response_data_inner")] + public partial class GetNodesSingleScanPbs200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Comment from server.. + /// The datastore name.. + public GetNodesSingleScanPbs200ResponseDataInner(string comment = default(string), string store = default(string)) + { + this.Comment = comment; + this.Store = store; + } + + /// + /// Comment from server. + /// + /// Comment from server. + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// The datastore name. + /// + /// The datastore name. + [DataMember(Name = "store", EmitDefaultValue = false)] + public string Store { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanPbs200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanZfs200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanZfs200Response.cs new file mode 100644 index 0000000..df94eea --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanZfs200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanZfs200Response + /// + [DataContract(Name = "getNodesSingleScanZfs_200_response")] + public partial class GetNodesSingleScanZfs200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleScanZfs200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanZfs200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleScanZfs200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleScanZfs200ResponseDataInner.cs new file mode 100644 index 0000000..f07179a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleScanZfs200ResponseDataInner.cs @@ -0,0 +1,84 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleScanZfs200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleScanZfs_200_response_data_inner")] + public partial class GetNodesSingleScanZfs200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// ZFS pool name.. + public GetNodesSingleScanZfs200ResponseDataInner(string pool = default(string)) + { + this.Pool = pool; + } + + /// + /// ZFS pool name. + /// + /// ZFS pool name. + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleScanZfs200ResponseDataInner {\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleInterfaces200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleInterfaces200Response.cs new file mode 100644 index 0000000..1f20891 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleInterfaces200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnFabricsSingleInterfaces200Response + /// + [DataContract(Name = "getNodesSingleSdnFabricsSingleInterfaces_200_response")] + public partial class GetNodesSingleSdnFabricsSingleInterfaces200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleSdnFabricsSingleInterfaces200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnFabricsSingleInterfaces200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleInterfaces200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleInterfaces200ResponseDataInner.cs new file mode 100644 index 0000000..166554f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleInterfaces200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnFabricsSingleInterfaces200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleSdnFabricsSingleInterfaces_200_response_data_inner")] + public partial class GetNodesSingleSdnFabricsSingleInterfaces200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the network interface.. + /// The current state of the interface.. + /// The type of this interface in the fabric (e.g. Point-to-Point, Broadcast, ..).. + public GetNodesSingleSdnFabricsSingleInterfaces200ResponseDataInner(string name = default(string), string state = default(string), string type = default(string)) + { + this.Name = name; + this.State = state; + this.Type = type; + } + + /// + /// The name of the network interface. + /// + /// The name of the network interface. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The current state of the interface. + /// + /// The current state of the interface. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// The type of this interface in the fabric (e.g. Point-to-Point, Broadcast, ..). + /// + /// The type of this interface in the fabric (e.g. Point-to-Point, Broadcast, ..). + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnFabricsSingleInterfaces200ResponseDataInner {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleNeighbors200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleNeighbors200Response.cs new file mode 100644 index 0000000..4fef8d5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleNeighbors200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnFabricsSingleNeighbors200Response + /// + [DataContract(Name = "getNodesSingleSdnFabricsSingleNeighbors_200_response")] + public partial class GetNodesSingleSdnFabricsSingleNeighbors200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleSdnFabricsSingleNeighbors200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnFabricsSingleNeighbors200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleNeighbors200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleNeighbors200ResponseDataInner.cs new file mode 100644 index 0000000..b304213 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleNeighbors200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnFabricsSingleNeighbors200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleSdnFabricsSingleNeighbors_200_response_data_inner")] + public partial class GetNodesSingleSdnFabricsSingleNeighbors200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The IP or hostname of the neighbor.. + /// The status of the neighbor, as returned by FRR.. + /// The uptime of this neighbor, as returned by FRR (e.g. 8h24m12s).. + public GetNodesSingleSdnFabricsSingleNeighbors200ResponseDataInner(string neighbor = default(string), string status = default(string), string uptime = default(string)) + { + this.Neighbor = neighbor; + this.Status = status; + this.Uptime = uptime; + } + + /// + /// The IP or hostname of the neighbor. + /// + /// The IP or hostname of the neighbor. + [DataMember(Name = "neighbor", EmitDefaultValue = false)] + public string Neighbor { get; set; } + + /// + /// The status of the neighbor, as returned by FRR. + /// + /// The status of the neighbor, as returned by FRR. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// The uptime of this neighbor, as returned by FRR (e.g. 8h24m12s). + /// + /// The uptime of this neighbor, as returned by FRR (e.g. 8h24m12s). + [DataMember(Name = "uptime", EmitDefaultValue = false)] + public string Uptime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnFabricsSingleNeighbors200ResponseDataInner {\n"); + sb.Append(" Neighbor: ").Append(Neighbor).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Uptime: ").Append(Uptime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleRoutes200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleRoutes200Response.cs new file mode 100644 index 0000000..dd2a349 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleRoutes200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnFabricsSingleRoutes200Response + /// + [DataContract(Name = "getNodesSingleSdnFabricsSingleRoutes_200_response")] + public partial class GetNodesSingleSdnFabricsSingleRoutes200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleSdnFabricsSingleRoutes200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnFabricsSingleRoutes200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleRoutes200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleRoutes200ResponseDataInner.cs new file mode 100644 index 0000000..d2f3f64 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnFabricsSingleRoutes200ResponseDataInner.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnFabricsSingleRoutes200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleSdnFabricsSingleRoutes_200_response_data_inner")] + public partial class GetNodesSingleSdnFabricsSingleRoutes200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The CIDR block for this routing table entry.. + /// A list of nexthops for that route.. + public GetNodesSingleSdnFabricsSingleRoutes200ResponseDataInner(string route = default(string), List via = default(List)) + { + this.Route = route; + this.Via = via; + } + + /// + /// The CIDR block for this routing table entry. + /// + /// The CIDR block for this routing table entry. + [DataMember(Name = "route", EmitDefaultValue = false)] + public string Route { get; set; } + + /// + /// A list of nexthops for that route. + /// + /// A list of nexthops for that route. + [DataMember(Name = "via", EmitDefaultValue = false)] + public List Via { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnFabricsSingleRoutes200ResponseDataInner {\n"); + sb.Append(" Route: ").Append(Route).Append("\n"); + sb.Append(" Via: ").Append(Via).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnVnetsSingleMacvrf200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnVnetsSingleMacvrf200Response.cs new file mode 100644 index 0000000..4322831 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnVnetsSingleMacvrf200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnVnetsSingleMacvrf200Response + /// + [DataContract(Name = "getNodesSingleSdnVnetsSingleMacvrf_200_response")] + public partial class GetNodesSingleSdnVnetsSingleMacvrf200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// All routes from the MAC VRF that this node self-originates or has learned via BGP.. + public GetNodesSingleSdnVnetsSingleMacvrf200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// All routes from the MAC VRF that this node self-originates or has learned via BGP. + /// + /// All routes from the MAC VRF that this node self-originates or has learned via BGP. + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnVnetsSingleMacvrf200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnVnetsSingleMacvrf200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnVnetsSingleMacvrf200ResponseDataInner.cs new file mode 100644 index 0000000..b040ed2 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnVnetsSingleMacvrf200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnVnetsSingleMacvrf200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleSdnVnetsSingleMacvrf_200_response_data_inner")] + public partial class GetNodesSingleSdnVnetsSingleMacvrf200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The IP address of the MAC VRF entry.. + /// The MAC address of the MAC VRF entry.. + /// The IP address of the nexthop.. + public GetNodesSingleSdnVnetsSingleMacvrf200ResponseDataInner(string ip = default(string), string mac = default(string), string nexthop = default(string)) + { + this.Ip = ip; + this.Mac = mac; + this.Nexthop = nexthop; + } + + /// + /// The IP address of the MAC VRF entry. + /// + /// The IP address of the MAC VRF entry. + [DataMember(Name = "ip", EmitDefaultValue = false)] + public string Ip { get; set; } + + /// + /// The MAC address of the MAC VRF entry. + /// + /// The MAC address of the MAC VRF entry. + [DataMember(Name = "mac", EmitDefaultValue = false)] + public string Mac { get; set; } + + /// + /// The IP address of the nexthop. + /// + /// The IP address of the nexthop. + [DataMember(Name = "nexthop", EmitDefaultValue = false)] + public string Nexthop { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnVnetsSingleMacvrf200ResponseDataInner {\n"); + sb.Append(" Ip: ").Append(Ip).Append("\n"); + sb.Append(" Mac: ").Append(Mac).Append("\n"); + sb.Append(" Nexthop: ").Append(Nexthop).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200Response.cs new file mode 100644 index 0000000..bb8ab21 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnZonesSingleBridges200Response + /// + [DataContract(Name = "getNodesSingleSdnZonesSingleBridges_200_response")] + public partial class GetNodesSingleSdnZonesSingleBridges200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleSdnZonesSingleBridges200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnZonesSingleBridges200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200ResponseDataInner.cs new file mode 100644 index 0000000..d5fd304 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200ResponseDataInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// List of bridges contained in the SDN zone. + /// + [DataContract(Name = "getNodesSingleSdnZonesSingleBridges_200_response_data_inner")] + public partial class GetNodesSingleSdnZonesSingleBridges200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Name of the bridge.. + /// All ports that are members of the bridge. + /// Whether VLAN filtering is enabled for this bridge (= VLAN-aware).. + public GetNodesSingleSdnZonesSingleBridges200ResponseDataInner(string name = default(string), List ports = default(List), string vlanFiltering = default(string)) + { + this.Name = name; + this.Ports = ports; + this.VlanFiltering = vlanFiltering; + } + + /// + /// Name of the bridge. + /// + /// Name of the bridge. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// All ports that are members of the bridge + /// + /// All ports that are members of the bridge + [DataMember(Name = "ports", EmitDefaultValue = false)] + public List Ports { get; set; } + + /// + /// Whether VLAN filtering is enabled for this bridge (= VLAN-aware). + /// + /// Whether VLAN filtering is enabled for this bridge (= VLAN-aware). + [DataMember(Name = "vlan_filtering", EmitDefaultValue = false)] + public string VlanFiltering { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnZonesSingleBridges200ResponseDataInner {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Ports: ").Append(Ports).Append("\n"); + sb.Append(" VlanFiltering: ").Append(VlanFiltering).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200ResponseDataInnerPortsInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200ResponseDataInnerPortsInner.cs new file mode 100644 index 0000000..6d0d230 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleBridges200ResponseDataInnerPortsInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Information about bridge ports. + /// + [DataContract(Name = "getNodesSingleSdnZonesSingleBridges_200_response_data_inner_ports_inner")] + public partial class GetNodesSingleSdnZonesSingleBridges200ResponseDataInnerPortsInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The index of the guests network device that this interface belongs to.. + /// The name of the bridge port.. + /// The primary VLAN configured for the port of this bridge (= PVID). Only for VLAN-aware bridges.. + /// A list of VLANs and VLAN ranges that are allowed for this bridge port in addition to the primary VLAN. Only for VLAN-aware bridges.. + /// The ID of the guest that this interface belongs to.. + public GetNodesSingleSdnZonesSingleBridges200ResponseDataInnerPortsInner(string index = default(string), string name = default(string), decimal primaryVlan = default(decimal), List vlans = default(List), decimal vmid = default(decimal)) + { + this.Index = index; + this.Name = name; + this.PrimaryVlan = primaryVlan; + this.Vlans = vlans; + this.Vmid = vmid; + } + + /// + /// The index of the guests network device that this interface belongs to. + /// + /// The index of the guests network device that this interface belongs to. + [DataMember(Name = "index", EmitDefaultValue = false)] + public string Index { get; set; } + + /// + /// The name of the bridge port. + /// + /// The name of the bridge port. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The primary VLAN configured for the port of this bridge (= PVID). Only for VLAN-aware bridges. + /// + /// The primary VLAN configured for the port of this bridge (= PVID). Only for VLAN-aware bridges. + [DataMember(Name = "primary_vlan", EmitDefaultValue = false)] + public decimal PrimaryVlan { get; set; } + + /// + /// A list of VLANs and VLAN ranges that are allowed for this bridge port in addition to the primary VLAN. Only for VLAN-aware bridges. + /// + /// A list of VLANs and VLAN ranges that are allowed for this bridge port in addition to the primary VLAN. Only for VLAN-aware bridges. + [DataMember(Name = "vlans", EmitDefaultValue = false)] + public List Vlans { get; set; } + + /// + /// The ID of the guest that this interface belongs to. + /// + /// The ID of the guest that this interface belongs to. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public decimal Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnZonesSingleBridges200ResponseDataInnerPortsInner {\n"); + sb.Append(" Index: ").Append(Index).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PrimaryVlan: ").Append(PrimaryVlan).Append("\n"); + sb.Append(" Vlans: ").Append(Vlans).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleIpvrf200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleIpvrf200Response.cs new file mode 100644 index 0000000..797a83e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleIpvrf200Response.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnZonesSingleIpvrf200Response + /// + [DataContract(Name = "getNodesSingleSdnZonesSingleIpvrf_200_response")] + public partial class GetNodesSingleSdnZonesSingleIpvrf200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// All entries in the VRF table of zone {zone} of the node.This does not include /32 routes for guests on this host,since they are handled via the respective vnet bridge directly.. + public GetNodesSingleSdnZonesSingleIpvrf200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// All entries in the VRF table of zone {zone} of the node.This does not include /32 routes for guests on this host,since they are handled via the respective vnet bridge directly. + /// + /// All entries in the VRF table of zone {zone} of the node.This does not include /32 routes for guests on this host,since they are handled via the respective vnet bridge directly. + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnZonesSingleIpvrf200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleIpvrf200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleIpvrf200ResponseDataInner.cs new file mode 100644 index 0000000..8c33db7 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSdnZonesSingleIpvrf200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSdnZonesSingleIpvrf200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleSdnZonesSingleIpvrf_200_response_data_inner")] + public partial class GetNodesSingleSdnZonesSingleIpvrf200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The CIDR of the route table entry.. + /// This route's metric.. + /// A list of nexthops for the route table entry.. + /// The protocol where this route was learned from (e.g. BGP).. + public GetNodesSingleSdnZonesSingleIpvrf200ResponseDataInner(string ip = default(string), Int64 metric = default(Int64), List nexthops = default(List), string protocol = default(string)) + { + this.Ip = ip; + this.Metric = metric; + this.Nexthops = nexthops; + this.Protocol = protocol; + } + + /// + /// The CIDR of the route table entry. + /// + /// The CIDR of the route table entry. + [DataMember(Name = "ip", EmitDefaultValue = false)] + public string Ip { get; set; } + + /// + /// This route's metric. + /// + /// This route's metric. + [DataMember(Name = "metric", EmitDefaultValue = false)] + public Int64 Metric { get; set; } + + /// + /// A list of nexthops for the route table entry. + /// + /// A list of nexthops for the route table entry. + [DataMember(Name = "nexthops", EmitDefaultValue = false)] + public List Nexthops { get; set; } + + /// + /// The protocol where this route was learned from (e.g. BGP). + /// + /// The protocol where this route was learned from (e.g. BGP). + [DataMember(Name = "protocol", EmitDefaultValue = false)] + public string Protocol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSdnZonesSingleIpvrf200ResponseDataInner {\n"); + sb.Append(" Ip: ").Append(Ip).Append("\n"); + sb.Append(" Metric: ").Append(Metric).Append("\n"); + sb.Append(" Nexthops: ").Append(Nexthops).Append("\n"); + sb.Append(" Protocol: ").Append(Protocol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleServices200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleServices200Response.cs new file mode 100644 index 0000000..2125b7a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleServices200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleServices200Response + /// + [DataContract(Name = "getNodesSingleServices_200_response")] + public partial class GetNodesSingleServices200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleServices200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleServices200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleServices200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleServices200ResponseDataInner.cs new file mode 100644 index 0000000..5c6eddb --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleServices200ResponseDataInner.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleServices200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleServices_200_response_data_inner")] + public partial class GetNodesSingleServices200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Current state of the service process (systemd ActiveState).. + /// Description of the service.. + /// Short identifier for the service (e.g., \"pveproxy\").. + /// Systemd unit name (e.g., pveproxy).. + /// Execution status of the service (systemd SubState).. + /// Whether the service is enabled (systemd UnitFileState).. + public GetNodesSingleServices200ResponseDataInner(string activeState = default(string), string desc = default(string), string name = default(string), string service = default(string), string state = default(string), string unitState = default(string)) + { + this.ActiveState = activeState; + this.Desc = desc; + this.Name = name; + this.Service = service; + this.State = state; + this.UnitState = unitState; + } + + /// + /// Current state of the service process (systemd ActiveState). + /// + /// Current state of the service process (systemd ActiveState). + [DataMember(Name = "active-state", EmitDefaultValue = false)] + public string ActiveState { get; set; } + + /// + /// Description of the service. + /// + /// Description of the service. + [DataMember(Name = "desc", EmitDefaultValue = false)] + public string Desc { get; set; } + + /// + /// Short identifier for the service (e.g., \"pveproxy\"). + /// + /// Short identifier for the service (e.g., \"pveproxy\"). + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Systemd unit name (e.g., pveproxy). + /// + /// Systemd unit name (e.g., pveproxy). + [DataMember(Name = "service", EmitDefaultValue = false)] + public string Service { get; set; } + + /// + /// Execution status of the service (systemd SubState). + /// + /// Execution status of the service (systemd SubState). + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Whether the service is enabled (systemd UnitFileState). + /// + /// Whether the service is enabled (systemd UnitFileState). + [DataMember(Name = "unit-state", EmitDefaultValue = false)] + public string UnitState { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleServices200ResponseDataInner {\n"); + sb.Append(" ActiveState: ").Append(ActiveState).Append("\n"); + sb.Append(" Desc: ").Append(Desc).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Service: ").Append(Service).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" UnitState: ").Append(UnitState).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleServicesSingleState200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleServicesSingleState200Response.cs new file mode 100644 index 0000000..e5fbc2a --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleServicesSingleState200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleServicesSingleState200Response + /// + [DataContract(Name = "getNodesSingleServicesSingleState_200_response")] + public partial class GetNodesSingleServicesSingleState200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleServicesSingleState200Response(List errors = default(List), GetNodesSingleServices200ResponseDataInner data = default(GetNodesSingleServices200ResponseDataInner)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleServices200ResponseDataInner Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleServicesSingleState200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStatus200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStatus200Response.cs new file mode 100644 index 0000000..38d98d3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStatus200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStatus200Response + /// + [DataContract(Name = "getNodesSingleStatus_200_response")] + public partial class GetNodesSingleStatus200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStatus200Response(List errors = default(List), GetNodesSingleStatus200ResponseData data = default(GetNodesSingleStatus200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleStatus200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStatus200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseData.cs new file mode 100644 index 0000000..8c96493 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseData.cs @@ -0,0 +1,149 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStatus200ResponseData + /// + [DataContract(Name = "getNodesSingleStatus_200_response_data")] + public partial class GetNodesSingleStatus200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// bootInfo. + /// The current cpu usage.. + /// cpuinfo. + /// currentKernel. + /// An array of load avg for 1, 5 and 15 minutes respectively.. + /// memory. + /// The PVE version string.. + /// rootfs. + public GetNodesSingleStatus200ResponseData(GetNodesSingleStatus200ResponseDataBootInfo bootInfo = default(GetNodesSingleStatus200ResponseDataBootInfo), decimal cpu = default(decimal), GetNodesSingleStatus200ResponseDataCpuinfo cpuinfo = default(GetNodesSingleStatus200ResponseDataCpuinfo), GetNodesSingleStatus200ResponseDataCurrentKernel currentKernel = default(GetNodesSingleStatus200ResponseDataCurrentKernel), List loadavg = default(List), GetNodesSingleStatus200ResponseDataMemory memory = default(GetNodesSingleStatus200ResponseDataMemory), string pveversion = default(string), GetNodesSingleStatus200ResponseDataRootfs rootfs = default(GetNodesSingleStatus200ResponseDataRootfs)) + { + this.BootInfo = bootInfo; + this.Cpu = cpu; + this.Cpuinfo = cpuinfo; + this.CurrentKernel = currentKernel; + this.Loadavg = loadavg; + this.Memory = memory; + this.Pveversion = pveversion; + this.Rootfs = rootfs; + } + + /// + /// Gets or Sets BootInfo + /// + [DataMember(Name = "boot-info", EmitDefaultValue = false)] + public GetNodesSingleStatus200ResponseDataBootInfo BootInfo { get; set; } + + /// + /// The current cpu usage. + /// + /// The current cpu usage. + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public decimal Cpu { get; set; } + + /// + /// Gets or Sets Cpuinfo + /// + [DataMember(Name = "cpuinfo", EmitDefaultValue = false)] + public GetNodesSingleStatus200ResponseDataCpuinfo Cpuinfo { get; set; } + + /// + /// Gets or Sets CurrentKernel + /// + [DataMember(Name = "current-kernel", EmitDefaultValue = false)] + public GetNodesSingleStatus200ResponseDataCurrentKernel CurrentKernel { get; set; } + + /// + /// An array of load avg for 1, 5 and 15 minutes respectively. + /// + /// An array of load avg for 1, 5 and 15 minutes respectively. + [DataMember(Name = "loadavg", EmitDefaultValue = false)] + public List Loadavg { get; set; } + + /// + /// Gets or Sets Memory + /// + [DataMember(Name = "memory", EmitDefaultValue = false)] + public GetNodesSingleStatus200ResponseDataMemory Memory { get; set; } + + /// + /// The PVE version string. + /// + /// The PVE version string. + [DataMember(Name = "pveversion", EmitDefaultValue = false)] + public string Pveversion { get; set; } + + /// + /// Gets or Sets Rootfs + /// + [DataMember(Name = "rootfs", EmitDefaultValue = false)] + public GetNodesSingleStatus200ResponseDataRootfs Rootfs { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStatus200ResponseData {\n"); + sb.Append(" BootInfo: ").Append(BootInfo).Append("\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpuinfo: ").Append(Cpuinfo).Append("\n"); + sb.Append(" CurrentKernel: ").Append(CurrentKernel).Append("\n"); + sb.Append(" Loadavg: ").Append(Loadavg).Append("\n"); + sb.Append(" Memory: ").Append(Memory).Append("\n"); + sb.Append(" Pveversion: ").Append(Pveversion).Append("\n"); + sb.Append(" Rootfs: ").Append(Rootfs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataBootInfo.cs b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataBootInfo.cs new file mode 100644 index 0000000..98763b3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataBootInfo.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Meta-information about the boot mode. + /// + [DataContract(Name = "getNodesSingleStatus_200_response_data_boot_info")] + public partial class GetNodesSingleStatus200ResponseDataBootInfo : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Through which firmware the system got booted.. + /// System is booted in secure mode, only applicable for the \"efi\" mode.. + public GetNodesSingleStatus200ResponseDataBootInfo(string mode = default(string), Int64 secureboot = default(Int64)) + { + this.Mode = mode; + this.Secureboot = secureboot; + } + + /// + /// Through which firmware the system got booted. + /// + /// Through which firmware the system got booted. + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// System is booted in secure mode, only applicable for the \"efi\" mode. + /// + /// System is booted in secure mode, only applicable for the \"efi\" mode. + [DataMember(Name = "secureboot", EmitDefaultValue = false)] + public Int64 Secureboot { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStatus200ResponseDataBootInfo {\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Secureboot: ").Append(Secureboot).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataCpuinfo.cs b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataCpuinfo.cs new file mode 100644 index 0000000..3dd3553 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataCpuinfo.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStatus200ResponseDataCpuinfo + /// + [DataContract(Name = "getNodesSingleStatus_200_response_data_cpuinfo")] + public partial class GetNodesSingleStatus200ResponseDataCpuinfo : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The number of physical cores of the CPU.. + /// The number of logical threads of the CPU.. + /// The CPU model. + /// The number of logical threads of the CPU.. + public GetNodesSingleStatus200ResponseDataCpuinfo(Int64 cores = default(Int64), Int64 cpus = default(Int64), string model = default(string), Int64 sockets = default(Int64)) + { + this.Cores = cores; + this.Cpus = cpus; + this.Model = model; + this.Sockets = sockets; + } + + /// + /// The number of physical cores of the CPU. + /// + /// The number of physical cores of the CPU. + [DataMember(Name = "cores", EmitDefaultValue = false)] + public Int64 Cores { get; set; } + + /// + /// The number of logical threads of the CPU. + /// + /// The number of logical threads of the CPU. + [DataMember(Name = "cpus", EmitDefaultValue = false)] + public Int64 Cpus { get; set; } + + /// + /// The CPU model + /// + /// The CPU model + [DataMember(Name = "model", EmitDefaultValue = false)] + public string Model { get; set; } + + /// + /// The number of logical threads of the CPU. + /// + /// The number of logical threads of the CPU. + [DataMember(Name = "sockets", EmitDefaultValue = false)] + public Int64 Sockets { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStatus200ResponseDataCpuinfo {\n"); + sb.Append(" Cores: ").Append(Cores).Append("\n"); + sb.Append(" Cpus: ").Append(Cpus).Append("\n"); + sb.Append(" Model: ").Append(Model).Append("\n"); + sb.Append(" Sockets: ").Append(Sockets).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataCurrentKernel.cs b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataCurrentKernel.cs new file mode 100644 index 0000000..f6c620f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataCurrentKernel.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Meta-information about the currently booted kernel of this node. + /// + [DataContract(Name = "getNodesSingleStatus_200_response_data_current_kernel")] + public partial class GetNodesSingleStatus200ResponseDataCurrentKernel : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Hardware (architecture) type. + /// OS kernel release (e.g., \"6.8.0\"). + /// OS kernel name (e.g., \"Linux\"). + /// OS kernel version with build info. + public GetNodesSingleStatus200ResponseDataCurrentKernel(string machine = default(string), string release = default(string), string sysname = default(string), string varVersion = default(string)) + { + this.Machine = machine; + this.Release = release; + this.Sysname = sysname; + this.VarVersion = varVersion; + } + + /// + /// Hardware (architecture) type + /// + /// Hardware (architecture) type + [DataMember(Name = "machine", EmitDefaultValue = false)] + public string Machine { get; set; } + + /// + /// OS kernel release (e.g., \"6.8.0\") + /// + /// OS kernel release (e.g., \"6.8.0\") + [DataMember(Name = "release", EmitDefaultValue = false)] + public string Release { get; set; } + + /// + /// OS kernel name (e.g., \"Linux\") + /// + /// OS kernel name (e.g., \"Linux\") + [DataMember(Name = "sysname", EmitDefaultValue = false)] + public string Sysname { get; set; } + + /// + /// OS kernel version with build info + /// + /// OS kernel version with build info + [DataMember(Name = "version", EmitDefaultValue = false)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStatus200ResponseDataCurrentKernel {\n"); + sb.Append(" Machine: ").Append(Machine).Append("\n"); + sb.Append(" Release: ").Append(Release).Append("\n"); + sb.Append(" Sysname: ").Append(Sysname).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataMemory.cs b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataMemory.cs new file mode 100644 index 0000000..4df2208 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataMemory.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStatus200ResponseDataMemory + /// + [DataContract(Name = "getNodesSingleStatus_200_response_data_memory")] + public partial class GetNodesSingleStatus200ResponseDataMemory : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The available memory in bytes.. + /// The free memory in bytes.. + /// The total memory in bytes.. + /// The used memory in bytes.. + public GetNodesSingleStatus200ResponseDataMemory(Int64 available = default(Int64), Int64 free = default(Int64), Int64 total = default(Int64), Int64 used = default(Int64)) + { + this.Available = available; + this.Free = free; + this.Total = total; + this.Used = used; + } + + /// + /// The available memory in bytes. + /// + /// The available memory in bytes. + [DataMember(Name = "available", EmitDefaultValue = false)] + public Int64 Available { get; set; } + + /// + /// The free memory in bytes. + /// + /// The free memory in bytes. + [DataMember(Name = "free", EmitDefaultValue = false)] + public Int64 Free { get; set; } + + /// + /// The total memory in bytes. + /// + /// The total memory in bytes. + [DataMember(Name = "total", EmitDefaultValue = false)] + public Int64 Total { get; set; } + + /// + /// The used memory in bytes. + /// + /// The used memory in bytes. + [DataMember(Name = "used", EmitDefaultValue = false)] + public Int64 Used { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStatus200ResponseDataMemory {\n"); + sb.Append(" Available: ").Append(Available).Append("\n"); + sb.Append(" Free: ").Append(Free).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append(" Used: ").Append(Used).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataRootfs.cs b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataRootfs.cs new file mode 100644 index 0000000..58e8df9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStatus200ResponseDataRootfs.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStatus200ResponseDataRootfs + /// + [DataContract(Name = "getNodesSingleStatus_200_response_data_rootfs")] + public partial class GetNodesSingleStatus200ResponseDataRootfs : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The available bytes in the root filesystem.. + /// The free bytes on the root filesystem.. + /// The total size of the root filesystem in bytes.. + /// The used bytes in the root filesystem.. + public GetNodesSingleStatus200ResponseDataRootfs(Int64 avail = default(Int64), Int64 free = default(Int64), Int64 total = default(Int64), Int64 used = default(Int64)) + { + this.Avail = avail; + this.Free = free; + this.Total = total; + this.Used = used; + } + + /// + /// The available bytes in the root filesystem. + /// + /// The available bytes in the root filesystem. + [DataMember(Name = "avail", EmitDefaultValue = false)] + public Int64 Avail { get; set; } + + /// + /// The free bytes on the root filesystem. + /// + /// The free bytes on the root filesystem. + [DataMember(Name = "free", EmitDefaultValue = false)] + public Int64 Free { get; set; } + + /// + /// The total size of the root filesystem in bytes. + /// + /// The total size of the root filesystem in bytes. + [DataMember(Name = "total", EmitDefaultValue = false)] + public Int64 Total { get; set; } + + /// + /// The used bytes in the root filesystem. + /// + /// The used bytes in the root filesystem. + [DataMember(Name = "used", EmitDefaultValue = false)] + public Int64 Used { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStatus200ResponseDataRootfs {\n"); + sb.Append(" Avail: ").Append(Avail).Append("\n"); + sb.Append(" Free: ").Append(Free).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append(" Used: ").Append(Used).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorage200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorage200Response.cs new file mode 100644 index 0000000..8c45e19 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorage200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorage200Response + /// + [DataContract(Name = "getNodesSingleStorage_200_response")] + public partial class GetNodesSingleStorage200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStorage200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorage200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorage200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorage200ResponseDataInner.cs new file mode 100644 index 0000000..767d130 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorage200ResponseDataInner.cs @@ -0,0 +1,193 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorage200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleStorage_200_response_data_inner")] + public partial class GetNodesSingleStorage200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Set when storage is accessible.. + /// Available storage space in bytes.. + /// Allowed storage content types.. + /// Set when storage is enabled (not disabled).. + /// formats. + /// Instead of creating new volumes, one must select one that is already existing. Only included if 'format' parameter is set.. + /// Shared flag from storage configuration.. + /// The storage identifier.. + /// Total storage space in bytes.. + /// Storage type.. + /// Used storage space in bytes.. + /// Used fraction (used/total).. + public GetNodesSingleStorage200ResponseDataInner(Int64 active = default(Int64), Int64 avail = default(Int64), string content = default(string), Int64 enabled = default(Int64), GetNodesSingleStorage200ResponseDataInnerFormats formats = default(GetNodesSingleStorage200ResponseDataInnerFormats), Int64 selectExisting = default(Int64), Int64 shared = default(Int64), string storage = default(string), Int64 total = default(Int64), string type = default(string), Int64 used = default(Int64), decimal usedFraction = default(decimal)) + { + this.Active = active; + this.Avail = avail; + this.Content = content; + this.Enabled = enabled; + this.Formats = formats; + this.SelectExisting = selectExisting; + this.Shared = shared; + this.Storage = storage; + this.Total = total; + this.Type = type; + this.Used = used; + this.UsedFraction = usedFraction; + } + + /// + /// Set when storage is accessible. + /// + /// Set when storage is accessible. + [DataMember(Name = "active", EmitDefaultValue = false)] + public Int64 Active { get; set; } + + /// + /// Available storage space in bytes. + /// + /// Available storage space in bytes. + [DataMember(Name = "avail", EmitDefaultValue = false)] + public Int64 Avail { get; set; } + + /// + /// Allowed storage content types. + /// + /// Allowed storage content types. + [DataMember(Name = "content", EmitDefaultValue = false)] + public string Content { get; set; } + + /// + /// Set when storage is enabled (not disabled). + /// + /// Set when storage is enabled (not disabled). + [DataMember(Name = "enabled", EmitDefaultValue = false)] + public Int64 Enabled { get; set; } + + /// + /// Gets or Sets Formats + /// + [DataMember(Name = "formats", EmitDefaultValue = false)] + public GetNodesSingleStorage200ResponseDataInnerFormats Formats { get; set; } + + /// + /// Instead of creating new volumes, one must select one that is already existing. Only included if 'format' parameter is set. + /// + /// Instead of creating new volumes, one must select one that is already existing. Only included if 'format' parameter is set. + [DataMember(Name = "select_existing", EmitDefaultValue = false)] + public Int64 SelectExisting { get; set; } + + /// + /// Shared flag from storage configuration. + /// + /// Shared flag from storage configuration. + [DataMember(Name = "shared", EmitDefaultValue = false)] + public Int64 Shared { get; set; } + + /// + /// The storage identifier. + /// + /// The storage identifier. + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Total storage space in bytes. + /// + /// Total storage space in bytes. + [DataMember(Name = "total", EmitDefaultValue = false)] + public Int64 Total { get; set; } + + /// + /// Storage type. + /// + /// Storage type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Used storage space in bytes. + /// + /// Used storage space in bytes. + [DataMember(Name = "used", EmitDefaultValue = false)] + public Int64 Used { get; set; } + + /// + /// Used fraction (used/total). + /// + /// Used fraction (used/total). + [DataMember(Name = "used_fraction", EmitDefaultValue = false)] + public decimal UsedFraction { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorage200ResponseDataInner {\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append(" Avail: ").Append(Avail).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Formats: ").Append(Formats).Append("\n"); + sb.Append(" SelectExisting: ").Append(SelectExisting).Append("\n"); + sb.Append(" Shared: ").Append(Shared).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Used: ").Append(Used).Append("\n"); + sb.Append(" UsedFraction: ").Append(UsedFraction).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorage200ResponseDataInnerFormats.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorage200ResponseDataInnerFormats.cs new file mode 100644 index 0000000..0a07a45 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorage200ResponseDataInnerFormats.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Lists the supported and default format. Use 'formats' instead. Only included if 'format' parameter is set. + /// + [DataContract(Name = "getNodesSingleStorage_200_response_data_inner_formats")] + public partial class GetNodesSingleStorage200ResponseDataInnerFormats : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The default format of the storage.. + /// The list of supported formats. + public GetNodesSingleStorage200ResponseDataInnerFormats(string varDefault = default(string), List supported = default(List)) + { + this.Default = varDefault; + this.Supported = supported; + } + + /// + /// The default format of the storage. + /// + /// The default format of the storage. + [DataMember(Name = "default", EmitDefaultValue = false)] + public string Default { get; set; } + + /// + /// The list of supported formats + /// + /// The list of supported formats + [DataMember(Name = "supported", EmitDefaultValue = false)] + public List Supported { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorage200ResponseDataInnerFormats {\n"); + sb.Append(" Default: ").Append(Default).Append("\n"); + sb.Append(" Supported: ").Append(Supported).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200Response.cs new file mode 100644 index 0000000..f9b885b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleContent200Response + /// + [DataContract(Name = "getNodesSingleStorageSingleContent_200_response")] + public partial class GetNodesSingleStorageSingleContent200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStorageSingleContent200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleContent200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200ResponseDataInner.cs new file mode 100644 index 0000000..9ae227c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200ResponseDataInner.cs @@ -0,0 +1,183 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleContent200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleStorageSingleContent_200_response_data_inner")] + public partial class GetNodesSingleStorageSingleContent200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Creation time (seconds since the UNIX Epoch).. + /// If whole backup is encrypted, value is the fingerprint or '1' if encrypted. Only useful for the Proxmox Backup Server storage type.. + /// Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...). + /// Optional notes. If they contain multiple lines, only the first one is returned here.. + /// Volume identifier of parent (for linked cloned).. + /// Protection status. Currently only supported for backups.. + /// Volume size in bytes.. + /// Used space. Please note that most storage plugins do not report anything useful here.. + /// verification. + /// Associated Owner VMID.. + /// Volume identifier.. + public GetNodesSingleStorageSingleContent200ResponseDataInner(Int64 ctime = default(Int64), string encrypted = default(string), string format = default(string), string notes = default(string), string parent = default(string), Int64 varProtected = default(Int64), Int64 size = default(Int64), Int64 used = default(Int64), GetNodesSingleStorageSingleContent200ResponseDataInnerVerification verification = default(GetNodesSingleStorageSingleContent200ResponseDataInnerVerification), Int64 vmid = default(Int64), string volid = default(string)) + { + this.Ctime = ctime; + this.Encrypted = encrypted; + this.Format = format; + this.Notes = notes; + this.Parent = parent; + this.Protected = varProtected; + this.Size = size; + this.Used = used; + this.Verification = verification; + this.Vmid = vmid; + this.Volid = volid; + } + + /// + /// Creation time (seconds since the UNIX Epoch). + /// + /// Creation time (seconds since the UNIX Epoch). + [DataMember(Name = "ctime", EmitDefaultValue = false)] + public Int64 Ctime { get; set; } + + /// + /// If whole backup is encrypted, value is the fingerprint or '1' if encrypted. Only useful for the Proxmox Backup Server storage type. + /// + /// If whole backup is encrypted, value is the fingerprint or '1' if encrypted. Only useful for the Proxmox Backup Server storage type. + [DataMember(Name = "encrypted", EmitDefaultValue = false)] + public string Encrypted { get; set; } + + /// + /// Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...) + /// + /// Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...) + [DataMember(Name = "format", EmitDefaultValue = false)] + public string Format { get; set; } + + /// + /// Optional notes. If they contain multiple lines, only the first one is returned here. + /// + /// Optional notes. If they contain multiple lines, only the first one is returned here. + [DataMember(Name = "notes", EmitDefaultValue = false)] + public string Notes { get; set; } + + /// + /// Volume identifier of parent (for linked cloned). + /// + /// Volume identifier of parent (for linked cloned). + [DataMember(Name = "parent", EmitDefaultValue = false)] + public string Parent { get; set; } + + /// + /// Protection status. Currently only supported for backups. + /// + /// Protection status. Currently only supported for backups. + [DataMember(Name = "protected", EmitDefaultValue = false)] + public Int64 Protected { get; set; } + + /// + /// Volume size in bytes. + /// + /// Volume size in bytes. + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Used space. Please note that most storage plugins do not report anything useful here. + /// + /// Used space. Please note that most storage plugins do not report anything useful here. + [DataMember(Name = "used", EmitDefaultValue = false)] + public Int64 Used { get; set; } + + /// + /// Gets or Sets Verification + /// + [DataMember(Name = "verification", EmitDefaultValue = false)] + public GetNodesSingleStorageSingleContent200ResponseDataInnerVerification Verification { get; set; } + + /// + /// Associated Owner VMID. + /// + /// Associated Owner VMID. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// Volume identifier. + /// + /// Volume identifier. + [DataMember(Name = "volid", EmitDefaultValue = false)] + public string Volid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleContent200ResponseDataInner {\n"); + sb.Append(" Ctime: ").Append(Ctime).Append("\n"); + sb.Append(" Encrypted: ").Append(Encrypted).Append("\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append(" Parent: ").Append(Parent).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Used: ").Append(Used).Append("\n"); + sb.Append(" Verification: ").Append(Verification).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" Volid: ").Append(Volid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200ResponseDataInnerVerification.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200ResponseDataInnerVerification.cs new file mode 100644 index 0000000..4a84b2d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContent200ResponseDataInnerVerification.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Last backup verification result, only useful for PBS storages. + /// + [DataContract(Name = "getNodesSingleStorageSingleContent_200_response_data_inner_verification")] + public partial class GetNodesSingleStorageSingleContent200ResponseDataInnerVerification : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Last backup verification state.. + /// Last backup verification UPID.. + public GetNodesSingleStorageSingleContent200ResponseDataInnerVerification(string state = default(string), string upid = default(string)) + { + this.State = state; + this.Upid = upid; + } + + /// + /// Last backup verification state. + /// + /// Last backup verification state. + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Last backup verification UPID. + /// + /// Last backup verification UPID. + [DataMember(Name = "upid", EmitDefaultValue = false)] + public string Upid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleContent200ResponseDataInnerVerification {\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Upid: ").Append(Upid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContentSingle200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContentSingle200Response.cs new file mode 100644 index 0000000..48414c1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContentSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleContentSingle200Response + /// + [DataContract(Name = "getNodesSingleStorageSingleContentSingle_200_response")] + public partial class GetNodesSingleStorageSingleContentSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStorageSingleContentSingle200Response(List errors = default(List), GetNodesSingleStorageSingleContentSingle200ResponseData data = default(GetNodesSingleStorageSingleContentSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleStorageSingleContentSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleContentSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContentSingle200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContentSingle200ResponseData.cs new file mode 100644 index 0000000..17c9b9d --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleContentSingle200ResponseData.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleContentSingle200ResponseData + /// + [DataContract(Name = "getNodesSingleStorageSingleContentSingle_200_response_data")] + public partial class GetNodesSingleStorageSingleContentSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...). + /// Optional notes.. + /// The Path. + /// Protection status. Currently only supported for backups.. + /// Volume size in bytes.. + /// Used space. Please note that most storage plugins do not report anything useful here.. + public GetNodesSingleStorageSingleContentSingle200ResponseData(string format = default(string), string notes = default(string), string path = default(string), Int64 varProtected = default(Int64), Int64 size = default(Int64), Int64 used = default(Int64)) + { + this.Format = format; + this.Notes = notes; + this.Path = path; + this.Protected = varProtected; + this.Size = size; + this.Used = used; + } + + /// + /// Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...) + /// + /// Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...) + [DataMember(Name = "format", EmitDefaultValue = false)] + public string Format { get; set; } + + /// + /// Optional notes. + /// + /// Optional notes. + [DataMember(Name = "notes", EmitDefaultValue = false)] + public string Notes { get; set; } + + /// + /// The Path + /// + /// The Path + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Protection status. Currently only supported for backups. + /// + /// Protection status. Currently only supported for backups. + [DataMember(Name = "protected", EmitDefaultValue = false)] + public Int64 Protected { get; set; } + + /// + /// Volume size in bytes. + /// + /// Volume size in bytes. + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Used space. Please note that most storage plugins do not report anything useful here. + /// + /// Used space. Please note that most storage plugins do not report anything useful here. + [DataMember(Name = "used", EmitDefaultValue = false)] + public Int64 Used { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleContentSingle200ResponseData {\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Used: ").Append(Used).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreDownload200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreDownload200Response.cs new file mode 100644 index 0000000..ec25429 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreDownload200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleFilerestoreDownload200Response + /// + [DataContract(Name = "getNodesSingleStorageSingleFilerestoreDownload_200_response")] + public partial class GetNodesSingleStorageSingleFilerestoreDownload200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStorageSingleFilerestoreDownload200Response(List errors = default(List), object data = default(object)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public object Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleFilerestoreDownload200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreList200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreList200Response.cs new file mode 100644 index 0000000..9bc3d12 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreList200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleFilerestoreList200Response + /// + [DataContract(Name = "getNodesSingleStorageSingleFilerestoreList_200_response")] + public partial class GetNodesSingleStorageSingleFilerestoreList200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStorageSingleFilerestoreList200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleFilerestoreList200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreList200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreList200ResponseDataInner.cs new file mode 100644 index 0000000..4b1bded --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleFilerestoreList200ResponseDataInner.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleFilerestoreList200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleStorageSingleFilerestoreList_200_response_data_inner")] + public partial class GetNodesSingleStorageSingleFilerestoreList200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// base64 path of the current entry. + /// If this entry is a leaf in the directory graph.. + /// Entry last-modified time (unix timestamp).. + /// Entry file size.. + /// Entry display text.. + /// Entry type.. + public GetNodesSingleStorageSingleFilerestoreList200ResponseDataInner(string filepath = default(string), Int64 leaf = default(Int64), Int64 mtime = default(Int64), Int64 size = default(Int64), string text = default(string), string type = default(string)) + { + this.Filepath = filepath; + this.Leaf = leaf; + this.Mtime = mtime; + this.Size = size; + this.Text = text; + this.Type = type; + } + + /// + /// base64 path of the current entry + /// + /// base64 path of the current entry + [DataMember(Name = "filepath", EmitDefaultValue = false)] + public string Filepath { get; set; } + + /// + /// If this entry is a leaf in the directory graph. + /// + /// If this entry is a leaf in the directory graph. + [DataMember(Name = "leaf", EmitDefaultValue = false)] + public Int64 Leaf { get; set; } + + /// + /// Entry last-modified time (unix timestamp). + /// + /// Entry last-modified time (unix timestamp). + [DataMember(Name = "mtime", EmitDefaultValue = false)] + public Int64 Mtime { get; set; } + + /// + /// Entry file size. + /// + /// Entry file size. + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// Entry display text. + /// + /// Entry display text. + [DataMember(Name = "text", EmitDefaultValue = false)] + public string Text { get; set; } + + /// + /// Entry type. + /// + /// Entry type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleFilerestoreList200ResponseDataInner {\n"); + sb.Append(" Filepath: ").Append(Filepath).Append("\n"); + sb.Append(" Leaf: ").Append(Leaf).Append("\n"); + sb.Append(" Mtime: ").Append(Mtime).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200Response.cs new file mode 100644 index 0000000..e1f2e38 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleImportmetadata200Response + /// + [DataContract(Name = "getNodesSingleStorageSingleImportmetadata_200_response")] + public partial class GetNodesSingleStorageSingleImportmetadata200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStorageSingleImportmetadata200Response(List errors = default(List), GetNodesSingleStorageSingleImportmetadata200ResponseData data = default(GetNodesSingleStorageSingleImportmetadata200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleStorageSingleImportmetadata200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleImportmetadata200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200ResponseData.cs new file mode 100644 index 0000000..102996c --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200ResponseData.cs @@ -0,0 +1,134 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Information about how to import a guest. + /// + [DataContract(Name = "getNodesSingleStorageSingleImportmetadata_200_response_data")] + public partial class GetNodesSingleStorageSingleImportmetadata200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Parameters which can be used in a call to create a VM or container.. + /// Recognised disk volumes as `$bus$id` => `$storeid:$path` map.. + /// Recognised network interfaces as `net$id` => { ...params } object.. + /// The type of the import-source of this guest volume.. + /// The type of guest this is going to produce.. + /// List of known issues that can affect the import of a guest. Note that lack of warning does not imply that there cannot be any problems.. + public GetNodesSingleStorageSingleImportmetadata200ResponseData(Object createArgs = default(Object), Object disks = default(Object), Object net = default(Object), string source = default(string), string type = default(string), List warnings = default(List)) + { + this.CreateArgs = createArgs; + this.Disks = disks; + this.Net = net; + this.Source = source; + this.Type = type; + this.Warnings = warnings; + } + + /// + /// Parameters which can be used in a call to create a VM or container. + /// + /// Parameters which can be used in a call to create a VM or container. + [DataMember(Name = "create-args", EmitDefaultValue = false)] + public Object CreateArgs { get; set; } + + /// + /// Recognised disk volumes as `$bus$id` => `$storeid:$path` map. + /// + /// Recognised disk volumes as `$bus$id` => `$storeid:$path` map. + [DataMember(Name = "disks", EmitDefaultValue = false)] + public Object Disks { get; set; } + + /// + /// Recognised network interfaces as `net$id` => { ...params } object. + /// + /// Recognised network interfaces as `net$id` => { ...params } object. + [DataMember(Name = "net", EmitDefaultValue = false)] + public Object Net { get; set; } + + /// + /// The type of the import-source of this guest volume. + /// + /// The type of the import-source of this guest volume. + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// The type of guest this is going to produce. + /// + /// The type of guest this is going to produce. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// List of known issues that can affect the import of a guest. Note that lack of warning does not imply that there cannot be any problems. + /// + /// List of known issues that can affect the import of a guest. Note that lack of warning does not imply that there cannot be any problems. + [DataMember(Name = "warnings", EmitDefaultValue = false)] + public List Warnings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleImportmetadata200ResponseData {\n"); + sb.Append(" CreateArgs: ").Append(CreateArgs).Append("\n"); + sb.Append(" Disks: ").Append(Disks).Append("\n"); + sb.Append(" Net: ").Append(Net).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Warnings: ").Append(Warnings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner.cs new file mode 100644 index 0000000..7fe60f8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner + /// + [DataContract(Name = "getNodesSingleStorageSingleImportmetadata_200_response_data_warnings_inner")] + public partial class GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Related subject (config) key of warning.. + /// What this warning is about.. + /// Related subject (config) value of warning.. + public GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner(string key = default(string), string type = default(string), string value = default(string)) + { + this.Key = key; + this.Type = type; + this.Value = value; + } + + /// + /// Related subject (config) key of warning. + /// + /// Related subject (config) key of warning. + [DataMember(Name = "key", EmitDefaultValue = false)] + public string Key { get; set; } + + /// + /// What this warning is about. + /// + /// What this warning is about. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Related subject (config) value of warning. + /// + /// Related subject (config) value of warning. + [DataMember(Name = "value", EmitDefaultValue = false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSinglePrunebackups200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSinglePrunebackups200Response.cs new file mode 100644 index 0000000..94ba9ed --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSinglePrunebackups200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSinglePrunebackups200Response + /// + [DataContract(Name = "getNodesSingleStorageSinglePrunebackups_200_response")] + public partial class GetNodesSingleStorageSinglePrunebackups200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStorageSinglePrunebackups200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSinglePrunebackups200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSinglePrunebackups200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSinglePrunebackups200ResponseDataInner.cs new file mode 100644 index 0000000..abdab44 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSinglePrunebackups200ResponseDataInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSinglePrunebackups200ResponseDataInner + /// + [DataContract(Name = "getNodesSingleStorageSinglePrunebackups_200_response_data_inner")] + public partial class GetNodesSingleStorageSinglePrunebackups200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Creation time of the backup (seconds since the UNIX epoch).. + /// Whether the backup would be kept or removed. Backups that are protected or don't use the standard naming scheme are not removed.. + /// One of 'qemu', 'lxc', 'openvz' or 'unknown'.. + /// The VM the backup belongs to.. + /// Backup volume ID.. + public GetNodesSingleStorageSinglePrunebackups200ResponseDataInner(Int64 ctime = default(Int64), string mark = default(string), string type = default(string), Int64 vmid = default(Int64), string volid = default(string)) + { + this.Ctime = ctime; + this.Mark = mark; + this.Type = type; + this.Vmid = vmid; + this.Volid = volid; + } + + /// + /// Creation time of the backup (seconds since the UNIX epoch). + /// + /// Creation time of the backup (seconds since the UNIX epoch). + [DataMember(Name = "ctime", EmitDefaultValue = false)] + public Int64 Ctime { get; set; } + + /// + /// Whether the backup would be kept or removed. Backups that are protected or don't use the standard naming scheme are not removed. + /// + /// Whether the backup would be kept or removed. Backups that are protected or don't use the standard naming scheme are not removed. + [DataMember(Name = "mark", EmitDefaultValue = false)] + public string Mark { get; set; } + + /// + /// One of 'qemu', 'lxc', 'openvz' or 'unknown'. + /// + /// One of 'qemu', 'lxc', 'openvz' or 'unknown'. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// The VM the backup belongs to. + /// + /// The VM the backup belongs to. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// Backup volume ID. + /// + /// Backup volume ID. + [DataMember(Name = "volid", EmitDefaultValue = false)] + public string Volid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSinglePrunebackups200ResponseDataInner {\n"); + sb.Append(" Ctime: ").Append(Ctime).Append("\n"); + sb.Append(" Mark: ").Append(Mark).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" Volid: ").Append(Volid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleStatus200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleStatus200Response.cs new file mode 100644 index 0000000..42305c9 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleStatus200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleStatus200Response + /// + [DataContract(Name = "getNodesSingleStorageSingleStatus_200_response")] + public partial class GetNodesSingleStorageSingleStatus200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleStorageSingleStatus200Response(List errors = default(List), GetNodesSingleStorageSingleStatus200ResponseData data = default(GetNodesSingleStorageSingleStatus200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleStorageSingleStatus200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleStatus200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleStatus200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleStatus200ResponseData.cs new file mode 100644 index 0000000..30b445f --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleStorageSingleStatus200ResponseData.cs @@ -0,0 +1,154 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleStorageSingleStatus200ResponseData + /// + [DataContract(Name = "getNodesSingleStorageSingleStatus_200_response_data")] + public partial class GetNodesSingleStorageSingleStatus200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Set when storage is accessible.. + /// Available storage space in bytes.. + /// Allowed storage content types.. + /// Set when storage is enabled (not disabled).. + /// Shared flag from storage configuration.. + /// Total storage space in bytes.. + /// Storage type.. + /// Used storage space in bytes.. + public GetNodesSingleStorageSingleStatus200ResponseData(Int64 active = default(Int64), Int64 avail = default(Int64), string content = default(string), Int64 enabled = default(Int64), Int64 shared = default(Int64), Int64 total = default(Int64), string type = default(string), Int64 used = default(Int64)) + { + this.Active = active; + this.Avail = avail; + this.Content = content; + this.Enabled = enabled; + this.Shared = shared; + this.Total = total; + this.Type = type; + this.Used = used; + } + + /// + /// Set when storage is accessible. + /// + /// Set when storage is accessible. + [DataMember(Name = "active", EmitDefaultValue = false)] + public Int64 Active { get; set; } + + /// + /// Available storage space in bytes. + /// + /// Available storage space in bytes. + [DataMember(Name = "avail", EmitDefaultValue = false)] + public Int64 Avail { get; set; } + + /// + /// Allowed storage content types. + /// + /// Allowed storage content types. + [DataMember(Name = "content", EmitDefaultValue = false)] + public string Content { get; set; } + + /// + /// Set when storage is enabled (not disabled). + /// + /// Set when storage is enabled (not disabled). + [DataMember(Name = "enabled", EmitDefaultValue = false)] + public Int64 Enabled { get; set; } + + /// + /// Shared flag from storage configuration. + /// + /// Shared flag from storage configuration. + [DataMember(Name = "shared", EmitDefaultValue = false)] + public Int64 Shared { get; set; } + + /// + /// Total storage space in bytes. + /// + /// Total storage space in bytes. + [DataMember(Name = "total", EmitDefaultValue = false)] + public Int64 Total { get; set; } + + /// + /// Storage type. + /// + /// Storage type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Used storage space in bytes. + /// + /// Used storage space in bytes. + [DataMember(Name = "used", EmitDefaultValue = false)] + public Int64 Used { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleStorageSingleStatus200ResponseData {\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append(" Avail: ").Append(Avail).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Shared: ").Append(Shared).Append("\n"); + sb.Append(" Total: ").Append(Total).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Used: ").Append(Used).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSubscription200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleSubscription200Response.cs new file mode 100644 index 0000000..b541fda --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSubscription200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSubscription200Response + /// + [DataContract(Name = "getNodesSingleSubscription_200_response")] + public partial class GetNodesSingleSubscription200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleSubscription200Response(List errors = default(List), GetNodesSingleSubscription200ResponseData data = default(GetNodesSingleSubscription200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleSubscription200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSubscription200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleSubscription200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleSubscription200ResponseData.cs new file mode 100644 index 0000000..67f91f5 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleSubscription200ResponseData.cs @@ -0,0 +1,194 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleSubscription200ResponseData + /// + [DataContract(Name = "getNodesSingleSubscription_200_response_data")] + public partial class GetNodesSingleSubscription200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Timestamp of the last check done.. + /// The subscription key, if set and permitted to access.. + /// A short code for the subscription level.. + /// A more human readable status message.. + /// Next due date of the set subscription.. + /// Human readable productname of the set subscription.. + /// Register date of the set subscription.. + /// The server ID, if permitted to access.. + /// Signature for offline keys. + /// The number of sockets for this host.. + /// The current subscription status.. + /// URL to the web shop.. + public GetNodesSingleSubscription200ResponseData(Int64 checktime = default(Int64), string key = default(string), string level = default(string), string message = default(string), string nextduedate = default(string), string productname = default(string), string regdate = default(string), string serverid = default(string), string signature = default(string), Int64 sockets = default(Int64), string status = default(string), string url = default(string)) + { + this.Checktime = checktime; + this.Key = key; + this.Level = level; + this.Message = message; + this.Nextduedate = nextduedate; + this.Productname = productname; + this.Regdate = regdate; + this.Serverid = serverid; + this.Signature = signature; + this.Sockets = sockets; + this.Status = status; + this.Url = url; + } + + /// + /// Timestamp of the last check done. + /// + /// Timestamp of the last check done. + [DataMember(Name = "checktime", EmitDefaultValue = false)] + public Int64 Checktime { get; set; } + + /// + /// The subscription key, if set and permitted to access. + /// + /// The subscription key, if set and permitted to access. + [DataMember(Name = "key", EmitDefaultValue = false)] + public string Key { get; set; } + + /// + /// A short code for the subscription level. + /// + /// A short code for the subscription level. + [DataMember(Name = "level", EmitDefaultValue = false)] + public string Level { get; set; } + + /// + /// A more human readable status message. + /// + /// A more human readable status message. + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Next due date of the set subscription. + /// + /// Next due date of the set subscription. + [DataMember(Name = "nextduedate", EmitDefaultValue = false)] + public string Nextduedate { get; set; } + + /// + /// Human readable productname of the set subscription. + /// + /// Human readable productname of the set subscription. + [DataMember(Name = "productname", EmitDefaultValue = false)] + public string Productname { get; set; } + + /// + /// Register date of the set subscription. + /// + /// Register date of the set subscription. + [DataMember(Name = "regdate", EmitDefaultValue = false)] + public string Regdate { get; set; } + + /// + /// The server ID, if permitted to access. + /// + /// The server ID, if permitted to access. + [DataMember(Name = "serverid", EmitDefaultValue = false)] + public string Serverid { get; set; } + + /// + /// Signature for offline keys + /// + /// Signature for offline keys + [DataMember(Name = "signature", EmitDefaultValue = false)] + public string Signature { get; set; } + + /// + /// The number of sockets for this host. + /// + /// The number of sockets for this host. + [DataMember(Name = "sockets", EmitDefaultValue = false)] + public Int64 Sockets { get; set; } + + /// + /// The current subscription status. + /// + /// The current subscription status. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// URL to the web shop. + /// + /// URL to the web shop. + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleSubscription200ResponseData {\n"); + sb.Append(" Checktime: ").Append(Checktime).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Level: ").Append(Level).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Nextduedate: ").Append(Nextduedate).Append("\n"); + sb.Append(" Productname: ").Append(Productname).Append("\n"); + sb.Append(" Regdate: ").Append(Regdate).Append("\n"); + sb.Append(" Serverid: ").Append(Serverid).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" Sockets: ").Append(Sockets).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleTime200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleTime200Response.cs new file mode 100644 index 0000000..6644286 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleTime200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleTime200Response + /// + [DataContract(Name = "getNodesSingleTime_200_response")] + public partial class GetNodesSingleTime200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleTime200Response(List errors = default(List), GetNodesSingleTime200ResponseData data = default(GetNodesSingleTime200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleTime200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleTime200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleTime200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleTime200ResponseData.cs new file mode 100644 index 0000000..4c8004e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleTime200ResponseData.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleTime200ResponseData + /// + [DataContract(Name = "getNodesSingleTime_200_response_data")] + public partial class GetNodesSingleTime200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Seconds since 1970-01-01 00:00:00 (local time). + /// Seconds since 1970-01-01 00:00:00 UTC.. + /// Time zone. + public GetNodesSingleTime200ResponseData(Int64 localtime = default(Int64), Int64 time = default(Int64), string timezone = default(string)) + { + this.Localtime = localtime; + this.Time = time; + this.Timezone = timezone; + } + + /// + /// Seconds since 1970-01-01 00:00:00 (local time) + /// + /// Seconds since 1970-01-01 00:00:00 (local time) + [DataMember(Name = "localtime", EmitDefaultValue = false)] + public Int64 Localtime { get; set; } + + /// + /// Seconds since 1970-01-01 00:00:00 UTC. + /// + /// Seconds since 1970-01-01 00:00:00 UTC. + [DataMember(Name = "time", EmitDefaultValue = false)] + public Int64 Time { get; set; } + + /// + /// Time zone + /// + /// Time zone + [DataMember(Name = "timezone", EmitDefaultValue = false)] + public string Timezone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleTime200ResponseData {\n"); + sb.Append(" Localtime: ").Append(Localtime).Append("\n"); + sb.Append(" Time: ").Append(Time).Append("\n"); + sb.Append(" Timezone: ").Append(Timezone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleVersion200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleVersion200Response.cs new file mode 100644 index 0000000..ba81e83 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleVersion200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleVersion200Response + /// + [DataContract(Name = "getNodesSingleVersion_200_response")] + public partial class GetNodesSingleVersion200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleVersion200Response(List errors = default(List), GetNodesSingleVersion200ResponseData data = default(GetNodesSingleVersion200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleVersion200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleVersion200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleVersion200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleVersion200ResponseData.cs new file mode 100644 index 0000000..636c0a1 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleVersion200ResponseData.cs @@ -0,0 +1,104 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleVersion200ResponseData + /// + [DataContract(Name = "getNodesSingleVersion_200_response_data")] + public partial class GetNodesSingleVersion200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The current installed Proxmox VE Release. + /// The short git commit hash ID from which this version was build. + /// The current installed pve-manager package version. + public GetNodesSingleVersion200ResponseData(string release = default(string), string repoid = default(string), string varVersion = default(string)) + { + this.Release = release; + this.Repoid = repoid; + this.VarVersion = varVersion; + } + + /// + /// The current installed Proxmox VE Release + /// + /// The current installed Proxmox VE Release + [DataMember(Name = "release", EmitDefaultValue = false)] + public string Release { get; set; } + + /// + /// The short git commit hash ID from which this version was build + /// + /// The short git commit hash ID from which this version was build + [DataMember(Name = "repoid", EmitDefaultValue = false)] + public string Repoid { get; set; } + + /// + /// The current installed pve-manager package version + /// + /// The current installed pve-manager package version + [DataMember(Name = "version", EmitDefaultValue = false)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleVersion200ResponseData {\n"); + sb.Append(" Release: ").Append(Release).Append("\n"); + sb.Append(" Repoid: ").Append(Repoid).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleVzdumpDefaults200Response.cs b/src/ProxmoxSharp/Model/GetNodesSingleVzdumpDefaults200Response.cs new file mode 100644 index 0000000..adc80cc --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleVzdumpDefaults200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleVzdumpDefaults200Response + /// + [DataContract(Name = "getNodesSingleVzdumpDefaults_200_response")] + public partial class GetNodesSingleVzdumpDefaults200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetNodesSingleVzdumpDefaults200Response(List errors = default(List), GetNodesSingleVzdumpDefaults200ResponseData data = default(GetNodesSingleVzdumpDefaults200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetNodesSingleVzdumpDefaults200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleVzdumpDefaults200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetNodesSingleVzdumpDefaults200ResponseData.cs b/src/ProxmoxSharp/Model/GetNodesSingleVzdumpDefaults200ResponseData.cs new file mode 100644 index 0000000..fc2ef80 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetNodesSingleVzdumpDefaults200ResponseData.cs @@ -0,0 +1,394 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetNodesSingleVzdumpDefaults200ResponseData + /// + [DataContract(Name = "getNodesSingleVzdumpDefaults_200_response_data")] + public partial class GetNodesSingleVzdumpDefaults200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Backup all known guest systems on this host.. + /// Limit I/O bandwidth (in KiB/s).. + /// Compress dump file.. + /// Store resulting files to specified directory.. + /// Exclude specified guest systems (assumes - -all). + /// Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory.. + /// Options for backup fleecing (VM only).. + /// Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value.. + /// Maximal time to wait for the global lock (minutes).. + /// Deprecated: use notification targets/matchers instead. Specify when to send a notification mail. + /// Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications.. + /// Deprecated: use 'prune-backups' instead. Maximal number of backup files per guest system.. + /// Backup mode.. + /// Only run if executed on this node.. + /// Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are {{cluster}}, {{guestname}}, {{node}}, and {{vmid}}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as '\\n' and '\\\\' respectively.. + /// Determine which notification system to use. If set to 'legacy-sendmail', vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the 'sendmail' command. If set to 'notification-system', a notification will be sent via PVE's notification system, and the mailto and mailnotification will be ignored. If set to 'auto' (default setting), an email will be sent if mailto is set, and the notification system will be used if not.. + /// PBS mode used to detect file changes and switch encoding format for container backups.. + /// Other performance-related settings.. + /// Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count.. + /// Backup all known guest systems included in the specified pool.. + /// If true, mark backup(s) as protected.. + /// Use these retention options instead of those from the storage configuration.. + /// Be quiet.. + /// Prune older backups according to 'prune-backups'.. + /// Use specified hook script.. + /// Exclude temporary files and logs.. + /// Stop running backup jobs on this host.. + /// Maximal time to wait until a guest system is stopped (minutes).. + /// Store resulting file to this storage.. + /// Store temporary files to specified directory.. + /// The ID of the guest system you want to backup.. + /// Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count.. + public GetNodesSingleVzdumpDefaults200ResponseData(Int64 all = default(Int64), Int64 bwlimit = default(Int64), string compress = default(string), string dumpdir = default(string), string exclude = default(string), List excludePath = default(List), string fleecing = default(string), Int64 ionice = default(Int64), Int64 lockwait = default(Int64), string mailnotification = default(string), string mailto = default(string), Int64 maxfiles = default(Int64), string mode = default(string), string node = default(string), string notesTemplate = default(string), string notificationMode = default(string), string pbsChangeDetectionMode = default(string), string performance = default(string), Int64 pigz = default(Int64), string pool = default(string), Int64 varProtected = default(Int64), string pruneBackups = default(string), Int64 quiet = default(Int64), Int64 remove = default(Int64), string script = default(string), Int64 stdexcludes = default(Int64), Int64 stop = default(Int64), Int64 stopwait = default(Int64), string storage = default(string), string tmpdir = default(string), string vmid = default(string), Int64 zstd = default(Int64)) + { + this.All = all; + this.Bwlimit = bwlimit; + this.Compress = compress; + this.Dumpdir = dumpdir; + this.Exclude = exclude; + this.ExcludePath = excludePath; + this.Fleecing = fleecing; + this.Ionice = ionice; + this.Lockwait = lockwait; + this.Mailnotification = mailnotification; + this.Mailto = mailto; + this.Maxfiles = maxfiles; + this.Mode = mode; + this.Node = node; + this.NotesTemplate = notesTemplate; + this.NotificationMode = notificationMode; + this.PbsChangeDetectionMode = pbsChangeDetectionMode; + this.Performance = performance; + this.Pigz = pigz; + this.Pool = pool; + this.Protected = varProtected; + this.PruneBackups = pruneBackups; + this.Quiet = quiet; + this.Remove = remove; + this.Script = script; + this.Stdexcludes = stdexcludes; + this.Stop = stop; + this.Stopwait = stopwait; + this.Storage = storage; + this.Tmpdir = tmpdir; + this.Vmid = vmid; + this.Zstd = zstd; + } + + /// + /// Backup all known guest systems on this host. + /// + /// Backup all known guest systems on this host. + [DataMember(Name = "all", EmitDefaultValue = false)] + public Int64 All { get; set; } + + /// + /// Limit I/O bandwidth (in KiB/s). + /// + /// Limit I/O bandwidth (in KiB/s). + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public Int64 Bwlimit { get; set; } + + /// + /// Compress dump file. + /// + /// Compress dump file. + [DataMember(Name = "compress", EmitDefaultValue = false)] + public string Compress { get; set; } + + /// + /// Store resulting files to specified directory. + /// + /// Store resulting files to specified directory. + [DataMember(Name = "dumpdir", EmitDefaultValue = false)] + public string Dumpdir { get; set; } + + /// + /// Exclude specified guest systems (assumes - -all) + /// + /// Exclude specified guest systems (assumes - -all) + [DataMember(Name = "exclude", EmitDefaultValue = false)] + public string Exclude { get; set; } + + /// + /// Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory. + /// + /// Exclude certain files/directories (shell globs). Paths starting with '/' are anchored to the container's root, other paths match relative to each subdirectory. + [DataMember(Name = "exclude-path", EmitDefaultValue = false)] + public List ExcludePath { get; set; } + + /// + /// Options for backup fleecing (VM only). + /// + /// Options for backup fleecing (VM only). + [DataMember(Name = "fleecing", EmitDefaultValue = false)] + public string Fleecing { get; set; } + + /// + /// Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value. + /// + /// Set IO priority when using the BFQ scheduler. For snapshot and suspend mode backups of VMs, this only affects the compressor. A value of 8 means the idle priority is used, otherwise the best-effort priority is used with the specified value. + [DataMember(Name = "ionice", EmitDefaultValue = false)] + public Int64 Ionice { get; set; } + + /// + /// Maximal time to wait for the global lock (minutes). + /// + /// Maximal time to wait for the global lock (minutes). + [DataMember(Name = "lockwait", EmitDefaultValue = false)] + public Int64 Lockwait { get; set; } + + /// + /// Deprecated: use notification targets/matchers instead. Specify when to send a notification mail + /// + /// Deprecated: use notification targets/matchers instead. Specify when to send a notification mail + [DataMember(Name = "mailnotification", EmitDefaultValue = false)] + public string Mailnotification { get; set; } + + /// + /// Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications. + /// + /// Deprecated: Use notification targets/matchers instead. Comma-separated list of email addresses or users that should receive email notifications. + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public string Mailto { get; set; } + + /// + /// Deprecated: use 'prune-backups' instead. Maximal number of backup files per guest system. + /// + /// Deprecated: use 'prune-backups' instead. Maximal number of backup files per guest system. + [DataMember(Name = "maxfiles", EmitDefaultValue = false)] + public Int64 Maxfiles { get; set; } + + /// + /// Backup mode. + /// + /// Backup mode. + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Only run if executed on this node. + /// + /// Only run if executed on this node. + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are {{cluster}}, {{guestname}}, {{node}}, and {{vmid}}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as '\\n' and '\\\\' respectively. + /// + /// Template string for generating notes for the backup(s). It can contain variables which will be replaced by their values. Currently supported are {{cluster}}, {{guestname}}, {{node}}, and {{vmid}}, but more might be added in the future. Needs to be a single line, newline and backslash need to be escaped as '\\n' and '\\\\' respectively. + [DataMember(Name = "notes-template", EmitDefaultValue = false)] + public string NotesTemplate { get; set; } + + /// + /// Determine which notification system to use. If set to 'legacy-sendmail', vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the 'sendmail' command. If set to 'notification-system', a notification will be sent via PVE's notification system, and the mailto and mailnotification will be ignored. If set to 'auto' (default setting), an email will be sent if mailto is set, and the notification system will be used if not. + /// + /// Determine which notification system to use. If set to 'legacy-sendmail', vzdump will consider the mailto/mailnotification parameters and send emails to the specified address(es) via the 'sendmail' command. If set to 'notification-system', a notification will be sent via PVE's notification system, and the mailto and mailnotification will be ignored. If set to 'auto' (default setting), an email will be sent if mailto is set, and the notification system will be used if not. + [DataMember(Name = "notification-mode", EmitDefaultValue = false)] + public string NotificationMode { get; set; } + + /// + /// PBS mode used to detect file changes and switch encoding format for container backups. + /// + /// PBS mode used to detect file changes and switch encoding format for container backups. + [DataMember(Name = "pbs-change-detection-mode", EmitDefaultValue = false)] + public string PbsChangeDetectionMode { get; set; } + + /// + /// Other performance-related settings. + /// + /// Other performance-related settings. + [DataMember(Name = "performance", EmitDefaultValue = false)] + public string Performance { get; set; } + + /// + /// Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count. + /// + /// Use pigz instead of gzip when N>0. N=1 uses half of cores, N>1 uses N as thread count. + [DataMember(Name = "pigz", EmitDefaultValue = false)] + public Int64 Pigz { get; set; } + + /// + /// Backup all known guest systems included in the specified pool. + /// + /// Backup all known guest systems included in the specified pool. + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// If true, mark backup(s) as protected. + /// + /// If true, mark backup(s) as protected. + [DataMember(Name = "protected", EmitDefaultValue = false)] + public Int64 Protected { get; set; } + + /// + /// Use these retention options instead of those from the storage configuration. + /// + /// Use these retention options instead of those from the storage configuration. + [DataMember(Name = "prune-backups", EmitDefaultValue = false)] + public string PruneBackups { get; set; } + + /// + /// Be quiet. + /// + /// Be quiet. + [DataMember(Name = "quiet", EmitDefaultValue = false)] + public Int64 Quiet { get; set; } + + /// + /// Prune older backups according to 'prune-backups'. + /// + /// Prune older backups according to 'prune-backups'. + [DataMember(Name = "remove", EmitDefaultValue = false)] + public Int64 Remove { get; set; } + + /// + /// Use specified hook script. + /// + /// Use specified hook script. + [DataMember(Name = "script", EmitDefaultValue = false)] + public string Script { get; set; } + + /// + /// Exclude temporary files and logs. + /// + /// Exclude temporary files and logs. + [DataMember(Name = "stdexcludes", EmitDefaultValue = false)] + public Int64 Stdexcludes { get; set; } + + /// + /// Stop running backup jobs on this host. + /// + /// Stop running backup jobs on this host. + [DataMember(Name = "stop", EmitDefaultValue = false)] + public Int64 Stop { get; set; } + + /// + /// Maximal time to wait until a guest system is stopped (minutes). + /// + /// Maximal time to wait until a guest system is stopped (minutes). + [DataMember(Name = "stopwait", EmitDefaultValue = false)] + public Int64 Stopwait { get; set; } + + /// + /// Store resulting file to this storage. + /// + /// Store resulting file to this storage. + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Store temporary files to specified directory. + /// + /// Store temporary files to specified directory. + [DataMember(Name = "tmpdir", EmitDefaultValue = false)] + public string Tmpdir { get; set; } + + /// + /// The ID of the guest system you want to backup. + /// + /// The ID of the guest system you want to backup. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public string Vmid { get; set; } + + /// + /// Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count. + /// + /// Zstd threads. N=0 uses half of the available cores, if N is set to a value bigger than 0, N is used as thread count. + [DataMember(Name = "zstd", EmitDefaultValue = false)] + public Int64 Zstd { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNodesSingleVzdumpDefaults200ResponseData {\n"); + sb.Append(" All: ").Append(All).Append("\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Compress: ").Append(Compress).Append("\n"); + sb.Append(" Dumpdir: ").Append(Dumpdir).Append("\n"); + sb.Append(" Exclude: ").Append(Exclude).Append("\n"); + sb.Append(" ExcludePath: ").Append(ExcludePath).Append("\n"); + sb.Append(" Fleecing: ").Append(Fleecing).Append("\n"); + sb.Append(" Ionice: ").Append(Ionice).Append("\n"); + sb.Append(" Lockwait: ").Append(Lockwait).Append("\n"); + sb.Append(" Mailnotification: ").Append(Mailnotification).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" Maxfiles: ").Append(Maxfiles).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" NotesTemplate: ").Append(NotesTemplate).Append("\n"); + sb.Append(" NotificationMode: ").Append(NotificationMode).Append("\n"); + sb.Append(" PbsChangeDetectionMode: ").Append(PbsChangeDetectionMode).Append("\n"); + sb.Append(" Performance: ").Append(Performance).Append("\n"); + sb.Append(" Pigz: ").Append(Pigz).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" PruneBackups: ").Append(PruneBackups).Append("\n"); + sb.Append(" Quiet: ").Append(Quiet).Append("\n"); + sb.Append(" Remove: ").Append(Remove).Append("\n"); + sb.Append(" Script: ").Append(Script).Append("\n"); + sb.Append(" Stdexcludes: ").Append(Stdexcludes).Append("\n"); + sb.Append(" Stop: ").Append(Stop).Append("\n"); + sb.Append(" Stopwait: ").Append(Stopwait).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Tmpdir: ").Append(Tmpdir).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" Zstd: ").Append(Zstd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetPool200Response.cs b/src/ProxmoxSharp/Model/GetPool200Response.cs new file mode 100644 index 0000000..7cba5f3 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetPool200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetPool200Response + /// + [DataContract(Name = "getPool_200_response")] + public partial class GetPool200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetPool200Response(List errors = default(List), GetPool200ResponseData data = default(GetPool200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetPool200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetPool200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetPool200ResponseData.cs b/src/ProxmoxSharp/Model/GetPool200ResponseData.cs new file mode 100644 index 0000000..2bf7581 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetPool200ResponseData.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetPool200ResponseData + /// + [DataContract(Name = "getPool_200_response_data")] + public partial class GetPool200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// members. + public GetPool200ResponseData(string comment = default(string), List members = default(List)) + { + this.Comment = comment; + this.Members = members; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Members + /// + [DataMember(Name = "members", EmitDefaultValue = false)] + public List Members { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetPool200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Members: ").Append(Members).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetPools200Response.cs b/src/ProxmoxSharp/Model/GetPools200Response.cs new file mode 100644 index 0000000..4decb51 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetPools200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetPools200Response + /// + [DataContract(Name = "getPools_200_response")] + public partial class GetPools200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetPools200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetPools200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetPools200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetPools200ResponseDataInner.cs new file mode 100644 index 0000000..d4314d4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetPools200ResponseDataInner.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetPools200ResponseDataInner + /// + [DataContract(Name = "getPools_200_response_data_inner")] + public partial class GetPools200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// members. + /// poolid. + public GetPools200ResponseDataInner(string comment = default(string), List members = default(List), string poolid = default(string)) + { + this.Comment = comment; + this.Members = members; + this.Poolid = poolid; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Members + /// + [DataMember(Name = "members", EmitDefaultValue = false)] + public List Members { get; set; } + + /// + /// Gets or Sets Poolid + /// + [DataMember(Name = "poolid", EmitDefaultValue = false)] + public string Poolid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetPools200ResponseDataInner {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Members: ").Append(Members).Append("\n"); + sb.Append(" Poolid: ").Append(Poolid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetPools200ResponseDataInnerMembersInner.cs b/src/ProxmoxSharp/Model/GetPools200ResponseDataInnerMembersInner.cs new file mode 100644 index 0000000..8739def --- /dev/null +++ b/src/ProxmoxSharp/Model/GetPools200ResponseDataInnerMembersInner.cs @@ -0,0 +1,119 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetPools200ResponseDataInnerMembersInner + /// + [DataContract(Name = "getPools_200_response_data_inner_members_inner")] + public partial class GetPools200ResponseDataInnerMembersInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// node. + /// storage. + /// type. + /// vmid. + public GetPools200ResponseDataInnerMembersInner(string id = default(string), string node = default(string), string storage = default(string), string type = default(string), Int64 vmid = default(Int64)) + { + this.Id = id; + this.Node = node; + this.Storage = storage; + this.Type = type; + this.Vmid = vmid; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Gets or Sets Vmid + /// + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetPools200ResponseDataInnerMembersInner {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetStorage200Response.cs b/src/ProxmoxSharp/Model/GetStorage200Response.cs new file mode 100644 index 0000000..bd22878 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetStorage200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetStorage200Response + /// + [DataContract(Name = "getStorage_200_response")] + public partial class GetStorage200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetStorage200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetStorage200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetStorage200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetStorage200ResponseDataInner.cs new file mode 100644 index 0000000..277e784 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetStorage200ResponseDataInner.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetStorage200ResponseDataInner + /// + [DataContract(Name = "getStorage_200_response_data_inner")] + public partial class GetStorage200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// storage. + public GetStorage200ResponseDataInner(string storage = default(string)) + { + this.Storage = storage; + } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetStorage200ResponseDataInner {\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMConfig200Response.cs b/src/ProxmoxSharp/Model/GetVMConfig200Response.cs new file mode 100644 index 0000000..f3ecc64 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMConfig200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMConfig200Response + /// + [DataContract(Name = "getVMConfig_200_response")] + public partial class GetVMConfig200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetVMConfig200Response(List errors = default(List), GetVMConfig200ResponseData data = default(GetVMConfig200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetVMConfig200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMConfig200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMConfig200ResponseData.cs b/src/ProxmoxSharp/Model/GetVMConfig200ResponseData.cs new file mode 100644 index 0000000..73a7312 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMConfig200ResponseData.cs @@ -0,0 +1,4734 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// The VM configuration. + /// + [DataContract(Name = "getVMConfig_200_response_data")] + public partial class GetVMConfig200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Enable/disable ACPI.. + /// List of host cores used to execute guest processes, for example: 0,5,8-11. + /// Enable/disable communication with the QEMU Guest Agent and its properties.. + /// Allow memory pages of this guest to be merged via KSM (Kernel Samepage Merging).. + /// Secure Encrypted Virtualization (SEV) features by AMD CPUs. + /// Virtual processor architecture. Defaults to the host.. + /// Arbitrary arguments passed to kvm.. + /// Configure a audio device, useful in combination with QXL/Spice.. + /// Automatic restart after crash (currently ignored).. + /// Amount of target RAM for the VM in MiB. Using zero disables the ballon driver.. + /// Select BIOS implementation.. + /// Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated.. + /// Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead.. + /// This is an alias for option -ide2. + /// cloud-init: Specify custom files to replace the automatically generated ones at start.. + /// cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.. + /// Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.. + /// cloud-init: do an automatic package upgrade after the first boot.. + /// cloud-init: User name to change ssh keys and password for instead of the image's configured default user.. + /// The number of cores per socket.. + /// Emulated CPU type.. + /// Limit of CPU usage.. + /// CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.. + /// Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file.. + /// SHA1 digest of configuration file. This can be used to prevent concurrent modifications.. + /// Configure a disk for storing EFI vars.. + /// Freeze CPU at startup (use 'c' monitor command to start execution).. + /// Script that will be executed during various steps in the vms lifetime.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Map host PCI devices into guest.. + /// Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7.. + /// Enables hugepages memory. Sets the size of hugepages in MiB. If the value is set to 'any' then 1 GiB hugepages will be used if possible, otherwise the size will fall back to 2 MiB.. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).. + /// Trusted Domain Extension (TDX) features by Intel CPUs. + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. . + /// Inter-VM shared memory. Useful for direct communication between VMs, or to the host.. + /// Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts.. + /// Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS.. + /// Enable/disable KVM hardware virtualization.. + /// Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS.. + /// Lock/unlock the VM.. + /// Specify the QEMU machine.. + /// Memory properties.. + /// Some (read-only) meta-information about this guest.. + /// Set maximum tolerated downtime (in seconds) for migrations. Should the migration not be able to converge in the very end, because too much newly dirtied RAM needs to be transferred, the limit will be increased automatically step-by-step until migration can converge.. + /// Set maximum speed (in MB/s) for migrations. Value 0 is no limit.. + /// Set a name for the VM. Only used on the configuration web interface.. + /// cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Specify network devices.. + /// Enable/disable NUMA.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// NUMA topology.. + /// Specifies whether a VM will be started during system bootup.. + /// Specify guest operating system.. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Map host parallel devices (n is 0 to 2).. + /// Parent snapshot name. This is used internally, and should not be modified.. + /// Sets the protection flag of the VM. This will disable the remove VM and remove disk operations.. + /// Allow reboot. If set to '0' the VM exit on reboot.. + /// Configure a VirtIO-based Random Number Generator.. + /// List of VirtIO network devices and their effective host_mtu setting. A value of 0 means that the host_mtu parameter is to be avoided for the corresponding device. This is used internally for snapshots.. + /// Specifies the QEMU '-cpu' parameter of the running vm. This is used internally for snapshots.. + /// Specifies the QEMU machine type of the running vm. This is used internally for snapshots.. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30).. + /// SCSI controller model. + /// cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.. + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Create a serial device inside the VM (n is 0 to 3). + /// Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd.. + /// Specify SMBIOS type 1 fields.. + /// The number of CPUs. Please use option -sockets instead.. + /// Timestamp for snapshots.. + /// The number of CPU sockets.. + /// Configure additional enhancements for SPICE.. + /// cloud-init: Setup public SSH keys (one key per line, OpenSSH format).. + /// Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'.. + /// Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.. + /// Enable/disable the USB tablet device.. + /// Tags of the VM. This is only meta information.. + /// Enable/disable time drift fix.. + /// Enable/disable Template.. + /// Configure a Disk for storing TPM state. The format is fixed to 'raw'.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Reference to unused volumes. This is used internally, and should not be modified manually.. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14).. + /// Number of hotplugged vcpus.. + /// Configure the VGA hardware.. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Use volume as VIRTIO hard disk (n is 0 to 15).. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Configuration for sharing a directory between host and guest using Virtio-fs.. + /// Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly.. + /// Reference to a volume which stores the VM state. This is used internally for snapshots.. + /// Default storage for VM state volumes/files.. + /// Create a virtual hardware watchdog device.. + public GetVMConfig200ResponseData(Int64 acpi = default(Int64), string affinity = default(string), string agent = default(string), Int64 allowKsm = default(Int64), string amdSev = default(string), string arch = default(string), string args = default(string), string audio0 = default(string), Int64 autostart = default(Int64), Int64 balloon = default(Int64), string bios = default(string), string boot = default(string), string bootdisk = default(string), string cdrom = default(string), string cicustom = default(string), string cipassword = default(string), string citype = default(string), Int64 ciupgrade = default(Int64), string ciuser = default(string), Int64 cores = default(Int64), string cpu = default(string), decimal cpulimit = default(decimal), Int64 cpuunits = default(Int64), string description = default(string), string digest = default(string), string efidisk0 = default(string), Int64 freeze = default(Int64), string hookscript = default(string), string hostpci0 = default(string), string hostpci1 = default(string), string hostpci2 = default(string), string hostpci3 = default(string), string hostpci4 = default(string), string hostpci5 = default(string), string hostpci6 = default(string), string hostpci7 = default(string), string hostpci8 = default(string), string hostpci9 = default(string), string hostpci10 = default(string), string hostpci11 = default(string), string hostpci12 = default(string), string hostpci13 = default(string), string hostpci14 = default(string), string hostpci15 = default(string), string hostpci16 = default(string), string hostpci17 = default(string), string hostpci18 = default(string), string hostpci19 = default(string), string hostpci20 = default(string), string hostpci21 = default(string), string hostpci22 = default(string), string hostpci23 = default(string), string hostpci24 = default(string), string hostpci25 = default(string), string hostpci26 = default(string), string hostpci27 = default(string), string hostpci28 = default(string), string hostpci29 = default(string), string hotplug = default(string), string hugepages = default(string), string ide0 = default(string), string ide1 = default(string), string ide2 = default(string), string ide3 = default(string), string ide4 = default(string), string ide5 = default(string), string ide6 = default(string), string ide7 = default(string), string ide8 = default(string), string ide9 = default(string), string ide10 = default(string), string ide11 = default(string), string ide12 = default(string), string ide13 = default(string), string ide14 = default(string), string ide15 = default(string), string ide16 = default(string), string ide17 = default(string), string ide18 = default(string), string ide19 = default(string), string ide20 = default(string), string ide21 = default(string), string ide22 = default(string), string ide23 = default(string), string ide24 = default(string), string ide25 = default(string), string ide26 = default(string), string ide27 = default(string), string ide28 = default(string), string ide29 = default(string), string intelTdx = default(string), string ipconfig0 = default(string), string ipconfig1 = default(string), string ipconfig2 = default(string), string ipconfig3 = default(string), string ipconfig4 = default(string), string ipconfig5 = default(string), string ipconfig6 = default(string), string ipconfig7 = default(string), string ipconfig8 = default(string), string ipconfig9 = default(string), string ipconfig10 = default(string), string ipconfig11 = default(string), string ipconfig12 = default(string), string ipconfig13 = default(string), string ipconfig14 = default(string), string ipconfig15 = default(string), string ipconfig16 = default(string), string ipconfig17 = default(string), string ipconfig18 = default(string), string ipconfig19 = default(string), string ipconfig20 = default(string), string ipconfig21 = default(string), string ipconfig22 = default(string), string ipconfig23 = default(string), string ipconfig24 = default(string), string ipconfig25 = default(string), string ipconfig26 = default(string), string ipconfig27 = default(string), string ipconfig28 = default(string), string ipconfig29 = default(string), string ivshmem = default(string), Int64 keephugepages = default(Int64), string keyboard = default(string), Int64 kvm = default(Int64), Int64 localtime = default(Int64), string varLock = default(string), string machine = default(string), string memory = default(string), string meta = default(string), decimal migrateDowntime = default(decimal), Int64 migrateSpeed = default(Int64), string name = default(string), string nameserver = default(string), string net0 = default(string), string net1 = default(string), string net2 = default(string), string net3 = default(string), string net4 = default(string), string net5 = default(string), string net6 = default(string), string net7 = default(string), string net8 = default(string), string net9 = default(string), string net10 = default(string), string net11 = default(string), string net12 = default(string), string net13 = default(string), string net14 = default(string), string net15 = default(string), string net16 = default(string), string net17 = default(string), string net18 = default(string), string net19 = default(string), string net20 = default(string), string net21 = default(string), string net22 = default(string), string net23 = default(string), string net24 = default(string), string net25 = default(string), string net26 = default(string), string net27 = default(string), string net28 = default(string), string net29 = default(string), Int64 numa = default(Int64), string numa0 = default(string), string numa1 = default(string), string numa2 = default(string), string numa3 = default(string), string numa4 = default(string), string numa5 = default(string), string numa6 = default(string), string numa7 = default(string), string numa8 = default(string), string numa9 = default(string), string numa10 = default(string), string numa11 = default(string), string numa12 = default(string), string numa13 = default(string), string numa14 = default(string), string numa15 = default(string), string numa16 = default(string), string numa17 = default(string), string numa18 = default(string), string numa19 = default(string), string numa20 = default(string), string numa21 = default(string), string numa22 = default(string), string numa23 = default(string), string numa24 = default(string), string numa25 = default(string), string numa26 = default(string), string numa27 = default(string), string numa28 = default(string), string numa29 = default(string), Int64 onboot = default(Int64), string ostype = default(string), string parallel0 = default(string), string parallel1 = default(string), string parallel2 = default(string), string parallel3 = default(string), string parallel4 = default(string), string parallel5 = default(string), string parallel6 = default(string), string parallel7 = default(string), string parallel8 = default(string), string parallel9 = default(string), string parallel10 = default(string), string parallel11 = default(string), string parallel12 = default(string), string parallel13 = default(string), string parallel14 = default(string), string parallel15 = default(string), string parallel16 = default(string), string parallel17 = default(string), string parallel18 = default(string), string parallel19 = default(string), string parallel20 = default(string), string parallel21 = default(string), string parallel22 = default(string), string parallel23 = default(string), string parallel24 = default(string), string parallel25 = default(string), string parallel26 = default(string), string parallel27 = default(string), string parallel28 = default(string), string parallel29 = default(string), string parent = default(string), Int64 protection = default(Int64), Int64 reboot = default(Int64), string rng0 = default(string), string runningNetsHostMtu = default(string), string runningcpu = default(string), string runningmachine = default(string), string sata0 = default(string), string sata1 = default(string), string sata2 = default(string), string sata3 = default(string), string sata4 = default(string), string sata5 = default(string), string sata6 = default(string), string sata7 = default(string), string sata8 = default(string), string sata9 = default(string), string sata10 = default(string), string sata11 = default(string), string sata12 = default(string), string sata13 = default(string), string sata14 = default(string), string sata15 = default(string), string sata16 = default(string), string sata17 = default(string), string sata18 = default(string), string sata19 = default(string), string sata20 = default(string), string sata21 = default(string), string sata22 = default(string), string sata23 = default(string), string sata24 = default(string), string sata25 = default(string), string sata26 = default(string), string sata27 = default(string), string sata28 = default(string), string sata29 = default(string), string scsi0 = default(string), string scsi1 = default(string), string scsi2 = default(string), string scsi3 = default(string), string scsi4 = default(string), string scsi5 = default(string), string scsi6 = default(string), string scsi7 = default(string), string scsi8 = default(string), string scsi9 = default(string), string scsi10 = default(string), string scsi11 = default(string), string scsi12 = default(string), string scsi13 = default(string), string scsi14 = default(string), string scsi15 = default(string), string scsi16 = default(string), string scsi17 = default(string), string scsi18 = default(string), string scsi19 = default(string), string scsi20 = default(string), string scsi21 = default(string), string scsi22 = default(string), string scsi23 = default(string), string scsi24 = default(string), string scsi25 = default(string), string scsi26 = default(string), string scsi27 = default(string), string scsi28 = default(string), string scsi29 = default(string), string scsihw = default(string), string searchdomain = default(string), string serial0 = default(string), string serial1 = default(string), string serial2 = default(string), string serial3 = default(string), string serial4 = default(string), string serial5 = default(string), string serial6 = default(string), string serial7 = default(string), string serial8 = default(string), string serial9 = default(string), string serial10 = default(string), string serial11 = default(string), string serial12 = default(string), string serial13 = default(string), string serial14 = default(string), string serial15 = default(string), string serial16 = default(string), string serial17 = default(string), string serial18 = default(string), string serial19 = default(string), string serial20 = default(string), string serial21 = default(string), string serial22 = default(string), string serial23 = default(string), string serial24 = default(string), string serial25 = default(string), string serial26 = default(string), string serial27 = default(string), string serial28 = default(string), string serial29 = default(string), Int64 shares = default(Int64), string smbios1 = default(string), Int64 smp = default(Int64), Int64 snaptime = default(Int64), Int64 sockets = default(Int64), string spiceEnhancements = default(string), string sshkeys = default(string), string startdate = default(string), string startup = default(string), Int64 tablet = default(Int64), string tags = default(string), Int64 tdf = default(Int64), Int64 template = default(Int64), string tpmstate0 = default(string), string unused0 = default(string), string unused1 = default(string), string unused2 = default(string), string unused3 = default(string), string unused4 = default(string), string unused5 = default(string), string unused6 = default(string), string unused7 = default(string), string unused8 = default(string), string unused9 = default(string), string unused10 = default(string), string unused11 = default(string), string unused12 = default(string), string unused13 = default(string), string unused14 = default(string), string unused15 = default(string), string unused16 = default(string), string unused17 = default(string), string unused18 = default(string), string unused19 = default(string), string unused20 = default(string), string unused21 = default(string), string unused22 = default(string), string unused23 = default(string), string unused24 = default(string), string unused25 = default(string), string unused26 = default(string), string unused27 = default(string), string unused28 = default(string), string unused29 = default(string), string usb0 = default(string), string usb1 = default(string), string usb2 = default(string), string usb3 = default(string), string usb4 = default(string), string usb5 = default(string), string usb6 = default(string), string usb7 = default(string), string usb8 = default(string), string usb9 = default(string), string usb10 = default(string), string usb11 = default(string), string usb12 = default(string), string usb13 = default(string), string usb14 = default(string), string usb15 = default(string), string usb16 = default(string), string usb17 = default(string), string usb18 = default(string), string usb19 = default(string), string usb20 = default(string), string usb21 = default(string), string usb22 = default(string), string usb23 = default(string), string usb24 = default(string), string usb25 = default(string), string usb26 = default(string), string usb27 = default(string), string usb28 = default(string), string usb29 = default(string), Int64 vcpus = default(Int64), string vga = default(string), string virtio0 = default(string), string virtio1 = default(string), string virtio2 = default(string), string virtio3 = default(string), string virtio4 = default(string), string virtio5 = default(string), string virtio6 = default(string), string virtio7 = default(string), string virtio8 = default(string), string virtio9 = default(string), string virtio10 = default(string), string virtio11 = default(string), string virtio12 = default(string), string virtio13 = default(string), string virtio14 = default(string), string virtio15 = default(string), string virtio16 = default(string), string virtio17 = default(string), string virtio18 = default(string), string virtio19 = default(string), string virtio20 = default(string), string virtio21 = default(string), string virtio22 = default(string), string virtio23 = default(string), string virtio24 = default(string), string virtio25 = default(string), string virtio26 = default(string), string virtio27 = default(string), string virtio28 = default(string), string virtio29 = default(string), string virtiofs0 = default(string), string virtiofs1 = default(string), string virtiofs2 = default(string), string virtiofs3 = default(string), string virtiofs4 = default(string), string virtiofs5 = default(string), string virtiofs6 = default(string), string virtiofs7 = default(string), string virtiofs8 = default(string), string virtiofs9 = default(string), string virtiofs10 = default(string), string virtiofs11 = default(string), string virtiofs12 = default(string), string virtiofs13 = default(string), string virtiofs14 = default(string), string virtiofs15 = default(string), string virtiofs16 = default(string), string virtiofs17 = default(string), string virtiofs18 = default(string), string virtiofs19 = default(string), string virtiofs20 = default(string), string virtiofs21 = default(string), string virtiofs22 = default(string), string virtiofs23 = default(string), string virtiofs24 = default(string), string virtiofs25 = default(string), string virtiofs26 = default(string), string virtiofs27 = default(string), string virtiofs28 = default(string), string virtiofs29 = default(string), string vmgenid = default(string), string vmstate = default(string), string vmstatestorage = default(string), string watchdog = default(string)) + { + this.Acpi = acpi; + this.Affinity = affinity; + this.Agent = agent; + this.AllowKsm = allowKsm; + this.AmdSev = amdSev; + this.Arch = arch; + this.Args = args; + this.Audio0 = audio0; + this.Autostart = autostart; + this.Balloon = balloon; + this.Bios = bios; + this.Boot = boot; + this.Bootdisk = bootdisk; + this.Cdrom = cdrom; + this.Cicustom = cicustom; + this.Cipassword = cipassword; + this.Citype = citype; + this.Ciupgrade = ciupgrade; + this.Ciuser = ciuser; + this.Cores = cores; + this.Cpu = cpu; + this.Cpulimit = cpulimit; + this.Cpuunits = cpuunits; + this.Description = description; + this.Digest = digest; + this.Efidisk0 = efidisk0; + this.Freeze = freeze; + this.Hookscript = hookscript; + this.Hostpci0 = hostpci0; + this.Hostpci1 = hostpci1; + this.Hostpci2 = hostpci2; + this.Hostpci3 = hostpci3; + this.Hostpci4 = hostpci4; + this.Hostpci5 = hostpci5; + this.Hostpci6 = hostpci6; + this.Hostpci7 = hostpci7; + this.Hostpci8 = hostpci8; + this.Hostpci9 = hostpci9; + this.Hostpci10 = hostpci10; + this.Hostpci11 = hostpci11; + this.Hostpci12 = hostpci12; + this.Hostpci13 = hostpci13; + this.Hostpci14 = hostpci14; + this.Hostpci15 = hostpci15; + this.Hostpci16 = hostpci16; + this.Hostpci17 = hostpci17; + this.Hostpci18 = hostpci18; + this.Hostpci19 = hostpci19; + this.Hostpci20 = hostpci20; + this.Hostpci21 = hostpci21; + this.Hostpci22 = hostpci22; + this.Hostpci23 = hostpci23; + this.Hostpci24 = hostpci24; + this.Hostpci25 = hostpci25; + this.Hostpci26 = hostpci26; + this.Hostpci27 = hostpci27; + this.Hostpci28 = hostpci28; + this.Hostpci29 = hostpci29; + this.Hotplug = hotplug; + this.Hugepages = hugepages; + this.Ide0 = ide0; + this.Ide1 = ide1; + this.Ide2 = ide2; + this.Ide3 = ide3; + this.Ide4 = ide4; + this.Ide5 = ide5; + this.Ide6 = ide6; + this.Ide7 = ide7; + this.Ide8 = ide8; + this.Ide9 = ide9; + this.Ide10 = ide10; + this.Ide11 = ide11; + this.Ide12 = ide12; + this.Ide13 = ide13; + this.Ide14 = ide14; + this.Ide15 = ide15; + this.Ide16 = ide16; + this.Ide17 = ide17; + this.Ide18 = ide18; + this.Ide19 = ide19; + this.Ide20 = ide20; + this.Ide21 = ide21; + this.Ide22 = ide22; + this.Ide23 = ide23; + this.Ide24 = ide24; + this.Ide25 = ide25; + this.Ide26 = ide26; + this.Ide27 = ide27; + this.Ide28 = ide28; + this.Ide29 = ide29; + this.IntelTdx = intelTdx; + this.Ipconfig0 = ipconfig0; + this.Ipconfig1 = ipconfig1; + this.Ipconfig2 = ipconfig2; + this.Ipconfig3 = ipconfig3; + this.Ipconfig4 = ipconfig4; + this.Ipconfig5 = ipconfig5; + this.Ipconfig6 = ipconfig6; + this.Ipconfig7 = ipconfig7; + this.Ipconfig8 = ipconfig8; + this.Ipconfig9 = ipconfig9; + this.Ipconfig10 = ipconfig10; + this.Ipconfig11 = ipconfig11; + this.Ipconfig12 = ipconfig12; + this.Ipconfig13 = ipconfig13; + this.Ipconfig14 = ipconfig14; + this.Ipconfig15 = ipconfig15; + this.Ipconfig16 = ipconfig16; + this.Ipconfig17 = ipconfig17; + this.Ipconfig18 = ipconfig18; + this.Ipconfig19 = ipconfig19; + this.Ipconfig20 = ipconfig20; + this.Ipconfig21 = ipconfig21; + this.Ipconfig22 = ipconfig22; + this.Ipconfig23 = ipconfig23; + this.Ipconfig24 = ipconfig24; + this.Ipconfig25 = ipconfig25; + this.Ipconfig26 = ipconfig26; + this.Ipconfig27 = ipconfig27; + this.Ipconfig28 = ipconfig28; + this.Ipconfig29 = ipconfig29; + this.Ivshmem = ivshmem; + this.Keephugepages = keephugepages; + this.Keyboard = keyboard; + this.Kvm = kvm; + this.Localtime = localtime; + this.Lock = varLock; + this.Machine = machine; + this.Memory = memory; + this.Meta = meta; + this.MigrateDowntime = migrateDowntime; + this.MigrateSpeed = migrateSpeed; + this.Name = name; + this.Nameserver = nameserver; + this.Net0 = net0; + this.Net1 = net1; + this.Net2 = net2; + this.Net3 = net3; + this.Net4 = net4; + this.Net5 = net5; + this.Net6 = net6; + this.Net7 = net7; + this.Net8 = net8; + this.Net9 = net9; + this.Net10 = net10; + this.Net11 = net11; + this.Net12 = net12; + this.Net13 = net13; + this.Net14 = net14; + this.Net15 = net15; + this.Net16 = net16; + this.Net17 = net17; + this.Net18 = net18; + this.Net19 = net19; + this.Net20 = net20; + this.Net21 = net21; + this.Net22 = net22; + this.Net23 = net23; + this.Net24 = net24; + this.Net25 = net25; + this.Net26 = net26; + this.Net27 = net27; + this.Net28 = net28; + this.Net29 = net29; + this.Numa = numa; + this.Numa0 = numa0; + this.Numa1 = numa1; + this.Numa2 = numa2; + this.Numa3 = numa3; + this.Numa4 = numa4; + this.Numa5 = numa5; + this.Numa6 = numa6; + this.Numa7 = numa7; + this.Numa8 = numa8; + this.Numa9 = numa9; + this.Numa10 = numa10; + this.Numa11 = numa11; + this.Numa12 = numa12; + this.Numa13 = numa13; + this.Numa14 = numa14; + this.Numa15 = numa15; + this.Numa16 = numa16; + this.Numa17 = numa17; + this.Numa18 = numa18; + this.Numa19 = numa19; + this.Numa20 = numa20; + this.Numa21 = numa21; + this.Numa22 = numa22; + this.Numa23 = numa23; + this.Numa24 = numa24; + this.Numa25 = numa25; + this.Numa26 = numa26; + this.Numa27 = numa27; + this.Numa28 = numa28; + this.Numa29 = numa29; + this.Onboot = onboot; + this.Ostype = ostype; + this.Parallel0 = parallel0; + this.Parallel1 = parallel1; + this.Parallel2 = parallel2; + this.Parallel3 = parallel3; + this.Parallel4 = parallel4; + this.Parallel5 = parallel5; + this.Parallel6 = parallel6; + this.Parallel7 = parallel7; + this.Parallel8 = parallel8; + this.Parallel9 = parallel9; + this.Parallel10 = parallel10; + this.Parallel11 = parallel11; + this.Parallel12 = parallel12; + this.Parallel13 = parallel13; + this.Parallel14 = parallel14; + this.Parallel15 = parallel15; + this.Parallel16 = parallel16; + this.Parallel17 = parallel17; + this.Parallel18 = parallel18; + this.Parallel19 = parallel19; + this.Parallel20 = parallel20; + this.Parallel21 = parallel21; + this.Parallel22 = parallel22; + this.Parallel23 = parallel23; + this.Parallel24 = parallel24; + this.Parallel25 = parallel25; + this.Parallel26 = parallel26; + this.Parallel27 = parallel27; + this.Parallel28 = parallel28; + this.Parallel29 = parallel29; + this.Parent = parent; + this.Protection = protection; + this.Reboot = reboot; + this.Rng0 = rng0; + this.RunningNetsHostMtu = runningNetsHostMtu; + this.Runningcpu = runningcpu; + this.Runningmachine = runningmachine; + this.Sata0 = sata0; + this.Sata1 = sata1; + this.Sata2 = sata2; + this.Sata3 = sata3; + this.Sata4 = sata4; + this.Sata5 = sata5; + this.Sata6 = sata6; + this.Sata7 = sata7; + this.Sata8 = sata8; + this.Sata9 = sata9; + this.Sata10 = sata10; + this.Sata11 = sata11; + this.Sata12 = sata12; + this.Sata13 = sata13; + this.Sata14 = sata14; + this.Sata15 = sata15; + this.Sata16 = sata16; + this.Sata17 = sata17; + this.Sata18 = sata18; + this.Sata19 = sata19; + this.Sata20 = sata20; + this.Sata21 = sata21; + this.Sata22 = sata22; + this.Sata23 = sata23; + this.Sata24 = sata24; + this.Sata25 = sata25; + this.Sata26 = sata26; + this.Sata27 = sata27; + this.Sata28 = sata28; + this.Sata29 = sata29; + this.Scsi0 = scsi0; + this.Scsi1 = scsi1; + this.Scsi2 = scsi2; + this.Scsi3 = scsi3; + this.Scsi4 = scsi4; + this.Scsi5 = scsi5; + this.Scsi6 = scsi6; + this.Scsi7 = scsi7; + this.Scsi8 = scsi8; + this.Scsi9 = scsi9; + this.Scsi10 = scsi10; + this.Scsi11 = scsi11; + this.Scsi12 = scsi12; + this.Scsi13 = scsi13; + this.Scsi14 = scsi14; + this.Scsi15 = scsi15; + this.Scsi16 = scsi16; + this.Scsi17 = scsi17; + this.Scsi18 = scsi18; + this.Scsi19 = scsi19; + this.Scsi20 = scsi20; + this.Scsi21 = scsi21; + this.Scsi22 = scsi22; + this.Scsi23 = scsi23; + this.Scsi24 = scsi24; + this.Scsi25 = scsi25; + this.Scsi26 = scsi26; + this.Scsi27 = scsi27; + this.Scsi28 = scsi28; + this.Scsi29 = scsi29; + this.Scsihw = scsihw; + this.Searchdomain = searchdomain; + this.Serial0 = serial0; + this.Serial1 = serial1; + this.Serial2 = serial2; + this.Serial3 = serial3; + this.Serial4 = serial4; + this.Serial5 = serial5; + this.Serial6 = serial6; + this.Serial7 = serial7; + this.Serial8 = serial8; + this.Serial9 = serial9; + this.Serial10 = serial10; + this.Serial11 = serial11; + this.Serial12 = serial12; + this.Serial13 = serial13; + this.Serial14 = serial14; + this.Serial15 = serial15; + this.Serial16 = serial16; + this.Serial17 = serial17; + this.Serial18 = serial18; + this.Serial19 = serial19; + this.Serial20 = serial20; + this.Serial21 = serial21; + this.Serial22 = serial22; + this.Serial23 = serial23; + this.Serial24 = serial24; + this.Serial25 = serial25; + this.Serial26 = serial26; + this.Serial27 = serial27; + this.Serial28 = serial28; + this.Serial29 = serial29; + this.Shares = shares; + this.Smbios1 = smbios1; + this.Smp = smp; + this.Snaptime = snaptime; + this.Sockets = sockets; + this.SpiceEnhancements = spiceEnhancements; + this.Sshkeys = sshkeys; + this.Startdate = startdate; + this.Startup = startup; + this.Tablet = tablet; + this.Tags = tags; + this.Tdf = tdf; + this.Template = template; + this.Tpmstate0 = tpmstate0; + this.Unused0 = unused0; + this.Unused1 = unused1; + this.Unused2 = unused2; + this.Unused3 = unused3; + this.Unused4 = unused4; + this.Unused5 = unused5; + this.Unused6 = unused6; + this.Unused7 = unused7; + this.Unused8 = unused8; + this.Unused9 = unused9; + this.Unused10 = unused10; + this.Unused11 = unused11; + this.Unused12 = unused12; + this.Unused13 = unused13; + this.Unused14 = unused14; + this.Unused15 = unused15; + this.Unused16 = unused16; + this.Unused17 = unused17; + this.Unused18 = unused18; + this.Unused19 = unused19; + this.Unused20 = unused20; + this.Unused21 = unused21; + this.Unused22 = unused22; + this.Unused23 = unused23; + this.Unused24 = unused24; + this.Unused25 = unused25; + this.Unused26 = unused26; + this.Unused27 = unused27; + this.Unused28 = unused28; + this.Unused29 = unused29; + this.Usb0 = usb0; + this.Usb1 = usb1; + this.Usb2 = usb2; + this.Usb3 = usb3; + this.Usb4 = usb4; + this.Usb5 = usb5; + this.Usb6 = usb6; + this.Usb7 = usb7; + this.Usb8 = usb8; + this.Usb9 = usb9; + this.Usb10 = usb10; + this.Usb11 = usb11; + this.Usb12 = usb12; + this.Usb13 = usb13; + this.Usb14 = usb14; + this.Usb15 = usb15; + this.Usb16 = usb16; + this.Usb17 = usb17; + this.Usb18 = usb18; + this.Usb19 = usb19; + this.Usb20 = usb20; + this.Usb21 = usb21; + this.Usb22 = usb22; + this.Usb23 = usb23; + this.Usb24 = usb24; + this.Usb25 = usb25; + this.Usb26 = usb26; + this.Usb27 = usb27; + this.Usb28 = usb28; + this.Usb29 = usb29; + this.Vcpus = vcpus; + this.Vga = vga; + this.Virtio0 = virtio0; + this.Virtio1 = virtio1; + this.Virtio2 = virtio2; + this.Virtio3 = virtio3; + this.Virtio4 = virtio4; + this.Virtio5 = virtio5; + this.Virtio6 = virtio6; + this.Virtio7 = virtio7; + this.Virtio8 = virtio8; + this.Virtio9 = virtio9; + this.Virtio10 = virtio10; + this.Virtio11 = virtio11; + this.Virtio12 = virtio12; + this.Virtio13 = virtio13; + this.Virtio14 = virtio14; + this.Virtio15 = virtio15; + this.Virtio16 = virtio16; + this.Virtio17 = virtio17; + this.Virtio18 = virtio18; + this.Virtio19 = virtio19; + this.Virtio20 = virtio20; + this.Virtio21 = virtio21; + this.Virtio22 = virtio22; + this.Virtio23 = virtio23; + this.Virtio24 = virtio24; + this.Virtio25 = virtio25; + this.Virtio26 = virtio26; + this.Virtio27 = virtio27; + this.Virtio28 = virtio28; + this.Virtio29 = virtio29; + this.Virtiofs0 = virtiofs0; + this.Virtiofs1 = virtiofs1; + this.Virtiofs2 = virtiofs2; + this.Virtiofs3 = virtiofs3; + this.Virtiofs4 = virtiofs4; + this.Virtiofs5 = virtiofs5; + this.Virtiofs6 = virtiofs6; + this.Virtiofs7 = virtiofs7; + this.Virtiofs8 = virtiofs8; + this.Virtiofs9 = virtiofs9; + this.Virtiofs10 = virtiofs10; + this.Virtiofs11 = virtiofs11; + this.Virtiofs12 = virtiofs12; + this.Virtiofs13 = virtiofs13; + this.Virtiofs14 = virtiofs14; + this.Virtiofs15 = virtiofs15; + this.Virtiofs16 = virtiofs16; + this.Virtiofs17 = virtiofs17; + this.Virtiofs18 = virtiofs18; + this.Virtiofs19 = virtiofs19; + this.Virtiofs20 = virtiofs20; + this.Virtiofs21 = virtiofs21; + this.Virtiofs22 = virtiofs22; + this.Virtiofs23 = virtiofs23; + this.Virtiofs24 = virtiofs24; + this.Virtiofs25 = virtiofs25; + this.Virtiofs26 = virtiofs26; + this.Virtiofs27 = virtiofs27; + this.Virtiofs28 = virtiofs28; + this.Virtiofs29 = virtiofs29; + this.Vmgenid = vmgenid; + this.Vmstate = vmstate; + this.Vmstatestorage = vmstatestorage; + this.Watchdog = watchdog; + } + + /// + /// Enable/disable ACPI. + /// + /// Enable/disable ACPI. + [DataMember(Name = "acpi", EmitDefaultValue = false)] + public Int64 Acpi { get; set; } + + /// + /// List of host cores used to execute guest processes, for example: 0,5,8-11 + /// + /// List of host cores used to execute guest processes, for example: 0,5,8-11 + [DataMember(Name = "affinity", EmitDefaultValue = false)] + public string Affinity { get; set; } + + /// + /// Enable/disable communication with the QEMU Guest Agent and its properties. + /// + /// Enable/disable communication with the QEMU Guest Agent and its properties. + [DataMember(Name = "agent", EmitDefaultValue = false)] + public string Agent { get; set; } + + /// + /// Allow memory pages of this guest to be merged via KSM (Kernel Samepage Merging). + /// + /// Allow memory pages of this guest to be merged via KSM (Kernel Samepage Merging). + [DataMember(Name = "allow-ksm", EmitDefaultValue = false)] + public Int64 AllowKsm { get; set; } + + /// + /// Secure Encrypted Virtualization (SEV) features by AMD CPUs + /// + /// Secure Encrypted Virtualization (SEV) features by AMD CPUs + [DataMember(Name = "amd-sev", EmitDefaultValue = false)] + public string AmdSev { get; set; } + + /// + /// Virtual processor architecture. Defaults to the host. + /// + /// Virtual processor architecture. Defaults to the host. + [DataMember(Name = "arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Arbitrary arguments passed to kvm. + /// + /// Arbitrary arguments passed to kvm. + [DataMember(Name = "args", EmitDefaultValue = false)] + public string Args { get; set; } + + /// + /// Configure a audio device, useful in combination with QXL/Spice. + /// + /// Configure a audio device, useful in combination with QXL/Spice. + [DataMember(Name = "audio0", EmitDefaultValue = false)] + public string Audio0 { get; set; } + + /// + /// Automatic restart after crash (currently ignored). + /// + /// Automatic restart after crash (currently ignored). + [DataMember(Name = "autostart", EmitDefaultValue = false)] + public Int64 Autostart { get; set; } + + /// + /// Amount of target RAM for the VM in MiB. Using zero disables the ballon driver. + /// + /// Amount of target RAM for the VM in MiB. Using zero disables the ballon driver. + [DataMember(Name = "balloon", EmitDefaultValue = false)] + public Int64 Balloon { get; set; } + + /// + /// Select BIOS implementation. + /// + /// Select BIOS implementation. + [DataMember(Name = "bios", EmitDefaultValue = false)] + public string Bios { get; set; } + + /// + /// Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated. + /// + /// Specify guest boot order. Use the 'order=' sub-property as usage with no key or 'legacy=' is deprecated. + [DataMember(Name = "boot", EmitDefaultValue = false)] + public string Boot { get; set; } + + /// + /// Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead. + /// + /// Enable booting from specified disk. Deprecated: Use 'boot: order=foo;bar' instead. + [DataMember(Name = "bootdisk", EmitDefaultValue = false)] + public string Bootdisk { get; set; } + + /// + /// This is an alias for option -ide2 + /// + /// This is an alias for option -ide2 + [DataMember(Name = "cdrom", EmitDefaultValue = false)] + public string Cdrom { get; set; } + + /// + /// cloud-init: Specify custom files to replace the automatically generated ones at start. + /// + /// cloud-init: Specify custom files to replace the automatically generated ones at start. + [DataMember(Name = "cicustom", EmitDefaultValue = false)] + public string Cicustom { get; set; } + + /// + /// cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords. + /// + /// cloud-init: Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords. + [DataMember(Name = "cipassword", EmitDefaultValue = false)] + public string Cipassword { get; set; } + + /// + /// Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows. + /// + /// Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows. + [DataMember(Name = "citype", EmitDefaultValue = false)] + public string Citype { get; set; } + + /// + /// cloud-init: do an automatic package upgrade after the first boot. + /// + /// cloud-init: do an automatic package upgrade after the first boot. + [DataMember(Name = "ciupgrade", EmitDefaultValue = false)] + public Int64 Ciupgrade { get; set; } + + /// + /// cloud-init: User name to change ssh keys and password for instead of the image's configured default user. + /// + /// cloud-init: User name to change ssh keys and password for instead of the image's configured default user. + [DataMember(Name = "ciuser", EmitDefaultValue = false)] + public string Ciuser { get; set; } + + /// + /// The number of cores per socket. + /// + /// The number of cores per socket. + [DataMember(Name = "cores", EmitDefaultValue = false)] + public Int64 Cores { get; set; } + + /// + /// Emulated CPU type. + /// + /// Emulated CPU type. + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public string Cpu { get; set; } + + /// + /// Limit of CPU usage. + /// + /// Limit of CPU usage. + [DataMember(Name = "cpulimit", EmitDefaultValue = false)] + public decimal Cpulimit { get; set; } + + /// + /// CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2. + /// + /// CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2. + [DataMember(Name = "cpuunits", EmitDefaultValue = false)] + public Int64 Cpuunits { get; set; } + + /// + /// Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file. + /// + /// Description for the VM. Shown in the web-interface VM's summary. This is saved as comment inside the configuration file. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// SHA1 digest of configuration file. This can be used to prevent concurrent modifications. + /// + /// SHA1 digest of configuration file. This can be used to prevent concurrent modifications. + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Configure a disk for storing EFI vars. + /// + /// Configure a disk for storing EFI vars. + [DataMember(Name = "efidisk0", EmitDefaultValue = false)] + public string Efidisk0 { get; set; } + + /// + /// Freeze CPU at startup (use 'c' monitor command to start execution). + /// + /// Freeze CPU at startup (use 'c' monitor command to start execution). + [DataMember(Name = "freeze", EmitDefaultValue = false)] + public Int64 Freeze { get; set; } + + /// + /// Script that will be executed during various steps in the vms lifetime. + /// + /// Script that will be executed during various steps in the vms lifetime. + [DataMember(Name = "hookscript", EmitDefaultValue = false)] + public string Hookscript { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci0", EmitDefaultValue = false)] + public string Hostpci0 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci1", EmitDefaultValue = false)] + public string Hostpci1 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci2", EmitDefaultValue = false)] + public string Hostpci2 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci3", EmitDefaultValue = false)] + public string Hostpci3 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci4", EmitDefaultValue = false)] + public string Hostpci4 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci5", EmitDefaultValue = false)] + public string Hostpci5 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci6", EmitDefaultValue = false)] + public string Hostpci6 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci7", EmitDefaultValue = false)] + public string Hostpci7 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci8", EmitDefaultValue = false)] + public string Hostpci8 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci9", EmitDefaultValue = false)] + public string Hostpci9 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci10", EmitDefaultValue = false)] + public string Hostpci10 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci11", EmitDefaultValue = false)] + public string Hostpci11 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci12", EmitDefaultValue = false)] + public string Hostpci12 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci13", EmitDefaultValue = false)] + public string Hostpci13 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci14", EmitDefaultValue = false)] + public string Hostpci14 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci15", EmitDefaultValue = false)] + public string Hostpci15 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci16", EmitDefaultValue = false)] + public string Hostpci16 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci17", EmitDefaultValue = false)] + public string Hostpci17 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci18", EmitDefaultValue = false)] + public string Hostpci18 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci19", EmitDefaultValue = false)] + public string Hostpci19 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci20", EmitDefaultValue = false)] + public string Hostpci20 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci21", EmitDefaultValue = false)] + public string Hostpci21 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci22", EmitDefaultValue = false)] + public string Hostpci22 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci23", EmitDefaultValue = false)] + public string Hostpci23 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci24", EmitDefaultValue = false)] + public string Hostpci24 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci25", EmitDefaultValue = false)] + public string Hostpci25 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci26", EmitDefaultValue = false)] + public string Hostpci26 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci27", EmitDefaultValue = false)] + public string Hostpci27 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci28", EmitDefaultValue = false)] + public string Hostpci28 { get; set; } + + /// + /// Map host PCI devices into guest. + /// + /// Map host PCI devices into guest. + [DataMember(Name = "hostpci29", EmitDefaultValue = false)] + public string Hostpci29 { get; set; } + + /// + /// Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7. + /// + /// Selectively enable hotplug features. This is a comma separated list of hotplug features: 'network', 'disk', 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable hotplug completely. Using '1' as value is an alias for the default `network,disk,usb`. USB hotplugging is possible for guests with machine version >= 7.1 and ostype l26 or windows > 7. + [DataMember(Name = "hotplug", EmitDefaultValue = false)] + public string Hotplug { get; set; } + + /// + /// Enables hugepages memory. Sets the size of hugepages in MiB. If the value is set to 'any' then 1 GiB hugepages will be used if possible, otherwise the size will fall back to 2 MiB. + /// + /// Enables hugepages memory. Sets the size of hugepages in MiB. If the value is set to 'any' then 1 GiB hugepages will be used if possible, otherwise the size will fall back to 2 MiB. + [DataMember(Name = "hugepages", EmitDefaultValue = false)] + public string Hugepages { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide0", EmitDefaultValue = false)] + public string Ide0 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide1", EmitDefaultValue = false)] + public string Ide1 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide2", EmitDefaultValue = false)] + public string Ide2 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide3", EmitDefaultValue = false)] + public string Ide3 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide4", EmitDefaultValue = false)] + public string Ide4 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide5", EmitDefaultValue = false)] + public string Ide5 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide6", EmitDefaultValue = false)] + public string Ide6 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide7", EmitDefaultValue = false)] + public string Ide7 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide8", EmitDefaultValue = false)] + public string Ide8 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide9", EmitDefaultValue = false)] + public string Ide9 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide10", EmitDefaultValue = false)] + public string Ide10 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide11", EmitDefaultValue = false)] + public string Ide11 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide12", EmitDefaultValue = false)] + public string Ide12 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide13", EmitDefaultValue = false)] + public string Ide13 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide14", EmitDefaultValue = false)] + public string Ide14 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide15", EmitDefaultValue = false)] + public string Ide15 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide16", EmitDefaultValue = false)] + public string Ide16 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide17", EmitDefaultValue = false)] + public string Ide17 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide18", EmitDefaultValue = false)] + public string Ide18 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide19", EmitDefaultValue = false)] + public string Ide19 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide20", EmitDefaultValue = false)] + public string Ide20 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide21", EmitDefaultValue = false)] + public string Ide21 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide22", EmitDefaultValue = false)] + public string Ide22 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide23", EmitDefaultValue = false)] + public string Ide23 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide24", EmitDefaultValue = false)] + public string Ide24 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide25", EmitDefaultValue = false)] + public string Ide25 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide26", EmitDefaultValue = false)] + public string Ide26 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide27", EmitDefaultValue = false)] + public string Ide27 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide28", EmitDefaultValue = false)] + public string Ide28 { get; set; } + + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + /// + /// Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + [DataMember(Name = "ide29", EmitDefaultValue = false)] + public string Ide29 { get; set; } + + /// + /// Trusted Domain Extension (TDX) features by Intel CPUs + /// + /// Trusted Domain Extension (TDX) features by Intel CPUs + [DataMember(Name = "intel-tdx", EmitDefaultValue = false)] + public string IntelTdx { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig0", EmitDefaultValue = false)] + public string Ipconfig0 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig1", EmitDefaultValue = false)] + public string Ipconfig1 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig2", EmitDefaultValue = false)] + public string Ipconfig2 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig3", EmitDefaultValue = false)] + public string Ipconfig3 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig4", EmitDefaultValue = false)] + public string Ipconfig4 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig5", EmitDefaultValue = false)] + public string Ipconfig5 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig6", EmitDefaultValue = false)] + public string Ipconfig6 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig7", EmitDefaultValue = false)] + public string Ipconfig7 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig8", EmitDefaultValue = false)] + public string Ipconfig8 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig9", EmitDefaultValue = false)] + public string Ipconfig9 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig10", EmitDefaultValue = false)] + public string Ipconfig10 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig11", EmitDefaultValue = false)] + public string Ipconfig11 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig12", EmitDefaultValue = false)] + public string Ipconfig12 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig13", EmitDefaultValue = false)] + public string Ipconfig13 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig14", EmitDefaultValue = false)] + public string Ipconfig14 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig15", EmitDefaultValue = false)] + public string Ipconfig15 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig16", EmitDefaultValue = false)] + public string Ipconfig16 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig17", EmitDefaultValue = false)] + public string Ipconfig17 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig18", EmitDefaultValue = false)] + public string Ipconfig18 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig19", EmitDefaultValue = false)] + public string Ipconfig19 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig20", EmitDefaultValue = false)] + public string Ipconfig20 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig21", EmitDefaultValue = false)] + public string Ipconfig21 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig22", EmitDefaultValue = false)] + public string Ipconfig22 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig23", EmitDefaultValue = false)] + public string Ipconfig23 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig24", EmitDefaultValue = false)] + public string Ipconfig24 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig25", EmitDefaultValue = false)] + public string Ipconfig25 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig26", EmitDefaultValue = false)] + public string Ipconfig26 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig27", EmitDefaultValue = false)] + public string Ipconfig27 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig28", EmitDefaultValue = false)] + public string Ipconfig28 { get; set; } + + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + /// + /// cloud-init: Specify IP addresses and gateways for the corresponding interface. IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified. The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit gateway should be provided. For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires cloud-init 19.4 or newer. If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using dhcp on IPv4. + [DataMember(Name = "ipconfig29", EmitDefaultValue = false)] + public string Ipconfig29 { get; set; } + + /// + /// Inter-VM shared memory. Useful for direct communication between VMs, or to the host. + /// + /// Inter-VM shared memory. Useful for direct communication between VMs, or to the host. + [DataMember(Name = "ivshmem", EmitDefaultValue = false)] + public string Ivshmem { get; set; } + + /// + /// Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts. + /// + /// Use together with hugepages. If enabled, hugepages will not not be deleted after VM shutdown and can be used for subsequent starts. + [DataMember(Name = "keephugepages", EmitDefaultValue = false)] + public Int64 Keephugepages { get; set; } + + /// + /// Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS. + /// + /// Keyboard layout for VNC server. This option is generally not required and is often better handled from within the guest OS. + [DataMember(Name = "keyboard", EmitDefaultValue = false)] + public string Keyboard { get; set; } + + /// + /// Enable/disable KVM hardware virtualization. + /// + /// Enable/disable KVM hardware virtualization. + [DataMember(Name = "kvm", EmitDefaultValue = false)] + public Int64 Kvm { get; set; } + + /// + /// Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS. + /// + /// Set the real time clock (RTC) to local time. This is enabled by default if the `ostype` indicates a Microsoft Windows OS. + [DataMember(Name = "localtime", EmitDefaultValue = false)] + public Int64 Localtime { get; set; } + + /// + /// Lock/unlock the VM. + /// + /// Lock/unlock the VM. + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Specify the QEMU machine. + /// + /// Specify the QEMU machine. + [DataMember(Name = "machine", EmitDefaultValue = false)] + public string Machine { get; set; } + + /// + /// Memory properties. + /// + /// Memory properties. + [DataMember(Name = "memory", EmitDefaultValue = false)] + public string Memory { get; set; } + + /// + /// Some (read-only) meta-information about this guest. + /// + /// Some (read-only) meta-information about this guest. + [DataMember(Name = "meta", EmitDefaultValue = false)] + public string Meta { get; set; } + + /// + /// Set maximum tolerated downtime (in seconds) for migrations. Should the migration not be able to converge in the very end, because too much newly dirtied RAM needs to be transferred, the limit will be increased automatically step-by-step until migration can converge. + /// + /// Set maximum tolerated downtime (in seconds) for migrations. Should the migration not be able to converge in the very end, because too much newly dirtied RAM needs to be transferred, the limit will be increased automatically step-by-step until migration can converge. + [DataMember(Name = "migrate_downtime", EmitDefaultValue = false)] + public decimal MigrateDowntime { get; set; } + + /// + /// Set maximum speed (in MB/s) for migrations. Value 0 is no limit. + /// + /// Set maximum speed (in MB/s) for migrations. Value 0 is no limit. + [DataMember(Name = "migrate_speed", EmitDefaultValue = false)] + public Int64 MigrateSpeed { get; set; } + + /// + /// Set a name for the VM. Only used on the configuration web interface. + /// + /// Set a name for the VM. Only used on the configuration web interface. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set. + /// + /// cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set. + [DataMember(Name = "nameserver", EmitDefaultValue = false)] + public string Nameserver { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net0", EmitDefaultValue = false)] + public string Net0 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net1", EmitDefaultValue = false)] + public string Net1 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net2", EmitDefaultValue = false)] + public string Net2 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net3", EmitDefaultValue = false)] + public string Net3 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net4", EmitDefaultValue = false)] + public string Net4 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net5", EmitDefaultValue = false)] + public string Net5 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net6", EmitDefaultValue = false)] + public string Net6 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net7", EmitDefaultValue = false)] + public string Net7 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net8", EmitDefaultValue = false)] + public string Net8 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net9", EmitDefaultValue = false)] + public string Net9 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net10", EmitDefaultValue = false)] + public string Net10 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net11", EmitDefaultValue = false)] + public string Net11 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net12", EmitDefaultValue = false)] + public string Net12 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net13", EmitDefaultValue = false)] + public string Net13 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net14", EmitDefaultValue = false)] + public string Net14 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net15", EmitDefaultValue = false)] + public string Net15 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net16", EmitDefaultValue = false)] + public string Net16 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net17", EmitDefaultValue = false)] + public string Net17 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net18", EmitDefaultValue = false)] + public string Net18 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net19", EmitDefaultValue = false)] + public string Net19 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net20", EmitDefaultValue = false)] + public string Net20 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net21", EmitDefaultValue = false)] + public string Net21 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net22", EmitDefaultValue = false)] + public string Net22 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net23", EmitDefaultValue = false)] + public string Net23 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net24", EmitDefaultValue = false)] + public string Net24 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net25", EmitDefaultValue = false)] + public string Net25 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net26", EmitDefaultValue = false)] + public string Net26 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net27", EmitDefaultValue = false)] + public string Net27 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net28", EmitDefaultValue = false)] + public string Net28 { get; set; } + + /// + /// Specify network devices. + /// + /// Specify network devices. + [DataMember(Name = "net29", EmitDefaultValue = false)] + public string Net29 { get; set; } + + /// + /// Enable/disable NUMA. + /// + /// Enable/disable NUMA. + [DataMember(Name = "numa", EmitDefaultValue = false)] + public Int64 Numa { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa0", EmitDefaultValue = false)] + public string Numa0 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa1", EmitDefaultValue = false)] + public string Numa1 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa2", EmitDefaultValue = false)] + public string Numa2 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa3", EmitDefaultValue = false)] + public string Numa3 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa4", EmitDefaultValue = false)] + public string Numa4 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa5", EmitDefaultValue = false)] + public string Numa5 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa6", EmitDefaultValue = false)] + public string Numa6 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa7", EmitDefaultValue = false)] + public string Numa7 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa8", EmitDefaultValue = false)] + public string Numa8 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa9", EmitDefaultValue = false)] + public string Numa9 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa10", EmitDefaultValue = false)] + public string Numa10 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa11", EmitDefaultValue = false)] + public string Numa11 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa12", EmitDefaultValue = false)] + public string Numa12 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa13", EmitDefaultValue = false)] + public string Numa13 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa14", EmitDefaultValue = false)] + public string Numa14 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa15", EmitDefaultValue = false)] + public string Numa15 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa16", EmitDefaultValue = false)] + public string Numa16 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa17", EmitDefaultValue = false)] + public string Numa17 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa18", EmitDefaultValue = false)] + public string Numa18 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa19", EmitDefaultValue = false)] + public string Numa19 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa20", EmitDefaultValue = false)] + public string Numa20 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa21", EmitDefaultValue = false)] + public string Numa21 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa22", EmitDefaultValue = false)] + public string Numa22 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa23", EmitDefaultValue = false)] + public string Numa23 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa24", EmitDefaultValue = false)] + public string Numa24 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa25", EmitDefaultValue = false)] + public string Numa25 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa26", EmitDefaultValue = false)] + public string Numa26 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa27", EmitDefaultValue = false)] + public string Numa27 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa28", EmitDefaultValue = false)] + public string Numa28 { get; set; } + + /// + /// NUMA topology. + /// + /// NUMA topology. + [DataMember(Name = "numa29", EmitDefaultValue = false)] + public string Numa29 { get; set; } + + /// + /// Specifies whether a VM will be started during system bootup. + /// + /// Specifies whether a VM will be started during system bootup. + [DataMember(Name = "onboot", EmitDefaultValue = false)] + public Int64 Onboot { get; set; } + + /// + /// Specify guest operating system. + /// + /// Specify guest operating system. + [DataMember(Name = "ostype", EmitDefaultValue = false)] + public string Ostype { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel0", EmitDefaultValue = false)] + public string Parallel0 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel1", EmitDefaultValue = false)] + public string Parallel1 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel2", EmitDefaultValue = false)] + public string Parallel2 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel3", EmitDefaultValue = false)] + public string Parallel3 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel4", EmitDefaultValue = false)] + public string Parallel4 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel5", EmitDefaultValue = false)] + public string Parallel5 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel6", EmitDefaultValue = false)] + public string Parallel6 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel7", EmitDefaultValue = false)] + public string Parallel7 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel8", EmitDefaultValue = false)] + public string Parallel8 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel9", EmitDefaultValue = false)] + public string Parallel9 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel10", EmitDefaultValue = false)] + public string Parallel10 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel11", EmitDefaultValue = false)] + public string Parallel11 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel12", EmitDefaultValue = false)] + public string Parallel12 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel13", EmitDefaultValue = false)] + public string Parallel13 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel14", EmitDefaultValue = false)] + public string Parallel14 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel15", EmitDefaultValue = false)] + public string Parallel15 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel16", EmitDefaultValue = false)] + public string Parallel16 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel17", EmitDefaultValue = false)] + public string Parallel17 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel18", EmitDefaultValue = false)] + public string Parallel18 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel19", EmitDefaultValue = false)] + public string Parallel19 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel20", EmitDefaultValue = false)] + public string Parallel20 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel21", EmitDefaultValue = false)] + public string Parallel21 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel22", EmitDefaultValue = false)] + public string Parallel22 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel23", EmitDefaultValue = false)] + public string Parallel23 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel24", EmitDefaultValue = false)] + public string Parallel24 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel25", EmitDefaultValue = false)] + public string Parallel25 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel26", EmitDefaultValue = false)] + public string Parallel26 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel27", EmitDefaultValue = false)] + public string Parallel27 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel28", EmitDefaultValue = false)] + public string Parallel28 { get; set; } + + /// + /// Map host parallel devices (n is 0 to 2). + /// + /// Map host parallel devices (n is 0 to 2). + [DataMember(Name = "parallel29", EmitDefaultValue = false)] + public string Parallel29 { get; set; } + + /// + /// Parent snapshot name. This is used internally, and should not be modified. + /// + /// Parent snapshot name. This is used internally, and should not be modified. + [DataMember(Name = "parent", EmitDefaultValue = false)] + public string Parent { get; set; } + + /// + /// Sets the protection flag of the VM. This will disable the remove VM and remove disk operations. + /// + /// Sets the protection flag of the VM. This will disable the remove VM and remove disk operations. + [DataMember(Name = "protection", EmitDefaultValue = false)] + public Int64 Protection { get; set; } + + /// + /// Allow reboot. If set to '0' the VM exit on reboot. + /// + /// Allow reboot. If set to '0' the VM exit on reboot. + [DataMember(Name = "reboot", EmitDefaultValue = false)] + public Int64 Reboot { get; set; } + + /// + /// Configure a VirtIO-based Random Number Generator. + /// + /// Configure a VirtIO-based Random Number Generator. + [DataMember(Name = "rng0", EmitDefaultValue = false)] + public string Rng0 { get; set; } + + /// + /// List of VirtIO network devices and their effective host_mtu setting. A value of 0 means that the host_mtu parameter is to be avoided for the corresponding device. This is used internally for snapshots. + /// + /// List of VirtIO network devices and their effective host_mtu setting. A value of 0 means that the host_mtu parameter is to be avoided for the corresponding device. This is used internally for snapshots. + [DataMember(Name = "running-nets-host-mtu", EmitDefaultValue = false)] + public string RunningNetsHostMtu { get; set; } + + /// + /// Specifies the QEMU '-cpu' parameter of the running vm. This is used internally for snapshots. + /// + /// Specifies the QEMU '-cpu' parameter of the running vm. This is used internally for snapshots. + [DataMember(Name = "runningcpu", EmitDefaultValue = false)] + public string Runningcpu { get; set; } + + /// + /// Specifies the QEMU machine type of the running vm. This is used internally for snapshots. + /// + /// Specifies the QEMU machine type of the running vm. This is used internally for snapshots. + [DataMember(Name = "runningmachine", EmitDefaultValue = false)] + public string Runningmachine { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata0", EmitDefaultValue = false)] + public string Sata0 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata1", EmitDefaultValue = false)] + public string Sata1 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata2", EmitDefaultValue = false)] + public string Sata2 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata3", EmitDefaultValue = false)] + public string Sata3 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata4", EmitDefaultValue = false)] + public string Sata4 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata5", EmitDefaultValue = false)] + public string Sata5 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata6", EmitDefaultValue = false)] + public string Sata6 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata7", EmitDefaultValue = false)] + public string Sata7 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata8", EmitDefaultValue = false)] + public string Sata8 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata9", EmitDefaultValue = false)] + public string Sata9 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata10", EmitDefaultValue = false)] + public string Sata10 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata11", EmitDefaultValue = false)] + public string Sata11 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata12", EmitDefaultValue = false)] + public string Sata12 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata13", EmitDefaultValue = false)] + public string Sata13 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata14", EmitDefaultValue = false)] + public string Sata14 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata15", EmitDefaultValue = false)] + public string Sata15 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata16", EmitDefaultValue = false)] + public string Sata16 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata17", EmitDefaultValue = false)] + public string Sata17 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata18", EmitDefaultValue = false)] + public string Sata18 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata19", EmitDefaultValue = false)] + public string Sata19 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata20", EmitDefaultValue = false)] + public string Sata20 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata21", EmitDefaultValue = false)] + public string Sata21 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata22", EmitDefaultValue = false)] + public string Sata22 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata23", EmitDefaultValue = false)] + public string Sata23 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata24", EmitDefaultValue = false)] + public string Sata24 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata25", EmitDefaultValue = false)] + public string Sata25 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata26", EmitDefaultValue = false)] + public string Sata26 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata27", EmitDefaultValue = false)] + public string Sata27 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata28", EmitDefaultValue = false)] + public string Sata28 { get; set; } + + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + /// + /// Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + [DataMember(Name = "sata29", EmitDefaultValue = false)] + public string Sata29 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi0", EmitDefaultValue = false)] + public string Scsi0 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi1", EmitDefaultValue = false)] + public string Scsi1 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi2", EmitDefaultValue = false)] + public string Scsi2 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi3", EmitDefaultValue = false)] + public string Scsi3 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi4", EmitDefaultValue = false)] + public string Scsi4 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi5", EmitDefaultValue = false)] + public string Scsi5 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi6", EmitDefaultValue = false)] + public string Scsi6 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi7", EmitDefaultValue = false)] + public string Scsi7 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi8", EmitDefaultValue = false)] + public string Scsi8 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi9", EmitDefaultValue = false)] + public string Scsi9 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi10", EmitDefaultValue = false)] + public string Scsi10 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi11", EmitDefaultValue = false)] + public string Scsi11 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi12", EmitDefaultValue = false)] + public string Scsi12 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi13", EmitDefaultValue = false)] + public string Scsi13 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi14", EmitDefaultValue = false)] + public string Scsi14 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi15", EmitDefaultValue = false)] + public string Scsi15 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi16", EmitDefaultValue = false)] + public string Scsi16 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi17", EmitDefaultValue = false)] + public string Scsi17 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi18", EmitDefaultValue = false)] + public string Scsi18 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi19", EmitDefaultValue = false)] + public string Scsi19 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi20", EmitDefaultValue = false)] + public string Scsi20 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi21", EmitDefaultValue = false)] + public string Scsi21 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi22", EmitDefaultValue = false)] + public string Scsi22 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi23", EmitDefaultValue = false)] + public string Scsi23 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi24", EmitDefaultValue = false)] + public string Scsi24 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi25", EmitDefaultValue = false)] + public string Scsi25 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi26", EmitDefaultValue = false)] + public string Scsi26 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi27", EmitDefaultValue = false)] + public string Scsi27 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi28", EmitDefaultValue = false)] + public string Scsi28 { get; set; } + + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + /// + /// Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + [DataMember(Name = "scsi29", EmitDefaultValue = false)] + public string Scsi29 { get; set; } + + /// + /// SCSI controller model + /// + /// SCSI controller model + [DataMember(Name = "scsihw", EmitDefaultValue = false)] + public string Scsihw { get; set; } + + /// + /// cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set. + /// + /// cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set. + [DataMember(Name = "searchdomain", EmitDefaultValue = false)] + public string Searchdomain { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial0", EmitDefaultValue = false)] + public string Serial0 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial1", EmitDefaultValue = false)] + public string Serial1 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial2", EmitDefaultValue = false)] + public string Serial2 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial3", EmitDefaultValue = false)] + public string Serial3 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial4", EmitDefaultValue = false)] + public string Serial4 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial5", EmitDefaultValue = false)] + public string Serial5 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial6", EmitDefaultValue = false)] + public string Serial6 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial7", EmitDefaultValue = false)] + public string Serial7 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial8", EmitDefaultValue = false)] + public string Serial8 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial9", EmitDefaultValue = false)] + public string Serial9 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial10", EmitDefaultValue = false)] + public string Serial10 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial11", EmitDefaultValue = false)] + public string Serial11 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial12", EmitDefaultValue = false)] + public string Serial12 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial13", EmitDefaultValue = false)] + public string Serial13 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial14", EmitDefaultValue = false)] + public string Serial14 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial15", EmitDefaultValue = false)] + public string Serial15 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial16", EmitDefaultValue = false)] + public string Serial16 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial17", EmitDefaultValue = false)] + public string Serial17 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial18", EmitDefaultValue = false)] + public string Serial18 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial19", EmitDefaultValue = false)] + public string Serial19 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial20", EmitDefaultValue = false)] + public string Serial20 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial21", EmitDefaultValue = false)] + public string Serial21 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial22", EmitDefaultValue = false)] + public string Serial22 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial23", EmitDefaultValue = false)] + public string Serial23 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial24", EmitDefaultValue = false)] + public string Serial24 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial25", EmitDefaultValue = false)] + public string Serial25 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial26", EmitDefaultValue = false)] + public string Serial26 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial27", EmitDefaultValue = false)] + public string Serial27 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial28", EmitDefaultValue = false)] + public string Serial28 { get; set; } + + /// + /// Create a serial device inside the VM (n is 0 to 3) + /// + /// Create a serial device inside the VM (n is 0 to 3) + [DataMember(Name = "serial29", EmitDefaultValue = false)] + public string Serial29 { get; set; } + + /// + /// Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd. + /// + /// Amount of memory shares for auto-ballooning. The larger the number is, the more memory this VM gets. Number is relative to weights of all other running VMs. Using zero disables auto-ballooning. Auto-ballooning is done by pvestatd. + [DataMember(Name = "shares", EmitDefaultValue = false)] + public Int64 Shares { get; set; } + + /// + /// Specify SMBIOS type 1 fields. + /// + /// Specify SMBIOS type 1 fields. + [DataMember(Name = "smbios1", EmitDefaultValue = false)] + public string Smbios1 { get; set; } + + /// + /// The number of CPUs. Please use option -sockets instead. + /// + /// The number of CPUs. Please use option -sockets instead. + [DataMember(Name = "smp", EmitDefaultValue = false)] + public Int64 Smp { get; set; } + + /// + /// Timestamp for snapshots. + /// + /// Timestamp for snapshots. + [DataMember(Name = "snaptime", EmitDefaultValue = false)] + public Int64 Snaptime { get; set; } + + /// + /// The number of CPU sockets. + /// + /// The number of CPU sockets. + [DataMember(Name = "sockets", EmitDefaultValue = false)] + public Int64 Sockets { get; set; } + + /// + /// Configure additional enhancements for SPICE. + /// + /// Configure additional enhancements for SPICE. + [DataMember(Name = "spice_enhancements", EmitDefaultValue = false)] + public string SpiceEnhancements { get; set; } + + /// + /// cloud-init: Setup public SSH keys (one key per line, OpenSSH format). + /// + /// cloud-init: Setup public SSH keys (one key per line, OpenSSH format). + [DataMember(Name = "sshkeys", EmitDefaultValue = false)] + public string Sshkeys { get; set; } + + /// + /// Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'. + /// + /// Set the initial date of the real time clock. Valid format for date are:'now' or '2006-06-17T16:01:21' or '2006-06-17'. + [DataMember(Name = "startdate", EmitDefaultValue = false)] + public string Startdate { get; set; } + + /// + /// Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped. + /// + /// Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped. + [DataMember(Name = "startup", EmitDefaultValue = false)] + public string Startup { get; set; } + + /// + /// Enable/disable the USB tablet device. + /// + /// Enable/disable the USB tablet device. + [DataMember(Name = "tablet", EmitDefaultValue = false)] + public Int64 Tablet { get; set; } + + /// + /// Tags of the VM. This is only meta information. + /// + /// Tags of the VM. This is only meta information. + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Enable/disable time drift fix. + /// + /// Enable/disable time drift fix. + [DataMember(Name = "tdf", EmitDefaultValue = false)] + public Int64 Tdf { get; set; } + + /// + /// Enable/disable Template. + /// + /// Enable/disable Template. + [DataMember(Name = "template", EmitDefaultValue = false)] + public Int64 Template { get; set; } + + /// + /// Configure a Disk for storing TPM state. The format is fixed to 'raw'. + /// + /// Configure a Disk for storing TPM state. The format is fixed to 'raw'. + [DataMember(Name = "tpmstate0", EmitDefaultValue = false)] + public string Tpmstate0 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused0", EmitDefaultValue = false)] + public string Unused0 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused1", EmitDefaultValue = false)] + public string Unused1 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused2", EmitDefaultValue = false)] + public string Unused2 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused3", EmitDefaultValue = false)] + public string Unused3 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused4", EmitDefaultValue = false)] + public string Unused4 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused5", EmitDefaultValue = false)] + public string Unused5 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused6", EmitDefaultValue = false)] + public string Unused6 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused7", EmitDefaultValue = false)] + public string Unused7 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused8", EmitDefaultValue = false)] + public string Unused8 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused9", EmitDefaultValue = false)] + public string Unused9 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused10", EmitDefaultValue = false)] + public string Unused10 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused11", EmitDefaultValue = false)] + public string Unused11 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused12", EmitDefaultValue = false)] + public string Unused12 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused13", EmitDefaultValue = false)] + public string Unused13 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused14", EmitDefaultValue = false)] + public string Unused14 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused15", EmitDefaultValue = false)] + public string Unused15 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused16", EmitDefaultValue = false)] + public string Unused16 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused17", EmitDefaultValue = false)] + public string Unused17 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused18", EmitDefaultValue = false)] + public string Unused18 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused19", EmitDefaultValue = false)] + public string Unused19 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused20", EmitDefaultValue = false)] + public string Unused20 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused21", EmitDefaultValue = false)] + public string Unused21 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused22", EmitDefaultValue = false)] + public string Unused22 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused23", EmitDefaultValue = false)] + public string Unused23 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused24", EmitDefaultValue = false)] + public string Unused24 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused25", EmitDefaultValue = false)] + public string Unused25 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused26", EmitDefaultValue = false)] + public string Unused26 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused27", EmitDefaultValue = false)] + public string Unused27 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused28", EmitDefaultValue = false)] + public string Unused28 { get; set; } + + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + /// + /// Reference to unused volumes. This is used internally, and should not be modified manually. + [DataMember(Name = "unused29", EmitDefaultValue = false)] + public string Unused29 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb0", EmitDefaultValue = false)] + public string Usb0 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb1", EmitDefaultValue = false)] + public string Usb1 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb2", EmitDefaultValue = false)] + public string Usb2 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb3", EmitDefaultValue = false)] + public string Usb3 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb4", EmitDefaultValue = false)] + public string Usb4 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb5", EmitDefaultValue = false)] + public string Usb5 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb6", EmitDefaultValue = false)] + public string Usb6 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb7", EmitDefaultValue = false)] + public string Usb7 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb8", EmitDefaultValue = false)] + public string Usb8 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb9", EmitDefaultValue = false)] + public string Usb9 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb10", EmitDefaultValue = false)] + public string Usb10 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb11", EmitDefaultValue = false)] + public string Usb11 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb12", EmitDefaultValue = false)] + public string Usb12 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb13", EmitDefaultValue = false)] + public string Usb13 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb14", EmitDefaultValue = false)] + public string Usb14 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb15", EmitDefaultValue = false)] + public string Usb15 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb16", EmitDefaultValue = false)] + public string Usb16 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb17", EmitDefaultValue = false)] + public string Usb17 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb18", EmitDefaultValue = false)] + public string Usb18 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb19", EmitDefaultValue = false)] + public string Usb19 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb20", EmitDefaultValue = false)] + public string Usb20 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb21", EmitDefaultValue = false)] + public string Usb21 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb22", EmitDefaultValue = false)] + public string Usb22 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb23", EmitDefaultValue = false)] + public string Usb23 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb24", EmitDefaultValue = false)] + public string Usb24 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb25", EmitDefaultValue = false)] + public string Usb25 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb26", EmitDefaultValue = false)] + public string Usb26 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb27", EmitDefaultValue = false)] + public string Usb27 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb28", EmitDefaultValue = false)] + public string Usb28 { get; set; } + + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + /// + /// Configure an USB device (n is 0 to 4, for machine version >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + [DataMember(Name = "usb29", EmitDefaultValue = false)] + public string Usb29 { get; set; } + + /// + /// Number of hotplugged vcpus. + /// + /// Number of hotplugged vcpus. + [DataMember(Name = "vcpus", EmitDefaultValue = false)] + public Int64 Vcpus { get; set; } + + /// + /// Configure the VGA hardware. + /// + /// Configure the VGA hardware. + [DataMember(Name = "vga", EmitDefaultValue = false)] + public string Vga { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio0", EmitDefaultValue = false)] + public string Virtio0 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio1", EmitDefaultValue = false)] + public string Virtio1 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio2", EmitDefaultValue = false)] + public string Virtio2 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio3", EmitDefaultValue = false)] + public string Virtio3 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio4", EmitDefaultValue = false)] + public string Virtio4 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio5", EmitDefaultValue = false)] + public string Virtio5 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio6", EmitDefaultValue = false)] + public string Virtio6 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio7", EmitDefaultValue = false)] + public string Virtio7 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio8", EmitDefaultValue = false)] + public string Virtio8 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio9", EmitDefaultValue = false)] + public string Virtio9 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio10", EmitDefaultValue = false)] + public string Virtio10 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio11", EmitDefaultValue = false)] + public string Virtio11 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio12", EmitDefaultValue = false)] + public string Virtio12 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio13", EmitDefaultValue = false)] + public string Virtio13 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio14", EmitDefaultValue = false)] + public string Virtio14 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio15", EmitDefaultValue = false)] + public string Virtio15 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio16", EmitDefaultValue = false)] + public string Virtio16 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio17", EmitDefaultValue = false)] + public string Virtio17 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio18", EmitDefaultValue = false)] + public string Virtio18 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio19", EmitDefaultValue = false)] + public string Virtio19 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio20", EmitDefaultValue = false)] + public string Virtio20 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio21", EmitDefaultValue = false)] + public string Virtio21 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio22", EmitDefaultValue = false)] + public string Virtio22 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio23", EmitDefaultValue = false)] + public string Virtio23 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio24", EmitDefaultValue = false)] + public string Virtio24 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio25", EmitDefaultValue = false)] + public string Virtio25 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio26", EmitDefaultValue = false)] + public string Virtio26 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio27", EmitDefaultValue = false)] + public string Virtio27 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio28", EmitDefaultValue = false)] + public string Virtio28 { get; set; } + + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + /// + /// Use volume as VIRTIO hard disk (n is 0 to 15). + [DataMember(Name = "virtio29", EmitDefaultValue = false)] + public string Virtio29 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs0", EmitDefaultValue = false)] + public string Virtiofs0 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs1", EmitDefaultValue = false)] + public string Virtiofs1 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs2", EmitDefaultValue = false)] + public string Virtiofs2 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs3", EmitDefaultValue = false)] + public string Virtiofs3 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs4", EmitDefaultValue = false)] + public string Virtiofs4 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs5", EmitDefaultValue = false)] + public string Virtiofs5 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs6", EmitDefaultValue = false)] + public string Virtiofs6 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs7", EmitDefaultValue = false)] + public string Virtiofs7 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs8", EmitDefaultValue = false)] + public string Virtiofs8 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs9", EmitDefaultValue = false)] + public string Virtiofs9 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs10", EmitDefaultValue = false)] + public string Virtiofs10 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs11", EmitDefaultValue = false)] + public string Virtiofs11 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs12", EmitDefaultValue = false)] + public string Virtiofs12 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs13", EmitDefaultValue = false)] + public string Virtiofs13 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs14", EmitDefaultValue = false)] + public string Virtiofs14 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs15", EmitDefaultValue = false)] + public string Virtiofs15 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs16", EmitDefaultValue = false)] + public string Virtiofs16 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs17", EmitDefaultValue = false)] + public string Virtiofs17 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs18", EmitDefaultValue = false)] + public string Virtiofs18 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs19", EmitDefaultValue = false)] + public string Virtiofs19 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs20", EmitDefaultValue = false)] + public string Virtiofs20 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs21", EmitDefaultValue = false)] + public string Virtiofs21 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs22", EmitDefaultValue = false)] + public string Virtiofs22 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs23", EmitDefaultValue = false)] + public string Virtiofs23 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs24", EmitDefaultValue = false)] + public string Virtiofs24 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs25", EmitDefaultValue = false)] + public string Virtiofs25 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs26", EmitDefaultValue = false)] + public string Virtiofs26 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs27", EmitDefaultValue = false)] + public string Virtiofs27 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs28", EmitDefaultValue = false)] + public string Virtiofs28 { get; set; } + + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + /// + /// Configuration for sharing a directory between host and guest using Virtio-fs. + [DataMember(Name = "virtiofs29", EmitDefaultValue = false)] + public string Virtiofs29 { get; set; } + + /// + /// Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. + /// + /// Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. + [DataMember(Name = "vmgenid", EmitDefaultValue = false)] + public string Vmgenid { get; set; } + + /// + /// Reference to a volume which stores the VM state. This is used internally for snapshots. + /// + /// Reference to a volume which stores the VM state. This is used internally for snapshots. + [DataMember(Name = "vmstate", EmitDefaultValue = false)] + public string Vmstate { get; set; } + + /// + /// Default storage for VM state volumes/files. + /// + /// Default storage for VM state volumes/files. + [DataMember(Name = "vmstatestorage", EmitDefaultValue = false)] + public string Vmstatestorage { get; set; } + + /// + /// Create a virtual hardware watchdog device. + /// + /// Create a virtual hardware watchdog device. + [DataMember(Name = "watchdog", EmitDefaultValue = false)] + public string Watchdog { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMConfig200ResponseData {\n"); + sb.Append(" Acpi: ").Append(Acpi).Append("\n"); + sb.Append(" Affinity: ").Append(Affinity).Append("\n"); + sb.Append(" Agent: ").Append(Agent).Append("\n"); + sb.Append(" AllowKsm: ").Append(AllowKsm).Append("\n"); + sb.Append(" AmdSev: ").Append(AmdSev).Append("\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" Args: ").Append(Args).Append("\n"); + sb.Append(" Audio0: ").Append(Audio0).Append("\n"); + sb.Append(" Autostart: ").Append(Autostart).Append("\n"); + sb.Append(" Balloon: ").Append(Balloon).Append("\n"); + sb.Append(" Bios: ").Append(Bios).Append("\n"); + sb.Append(" Boot: ").Append(Boot).Append("\n"); + sb.Append(" Bootdisk: ").Append(Bootdisk).Append("\n"); + sb.Append(" Cdrom: ").Append(Cdrom).Append("\n"); + sb.Append(" Cicustom: ").Append(Cicustom).Append("\n"); + sb.Append(" Cipassword: ").Append(Cipassword).Append("\n"); + sb.Append(" Citype: ").Append(Citype).Append("\n"); + sb.Append(" Ciupgrade: ").Append(Ciupgrade).Append("\n"); + sb.Append(" Ciuser: ").Append(Ciuser).Append("\n"); + sb.Append(" Cores: ").Append(Cores).Append("\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpulimit: ").Append(Cpulimit).Append("\n"); + sb.Append(" Cpuunits: ").Append(Cpuunits).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Efidisk0: ").Append(Efidisk0).Append("\n"); + sb.Append(" Freeze: ").Append(Freeze).Append("\n"); + sb.Append(" Hookscript: ").Append(Hookscript).Append("\n"); + sb.Append(" Hostpci0: ").Append(Hostpci0).Append("\n"); + sb.Append(" Hostpci1: ").Append(Hostpci1).Append("\n"); + sb.Append(" Hostpci2: ").Append(Hostpci2).Append("\n"); + sb.Append(" Hostpci3: ").Append(Hostpci3).Append("\n"); + sb.Append(" Hostpci4: ").Append(Hostpci4).Append("\n"); + sb.Append(" Hostpci5: ").Append(Hostpci5).Append("\n"); + sb.Append(" Hostpci6: ").Append(Hostpci6).Append("\n"); + sb.Append(" Hostpci7: ").Append(Hostpci7).Append("\n"); + sb.Append(" Hostpci8: ").Append(Hostpci8).Append("\n"); + sb.Append(" Hostpci9: ").Append(Hostpci9).Append("\n"); + sb.Append(" Hostpci10: ").Append(Hostpci10).Append("\n"); + sb.Append(" Hostpci11: ").Append(Hostpci11).Append("\n"); + sb.Append(" Hostpci12: ").Append(Hostpci12).Append("\n"); + sb.Append(" Hostpci13: ").Append(Hostpci13).Append("\n"); + sb.Append(" Hostpci14: ").Append(Hostpci14).Append("\n"); + sb.Append(" Hostpci15: ").Append(Hostpci15).Append("\n"); + sb.Append(" Hostpci16: ").Append(Hostpci16).Append("\n"); + sb.Append(" Hostpci17: ").Append(Hostpci17).Append("\n"); + sb.Append(" Hostpci18: ").Append(Hostpci18).Append("\n"); + sb.Append(" Hostpci19: ").Append(Hostpci19).Append("\n"); + sb.Append(" Hostpci20: ").Append(Hostpci20).Append("\n"); + sb.Append(" Hostpci21: ").Append(Hostpci21).Append("\n"); + sb.Append(" Hostpci22: ").Append(Hostpci22).Append("\n"); + sb.Append(" Hostpci23: ").Append(Hostpci23).Append("\n"); + sb.Append(" Hostpci24: ").Append(Hostpci24).Append("\n"); + sb.Append(" Hostpci25: ").Append(Hostpci25).Append("\n"); + sb.Append(" Hostpci26: ").Append(Hostpci26).Append("\n"); + sb.Append(" Hostpci27: ").Append(Hostpci27).Append("\n"); + sb.Append(" Hostpci28: ").Append(Hostpci28).Append("\n"); + sb.Append(" Hostpci29: ").Append(Hostpci29).Append("\n"); + sb.Append(" Hotplug: ").Append(Hotplug).Append("\n"); + sb.Append(" Hugepages: ").Append(Hugepages).Append("\n"); + sb.Append(" Ide0: ").Append(Ide0).Append("\n"); + sb.Append(" Ide1: ").Append(Ide1).Append("\n"); + sb.Append(" Ide2: ").Append(Ide2).Append("\n"); + sb.Append(" Ide3: ").Append(Ide3).Append("\n"); + sb.Append(" Ide4: ").Append(Ide4).Append("\n"); + sb.Append(" Ide5: ").Append(Ide5).Append("\n"); + sb.Append(" Ide6: ").Append(Ide6).Append("\n"); + sb.Append(" Ide7: ").Append(Ide7).Append("\n"); + sb.Append(" Ide8: ").Append(Ide8).Append("\n"); + sb.Append(" Ide9: ").Append(Ide9).Append("\n"); + sb.Append(" Ide10: ").Append(Ide10).Append("\n"); + sb.Append(" Ide11: ").Append(Ide11).Append("\n"); + sb.Append(" Ide12: ").Append(Ide12).Append("\n"); + sb.Append(" Ide13: ").Append(Ide13).Append("\n"); + sb.Append(" Ide14: ").Append(Ide14).Append("\n"); + sb.Append(" Ide15: ").Append(Ide15).Append("\n"); + sb.Append(" Ide16: ").Append(Ide16).Append("\n"); + sb.Append(" Ide17: ").Append(Ide17).Append("\n"); + sb.Append(" Ide18: ").Append(Ide18).Append("\n"); + sb.Append(" Ide19: ").Append(Ide19).Append("\n"); + sb.Append(" Ide20: ").Append(Ide20).Append("\n"); + sb.Append(" Ide21: ").Append(Ide21).Append("\n"); + sb.Append(" Ide22: ").Append(Ide22).Append("\n"); + sb.Append(" Ide23: ").Append(Ide23).Append("\n"); + sb.Append(" Ide24: ").Append(Ide24).Append("\n"); + sb.Append(" Ide25: ").Append(Ide25).Append("\n"); + sb.Append(" Ide26: ").Append(Ide26).Append("\n"); + sb.Append(" Ide27: ").Append(Ide27).Append("\n"); + sb.Append(" Ide28: ").Append(Ide28).Append("\n"); + sb.Append(" Ide29: ").Append(Ide29).Append("\n"); + sb.Append(" IntelTdx: ").Append(IntelTdx).Append("\n"); + sb.Append(" Ipconfig0: ").Append(Ipconfig0).Append("\n"); + sb.Append(" Ipconfig1: ").Append(Ipconfig1).Append("\n"); + sb.Append(" Ipconfig2: ").Append(Ipconfig2).Append("\n"); + sb.Append(" Ipconfig3: ").Append(Ipconfig3).Append("\n"); + sb.Append(" Ipconfig4: ").Append(Ipconfig4).Append("\n"); + sb.Append(" Ipconfig5: ").Append(Ipconfig5).Append("\n"); + sb.Append(" Ipconfig6: ").Append(Ipconfig6).Append("\n"); + sb.Append(" Ipconfig7: ").Append(Ipconfig7).Append("\n"); + sb.Append(" Ipconfig8: ").Append(Ipconfig8).Append("\n"); + sb.Append(" Ipconfig9: ").Append(Ipconfig9).Append("\n"); + sb.Append(" Ipconfig10: ").Append(Ipconfig10).Append("\n"); + sb.Append(" Ipconfig11: ").Append(Ipconfig11).Append("\n"); + sb.Append(" Ipconfig12: ").Append(Ipconfig12).Append("\n"); + sb.Append(" Ipconfig13: ").Append(Ipconfig13).Append("\n"); + sb.Append(" Ipconfig14: ").Append(Ipconfig14).Append("\n"); + sb.Append(" Ipconfig15: ").Append(Ipconfig15).Append("\n"); + sb.Append(" Ipconfig16: ").Append(Ipconfig16).Append("\n"); + sb.Append(" Ipconfig17: ").Append(Ipconfig17).Append("\n"); + sb.Append(" Ipconfig18: ").Append(Ipconfig18).Append("\n"); + sb.Append(" Ipconfig19: ").Append(Ipconfig19).Append("\n"); + sb.Append(" Ipconfig20: ").Append(Ipconfig20).Append("\n"); + sb.Append(" Ipconfig21: ").Append(Ipconfig21).Append("\n"); + sb.Append(" Ipconfig22: ").Append(Ipconfig22).Append("\n"); + sb.Append(" Ipconfig23: ").Append(Ipconfig23).Append("\n"); + sb.Append(" Ipconfig24: ").Append(Ipconfig24).Append("\n"); + sb.Append(" Ipconfig25: ").Append(Ipconfig25).Append("\n"); + sb.Append(" Ipconfig26: ").Append(Ipconfig26).Append("\n"); + sb.Append(" Ipconfig27: ").Append(Ipconfig27).Append("\n"); + sb.Append(" Ipconfig28: ").Append(Ipconfig28).Append("\n"); + sb.Append(" Ipconfig29: ").Append(Ipconfig29).Append("\n"); + sb.Append(" Ivshmem: ").Append(Ivshmem).Append("\n"); + sb.Append(" Keephugepages: ").Append(Keephugepages).Append("\n"); + sb.Append(" Keyboard: ").Append(Keyboard).Append("\n"); + sb.Append(" Kvm: ").Append(Kvm).Append("\n"); + sb.Append(" Localtime: ").Append(Localtime).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Machine: ").Append(Machine).Append("\n"); + sb.Append(" Memory: ").Append(Memory).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append(" MigrateDowntime: ").Append(MigrateDowntime).Append("\n"); + sb.Append(" MigrateSpeed: ").Append(MigrateSpeed).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Nameserver: ").Append(Nameserver).Append("\n"); + sb.Append(" Net0: ").Append(Net0).Append("\n"); + sb.Append(" Net1: ").Append(Net1).Append("\n"); + sb.Append(" Net2: ").Append(Net2).Append("\n"); + sb.Append(" Net3: ").Append(Net3).Append("\n"); + sb.Append(" Net4: ").Append(Net4).Append("\n"); + sb.Append(" Net5: ").Append(Net5).Append("\n"); + sb.Append(" Net6: ").Append(Net6).Append("\n"); + sb.Append(" Net7: ").Append(Net7).Append("\n"); + sb.Append(" Net8: ").Append(Net8).Append("\n"); + sb.Append(" Net9: ").Append(Net9).Append("\n"); + sb.Append(" Net10: ").Append(Net10).Append("\n"); + sb.Append(" Net11: ").Append(Net11).Append("\n"); + sb.Append(" Net12: ").Append(Net12).Append("\n"); + sb.Append(" Net13: ").Append(Net13).Append("\n"); + sb.Append(" Net14: ").Append(Net14).Append("\n"); + sb.Append(" Net15: ").Append(Net15).Append("\n"); + sb.Append(" Net16: ").Append(Net16).Append("\n"); + sb.Append(" Net17: ").Append(Net17).Append("\n"); + sb.Append(" Net18: ").Append(Net18).Append("\n"); + sb.Append(" Net19: ").Append(Net19).Append("\n"); + sb.Append(" Net20: ").Append(Net20).Append("\n"); + sb.Append(" Net21: ").Append(Net21).Append("\n"); + sb.Append(" Net22: ").Append(Net22).Append("\n"); + sb.Append(" Net23: ").Append(Net23).Append("\n"); + sb.Append(" Net24: ").Append(Net24).Append("\n"); + sb.Append(" Net25: ").Append(Net25).Append("\n"); + sb.Append(" Net26: ").Append(Net26).Append("\n"); + sb.Append(" Net27: ").Append(Net27).Append("\n"); + sb.Append(" Net28: ").Append(Net28).Append("\n"); + sb.Append(" Net29: ").Append(Net29).Append("\n"); + sb.Append(" Numa: ").Append(Numa).Append("\n"); + sb.Append(" Numa0: ").Append(Numa0).Append("\n"); + sb.Append(" Numa1: ").Append(Numa1).Append("\n"); + sb.Append(" Numa2: ").Append(Numa2).Append("\n"); + sb.Append(" Numa3: ").Append(Numa3).Append("\n"); + sb.Append(" Numa4: ").Append(Numa4).Append("\n"); + sb.Append(" Numa5: ").Append(Numa5).Append("\n"); + sb.Append(" Numa6: ").Append(Numa6).Append("\n"); + sb.Append(" Numa7: ").Append(Numa7).Append("\n"); + sb.Append(" Numa8: ").Append(Numa8).Append("\n"); + sb.Append(" Numa9: ").Append(Numa9).Append("\n"); + sb.Append(" Numa10: ").Append(Numa10).Append("\n"); + sb.Append(" Numa11: ").Append(Numa11).Append("\n"); + sb.Append(" Numa12: ").Append(Numa12).Append("\n"); + sb.Append(" Numa13: ").Append(Numa13).Append("\n"); + sb.Append(" Numa14: ").Append(Numa14).Append("\n"); + sb.Append(" Numa15: ").Append(Numa15).Append("\n"); + sb.Append(" Numa16: ").Append(Numa16).Append("\n"); + sb.Append(" Numa17: ").Append(Numa17).Append("\n"); + sb.Append(" Numa18: ").Append(Numa18).Append("\n"); + sb.Append(" Numa19: ").Append(Numa19).Append("\n"); + sb.Append(" Numa20: ").Append(Numa20).Append("\n"); + sb.Append(" Numa21: ").Append(Numa21).Append("\n"); + sb.Append(" Numa22: ").Append(Numa22).Append("\n"); + sb.Append(" Numa23: ").Append(Numa23).Append("\n"); + sb.Append(" Numa24: ").Append(Numa24).Append("\n"); + sb.Append(" Numa25: ").Append(Numa25).Append("\n"); + sb.Append(" Numa26: ").Append(Numa26).Append("\n"); + sb.Append(" Numa27: ").Append(Numa27).Append("\n"); + sb.Append(" Numa28: ").Append(Numa28).Append("\n"); + sb.Append(" Numa29: ").Append(Numa29).Append("\n"); + sb.Append(" Onboot: ").Append(Onboot).Append("\n"); + sb.Append(" Ostype: ").Append(Ostype).Append("\n"); + sb.Append(" Parallel0: ").Append(Parallel0).Append("\n"); + sb.Append(" Parallel1: ").Append(Parallel1).Append("\n"); + sb.Append(" Parallel2: ").Append(Parallel2).Append("\n"); + sb.Append(" Parallel3: ").Append(Parallel3).Append("\n"); + sb.Append(" Parallel4: ").Append(Parallel4).Append("\n"); + sb.Append(" Parallel5: ").Append(Parallel5).Append("\n"); + sb.Append(" Parallel6: ").Append(Parallel6).Append("\n"); + sb.Append(" Parallel7: ").Append(Parallel7).Append("\n"); + sb.Append(" Parallel8: ").Append(Parallel8).Append("\n"); + sb.Append(" Parallel9: ").Append(Parallel9).Append("\n"); + sb.Append(" Parallel10: ").Append(Parallel10).Append("\n"); + sb.Append(" Parallel11: ").Append(Parallel11).Append("\n"); + sb.Append(" Parallel12: ").Append(Parallel12).Append("\n"); + sb.Append(" Parallel13: ").Append(Parallel13).Append("\n"); + sb.Append(" Parallel14: ").Append(Parallel14).Append("\n"); + sb.Append(" Parallel15: ").Append(Parallel15).Append("\n"); + sb.Append(" Parallel16: ").Append(Parallel16).Append("\n"); + sb.Append(" Parallel17: ").Append(Parallel17).Append("\n"); + sb.Append(" Parallel18: ").Append(Parallel18).Append("\n"); + sb.Append(" Parallel19: ").Append(Parallel19).Append("\n"); + sb.Append(" Parallel20: ").Append(Parallel20).Append("\n"); + sb.Append(" Parallel21: ").Append(Parallel21).Append("\n"); + sb.Append(" Parallel22: ").Append(Parallel22).Append("\n"); + sb.Append(" Parallel23: ").Append(Parallel23).Append("\n"); + sb.Append(" Parallel24: ").Append(Parallel24).Append("\n"); + sb.Append(" Parallel25: ").Append(Parallel25).Append("\n"); + sb.Append(" Parallel26: ").Append(Parallel26).Append("\n"); + sb.Append(" Parallel27: ").Append(Parallel27).Append("\n"); + sb.Append(" Parallel28: ").Append(Parallel28).Append("\n"); + sb.Append(" Parallel29: ").Append(Parallel29).Append("\n"); + sb.Append(" Parent: ").Append(Parent).Append("\n"); + sb.Append(" Protection: ").Append(Protection).Append("\n"); + sb.Append(" Reboot: ").Append(Reboot).Append("\n"); + sb.Append(" Rng0: ").Append(Rng0).Append("\n"); + sb.Append(" RunningNetsHostMtu: ").Append(RunningNetsHostMtu).Append("\n"); + sb.Append(" Runningcpu: ").Append(Runningcpu).Append("\n"); + sb.Append(" Runningmachine: ").Append(Runningmachine).Append("\n"); + sb.Append(" Sata0: ").Append(Sata0).Append("\n"); + sb.Append(" Sata1: ").Append(Sata1).Append("\n"); + sb.Append(" Sata2: ").Append(Sata2).Append("\n"); + sb.Append(" Sata3: ").Append(Sata3).Append("\n"); + sb.Append(" Sata4: ").Append(Sata4).Append("\n"); + sb.Append(" Sata5: ").Append(Sata5).Append("\n"); + sb.Append(" Sata6: ").Append(Sata6).Append("\n"); + sb.Append(" Sata7: ").Append(Sata7).Append("\n"); + sb.Append(" Sata8: ").Append(Sata8).Append("\n"); + sb.Append(" Sata9: ").Append(Sata9).Append("\n"); + sb.Append(" Sata10: ").Append(Sata10).Append("\n"); + sb.Append(" Sata11: ").Append(Sata11).Append("\n"); + sb.Append(" Sata12: ").Append(Sata12).Append("\n"); + sb.Append(" Sata13: ").Append(Sata13).Append("\n"); + sb.Append(" Sata14: ").Append(Sata14).Append("\n"); + sb.Append(" Sata15: ").Append(Sata15).Append("\n"); + sb.Append(" Sata16: ").Append(Sata16).Append("\n"); + sb.Append(" Sata17: ").Append(Sata17).Append("\n"); + sb.Append(" Sata18: ").Append(Sata18).Append("\n"); + sb.Append(" Sata19: ").Append(Sata19).Append("\n"); + sb.Append(" Sata20: ").Append(Sata20).Append("\n"); + sb.Append(" Sata21: ").Append(Sata21).Append("\n"); + sb.Append(" Sata22: ").Append(Sata22).Append("\n"); + sb.Append(" Sata23: ").Append(Sata23).Append("\n"); + sb.Append(" Sata24: ").Append(Sata24).Append("\n"); + sb.Append(" Sata25: ").Append(Sata25).Append("\n"); + sb.Append(" Sata26: ").Append(Sata26).Append("\n"); + sb.Append(" Sata27: ").Append(Sata27).Append("\n"); + sb.Append(" Sata28: ").Append(Sata28).Append("\n"); + sb.Append(" Sata29: ").Append(Sata29).Append("\n"); + sb.Append(" Scsi0: ").Append(Scsi0).Append("\n"); + sb.Append(" Scsi1: ").Append(Scsi1).Append("\n"); + sb.Append(" Scsi2: ").Append(Scsi2).Append("\n"); + sb.Append(" Scsi3: ").Append(Scsi3).Append("\n"); + sb.Append(" Scsi4: ").Append(Scsi4).Append("\n"); + sb.Append(" Scsi5: ").Append(Scsi5).Append("\n"); + sb.Append(" Scsi6: ").Append(Scsi6).Append("\n"); + sb.Append(" Scsi7: ").Append(Scsi7).Append("\n"); + sb.Append(" Scsi8: ").Append(Scsi8).Append("\n"); + sb.Append(" Scsi9: ").Append(Scsi9).Append("\n"); + sb.Append(" Scsi10: ").Append(Scsi10).Append("\n"); + sb.Append(" Scsi11: ").Append(Scsi11).Append("\n"); + sb.Append(" Scsi12: ").Append(Scsi12).Append("\n"); + sb.Append(" Scsi13: ").Append(Scsi13).Append("\n"); + sb.Append(" Scsi14: ").Append(Scsi14).Append("\n"); + sb.Append(" Scsi15: ").Append(Scsi15).Append("\n"); + sb.Append(" Scsi16: ").Append(Scsi16).Append("\n"); + sb.Append(" Scsi17: ").Append(Scsi17).Append("\n"); + sb.Append(" Scsi18: ").Append(Scsi18).Append("\n"); + sb.Append(" Scsi19: ").Append(Scsi19).Append("\n"); + sb.Append(" Scsi20: ").Append(Scsi20).Append("\n"); + sb.Append(" Scsi21: ").Append(Scsi21).Append("\n"); + sb.Append(" Scsi22: ").Append(Scsi22).Append("\n"); + sb.Append(" Scsi23: ").Append(Scsi23).Append("\n"); + sb.Append(" Scsi24: ").Append(Scsi24).Append("\n"); + sb.Append(" Scsi25: ").Append(Scsi25).Append("\n"); + sb.Append(" Scsi26: ").Append(Scsi26).Append("\n"); + sb.Append(" Scsi27: ").Append(Scsi27).Append("\n"); + sb.Append(" Scsi28: ").Append(Scsi28).Append("\n"); + sb.Append(" Scsi29: ").Append(Scsi29).Append("\n"); + sb.Append(" Scsihw: ").Append(Scsihw).Append("\n"); + sb.Append(" Searchdomain: ").Append(Searchdomain).Append("\n"); + sb.Append(" Serial0: ").Append(Serial0).Append("\n"); + sb.Append(" Serial1: ").Append(Serial1).Append("\n"); + sb.Append(" Serial2: ").Append(Serial2).Append("\n"); + sb.Append(" Serial3: ").Append(Serial3).Append("\n"); + sb.Append(" Serial4: ").Append(Serial4).Append("\n"); + sb.Append(" Serial5: ").Append(Serial5).Append("\n"); + sb.Append(" Serial6: ").Append(Serial6).Append("\n"); + sb.Append(" Serial7: ").Append(Serial7).Append("\n"); + sb.Append(" Serial8: ").Append(Serial8).Append("\n"); + sb.Append(" Serial9: ").Append(Serial9).Append("\n"); + sb.Append(" Serial10: ").Append(Serial10).Append("\n"); + sb.Append(" Serial11: ").Append(Serial11).Append("\n"); + sb.Append(" Serial12: ").Append(Serial12).Append("\n"); + sb.Append(" Serial13: ").Append(Serial13).Append("\n"); + sb.Append(" Serial14: ").Append(Serial14).Append("\n"); + sb.Append(" Serial15: ").Append(Serial15).Append("\n"); + sb.Append(" Serial16: ").Append(Serial16).Append("\n"); + sb.Append(" Serial17: ").Append(Serial17).Append("\n"); + sb.Append(" Serial18: ").Append(Serial18).Append("\n"); + sb.Append(" Serial19: ").Append(Serial19).Append("\n"); + sb.Append(" Serial20: ").Append(Serial20).Append("\n"); + sb.Append(" Serial21: ").Append(Serial21).Append("\n"); + sb.Append(" Serial22: ").Append(Serial22).Append("\n"); + sb.Append(" Serial23: ").Append(Serial23).Append("\n"); + sb.Append(" Serial24: ").Append(Serial24).Append("\n"); + sb.Append(" Serial25: ").Append(Serial25).Append("\n"); + sb.Append(" Serial26: ").Append(Serial26).Append("\n"); + sb.Append(" Serial27: ").Append(Serial27).Append("\n"); + sb.Append(" Serial28: ").Append(Serial28).Append("\n"); + sb.Append(" Serial29: ").Append(Serial29).Append("\n"); + sb.Append(" Shares: ").Append(Shares).Append("\n"); + sb.Append(" Smbios1: ").Append(Smbios1).Append("\n"); + sb.Append(" Smp: ").Append(Smp).Append("\n"); + sb.Append(" Snaptime: ").Append(Snaptime).Append("\n"); + sb.Append(" Sockets: ").Append(Sockets).Append("\n"); + sb.Append(" SpiceEnhancements: ").Append(SpiceEnhancements).Append("\n"); + sb.Append(" Sshkeys: ").Append(Sshkeys).Append("\n"); + sb.Append(" Startdate: ").Append(Startdate).Append("\n"); + sb.Append(" Startup: ").Append(Startup).Append("\n"); + sb.Append(" Tablet: ").Append(Tablet).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Tdf: ").Append(Tdf).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Tpmstate0: ").Append(Tpmstate0).Append("\n"); + sb.Append(" Unused0: ").Append(Unused0).Append("\n"); + sb.Append(" Unused1: ").Append(Unused1).Append("\n"); + sb.Append(" Unused2: ").Append(Unused2).Append("\n"); + sb.Append(" Unused3: ").Append(Unused3).Append("\n"); + sb.Append(" Unused4: ").Append(Unused4).Append("\n"); + sb.Append(" Unused5: ").Append(Unused5).Append("\n"); + sb.Append(" Unused6: ").Append(Unused6).Append("\n"); + sb.Append(" Unused7: ").Append(Unused7).Append("\n"); + sb.Append(" Unused8: ").Append(Unused8).Append("\n"); + sb.Append(" Unused9: ").Append(Unused9).Append("\n"); + sb.Append(" Unused10: ").Append(Unused10).Append("\n"); + sb.Append(" Unused11: ").Append(Unused11).Append("\n"); + sb.Append(" Unused12: ").Append(Unused12).Append("\n"); + sb.Append(" Unused13: ").Append(Unused13).Append("\n"); + sb.Append(" Unused14: ").Append(Unused14).Append("\n"); + sb.Append(" Unused15: ").Append(Unused15).Append("\n"); + sb.Append(" Unused16: ").Append(Unused16).Append("\n"); + sb.Append(" Unused17: ").Append(Unused17).Append("\n"); + sb.Append(" Unused18: ").Append(Unused18).Append("\n"); + sb.Append(" Unused19: ").Append(Unused19).Append("\n"); + sb.Append(" Unused20: ").Append(Unused20).Append("\n"); + sb.Append(" Unused21: ").Append(Unused21).Append("\n"); + sb.Append(" Unused22: ").Append(Unused22).Append("\n"); + sb.Append(" Unused23: ").Append(Unused23).Append("\n"); + sb.Append(" Unused24: ").Append(Unused24).Append("\n"); + sb.Append(" Unused25: ").Append(Unused25).Append("\n"); + sb.Append(" Unused26: ").Append(Unused26).Append("\n"); + sb.Append(" Unused27: ").Append(Unused27).Append("\n"); + sb.Append(" Unused28: ").Append(Unused28).Append("\n"); + sb.Append(" Unused29: ").Append(Unused29).Append("\n"); + sb.Append(" Usb0: ").Append(Usb0).Append("\n"); + sb.Append(" Usb1: ").Append(Usb1).Append("\n"); + sb.Append(" Usb2: ").Append(Usb2).Append("\n"); + sb.Append(" Usb3: ").Append(Usb3).Append("\n"); + sb.Append(" Usb4: ").Append(Usb4).Append("\n"); + sb.Append(" Usb5: ").Append(Usb5).Append("\n"); + sb.Append(" Usb6: ").Append(Usb6).Append("\n"); + sb.Append(" Usb7: ").Append(Usb7).Append("\n"); + sb.Append(" Usb8: ").Append(Usb8).Append("\n"); + sb.Append(" Usb9: ").Append(Usb9).Append("\n"); + sb.Append(" Usb10: ").Append(Usb10).Append("\n"); + sb.Append(" Usb11: ").Append(Usb11).Append("\n"); + sb.Append(" Usb12: ").Append(Usb12).Append("\n"); + sb.Append(" Usb13: ").Append(Usb13).Append("\n"); + sb.Append(" Usb14: ").Append(Usb14).Append("\n"); + sb.Append(" Usb15: ").Append(Usb15).Append("\n"); + sb.Append(" Usb16: ").Append(Usb16).Append("\n"); + sb.Append(" Usb17: ").Append(Usb17).Append("\n"); + sb.Append(" Usb18: ").Append(Usb18).Append("\n"); + sb.Append(" Usb19: ").Append(Usb19).Append("\n"); + sb.Append(" Usb20: ").Append(Usb20).Append("\n"); + sb.Append(" Usb21: ").Append(Usb21).Append("\n"); + sb.Append(" Usb22: ").Append(Usb22).Append("\n"); + sb.Append(" Usb23: ").Append(Usb23).Append("\n"); + sb.Append(" Usb24: ").Append(Usb24).Append("\n"); + sb.Append(" Usb25: ").Append(Usb25).Append("\n"); + sb.Append(" Usb26: ").Append(Usb26).Append("\n"); + sb.Append(" Usb27: ").Append(Usb27).Append("\n"); + sb.Append(" Usb28: ").Append(Usb28).Append("\n"); + sb.Append(" Usb29: ").Append(Usb29).Append("\n"); + sb.Append(" Vcpus: ").Append(Vcpus).Append("\n"); + sb.Append(" Vga: ").Append(Vga).Append("\n"); + sb.Append(" Virtio0: ").Append(Virtio0).Append("\n"); + sb.Append(" Virtio1: ").Append(Virtio1).Append("\n"); + sb.Append(" Virtio2: ").Append(Virtio2).Append("\n"); + sb.Append(" Virtio3: ").Append(Virtio3).Append("\n"); + sb.Append(" Virtio4: ").Append(Virtio4).Append("\n"); + sb.Append(" Virtio5: ").Append(Virtio5).Append("\n"); + sb.Append(" Virtio6: ").Append(Virtio6).Append("\n"); + sb.Append(" Virtio7: ").Append(Virtio7).Append("\n"); + sb.Append(" Virtio8: ").Append(Virtio8).Append("\n"); + sb.Append(" Virtio9: ").Append(Virtio9).Append("\n"); + sb.Append(" Virtio10: ").Append(Virtio10).Append("\n"); + sb.Append(" Virtio11: ").Append(Virtio11).Append("\n"); + sb.Append(" Virtio12: ").Append(Virtio12).Append("\n"); + sb.Append(" Virtio13: ").Append(Virtio13).Append("\n"); + sb.Append(" Virtio14: ").Append(Virtio14).Append("\n"); + sb.Append(" Virtio15: ").Append(Virtio15).Append("\n"); + sb.Append(" Virtio16: ").Append(Virtio16).Append("\n"); + sb.Append(" Virtio17: ").Append(Virtio17).Append("\n"); + sb.Append(" Virtio18: ").Append(Virtio18).Append("\n"); + sb.Append(" Virtio19: ").Append(Virtio19).Append("\n"); + sb.Append(" Virtio20: ").Append(Virtio20).Append("\n"); + sb.Append(" Virtio21: ").Append(Virtio21).Append("\n"); + sb.Append(" Virtio22: ").Append(Virtio22).Append("\n"); + sb.Append(" Virtio23: ").Append(Virtio23).Append("\n"); + sb.Append(" Virtio24: ").Append(Virtio24).Append("\n"); + sb.Append(" Virtio25: ").Append(Virtio25).Append("\n"); + sb.Append(" Virtio26: ").Append(Virtio26).Append("\n"); + sb.Append(" Virtio27: ").Append(Virtio27).Append("\n"); + sb.Append(" Virtio28: ").Append(Virtio28).Append("\n"); + sb.Append(" Virtio29: ").Append(Virtio29).Append("\n"); + sb.Append(" Virtiofs0: ").Append(Virtiofs0).Append("\n"); + sb.Append(" Virtiofs1: ").Append(Virtiofs1).Append("\n"); + sb.Append(" Virtiofs2: ").Append(Virtiofs2).Append("\n"); + sb.Append(" Virtiofs3: ").Append(Virtiofs3).Append("\n"); + sb.Append(" Virtiofs4: ").Append(Virtiofs4).Append("\n"); + sb.Append(" Virtiofs5: ").Append(Virtiofs5).Append("\n"); + sb.Append(" Virtiofs6: ").Append(Virtiofs6).Append("\n"); + sb.Append(" Virtiofs7: ").Append(Virtiofs7).Append("\n"); + sb.Append(" Virtiofs8: ").Append(Virtiofs8).Append("\n"); + sb.Append(" Virtiofs9: ").Append(Virtiofs9).Append("\n"); + sb.Append(" Virtiofs10: ").Append(Virtiofs10).Append("\n"); + sb.Append(" Virtiofs11: ").Append(Virtiofs11).Append("\n"); + sb.Append(" Virtiofs12: ").Append(Virtiofs12).Append("\n"); + sb.Append(" Virtiofs13: ").Append(Virtiofs13).Append("\n"); + sb.Append(" Virtiofs14: ").Append(Virtiofs14).Append("\n"); + sb.Append(" Virtiofs15: ").Append(Virtiofs15).Append("\n"); + sb.Append(" Virtiofs16: ").Append(Virtiofs16).Append("\n"); + sb.Append(" Virtiofs17: ").Append(Virtiofs17).Append("\n"); + sb.Append(" Virtiofs18: ").Append(Virtiofs18).Append("\n"); + sb.Append(" Virtiofs19: ").Append(Virtiofs19).Append("\n"); + sb.Append(" Virtiofs20: ").Append(Virtiofs20).Append("\n"); + sb.Append(" Virtiofs21: ").Append(Virtiofs21).Append("\n"); + sb.Append(" Virtiofs22: ").Append(Virtiofs22).Append("\n"); + sb.Append(" Virtiofs23: ").Append(Virtiofs23).Append("\n"); + sb.Append(" Virtiofs24: ").Append(Virtiofs24).Append("\n"); + sb.Append(" Virtiofs25: ").Append(Virtiofs25).Append("\n"); + sb.Append(" Virtiofs26: ").Append(Virtiofs26).Append("\n"); + sb.Append(" Virtiofs27: ").Append(Virtiofs27).Append("\n"); + sb.Append(" Virtiofs28: ").Append(Virtiofs28).Append("\n"); + sb.Append(" Virtiofs29: ").Append(Virtiofs29).Append("\n"); + sb.Append(" Vmgenid: ").Append(Vmgenid).Append("\n"); + sb.Append(" Vmstate: ").Append(Vmstate).Append("\n"); + sb.Append(" Vmstatestorage: ").Append(Vmstatestorage).Append("\n"); + sb.Append(" Watchdog: ").Append(Watchdog).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMConfigPending200Response.cs b/src/ProxmoxSharp/Model/GetVMConfigPending200Response.cs new file mode 100644 index 0000000..af9d440 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMConfigPending200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMConfigPending200Response + /// + [DataContract(Name = "getVMConfigPending_200_response")] + public partial class GetVMConfigPending200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetVMConfigPending200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMConfigPending200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMConfigPending200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetVMConfigPending200ResponseDataInner.cs new file mode 100644 index 0000000..f1fd335 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMConfigPending200ResponseDataInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMConfigPending200ResponseDataInner + /// + [DataContract(Name = "getVMConfigPending_200_response_data_inner")] + public partial class GetVMConfigPending200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Indicates a pending delete request if present and not 0. The value 2 indicates a force-delete request.. + /// Configuration option name.. + /// Pending value.. + /// Current value.. + public GetVMConfigPending200ResponseDataInner(Int64 delete = default(Int64), string key = default(string), string pending = default(string), string value = default(string)) + { + this.Delete = delete; + this.Key = key; + this.Pending = pending; + this.Value = value; + } + + /// + /// Indicates a pending delete request if present and not 0. The value 2 indicates a force-delete request. + /// + /// Indicates a pending delete request if present and not 0. The value 2 indicates a force-delete request. + [DataMember(Name = "delete", EmitDefaultValue = false)] + public Int64 Delete { get; set; } + + /// + /// Configuration option name. + /// + /// Configuration option name. + [DataMember(Name = "key", EmitDefaultValue = false)] + public string Key { get; set; } + + /// + /// Pending value. + /// + /// Pending value. + [DataMember(Name = "pending", EmitDefaultValue = false)] + public string Pending { get; set; } + + /// + /// Current value. + /// + /// Current value. + [DataMember(Name = "value", EmitDefaultValue = false)] + public string Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMConfigPending200ResponseDataInner {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Pending: ").Append(Pending).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMFirewallOptions200Response.cs b/src/ProxmoxSharp/Model/GetVMFirewallOptions200Response.cs new file mode 100644 index 0000000..97ad09b --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMFirewallOptions200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMFirewallOptions200Response + /// + [DataContract(Name = "getVMFirewallOptions_200_response")] + public partial class GetVMFirewallOptions200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetVMFirewallOptions200Response(List errors = default(List), GetVMFirewallOptions200ResponseData data = default(GetVMFirewallOptions200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetVMFirewallOptions200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMFirewallOptions200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMFirewallOptions200ResponseData.cs b/src/ProxmoxSharp/Model/GetVMFirewallOptions200ResponseData.cs new file mode 100644 index 0000000..305ab3e --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMFirewallOptions200ResponseData.cs @@ -0,0 +1,174 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMFirewallOptions200ResponseData + /// + [DataContract(Name = "getVMFirewallOptions_200_response_data")] + public partial class GetVMFirewallOptions200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Enable DHCP.. + /// Enable/disable firewall rules.. + /// Enable default IP filters. This is equivalent to adding an empty ipfilter-net<id> ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface's MAC address. For containers the configured IP addresses will be implicitly added.. + /// Log level for incoming traffic.. + /// Log level for outgoing traffic.. + /// Enable/disable MAC address filter.. + /// Enable NDP (Neighbor Discovery Protocol).. + /// Input policy.. + /// Output policy.. + /// Allow sending Router Advertisement.. + public GetVMFirewallOptions200ResponseData(Int64 dhcp = default(Int64), Int64 enable = default(Int64), Int64 ipfilter = default(Int64), string logLevelIn = default(string), string logLevelOut = default(string), Int64 macfilter = default(Int64), Int64 ndp = default(Int64), string policyIn = default(string), string policyOut = default(string), Int64 radv = default(Int64)) + { + this.Dhcp = dhcp; + this.Enable = enable; + this.Ipfilter = ipfilter; + this.LogLevelIn = logLevelIn; + this.LogLevelOut = logLevelOut; + this.Macfilter = macfilter; + this.Ndp = ndp; + this.PolicyIn = policyIn; + this.PolicyOut = policyOut; + this.Radv = radv; + } + + /// + /// Enable DHCP. + /// + /// Enable DHCP. + [DataMember(Name = "dhcp", EmitDefaultValue = false)] + public Int64 Dhcp { get; set; } + + /// + /// Enable/disable firewall rules. + /// + /// Enable/disable firewall rules. + [DataMember(Name = "enable", EmitDefaultValue = false)] + public Int64 Enable { get; set; } + + /// + /// Enable default IP filters. This is equivalent to adding an empty ipfilter-net<id> ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface's MAC address. For containers the configured IP addresses will be implicitly added. + /// + /// Enable default IP filters. This is equivalent to adding an empty ipfilter-net<id> ipset for every interface. Such ipsets implicitly contain sane default restrictions such as restricting IPv6 link local addresses to the one derived from the interface's MAC address. For containers the configured IP addresses will be implicitly added. + [DataMember(Name = "ipfilter", EmitDefaultValue = false)] + public Int64 Ipfilter { get; set; } + + /// + /// Log level for incoming traffic. + /// + /// Log level for incoming traffic. + [DataMember(Name = "log_level_in", EmitDefaultValue = false)] + public string LogLevelIn { get; set; } + + /// + /// Log level for outgoing traffic. + /// + /// Log level for outgoing traffic. + [DataMember(Name = "log_level_out", EmitDefaultValue = false)] + public string LogLevelOut { get; set; } + + /// + /// Enable/disable MAC address filter. + /// + /// Enable/disable MAC address filter. + [DataMember(Name = "macfilter", EmitDefaultValue = false)] + public Int64 Macfilter { get; set; } + + /// + /// Enable NDP (Neighbor Discovery Protocol). + /// + /// Enable NDP (Neighbor Discovery Protocol). + [DataMember(Name = "ndp", EmitDefaultValue = false)] + public Int64 Ndp { get; set; } + + /// + /// Input policy. + /// + /// Input policy. + [DataMember(Name = "policy_in", EmitDefaultValue = false)] + public string PolicyIn { get; set; } + + /// + /// Output policy. + /// + /// Output policy. + [DataMember(Name = "policy_out", EmitDefaultValue = false)] + public string PolicyOut { get; set; } + + /// + /// Allow sending Router Advertisement. + /// + /// Allow sending Router Advertisement. + [DataMember(Name = "radv", EmitDefaultValue = false)] + public Int64 Radv { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMFirewallOptions200ResponseData {\n"); + sb.Append(" Dhcp: ").Append(Dhcp).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Ipfilter: ").Append(Ipfilter).Append("\n"); + sb.Append(" LogLevelIn: ").Append(LogLevelIn).Append("\n"); + sb.Append(" LogLevelOut: ").Append(LogLevelOut).Append("\n"); + sb.Append(" Macfilter: ").Append(Macfilter).Append("\n"); + sb.Append(" Ndp: ").Append(Ndp).Append("\n"); + sb.Append(" PolicyIn: ").Append(PolicyIn).Append("\n"); + sb.Append(" PolicyOut: ").Append(PolicyOut).Append("\n"); + sb.Append(" Radv: ").Append(Radv).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMRRD200Response.cs b/src/ProxmoxSharp/Model/GetVMRRD200Response.cs new file mode 100644 index 0000000..cdf73fe --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMRRD200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMRRD200Response + /// + [DataContract(Name = "getVMRRD_200_response")] + public partial class GetVMRRD200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetVMRRD200Response(List errors = default(List), GetVMRRD200ResponseData data = default(GetVMRRD200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetVMRRD200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMRRD200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMRRD200ResponseData.cs b/src/ProxmoxSharp/Model/GetVMRRD200ResponseData.cs new file mode 100644 index 0000000..8de5a59 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMRRD200ResponseData.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMRRD200ResponseData + /// + [DataContract(Name = "getVMRRD_200_response_data")] + public partial class GetVMRRD200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// filename. + public GetVMRRD200ResponseData(string filename = default(string)) + { + this.Filename = filename; + } + + /// + /// Gets or Sets Filename + /// + [DataMember(Name = "filename", EmitDefaultValue = false)] + public string Filename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMRRD200ResponseData {\n"); + sb.Append(" Filename: ").Append(Filename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMSnapshots200Response.cs b/src/ProxmoxSharp/Model/GetVMSnapshots200Response.cs new file mode 100644 index 0000000..0e08562 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMSnapshots200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMSnapshots200Response + /// + [DataContract(Name = "getVMSnapshots_200_response")] + public partial class GetVMSnapshots200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetVMSnapshots200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMSnapshots200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMSnapshots200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetVMSnapshots200ResponseDataInner.cs new file mode 100644 index 0000000..b290fe4 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMSnapshots200ResponseDataInner.cs @@ -0,0 +1,124 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMSnapshots200ResponseDataInner + /// + [DataContract(Name = "getVMSnapshots_200_response_data_inner")] + public partial class GetVMSnapshots200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Snapshot description.. + /// Snapshot identifier. Value 'current' identifies the current VM.. + /// Parent snapshot identifier.. + /// Snapshot creation time. + /// Snapshot includes RAM.. + public GetVMSnapshots200ResponseDataInner(string description = default(string), string name = default(string), string parent = default(string), Int64 snaptime = default(Int64), Int64 vmstate = default(Int64)) + { + this.Description = description; + this.Name = name; + this.Parent = parent; + this.Snaptime = snaptime; + this.Vmstate = vmstate; + } + + /// + /// Snapshot description. + /// + /// Snapshot description. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Snapshot identifier. Value 'current' identifies the current VM. + /// + /// Snapshot identifier. Value 'current' identifies the current VM. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Parent snapshot identifier. + /// + /// Parent snapshot identifier. + [DataMember(Name = "parent", EmitDefaultValue = false)] + public string Parent { get; set; } + + /// + /// Snapshot creation time + /// + /// Snapshot creation time + [DataMember(Name = "snaptime", EmitDefaultValue = false)] + public Int64 Snaptime { get; set; } + + /// + /// Snapshot includes RAM. + /// + /// Snapshot includes RAM. + [DataMember(Name = "vmstate", EmitDefaultValue = false)] + public Int64 Vmstate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMSnapshots200ResponseDataInner {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Parent: ").Append(Parent).Append("\n"); + sb.Append(" Snaptime: ").Append(Snaptime).Append("\n"); + sb.Append(" Vmstate: ").Append(Vmstate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMs200Response.cs b/src/ProxmoxSharp/Model/GetVMs200Response.cs new file mode 100644 index 0000000..6c34b03 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMs200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMs200Response + /// + [DataContract(Name = "getVMs_200_response")] + public partial class GetVMs200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetVMs200Response(List errors = default(List), List data = default(List)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMs200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVMs200ResponseDataInner.cs b/src/ProxmoxSharp/Model/GetVMs200ResponseDataInner.cs new file mode 100644 index 0000000..1262547 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVMs200ResponseDataInner.cs @@ -0,0 +1,354 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVMs200ResponseDataInner + /// + [DataContract(Name = "getVMs_200_response_data_inner")] + public partial class GetVMs200ResponseDataInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Current CPU usage.. + /// Maximum usable CPUs.. + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.). + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.). + /// The current config lock, if any.. + /// Root disk size in bytes.. + /// Maximum memory in bytes.. + /// Currently used memory in bytes.. + /// Current memory usage on the host.. + /// VM (host)name.. + /// The amount of traffic in bytes that was sent to the guest over the network since it was started.. + /// The amount of traffic in bytes that was sent from the guest over the network since it was started.. + /// PID of the QEMU process, if the VM is running.. + /// CPU Full pressure stall average over the last 10 seconds.. + /// CPU Some pressure stall average over the last 10 seconds.. + /// IO Full pressure stall average over the last 10 seconds.. + /// IO Some pressure stall average over the last 10 seconds.. + /// Memory Full pressure stall average over the last 10 seconds.. + /// Memory Some pressure stall average over the last 10 seconds.. + /// VM run state from the 'query-status' QMP monitor command.. + /// The currently running machine type (if running).. + /// The QEMU version the VM is currently using (if running).. + /// Guest has serial device configured.. + /// QEMU process status.. + /// The current configured tags, if any. + /// Determines if the guest is a template.. + /// Uptime in seconds.. + /// The (unique) ID of the VM.. + public GetVMs200ResponseDataInner(decimal cpu = default(decimal), decimal cpus = default(decimal), Int64 diskread = default(Int64), Int64 diskwrite = default(Int64), string varLock = default(string), Int64 maxdisk = default(Int64), Int64 maxmem = default(Int64), Int64 mem = default(Int64), Int64 memhost = default(Int64), string name = default(string), Int64 netin = default(Int64), Int64 netout = default(Int64), Int64 pid = default(Int64), decimal pressurecpufull = default(decimal), decimal pressurecpusome = default(decimal), decimal pressureiofull = default(decimal), decimal pressureiosome = default(decimal), decimal pressurememoryfull = default(decimal), decimal pressurememorysome = default(decimal), string qmpstatus = default(string), string runningMachine = default(string), string runningQemu = default(string), Int64 serial = default(Int64), string status = default(string), string tags = default(string), Int64 template = default(Int64), Int64 uptime = default(Int64), Int64 vmid = default(Int64)) + { + this.Cpu = cpu; + this.Cpus = cpus; + this.Diskread = diskread; + this.Diskwrite = diskwrite; + this.Lock = varLock; + this.Maxdisk = maxdisk; + this.Maxmem = maxmem; + this.Mem = mem; + this.Memhost = memhost; + this.Name = name; + this.Netin = netin; + this.Netout = netout; + this.Pid = pid; + this.Pressurecpufull = pressurecpufull; + this.Pressurecpusome = pressurecpusome; + this.Pressureiofull = pressureiofull; + this.Pressureiosome = pressureiosome; + this.Pressurememoryfull = pressurememoryfull; + this.Pressurememorysome = pressurememorysome; + this.Qmpstatus = qmpstatus; + this.RunningMachine = runningMachine; + this.RunningQemu = runningQemu; + this.Serial = serial; + this.Status = status; + this.Tags = tags; + this.Template = template; + this.Uptime = uptime; + this.Vmid = vmid; + } + + /// + /// Current CPU usage. + /// + /// Current CPU usage. + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public decimal Cpu { get; set; } + + /// + /// Maximum usable CPUs. + /// + /// Maximum usable CPUs. + [DataMember(Name = "cpus", EmitDefaultValue = false)] + public decimal Cpus { get; set; } + + /// + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + /// + /// The amount of bytes the guest read from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + [DataMember(Name = "diskread", EmitDefaultValue = false)] + public Int64 Diskread { get; set; } + + /// + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + /// + /// The amount of bytes the guest wrote from it's block devices since the guest was started. (Note: This info is not available for all storage types.) + [DataMember(Name = "diskwrite", EmitDefaultValue = false)] + public Int64 Diskwrite { get; set; } + + /// + /// The current config lock, if any. + /// + /// The current config lock, if any. + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Root disk size in bytes. + /// + /// Root disk size in bytes. + [DataMember(Name = "maxdisk", EmitDefaultValue = false)] + public Int64 Maxdisk { get; set; } + + /// + /// Maximum memory in bytes. + /// + /// Maximum memory in bytes. + [DataMember(Name = "maxmem", EmitDefaultValue = false)] + public Int64 Maxmem { get; set; } + + /// + /// Currently used memory in bytes. + /// + /// Currently used memory in bytes. + [DataMember(Name = "mem", EmitDefaultValue = false)] + public Int64 Mem { get; set; } + + /// + /// Current memory usage on the host. + /// + /// Current memory usage on the host. + [DataMember(Name = "memhost", EmitDefaultValue = false)] + public Int64 Memhost { get; set; } + + /// + /// VM (host)name. + /// + /// VM (host)name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. + /// + /// The amount of traffic in bytes that was sent to the guest over the network since it was started. + [DataMember(Name = "netin", EmitDefaultValue = false)] + public Int64 Netin { get; set; } + + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. + /// + /// The amount of traffic in bytes that was sent from the guest over the network since it was started. + [DataMember(Name = "netout", EmitDefaultValue = false)] + public Int64 Netout { get; set; } + + /// + /// PID of the QEMU process, if the VM is running. + /// + /// PID of the QEMU process, if the VM is running. + [DataMember(Name = "pid", EmitDefaultValue = false)] + public Int64 Pid { get; set; } + + /// + /// CPU Full pressure stall average over the last 10 seconds. + /// + /// CPU Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurecpufull", EmitDefaultValue = false)] + public decimal Pressurecpufull { get; set; } + + /// + /// CPU Some pressure stall average over the last 10 seconds. + /// + /// CPU Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurecpusome", EmitDefaultValue = false)] + public decimal Pressurecpusome { get; set; } + + /// + /// IO Full pressure stall average over the last 10 seconds. + /// + /// IO Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressureiofull", EmitDefaultValue = false)] + public decimal Pressureiofull { get; set; } + + /// + /// IO Some pressure stall average over the last 10 seconds. + /// + /// IO Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressureiosome", EmitDefaultValue = false)] + public decimal Pressureiosome { get; set; } + + /// + /// Memory Full pressure stall average over the last 10 seconds. + /// + /// Memory Full pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurememoryfull", EmitDefaultValue = false)] + public decimal Pressurememoryfull { get; set; } + + /// + /// Memory Some pressure stall average over the last 10 seconds. + /// + /// Memory Some pressure stall average over the last 10 seconds. + [DataMember(Name = "pressurememorysome", EmitDefaultValue = false)] + public decimal Pressurememorysome { get; set; } + + /// + /// VM run state from the 'query-status' QMP monitor command. + /// + /// VM run state from the 'query-status' QMP monitor command. + [DataMember(Name = "qmpstatus", EmitDefaultValue = false)] + public string Qmpstatus { get; set; } + + /// + /// The currently running machine type (if running). + /// + /// The currently running machine type (if running). + [DataMember(Name = "running-machine", EmitDefaultValue = false)] + public string RunningMachine { get; set; } + + /// + /// The QEMU version the VM is currently using (if running). + /// + /// The QEMU version the VM is currently using (if running). + [DataMember(Name = "running-qemu", EmitDefaultValue = false)] + public string RunningQemu { get; set; } + + /// + /// Guest has serial device configured. + /// + /// Guest has serial device configured. + [DataMember(Name = "serial", EmitDefaultValue = false)] + public Int64 Serial { get; set; } + + /// + /// QEMU process status. + /// + /// QEMU process status. + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// The current configured tags, if any + /// + /// The current configured tags, if any + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Determines if the guest is a template. + /// + /// Determines if the guest is a template. + [DataMember(Name = "template", EmitDefaultValue = false)] + public Int64 Template { get; set; } + + /// + /// Uptime in seconds. + /// + /// Uptime in seconds. + [DataMember(Name = "uptime", EmitDefaultValue = false)] + public Int64 Uptime { get; set; } + + /// + /// The (unique) ID of the VM. + /// + /// The (unique) ID of the VM. + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public Int64 Vmid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVMs200ResponseDataInner {\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpus: ").Append(Cpus).Append("\n"); + sb.Append(" Diskread: ").Append(Diskread).Append("\n"); + sb.Append(" Diskwrite: ").Append(Diskwrite).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Maxdisk: ").Append(Maxdisk).Append("\n"); + sb.Append(" Maxmem: ").Append(Maxmem).Append("\n"); + sb.Append(" Mem: ").Append(Mem).Append("\n"); + sb.Append(" Memhost: ").Append(Memhost).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Netin: ").Append(Netin).Append("\n"); + sb.Append(" Netout: ").Append(Netout).Append("\n"); + sb.Append(" Pid: ").Append(Pid).Append("\n"); + sb.Append(" Pressurecpufull: ").Append(Pressurecpufull).Append("\n"); + sb.Append(" Pressurecpusome: ").Append(Pressurecpusome).Append("\n"); + sb.Append(" Pressureiofull: ").Append(Pressureiofull).Append("\n"); + sb.Append(" Pressureiosome: ").Append(Pressureiosome).Append("\n"); + sb.Append(" Pressurememoryfull: ").Append(Pressurememoryfull).Append("\n"); + sb.Append(" Pressurememorysome: ").Append(Pressurememorysome).Append("\n"); + sb.Append(" Qmpstatus: ").Append(Qmpstatus).Append("\n"); + sb.Append(" RunningMachine: ").Append(RunningMachine).Append("\n"); + sb.Append(" RunningQemu: ").Append(RunningQemu).Append("\n"); + sb.Append(" Serial: ").Append(Serial).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Uptime: ").Append(Uptime).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVersion200Response.cs b/src/ProxmoxSharp/Model/GetVersion200Response.cs new file mode 100644 index 0000000..491b090 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVersion200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVersion200Response + /// + [DataContract(Name = "getVersion_200_response")] + public partial class GetVersion200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public GetVersion200Response(List errors = default(List), GetVersion200ResponseData data = default(GetVersion200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public GetVersion200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVersion200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/GetVersion200ResponseData.cs b/src/ProxmoxSharp/Model/GetVersion200ResponseData.cs new file mode 100644 index 0000000..c1522a8 --- /dev/null +++ b/src/ProxmoxSharp/Model/GetVersion200ResponseData.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// GetVersion200ResponseData + /// + [DataContract(Name = "getVersion_200_response_data")] + public partial class GetVersion200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The default console viewer to use.. + /// The current Proxmox VE point release in `x.y` format.. + /// The short git revision from which this version was build.. + /// The full pve-manager package version of this node.. + public GetVersion200ResponseData(string console = default(string), string release = default(string), string repoid = default(string), string varVersion = default(string)) + { + this.Console = console; + this.Release = release; + this.Repoid = repoid; + this.VarVersion = varVersion; + } + + /// + /// The default console viewer to use. + /// + /// The default console viewer to use. + [DataMember(Name = "console", EmitDefaultValue = false)] + public string Console { get; set; } + + /// + /// The current Proxmox VE point release in `x.y` format. + /// + /// The current Proxmox VE point release in `x.y` format. + [DataMember(Name = "release", EmitDefaultValue = false)] + public string Release { get; set; } + + /// + /// The short git revision from which this version was build. + /// + /// The short git revision from which this version was build. + [DataMember(Name = "repoid", EmitDefaultValue = false)] + public string Repoid { get; set; } + + /// + /// The full pve-manager package version of this node. + /// + /// The full pve-manager package version of this node. + [DataMember(Name = "version", EmitDefaultValue = false)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetVersion200ResponseData {\n"); + sb.Append(" Console: ").Append(Console).Append("\n"); + sb.Append(" Release: ").Append(Release).Append("\n"); + sb.Append(" Repoid: ").Append(Repoid).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/MigrateVM200Response.cs b/src/ProxmoxSharp/Model/MigrateVM200Response.cs new file mode 100644 index 0000000..eaabcd9 --- /dev/null +++ b/src/ProxmoxSharp/Model/MigrateVM200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// MigrateVM200Response + /// + [DataContract(Name = "migrateVM_200_response")] + public partial class MigrateVM200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public MigrateVM200Response(List errors = default(List), MigrateVM200ResponseData data = default(MigrateVM200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public MigrateVM200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MigrateVM200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/MigrateVM200ResponseData.cs b/src/ProxmoxSharp/Model/MigrateVM200ResponseData.cs new file mode 100644 index 0000000..ec92b94 --- /dev/null +++ b/src/ProxmoxSharp/Model/MigrateVM200ResponseData.cs @@ -0,0 +1,163 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// MigrateVM200ResponseData + /// + [DataContract(Name = "migrateVM_200_response_data")] + public partial class MigrateVM200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// List of nodes allowed for migration.. + /// HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM.. + /// Whether the VM host supports migrating additional VM state, such as conntrack entries.. + /// List local disks including CD-Rom, unused and not referenced disks. + /// List local resources (e.g. pci, usb) that block migration.. + /// Object of mapped resources with additional information such if they're live migratable.. + /// List of mapped resources e.g. pci, usb. Deprecated, use 'mapped-resource-info' instead.. + /// notAllowedNodes. + /// Determines if the VM is running.. + public MigrateVM200ResponseData(List allowedNodes = default(List), List dependentHaResources = default(List), Int64 hasDbusVmstate = default(Int64), List localDisks = default(List), List localResources = default(List), Object mappedResourceInfo = default(Object), List mappedResources = default(List), MigrateVM200ResponseDataNotAllowedNodes notAllowedNodes = default(MigrateVM200ResponseDataNotAllowedNodes), Int64 running = default(Int64)) + { + this.AllowedNodes = allowedNodes; + this.DependentHaResources = dependentHaResources; + this.HasDbusVmstate = hasDbusVmstate; + this.LocalDisks = localDisks; + this.LocalResources = localResources; + this.MappedResourceInfo = mappedResourceInfo; + this.MappedResources = mappedResources; + this.NotAllowedNodes = notAllowedNodes; + this.Running = running; + } + + /// + /// List of nodes allowed for migration. + /// + /// List of nodes allowed for migration. + [DataMember(Name = "allowed_nodes", EmitDefaultValue = false)] + public List AllowedNodes { get; set; } + + /// + /// HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM. + /// + /// HA resources, which will be migrated to the same target node as the VM, because these are in positive affinity with the VM. + [DataMember(Name = "dependent-ha-resources", EmitDefaultValue = false)] + public List DependentHaResources { get; set; } + + /// + /// Whether the VM host supports migrating additional VM state, such as conntrack entries. + /// + /// Whether the VM host supports migrating additional VM state, such as conntrack entries. + [DataMember(Name = "has-dbus-vmstate", EmitDefaultValue = false)] + public Int64 HasDbusVmstate { get; set; } + + /// + /// List local disks including CD-Rom, unused and not referenced disks + /// + /// List local disks including CD-Rom, unused and not referenced disks + [DataMember(Name = "local_disks", EmitDefaultValue = false)] + public List LocalDisks { get; set; } + + /// + /// List local resources (e.g. pci, usb) that block migration. + /// + /// List local resources (e.g. pci, usb) that block migration. + [DataMember(Name = "local_resources", EmitDefaultValue = false)] + public List LocalResources { get; set; } + + /// + /// Object of mapped resources with additional information such if they're live migratable. + /// + /// Object of mapped resources with additional information such if they're live migratable. + [DataMember(Name = "mapped-resource-info", EmitDefaultValue = false)] + public Object MappedResourceInfo { get; set; } + + /// + /// List of mapped resources e.g. pci, usb. Deprecated, use 'mapped-resource-info' instead. + /// + /// List of mapped resources e.g. pci, usb. Deprecated, use 'mapped-resource-info' instead. + [DataMember(Name = "mapped-resources", EmitDefaultValue = false)] + public List MappedResources { get; set; } + + /// + /// Gets or Sets NotAllowedNodes + /// + [DataMember(Name = "not_allowed_nodes", EmitDefaultValue = false)] + public MigrateVM200ResponseDataNotAllowedNodes NotAllowedNodes { get; set; } + + /// + /// Determines if the VM is running. + /// + /// Determines if the VM is running. + [DataMember(Name = "running", EmitDefaultValue = false)] + public Int64 Running { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MigrateVM200ResponseData {\n"); + sb.Append(" AllowedNodes: ").Append(AllowedNodes).Append("\n"); + sb.Append(" DependentHaResources: ").Append(DependentHaResources).Append("\n"); + sb.Append(" HasDbusVmstate: ").Append(HasDbusVmstate).Append("\n"); + sb.Append(" LocalDisks: ").Append(LocalDisks).Append("\n"); + sb.Append(" LocalResources: ").Append(LocalResources).Append("\n"); + sb.Append(" MappedResourceInfo: ").Append(MappedResourceInfo).Append("\n"); + sb.Append(" MappedResources: ").Append(MappedResources).Append("\n"); + sb.Append(" NotAllowedNodes: ").Append(NotAllowedNodes).Append("\n"); + sb.Append(" Running: ").Append(Running).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/MigrateVM200ResponseDataLocalDisksInner.cs b/src/ProxmoxSharp/Model/MigrateVM200ResponseDataLocalDisksInner.cs new file mode 100644 index 0000000..3ed6d4c --- /dev/null +++ b/src/ProxmoxSharp/Model/MigrateVM200ResponseDataLocalDisksInner.cs @@ -0,0 +1,114 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// MigrateVM200ResponseDataLocalDisksInner + /// + [DataContract(Name = "migrateVM_200_response_data_local_disks_inner")] + public partial class MigrateVM200ResponseDataLocalDisksInner : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// True if the disk is a cdrom.. + /// True if the disk is unused.. + /// The size of the disk in bytes.. + /// The volid of the disk.. + public MigrateVM200ResponseDataLocalDisksInner(Int64 cdrom = default(Int64), Int64 isUnused = default(Int64), Int64 size = default(Int64), string volid = default(string)) + { + this.Cdrom = cdrom; + this.IsUnused = isUnused; + this.Size = size; + this.Volid = volid; + } + + /// + /// True if the disk is a cdrom. + /// + /// True if the disk is a cdrom. + [DataMember(Name = "cdrom", EmitDefaultValue = false)] + public Int64 Cdrom { get; set; } + + /// + /// True if the disk is unused. + /// + /// True if the disk is unused. + [DataMember(Name = "is_unused", EmitDefaultValue = false)] + public Int64 IsUnused { get; set; } + + /// + /// The size of the disk in bytes. + /// + /// The size of the disk in bytes. + [DataMember(Name = "size", EmitDefaultValue = false)] + public Int64 Size { get; set; } + + /// + /// The volid of the disk. + /// + /// The volid of the disk. + [DataMember(Name = "volid", EmitDefaultValue = false)] + public string Volid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MigrateVM200ResponseDataLocalDisksInner {\n"); + sb.Append(" Cdrom: ").Append(Cdrom).Append("\n"); + sb.Append(" IsUnused: ").Append(IsUnused).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Volid: ").Append(Volid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/MigrateVM200ResponseDataNotAllowedNodes.cs b/src/ProxmoxSharp/Model/MigrateVM200ResponseDataNotAllowedNodes.cs new file mode 100644 index 0000000..8f5e901 --- /dev/null +++ b/src/ProxmoxSharp/Model/MigrateVM200ResponseDataNotAllowedNodes.cs @@ -0,0 +1,94 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// List of not allowed nodes with additional information. + /// + [DataContract(Name = "migrateVM_200_response_data_not_allowed_nodes")] + public partial class MigrateVM200ResponseDataNotAllowedNodes : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// HA resources, which are blocking the VM from being migrated to the node.. + /// A list of not available storages.. + public MigrateVM200ResponseDataNotAllowedNodes(List blockingHaResources = default(List), List unavailableStorages = default(List)) + { + this.BlockingHaResources = blockingHaResources; + this.UnavailableStorages = unavailableStorages; + } + + /// + /// HA resources, which are blocking the VM from being migrated to the node. + /// + /// HA resources, which are blocking the VM from being migrated to the node. + [DataMember(Name = "blocking-ha-resources", EmitDefaultValue = false)] + public List BlockingHaResources { get; set; } + + /// + /// A list of not available storages. + /// + /// A list of not available storages. + [DataMember(Name = "unavailable_storages", EmitDefaultValue = false)] + public List UnavailableStorages { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MigrateVM200ResponseDataNotAllowedNodes {\n"); + sb.Append(" BlockingHaResources: ").Append(BlockingHaResources).Append("\n"); + sb.Append(" UnavailableStorages: ").Append(UnavailableStorages).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/RebootVMRequest.cs b/src/ProxmoxSharp/Model/RebootVMRequest.cs new file mode 100644 index 0000000..1fe6af8 --- /dev/null +++ b/src/ProxmoxSharp/Model/RebootVMRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// RebootVMRequest + /// + [DataContract(Name = "RebootVMRequest")] + public partial class RebootVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// timeout. + public RebootVMRequest(int timeout = default(int)) + { + this.Timeout = timeout; + } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RebootVMRequest {\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/ResetVMRequest.cs b/src/ProxmoxSharp/Model/ResetVMRequest.cs new file mode 100644 index 0000000..3039914 --- /dev/null +++ b/src/ProxmoxSharp/Model/ResetVMRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// ResetVMRequest + /// + [DataContract(Name = "ResetVMRequest")] + public partial class ResetVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// skiplock. + public ResetVMRequest(bool skiplock = default(bool)) + { + this.Skiplock = skiplock; + } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ResetVMRequest {\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/ResizeVMDiskRequest.cs b/src/ProxmoxSharp/Model/ResizeVMDiskRequest.cs new file mode 100644 index 0000000..6509a64 --- /dev/null +++ b/src/ProxmoxSharp/Model/ResizeVMDiskRequest.cs @@ -0,0 +1,125 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// ResizeVMDiskRequest + /// + [DataContract(Name = "ResizeVMDiskRequest")] + public partial class ResizeVMDiskRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ResizeVMDiskRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// digest. + /// disk (required). + /// size (required). + /// skiplock. + public ResizeVMDiskRequest(string digest = default(string), string disk = default(string), string size = default(string), bool skiplock = default(bool)) + { + // to ensure "disk" is required (not null) + if (disk == null) + { + throw new ArgumentNullException("disk is a required property for ResizeVMDiskRequest and cannot be null"); + } + this.Disk = disk; + // to ensure "size" is required (not null) + if (size == null) + { + throw new ArgumentNullException("size is a required property for ResizeVMDiskRequest and cannot be null"); + } + this.Size = size; + this.Digest = digest; + this.Skiplock = skiplock; + } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disk + /// + [DataMember(Name = "disk", IsRequired = true, EmitDefaultValue = true)] + public string Disk { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", IsRequired = true, EmitDefaultValue = true)] + public string Size { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ResizeVMDiskRequest {\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/ResumeVMRequest.cs b/src/ProxmoxSharp/Model/ResumeVMRequest.cs new file mode 100644 index 0000000..ff5516d --- /dev/null +++ b/src/ProxmoxSharp/Model/ResumeVMRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// ResumeVMRequest + /// + [DataContract(Name = "ResumeVMRequest")] + public partial class ResumeVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// nocheck. + /// skiplock. + public ResumeVMRequest(bool nocheck = default(bool), bool skiplock = default(bool)) + { + this.Nocheck = nocheck; + this.Skiplock = skiplock; + } + + /// + /// Gets or Sets Nocheck + /// + [DataMember(Name = "nocheck", EmitDefaultValue = true)] + public bool Nocheck { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ResumeVMRequest {\n"); + sb.Append(" Nocheck: ").Append(Nocheck).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/RollbackVMSnapshotRequest.cs b/src/ProxmoxSharp/Model/RollbackVMSnapshotRequest.cs new file mode 100644 index 0000000..7c6fc02 --- /dev/null +++ b/src/ProxmoxSharp/Model/RollbackVMSnapshotRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// RollbackVMSnapshotRequest + /// + [DataContract(Name = "RollbackVMSnapshotRequest")] + public partial class RollbackVMSnapshotRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// start. + public RollbackVMSnapshotRequest(bool start = default(bool)) + { + this.Start = start; + } + + /// + /// Gets or Sets Start + /// + [DataMember(Name = "start", EmitDefaultValue = true)] + public bool Start { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RollbackVMSnapshotRequest {\n"); + sb.Append(" Start: ").Append(Start).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/ShutdownVMRequest.cs b/src/ProxmoxSharp/Model/ShutdownVMRequest.cs new file mode 100644 index 0000000..eacc22f --- /dev/null +++ b/src/ProxmoxSharp/Model/ShutdownVMRequest.cs @@ -0,0 +1,110 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// ShutdownVMRequest + /// + [DataContract(Name = "ShutdownVMRequest")] + public partial class ShutdownVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// forceStop. + /// keepActive. + /// skiplock. + /// timeout. + public ShutdownVMRequest(bool forceStop = default(bool), bool keepActive = default(bool), bool skiplock = default(bool), int timeout = default(int)) + { + this.ForceStop = forceStop; + this.KeepActive = keepActive; + this.Skiplock = skiplock; + this.Timeout = timeout; + } + + /// + /// Gets or Sets ForceStop + /// + [DataMember(Name = "forceStop", EmitDefaultValue = true)] + public bool ForceStop { get; set; } + + /// + /// Gets or Sets KeepActive + /// + [DataMember(Name = "keepActive", EmitDefaultValue = true)] + public bool KeepActive { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ShutdownVMRequest {\n"); + sb.Append(" ForceStop: ").Append(ForceStop).Append("\n"); + sb.Append(" KeepActive: ").Append(KeepActive).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/StartVMRequest.cs b/src/ProxmoxSharp/Model/StartVMRequest.cs new file mode 100644 index 0000000..27f15de --- /dev/null +++ b/src/ProxmoxSharp/Model/StartVMRequest.cs @@ -0,0 +1,173 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// StartVMRequest + /// + [DataContract(Name = "StartVMRequest")] + public partial class StartVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// forceCpu. + /// machine. + /// migratedfrom. + /// migrationNetwork. + /// migrationType. + /// netsHostMtu. + /// skiplock. + /// stateuri. + /// targetstorage. + /// timeout. + /// withConntrackState. + public StartVMRequest(string forceCpu = default(string), string machine = default(string), string migratedfrom = default(string), string migrationNetwork = default(string), string migrationType = default(string), string netsHostMtu = default(string), bool skiplock = default(bool), string stateuri = default(string), string targetstorage = default(string), int timeout = default(int), bool withConntrackState = default(bool)) + { + this.ForceCpu = forceCpu; + this.Machine = machine; + this.Migratedfrom = migratedfrom; + this.MigrationNetwork = migrationNetwork; + this.MigrationType = migrationType; + this.NetsHostMtu = netsHostMtu; + this.Skiplock = skiplock; + this.Stateuri = stateuri; + this.Targetstorage = targetstorage; + this.Timeout = timeout; + this.WithConntrackState = withConntrackState; + } + + /// + /// Gets or Sets ForceCpu + /// + [DataMember(Name = "force-cpu", EmitDefaultValue = false)] + public string ForceCpu { get; set; } + + /// + /// Gets or Sets Machine + /// + [DataMember(Name = "machine", EmitDefaultValue = false)] + public string Machine { get; set; } + + /// + /// Gets or Sets Migratedfrom + /// + [DataMember(Name = "migratedfrom", EmitDefaultValue = false)] + public string Migratedfrom { get; set; } + + /// + /// Gets or Sets MigrationNetwork + /// + [DataMember(Name = "migration_network", EmitDefaultValue = false)] + public string MigrationNetwork { get; set; } + + /// + /// Gets or Sets MigrationType + /// + [DataMember(Name = "migration_type", EmitDefaultValue = false)] + public string MigrationType { get; set; } + + /// + /// Gets or Sets NetsHostMtu + /// + [DataMember(Name = "nets-host-mtu", EmitDefaultValue = false)] + public string NetsHostMtu { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Gets or Sets Stateuri + /// + [DataMember(Name = "stateuri", EmitDefaultValue = false)] + public string Stateuri { get; set; } + + /// + /// Gets or Sets Targetstorage + /// + [DataMember(Name = "targetstorage", EmitDefaultValue = false)] + public string Targetstorage { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Gets or Sets WithConntrackState + /// + [DataMember(Name = "with-conntrack-state", EmitDefaultValue = true)] + public bool WithConntrackState { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class StartVMRequest {\n"); + sb.Append(" ForceCpu: ").Append(ForceCpu).Append("\n"); + sb.Append(" Machine: ").Append(Machine).Append("\n"); + sb.Append(" Migratedfrom: ").Append(Migratedfrom).Append("\n"); + sb.Append(" MigrationNetwork: ").Append(MigrationNetwork).Append("\n"); + sb.Append(" MigrationType: ").Append(MigrationType).Append("\n"); + sb.Append(" NetsHostMtu: ").Append(NetsHostMtu).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append(" Stateuri: ").Append(Stateuri).Append("\n"); + sb.Append(" Targetstorage: ").Append(Targetstorage).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" WithConntrackState: ").Append(WithConntrackState).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/StopVMRequest.cs b/src/ProxmoxSharp/Model/StopVMRequest.cs new file mode 100644 index 0000000..527db8d --- /dev/null +++ b/src/ProxmoxSharp/Model/StopVMRequest.cs @@ -0,0 +1,119 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// StopVMRequest + /// + [DataContract(Name = "StopVMRequest")] + public partial class StopVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// keepActive. + /// migratedfrom. + /// overruleShutdown. + /// skiplock. + /// timeout. + public StopVMRequest(bool keepActive = default(bool), string migratedfrom = default(string), bool overruleShutdown = default(bool), bool skiplock = default(bool), int timeout = default(int)) + { + this.KeepActive = keepActive; + this.Migratedfrom = migratedfrom; + this.OverruleShutdown = overruleShutdown; + this.Skiplock = skiplock; + this.Timeout = timeout; + } + + /// + /// Gets or Sets KeepActive + /// + [DataMember(Name = "keepActive", EmitDefaultValue = true)] + public bool KeepActive { get; set; } + + /// + /// Gets or Sets Migratedfrom + /// + [DataMember(Name = "migratedfrom", EmitDefaultValue = false)] + public string Migratedfrom { get; set; } + + /// + /// Gets or Sets OverruleShutdown + /// + [DataMember(Name = "overrule-shutdown", EmitDefaultValue = true)] + public bool OverruleShutdown { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class StopVMRequest {\n"); + sb.Append(" KeepActive: ").Append(KeepActive).Append("\n"); + sb.Append(" Migratedfrom: ").Append(Migratedfrom).Append("\n"); + sb.Append(" OverruleShutdown: ").Append(OverruleShutdown).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/SuspendVMRequest.cs b/src/ProxmoxSharp/Model/SuspendVMRequest.cs new file mode 100644 index 0000000..04f26da --- /dev/null +++ b/src/ProxmoxSharp/Model/SuspendVMRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// SuspendVMRequest + /// + [DataContract(Name = "SuspendVMRequest")] + public partial class SuspendVMRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// skiplock. + /// statestorage. + /// todisk. + public SuspendVMRequest(bool skiplock = default(bool), string statestorage = default(string), bool todisk = default(bool)) + { + this.Skiplock = skiplock; + this.Statestorage = statestorage; + this.Todisk = todisk; + } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Gets or Sets Statestorage + /// + [DataMember(Name = "statestorage", EmitDefaultValue = false)] + public string Statestorage { get; set; } + + /// + /// Gets or Sets Todisk + /// + [DataMember(Name = "todisk", EmitDefaultValue = true)] + public bool Todisk { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SuspendVMRequest {\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append(" Statestorage: ").Append(Statestorage).Append("\n"); + sb.Append(" Todisk: ").Append(Todisk).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UnlinkVMDiskImagesRequest.cs b/src/ProxmoxSharp/Model/UnlinkVMDiskImagesRequest.cs new file mode 100644 index 0000000..decd08a --- /dev/null +++ b/src/ProxmoxSharp/Model/UnlinkVMDiskImagesRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UnlinkVMDiskImagesRequest + /// + [DataContract(Name = "UnlinkVMDiskImagesRequest")] + public partial class UnlinkVMDiskImagesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkVMDiskImagesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// force. + /// idlist (required). + public UnlinkVMDiskImagesRequest(bool force = default(bool), string idlist = default(string)) + { + // to ensure "idlist" is required (not null) + if (idlist == null) + { + throw new ArgumentNullException("idlist is a required property for UnlinkVMDiskImagesRequest and cannot be null"); + } + this.Idlist = idlist; + this.Force = force; + } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets Idlist + /// + [DataMember(Name = "idlist", IsRequired = true, EmitDefaultValue = true)] + public string Idlist { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnlinkVMDiskImagesRequest {\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" Idlist: ").Append(Idlist).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessAclRequest.cs b/src/ProxmoxSharp/Model/UpdateAccessAclRequest.cs new file mode 100644 index 0000000..d680ad8 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessAclRequest.cs @@ -0,0 +1,152 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessAclRequest + /// + [DataContract(Name = "UpdateAccessAclRequest")] + public partial class UpdateAccessAclRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateAccessAclRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// groups. + /// path (required). + /// propagate. + /// roles (required). + /// tokens. + /// users. + public UpdateAccessAclRequest(bool delete = default(bool), string groups = default(string), string path = default(string), bool propagate = default(bool), string roles = default(string), string tokens = default(string), string users = default(string)) + { + // to ensure "path" is required (not null) + if (path == null) + { + throw new ArgumentNullException("path is a required property for UpdateAccessAclRequest and cannot be null"); + } + this.Path = path; + // to ensure "roles" is required (not null) + if (roles == null) + { + throw new ArgumentNullException("roles is a required property for UpdateAccessAclRequest and cannot be null"); + } + this.Roles = roles; + this.Delete = delete; + this.Groups = groups; + this.Propagate = propagate; + this.Tokens = tokens; + this.Users = users; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = true)] + public bool Delete { get; set; } + + /// + /// Gets or Sets Groups + /// + [DataMember(Name = "groups", EmitDefaultValue = false)] + public string Groups { get; set; } + + /// + /// Gets or Sets Path + /// + [DataMember(Name = "path", IsRequired = true, EmitDefaultValue = true)] + public string Path { get; set; } + + /// + /// Gets or Sets Propagate + /// + [DataMember(Name = "propagate", EmitDefaultValue = true)] + public bool Propagate { get; set; } + + /// + /// Gets or Sets Roles + /// + [DataMember(Name = "roles", IsRequired = true, EmitDefaultValue = true)] + public string Roles { get; set; } + + /// + /// Gets or Sets Tokens + /// + [DataMember(Name = "tokens", EmitDefaultValue = false)] + public string Tokens { get; set; } + + /// + /// Gets or Sets Users + /// + [DataMember(Name = "users", EmitDefaultValue = false)] + public string Users { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessAclRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Propagate: ").Append(Propagate).Append("\n"); + sb.Append(" Roles: ").Append(Roles).Append("\n"); + sb.Append(" Tokens: ").Append(Tokens).Append("\n"); + sb.Append(" Users: ").Append(Users).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessDomainsSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateAccessDomainsSingleRequest.cs new file mode 100644 index 0000000..9c52849 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessDomainsSingleRequest.cs @@ -0,0 +1,443 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessDomainsSingleRequest + /// + [DataContract(Name = "UpdateAccessDomainsSingleRequest")] + public partial class UpdateAccessDomainsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// acrValues. + /// autocreate. + /// baseDn. + /// bindDn. + /// capath. + /// caseSensitive. + /// cert. + /// certkey. + /// checkConnection. + /// clientId. + /// clientKey. + /// comment. + /// varDefault. + /// delete. + /// digest. + /// domain. + /// filter. + /// groupClasses. + /// groupDn. + /// groupFilter. + /// groupNameAttr. + /// groupsAutocreate. + /// groupsClaim. + /// groupsOverwrite. + /// issuerUrl. + /// mode. + /// password. + /// port. + /// prompt. + /// queryUserinfo. + /// scopes. + /// secure. + /// server1. + /// server2. + /// sslversion. + /// syncDefaultsOptions. + /// syncAttributes. + /// tfa. + /// userAttr. + /// userClasses. + /// verify. + public UpdateAccessDomainsSingleRequest(string acrValues = default(string), bool autocreate = default(bool), string baseDn = default(string), string bindDn = default(string), string capath = default(string), bool caseSensitive = default(bool), string cert = default(string), string certkey = default(string), bool checkConnection = default(bool), string clientId = default(string), string clientKey = default(string), string comment = default(string), bool varDefault = default(bool), string delete = default(string), string digest = default(string), string domain = default(string), string filter = default(string), string groupClasses = default(string), string groupDn = default(string), string groupFilter = default(string), string groupNameAttr = default(string), bool groupsAutocreate = default(bool), string groupsClaim = default(string), bool groupsOverwrite = default(bool), string issuerUrl = default(string), string mode = default(string), string password = default(string), int port = default(int), string prompt = default(string), bool queryUserinfo = default(bool), string scopes = default(string), bool secure = default(bool), string server1 = default(string), string server2 = default(string), string sslversion = default(string), string syncDefaultsOptions = default(string), string syncAttributes = default(string), string tfa = default(string), string userAttr = default(string), string userClasses = default(string), bool verify = default(bool)) + { + this.AcrValues = acrValues; + this.Autocreate = autocreate; + this.BaseDn = baseDn; + this.BindDn = bindDn; + this.Capath = capath; + this.CaseSensitive = caseSensitive; + this.Cert = cert; + this.Certkey = certkey; + this.CheckConnection = checkConnection; + this.ClientId = clientId; + this.ClientKey = clientKey; + this.Comment = comment; + this.Default = varDefault; + this.Delete = delete; + this.Digest = digest; + this.Domain = domain; + this.Filter = filter; + this.GroupClasses = groupClasses; + this.GroupDn = groupDn; + this.GroupFilter = groupFilter; + this.GroupNameAttr = groupNameAttr; + this.GroupsAutocreate = groupsAutocreate; + this.GroupsClaim = groupsClaim; + this.GroupsOverwrite = groupsOverwrite; + this.IssuerUrl = issuerUrl; + this.Mode = mode; + this.Password = password; + this.Port = port; + this.Prompt = prompt; + this.QueryUserinfo = queryUserinfo; + this.Scopes = scopes; + this.Secure = secure; + this.Server1 = server1; + this.Server2 = server2; + this.Sslversion = sslversion; + this.SyncDefaultsOptions = syncDefaultsOptions; + this.SyncAttributes = syncAttributes; + this.Tfa = tfa; + this.UserAttr = userAttr; + this.UserClasses = userClasses; + this.Verify = verify; + } + + /// + /// Gets or Sets AcrValues + /// + [DataMember(Name = "acr-values", EmitDefaultValue = false)] + public string AcrValues { get; set; } + + /// + /// Gets or Sets Autocreate + /// + [DataMember(Name = "autocreate", EmitDefaultValue = true)] + public bool Autocreate { get; set; } + + /// + /// Gets or Sets BaseDn + /// + [DataMember(Name = "base_dn", EmitDefaultValue = false)] + public string BaseDn { get; set; } + + /// + /// Gets or Sets BindDn + /// + [DataMember(Name = "bind_dn", EmitDefaultValue = false)] + public string BindDn { get; set; } + + /// + /// Gets or Sets Capath + /// + [DataMember(Name = "capath", EmitDefaultValue = false)] + public string Capath { get; set; } + + /// + /// Gets or Sets CaseSensitive + /// + [DataMember(Name = "case-sensitive", EmitDefaultValue = true)] + public bool CaseSensitive { get; set; } + + /// + /// Gets or Sets Cert + /// + [DataMember(Name = "cert", EmitDefaultValue = false)] + public string Cert { get; set; } + + /// + /// Gets or Sets Certkey + /// + [DataMember(Name = "certkey", EmitDefaultValue = false)] + public string Certkey { get; set; } + + /// + /// Gets or Sets CheckConnection + /// + [DataMember(Name = "check-connection", EmitDefaultValue = true)] + public bool CheckConnection { get; set; } + + /// + /// Gets or Sets ClientId + /// + [DataMember(Name = "client-id", EmitDefaultValue = false)] + public string ClientId { get; set; } + + /// + /// Gets or Sets ClientKey + /// + [DataMember(Name = "client-key", EmitDefaultValue = false)] + public string ClientKey { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Default + /// + [DataMember(Name = "default", EmitDefaultValue = true)] + public bool Default { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", EmitDefaultValue = false)] + public string Domain { get; set; } + + /// + /// Gets or Sets Filter + /// + [DataMember(Name = "filter", EmitDefaultValue = false)] + public string Filter { get; set; } + + /// + /// Gets or Sets GroupClasses + /// + [DataMember(Name = "group_classes", EmitDefaultValue = false)] + public string GroupClasses { get; set; } + + /// + /// Gets or Sets GroupDn + /// + [DataMember(Name = "group_dn", EmitDefaultValue = false)] + public string GroupDn { get; set; } + + /// + /// Gets or Sets GroupFilter + /// + [DataMember(Name = "group_filter", EmitDefaultValue = false)] + public string GroupFilter { get; set; } + + /// + /// Gets or Sets GroupNameAttr + /// + [DataMember(Name = "group_name_attr", EmitDefaultValue = false)] + public string GroupNameAttr { get; set; } + + /// + /// Gets or Sets GroupsAutocreate + /// + [DataMember(Name = "groups-autocreate", EmitDefaultValue = true)] + public bool GroupsAutocreate { get; set; } + + /// + /// Gets or Sets GroupsClaim + /// + [DataMember(Name = "groups-claim", EmitDefaultValue = false)] + public string GroupsClaim { get; set; } + + /// + /// Gets or Sets GroupsOverwrite + /// + [DataMember(Name = "groups-overwrite", EmitDefaultValue = true)] + public bool GroupsOverwrite { get; set; } + + /// + /// Gets or Sets IssuerUrl + /// + [DataMember(Name = "issuer-url", EmitDefaultValue = false)] + public string IssuerUrl { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public int Port { get; set; } + + /// + /// Gets or Sets Prompt + /// + [DataMember(Name = "prompt", EmitDefaultValue = false)] + public string Prompt { get; set; } + + /// + /// Gets or Sets QueryUserinfo + /// + [DataMember(Name = "query-userinfo", EmitDefaultValue = true)] + public bool QueryUserinfo { get; set; } + + /// + /// Gets or Sets Scopes + /// + [DataMember(Name = "scopes", EmitDefaultValue = false)] + public string Scopes { get; set; } + + /// + /// Gets or Sets Secure + /// + [DataMember(Name = "secure", EmitDefaultValue = true)] + public bool Secure { get; set; } + + /// + /// Gets or Sets Server1 + /// + [DataMember(Name = "server1", EmitDefaultValue = false)] + public string Server1 { get; set; } + + /// + /// Gets or Sets Server2 + /// + [DataMember(Name = "server2", EmitDefaultValue = false)] + public string Server2 { get; set; } + + /// + /// Gets or Sets Sslversion + /// + [DataMember(Name = "sslversion", EmitDefaultValue = false)] + public string Sslversion { get; set; } + + /// + /// Gets or Sets SyncDefaultsOptions + /// + [DataMember(Name = "sync-defaults-options", EmitDefaultValue = false)] + public string SyncDefaultsOptions { get; set; } + + /// + /// Gets or Sets SyncAttributes + /// + [DataMember(Name = "sync_attributes", EmitDefaultValue = false)] + public string SyncAttributes { get; set; } + + /// + /// Gets or Sets Tfa + /// + [DataMember(Name = "tfa", EmitDefaultValue = false)] + public string Tfa { get; set; } + + /// + /// Gets or Sets UserAttr + /// + [DataMember(Name = "user_attr", EmitDefaultValue = false)] + public string UserAttr { get; set; } + + /// + /// Gets or Sets UserClasses + /// + [DataMember(Name = "user_classes", EmitDefaultValue = false)] + public string UserClasses { get; set; } + + /// + /// Gets or Sets Verify + /// + [DataMember(Name = "verify", EmitDefaultValue = true)] + public bool Verify { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessDomainsSingleRequest {\n"); + sb.Append(" AcrValues: ").Append(AcrValues).Append("\n"); + sb.Append(" Autocreate: ").Append(Autocreate).Append("\n"); + sb.Append(" BaseDn: ").Append(BaseDn).Append("\n"); + sb.Append(" BindDn: ").Append(BindDn).Append("\n"); + sb.Append(" Capath: ").Append(Capath).Append("\n"); + sb.Append(" CaseSensitive: ").Append(CaseSensitive).Append("\n"); + sb.Append(" Cert: ").Append(Cert).Append("\n"); + sb.Append(" Certkey: ").Append(Certkey).Append("\n"); + sb.Append(" CheckConnection: ").Append(CheckConnection).Append("\n"); + sb.Append(" ClientId: ").Append(ClientId).Append("\n"); + sb.Append(" ClientKey: ").Append(ClientKey).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Default: ").Append(Default).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" Filter: ").Append(Filter).Append("\n"); + sb.Append(" GroupClasses: ").Append(GroupClasses).Append("\n"); + sb.Append(" GroupDn: ").Append(GroupDn).Append("\n"); + sb.Append(" GroupFilter: ").Append(GroupFilter).Append("\n"); + sb.Append(" GroupNameAttr: ").Append(GroupNameAttr).Append("\n"); + sb.Append(" GroupsAutocreate: ").Append(GroupsAutocreate).Append("\n"); + sb.Append(" GroupsClaim: ").Append(GroupsClaim).Append("\n"); + sb.Append(" GroupsOverwrite: ").Append(GroupsOverwrite).Append("\n"); + sb.Append(" IssuerUrl: ").Append(IssuerUrl).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Prompt: ").Append(Prompt).Append("\n"); + sb.Append(" QueryUserinfo: ").Append(QueryUserinfo).Append("\n"); + sb.Append(" Scopes: ").Append(Scopes).Append("\n"); + sb.Append(" Secure: ").Append(Secure).Append("\n"); + sb.Append(" Server1: ").Append(Server1).Append("\n"); + sb.Append(" Server2: ").Append(Server2).Append("\n"); + sb.Append(" Sslversion: ").Append(Sslversion).Append("\n"); + sb.Append(" SyncDefaultsOptions: ").Append(SyncDefaultsOptions).Append("\n"); + sb.Append(" SyncAttributes: ").Append(SyncAttributes).Append("\n"); + sb.Append(" Tfa: ").Append(Tfa).Append("\n"); + sb.Append(" UserAttr: ").Append(UserAttr).Append("\n"); + sb.Append(" UserClasses: ").Append(UserClasses).Append("\n"); + sb.Append(" Verify: ").Append(Verify).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessGroupsSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateAccessGroupsSingleRequest.cs new file mode 100644 index 0000000..9238a09 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessGroupsSingleRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessGroupsSingleRequest + /// + [DataContract(Name = "UpdateAccessGroupsSingleRequest")] + public partial class UpdateAccessGroupsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + public UpdateAccessGroupsSingleRequest(string comment = default(string)) + { + this.Comment = comment; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessGroupsSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessPasswordRequest.cs b/src/ProxmoxSharp/Model/UpdateAccessPasswordRequest.cs new file mode 100644 index 0000000..459bfd3 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessPasswordRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessPasswordRequest + /// + [DataContract(Name = "UpdateAccessPasswordRequest")] + public partial class UpdateAccessPasswordRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateAccessPasswordRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// confirmationPassword. + /// password (required). + /// userid (required). + public UpdateAccessPasswordRequest(string confirmationPassword = default(string), string password = default(string), string userid = default(string)) + { + // to ensure "password" is required (not null) + if (password == null) + { + throw new ArgumentNullException("password is a required property for UpdateAccessPasswordRequest and cannot be null"); + } + this.Password = password; + // to ensure "userid" is required (not null) + if (userid == null) + { + throw new ArgumentNullException("userid is a required property for UpdateAccessPasswordRequest and cannot be null"); + } + this.Userid = userid; + this.ConfirmationPassword = confirmationPassword; + } + + /// + /// Gets or Sets ConfirmationPassword + /// + [DataMember(Name = "confirmation-password", EmitDefaultValue = false)] + public string ConfirmationPassword { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] + public string Password { get; set; } + + /// + /// Gets or Sets Userid + /// + [DataMember(Name = "userid", IsRequired = true, EmitDefaultValue = true)] + public string Userid { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessPasswordRequest {\n"); + sb.Append(" ConfirmationPassword: ").Append(ConfirmationPassword).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Userid: ").Append(Userid).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessRolesSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateAccessRolesSingleRequest.cs new file mode 100644 index 0000000..45fe345 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessRolesSingleRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessRolesSingleRequest + /// + [DataContract(Name = "UpdateAccessRolesSingleRequest")] + public partial class UpdateAccessRolesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// append. + /// privs. + public UpdateAccessRolesSingleRequest(bool append = default(bool), string privs = default(string)) + { + this.Append = append; + this.Privs = privs; + } + + /// + /// Gets or Sets Append + /// + [DataMember(Name = "append", EmitDefaultValue = true)] + public bool Append { get; set; } + + /// + /// Gets or Sets Privs + /// + [DataMember(Name = "privs", EmitDefaultValue = false)] + public string Privs { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessRolesSingleRequest {\n"); + sb.Append(" Append: ").Append(Append).Append("\n"); + sb.Append(" Privs: ").Append(Privs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessTfaSingleSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateAccessTfaSingleSingleRequest.cs new file mode 100644 index 0000000..bf0d9bd --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessTfaSingleSingleRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessTfaSingleSingleRequest + /// + [DataContract(Name = "UpdateAccessTfaSingleSingleRequest")] + public partial class UpdateAccessTfaSingleSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// description. + /// enable. + /// password. + public UpdateAccessTfaSingleSingleRequest(string description = default(string), bool enable = default(bool), string password = default(string)) + { + this.Description = description; + this.Enable = enable; + this.Password = password; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = true)] + public bool Enable { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessTfaSingleSingleRequest {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessUsersSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateAccessUsersSingleRequest.cs new file mode 100644 index 0000000..acf2191 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessUsersSingleRequest.cs @@ -0,0 +1,155 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessUsersSingleRequest + /// + [DataContract(Name = "UpdateAccessUsersSingleRequest")] + public partial class UpdateAccessUsersSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// append. + /// comment. + /// email. + /// enable. + /// expire. + /// firstname. + /// groups. + /// keys. + /// lastname. + public UpdateAccessUsersSingleRequest(bool append = default(bool), string comment = default(string), string email = default(string), bool enable = default(bool), int expire = default(int), string firstname = default(string), string groups = default(string), string keys = default(string), string lastname = default(string)) + { + this.Append = append; + this.Comment = comment; + this.Email = email; + this.Enable = enable; + this.Expire = expire; + this.Firstname = firstname; + this.Groups = groups; + this.Keys = keys; + this.Lastname = lastname; + } + + /// + /// Gets or Sets Append + /// + [DataMember(Name = "append", EmitDefaultValue = true)] + public bool Append { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Email + /// + [DataMember(Name = "email", EmitDefaultValue = false)] + public string Email { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = true)] + public bool Enable { get; set; } + + /// + /// Gets or Sets Expire + /// + [DataMember(Name = "expire", EmitDefaultValue = false)] + public int Expire { get; set; } + + /// + /// Gets or Sets Firstname + /// + [DataMember(Name = "firstname", EmitDefaultValue = false)] + public string Firstname { get; set; } + + /// + /// Gets or Sets Groups + /// + [DataMember(Name = "groups", EmitDefaultValue = false)] + public string Groups { get; set; } + + /// + /// Gets or Sets Keys + /// + [DataMember(Name = "keys", EmitDefaultValue = false)] + public string Keys { get; set; } + + /// + /// Gets or Sets Lastname + /// + [DataMember(Name = "lastname", EmitDefaultValue = false)] + public string Lastname { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessUsersSingleRequest {\n"); + sb.Append(" Append: ").Append(Append).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Firstname: ").Append(Firstname).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Keys: ").Append(Keys).Append("\n"); + sb.Append(" Lastname: ").Append(Lastname).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingle200Response.cs b/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingle200Response.cs new file mode 100644 index 0000000..38c43b9 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingle200Response.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessUsersSingleTokenSingle200Response + /// + [DataContract(Name = "updateAccessUsersSingleTokenSingle_200_response")] + public partial class UpdateAccessUsersSingleTokenSingle200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// errors. + /// data. + public UpdateAccessUsersSingleTokenSingle200Response(List errors = default(List), UpdateAccessUsersSingleTokenSingle200ResponseData data = default(UpdateAccessUsersSingleTokenSingle200ResponseData)) + { + this.Errors = errors; + this.Data = data; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", EmitDefaultValue = false)] + public List Errors { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public UpdateAccessUsersSingleTokenSingle200ResponseData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessUsersSingleTokenSingle200Response {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingle200ResponseData.cs b/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingle200ResponseData.cs new file mode 100644 index 0000000..dc9a224 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingle200ResponseData.cs @@ -0,0 +1,103 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// Updated token information. + /// + [DataContract(Name = "updateAccessUsersSingleTokenSingle_200_response_data")] + public partial class UpdateAccessUsersSingleTokenSingle200ResponseData : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// API token expiration date (seconds since epoch). '0' means no expiration date.. + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user.. + public UpdateAccessUsersSingleTokenSingle200ResponseData(string comment = default(string), Int64 expire = default(Int64), Int64 privsep = default(Int64)) + { + this.Comment = comment; + this.Expire = expire; + this.Privsep = privsep; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// API token expiration date (seconds since epoch). '0' means no expiration date. + /// + /// API token expiration date (seconds since epoch). '0' means no expiration date. + [DataMember(Name = "expire", EmitDefaultValue = false)] + public Int64 Expire { get; set; } + + /// + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user. + /// + /// Restrict API token privileges with separate ACLs (default), or give full privileges of corresponding user. + [DataMember(Name = "privsep", EmitDefaultValue = false)] + public Int64 Privsep { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessUsersSingleTokenSingle200ResponseData {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Privsep: ").Append(Privsep).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingleRequest.cs new file mode 100644 index 0000000..ddf4144 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateAccessUsersSingleTokenSingleRequest.cs @@ -0,0 +1,110 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateAccessUsersSingleTokenSingleRequest + /// + [DataContract(Name = "UpdateAccessUsersSingleTokenSingleRequest")] + public partial class UpdateAccessUsersSingleTokenSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// delete. + /// expire. + /// privsep. + public UpdateAccessUsersSingleTokenSingleRequest(string comment = default(string), string delete = default(string), int expire = default(int), bool privsep = default(bool)) + { + this.Comment = comment; + this.Delete = delete; + this.Expire = expire; + this.Privsep = privsep; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Expire + /// + [DataMember(Name = "expire", EmitDefaultValue = false)] + public int Expire { get; set; } + + /// + /// Gets or Sets Privsep + /// + [DataMember(Name = "privsep", EmitDefaultValue = true)] + public bool Privsep { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateAccessUsersSingleTokenSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Expire: ").Append(Expire).Append("\n"); + sb.Append(" Privsep: ").Append(Privsep).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterAcmeAccountSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterAcmeAccountSingleRequest.cs new file mode 100644 index 0000000..ea1b87c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterAcmeAccountSingleRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterAcmeAccountSingleRequest + /// + [DataContract(Name = "UpdateClusterAcmeAccountSingleRequest")] + public partial class UpdateClusterAcmeAccountSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// contact. + public UpdateClusterAcmeAccountSingleRequest(string contact = default(string)) + { + this.Contact = contact; + } + + /// + /// Gets or Sets Contact + /// + [DataMember(Name = "contact", EmitDefaultValue = false)] + public string Contact { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterAcmeAccountSingleRequest {\n"); + sb.Append(" Contact: ").Append(Contact).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterAcmePluginsSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterAcmePluginsSingleRequest.cs new file mode 100644 index 0000000..bbb2e45 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterAcmePluginsSingleRequest.cs @@ -0,0 +1,137 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterAcmePluginsSingleRequest + /// + [DataContract(Name = "UpdateClusterAcmePluginsSingleRequest")] + public partial class UpdateClusterAcmePluginsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// api. + /// data. + /// delete. + /// digest. + /// disable. + /// nodes. + /// validationDelay. + public UpdateClusterAcmePluginsSingleRequest(string api = default(string), string data = default(string), string delete = default(string), string digest = default(string), bool disable = default(bool), string nodes = default(string), int validationDelay = default(int)) + { + this.Api = api; + this.Data = data; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.Nodes = nodes; + this.ValidationDelay = validationDelay; + } + + /// + /// Gets or Sets Api + /// + [DataMember(Name = "api", EmitDefaultValue = false)] + public string Api { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public string Data { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets ValidationDelay + /// + [DataMember(Name = "validation-delay", EmitDefaultValue = false)] + public int ValidationDelay { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterAcmePluginsSingleRequest {\n"); + sb.Append(" Api: ").Append(Api).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" ValidationDelay: ").Append(ValidationDelay).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterBackupSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterBackupSingleRequest.cs new file mode 100644 index 0000000..9d3935a --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterBackupSingleRequest.cs @@ -0,0 +1,425 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterBackupSingleRequest + /// + [DataContract(Name = "UpdateClusterBackupSingleRequest")] + public partial class UpdateClusterBackupSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// all. + /// bwlimit. + /// comment. + /// compress. + /// delete. + /// dow. + /// dumpdir. + /// enabled. + /// exclude. + /// excludePath. + /// fleecing. + /// ionice. + /// lockwait. + /// mailnotification. + /// mailto. + /// maxfiles. + /// mode. + /// node. + /// notesTemplate. + /// notificationMode. + /// pbsChangeDetectionMode. + /// performance. + /// pigz. + /// pool. + /// varProtected. + /// pruneBackups. + /// quiet. + /// remove. + /// repeatMissed. + /// schedule. + /// script. + /// starttime. + /// stdexcludes. + /// stop. + /// stopwait. + /// storage. + /// tmpdir. + /// vmid. + /// zstd. + public UpdateClusterBackupSingleRequest(bool all = default(bool), int bwlimit = default(int), string comment = default(string), string compress = default(string), string delete = default(string), string dow = default(string), string dumpdir = default(string), bool enabled = default(bool), string exclude = default(string), List excludePath = default(List), string fleecing = default(string), int ionice = default(int), int lockwait = default(int), string mailnotification = default(string), string mailto = default(string), int maxfiles = default(int), string mode = default(string), string node = default(string), string notesTemplate = default(string), string notificationMode = default(string), string pbsChangeDetectionMode = default(string), string performance = default(string), int pigz = default(int), string pool = default(string), bool varProtected = default(bool), string pruneBackups = default(string), bool quiet = default(bool), bool remove = default(bool), bool repeatMissed = default(bool), string schedule = default(string), string script = default(string), string starttime = default(string), bool stdexcludes = default(bool), bool stop = default(bool), int stopwait = default(int), string storage = default(string), string tmpdir = default(string), string vmid = default(string), int zstd = default(int)) + { + this.All = all; + this.Bwlimit = bwlimit; + this.Comment = comment; + this.Compress = compress; + this.Delete = delete; + this.Dow = dow; + this.Dumpdir = dumpdir; + this.Enabled = enabled; + this.Exclude = exclude; + this.ExcludePath = excludePath; + this.Fleecing = fleecing; + this.Ionice = ionice; + this.Lockwait = lockwait; + this.Mailnotification = mailnotification; + this.Mailto = mailto; + this.Maxfiles = maxfiles; + this.Mode = mode; + this.Node = node; + this.NotesTemplate = notesTemplate; + this.NotificationMode = notificationMode; + this.PbsChangeDetectionMode = pbsChangeDetectionMode; + this.Performance = performance; + this.Pigz = pigz; + this.Pool = pool; + this.Protected = varProtected; + this.PruneBackups = pruneBackups; + this.Quiet = quiet; + this.Remove = remove; + this.RepeatMissed = repeatMissed; + this.Schedule = schedule; + this.Script = script; + this.Starttime = starttime; + this.Stdexcludes = stdexcludes; + this.Stop = stop; + this.Stopwait = stopwait; + this.Storage = storage; + this.Tmpdir = tmpdir; + this.Vmid = vmid; + this.Zstd = zstd; + } + + /// + /// Gets or Sets All + /// + [DataMember(Name = "all", EmitDefaultValue = true)] + public bool All { get; set; } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public int Bwlimit { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Compress + /// + [DataMember(Name = "compress", EmitDefaultValue = false)] + public string Compress { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dow + /// + [DataMember(Name = "dow", EmitDefaultValue = false)] + public string Dow { get; set; } + + /// + /// Gets or Sets Dumpdir + /// + [DataMember(Name = "dumpdir", EmitDefaultValue = false)] + public string Dumpdir { get; set; } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets Exclude + /// + [DataMember(Name = "exclude", EmitDefaultValue = false)] + public string Exclude { get; set; } + + /// + /// Gets or Sets ExcludePath + /// + [DataMember(Name = "exclude-path", EmitDefaultValue = false)] + public List ExcludePath { get; set; } + + /// + /// Gets or Sets Fleecing + /// + [DataMember(Name = "fleecing", EmitDefaultValue = false)] + public string Fleecing { get; set; } + + /// + /// Gets or Sets Ionice + /// + [DataMember(Name = "ionice", EmitDefaultValue = false)] + public int Ionice { get; set; } + + /// + /// Gets or Sets Lockwait + /// + [DataMember(Name = "lockwait", EmitDefaultValue = false)] + public int Lockwait { get; set; } + + /// + /// Gets or Sets Mailnotification + /// + [DataMember(Name = "mailnotification", EmitDefaultValue = false)] + public string Mailnotification { get; set; } + + /// + /// Gets or Sets Mailto + /// + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public string Mailto { get; set; } + + /// + /// Gets or Sets Maxfiles + /// + [DataMember(Name = "maxfiles", EmitDefaultValue = false)] + public int Maxfiles { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Gets or Sets NotesTemplate + /// + [DataMember(Name = "notes-template", EmitDefaultValue = false)] + public string NotesTemplate { get; set; } + + /// + /// Gets or Sets NotificationMode + /// + [DataMember(Name = "notification-mode", EmitDefaultValue = false)] + public string NotificationMode { get; set; } + + /// + /// Gets or Sets PbsChangeDetectionMode + /// + [DataMember(Name = "pbs-change-detection-mode", EmitDefaultValue = false)] + public string PbsChangeDetectionMode { get; set; } + + /// + /// Gets or Sets Performance + /// + [DataMember(Name = "performance", EmitDefaultValue = false)] + public string Performance { get; set; } + + /// + /// Gets or Sets Pigz + /// + [DataMember(Name = "pigz", EmitDefaultValue = false)] + public int Pigz { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Protected + /// + [DataMember(Name = "protected", EmitDefaultValue = true)] + public bool Protected { get; set; } + + /// + /// Gets or Sets PruneBackups + /// + [DataMember(Name = "prune-backups", EmitDefaultValue = false)] + public string PruneBackups { get; set; } + + /// + /// Gets or Sets Quiet + /// + [DataMember(Name = "quiet", EmitDefaultValue = true)] + public bool Quiet { get; set; } + + /// + /// Gets or Sets Remove + /// + [DataMember(Name = "remove", EmitDefaultValue = true)] + public bool Remove { get; set; } + + /// + /// Gets or Sets RepeatMissed + /// + [DataMember(Name = "repeat-missed", EmitDefaultValue = true)] + public bool RepeatMissed { get; set; } + + /// + /// Gets or Sets Schedule + /// + [DataMember(Name = "schedule", EmitDefaultValue = false)] + public string Schedule { get; set; } + + /// + /// Gets or Sets Script + /// + [DataMember(Name = "script", EmitDefaultValue = false)] + public string Script { get; set; } + + /// + /// Gets or Sets Starttime + /// + [DataMember(Name = "starttime", EmitDefaultValue = false)] + public string Starttime { get; set; } + + /// + /// Gets or Sets Stdexcludes + /// + [DataMember(Name = "stdexcludes", EmitDefaultValue = true)] + public bool Stdexcludes { get; set; } + + /// + /// Gets or Sets Stop + /// + [DataMember(Name = "stop", EmitDefaultValue = true)] + public bool Stop { get; set; } + + /// + /// Gets or Sets Stopwait + /// + [DataMember(Name = "stopwait", EmitDefaultValue = false)] + public int Stopwait { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Tmpdir + /// + [DataMember(Name = "tmpdir", EmitDefaultValue = false)] + public string Tmpdir { get; set; } + + /// + /// Gets or Sets Vmid + /// + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public string Vmid { get; set; } + + /// + /// Gets or Sets Zstd + /// + [DataMember(Name = "zstd", EmitDefaultValue = false)] + public int Zstd { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterBackupSingleRequest {\n"); + sb.Append(" All: ").Append(All).Append("\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Compress: ").Append(Compress).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dow: ").Append(Dow).Append("\n"); + sb.Append(" Dumpdir: ").Append(Dumpdir).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Exclude: ").Append(Exclude).Append("\n"); + sb.Append(" ExcludePath: ").Append(ExcludePath).Append("\n"); + sb.Append(" Fleecing: ").Append(Fleecing).Append("\n"); + sb.Append(" Ionice: ").Append(Ionice).Append("\n"); + sb.Append(" Lockwait: ").Append(Lockwait).Append("\n"); + sb.Append(" Mailnotification: ").Append(Mailnotification).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" Maxfiles: ").Append(Maxfiles).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" NotesTemplate: ").Append(NotesTemplate).Append("\n"); + sb.Append(" NotificationMode: ").Append(NotificationMode).Append("\n"); + sb.Append(" PbsChangeDetectionMode: ").Append(PbsChangeDetectionMode).Append("\n"); + sb.Append(" Performance: ").Append(Performance).Append("\n"); + sb.Append(" Pigz: ").Append(Pigz).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" PruneBackups: ").Append(PruneBackups).Append("\n"); + sb.Append(" Quiet: ").Append(Quiet).Append("\n"); + sb.Append(" Remove: ").Append(Remove).Append("\n"); + sb.Append(" RepeatMissed: ").Append(RepeatMissed).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Script: ").Append(Script).Append("\n"); + sb.Append(" Starttime: ").Append(Starttime).Append("\n"); + sb.Append(" Stdexcludes: ").Append(Stdexcludes).Append("\n"); + sb.Append(" Stop: ").Append(Stop).Append("\n"); + sb.Append(" Stopwait: ").Append(Stopwait).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Tmpdir: ").Append(Tmpdir).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" Zstd: ").Append(Zstd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterCephFlagsRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterCephFlagsRequest.cs new file mode 100644 index 0000000..5ba1748 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterCephFlagsRequest.cs @@ -0,0 +1,173 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterCephFlagsRequest + /// + [DataContract(Name = "UpdateClusterCephFlagsRequest")] + public partial class UpdateClusterCephFlagsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// nobackfill. + /// nodeepScrub. + /// nodown. + /// noin. + /// noout. + /// norebalance. + /// norecover. + /// noscrub. + /// notieragent. + /// noup. + /// pause. + public UpdateClusterCephFlagsRequest(bool nobackfill = default(bool), bool nodeepScrub = default(bool), bool nodown = default(bool), bool noin = default(bool), bool noout = default(bool), bool norebalance = default(bool), bool norecover = default(bool), bool noscrub = default(bool), bool notieragent = default(bool), bool noup = default(bool), bool pause = default(bool)) + { + this.Nobackfill = nobackfill; + this.NodeepScrub = nodeepScrub; + this.Nodown = nodown; + this.Noin = noin; + this.Noout = noout; + this.Norebalance = norebalance; + this.Norecover = norecover; + this.Noscrub = noscrub; + this.Notieragent = notieragent; + this.Noup = noup; + this.Pause = pause; + } + + /// + /// Gets or Sets Nobackfill + /// + [DataMember(Name = "nobackfill", EmitDefaultValue = true)] + public bool Nobackfill { get; set; } + + /// + /// Gets or Sets NodeepScrub + /// + [DataMember(Name = "nodeep-scrub", EmitDefaultValue = true)] + public bool NodeepScrub { get; set; } + + /// + /// Gets or Sets Nodown + /// + [DataMember(Name = "nodown", EmitDefaultValue = true)] + public bool Nodown { get; set; } + + /// + /// Gets or Sets Noin + /// + [DataMember(Name = "noin", EmitDefaultValue = true)] + public bool Noin { get; set; } + + /// + /// Gets or Sets Noout + /// + [DataMember(Name = "noout", EmitDefaultValue = true)] + public bool Noout { get; set; } + + /// + /// Gets or Sets Norebalance + /// + [DataMember(Name = "norebalance", EmitDefaultValue = true)] + public bool Norebalance { get; set; } + + /// + /// Gets or Sets Norecover + /// + [DataMember(Name = "norecover", EmitDefaultValue = true)] + public bool Norecover { get; set; } + + /// + /// Gets or Sets Noscrub + /// + [DataMember(Name = "noscrub", EmitDefaultValue = true)] + public bool Noscrub { get; set; } + + /// + /// Gets or Sets Notieragent + /// + [DataMember(Name = "notieragent", EmitDefaultValue = true)] + public bool Notieragent { get; set; } + + /// + /// Gets or Sets Noup + /// + [DataMember(Name = "noup", EmitDefaultValue = true)] + public bool Noup { get; set; } + + /// + /// Gets or Sets Pause + /// + [DataMember(Name = "pause", EmitDefaultValue = true)] + public bool Pause { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterCephFlagsRequest {\n"); + sb.Append(" Nobackfill: ").Append(Nobackfill).Append("\n"); + sb.Append(" NodeepScrub: ").Append(NodeepScrub).Append("\n"); + sb.Append(" Nodown: ").Append(Nodown).Append("\n"); + sb.Append(" Noin: ").Append(Noin).Append("\n"); + sb.Append(" Noout: ").Append(Noout).Append("\n"); + sb.Append(" Norebalance: ").Append(Norebalance).Append("\n"); + sb.Append(" Norecover: ").Append(Norecover).Append("\n"); + sb.Append(" Noscrub: ").Append(Noscrub).Append("\n"); + sb.Append(" Notieragent: ").Append(Notieragent).Append("\n"); + sb.Append(" Noup: ").Append(Noup).Append("\n"); + sb.Append(" Pause: ").Append(Pause).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterCephFlagsSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterCephFlagsSingleRequest.cs new file mode 100644 index 0000000..864d66e --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterCephFlagsSingleRequest.cs @@ -0,0 +1,88 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterCephFlagsSingleRequest + /// + [DataContract(Name = "UpdateClusterCephFlagsSingleRequest")] + public partial class UpdateClusterCephFlagsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterCephFlagsSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// value (required). + public UpdateClusterCephFlagsSingleRequest(bool value = default(bool)) + { + this.Value = value; + } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public bool Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterCephFlagsSingleRequest {\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterFirewallAliasesSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterFirewallAliasesSingleRequest.cs new file mode 100644 index 0000000..27fdb86 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterFirewallAliasesSingleRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterFirewallAliasesSingleRequest + /// + [DataContract(Name = "UpdateClusterFirewallAliasesSingleRequest")] + public partial class UpdateClusterFirewallAliasesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterFirewallAliasesSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// digest. + /// rename. + public UpdateClusterFirewallAliasesSingleRequest(string cidr = default(string), string comment = default(string), string digest = default(string), string rename = default(string)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for UpdateClusterFirewallAliasesSingleRequest and cannot be null"); + } + this.Cidr = cidr; + this.Comment = comment; + this.Digest = digest; + this.Rename = rename; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Rename + /// + [DataMember(Name = "rename", EmitDefaultValue = false)] + public string Rename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterFirewallAliasesSingleRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Rename: ").Append(Rename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterFirewallGroupRuleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterFirewallGroupRuleRequest.cs new file mode 100644 index 0000000..97ed4f0 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterFirewallGroupRuleRequest.cs @@ -0,0 +1,218 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterFirewallGroupRuleRequest + /// + [DataContract(Name = "UpdateClusterFirewallGroupRuleRequest")] + public partial class UpdateClusterFirewallGroupRuleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// action. + /// comment. + /// delete. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// moveto. + /// proto. + /// source. + /// sport. + /// type. + public UpdateClusterFirewallGroupRuleRequest(string action = default(string), string comment = default(string), string delete = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int moveto = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + this.Action = action; + this.Comment = comment; + this.Delete = delete; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Moveto = moveto; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + this.Type = type; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", EmitDefaultValue = false)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Moveto + /// + [DataMember(Name = "moveto", EmitDefaultValue = false)] + public int Moveto { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterFirewallGroupRuleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Moveto: ").Append(Moveto).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterFirewallIPSetIPRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterFirewallIPSetIPRequest.cs new file mode 100644 index 0000000..3e1c24e --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterFirewallIPSetIPRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterFirewallIPSetIPRequest + /// + [DataContract(Name = "UpdateClusterFirewallIPSetIPRequest")] + public partial class UpdateClusterFirewallIPSetIPRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// digest. + /// nomatch. + public UpdateClusterFirewallIPSetIPRequest(string comment = default(string), string digest = default(string), bool nomatch = default(bool)) + { + this.Comment = comment; + this.Digest = digest; + this.Nomatch = nomatch; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Nomatch + /// + [DataMember(Name = "nomatch", EmitDefaultValue = true)] + public bool Nomatch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterFirewallIPSetIPRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Nomatch: ").Append(Nomatch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterFirewallOptionsRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterFirewallOptionsRequest.cs new file mode 100644 index 0000000..5de07ee --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterFirewallOptionsRequest.cs @@ -0,0 +1,146 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterFirewallOptionsRequest + /// + [DataContract(Name = "UpdateClusterFirewallOptionsRequest")] + public partial class UpdateClusterFirewallOptionsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// digest. + /// ebtables. + /// enable. + /// logRatelimit. + /// policyForward. + /// policyIn. + /// policyOut. + public UpdateClusterFirewallOptionsRequest(string delete = default(string), string digest = default(string), bool ebtables = default(bool), int enable = default(int), string logRatelimit = default(string), string policyForward = default(string), string policyIn = default(string), string policyOut = default(string)) + { + this.Delete = delete; + this.Digest = digest; + this.Ebtables = ebtables; + this.Enable = enable; + this.LogRatelimit = logRatelimit; + this.PolicyForward = policyForward; + this.PolicyIn = policyIn; + this.PolicyOut = policyOut; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Ebtables + /// + [DataMember(Name = "ebtables", EmitDefaultValue = true)] + public bool Ebtables { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets LogRatelimit + /// + [DataMember(Name = "log_ratelimit", EmitDefaultValue = false)] + public string LogRatelimit { get; set; } + + /// + /// Gets or Sets PolicyForward + /// + [DataMember(Name = "policy_forward", EmitDefaultValue = false)] + public string PolicyForward { get; set; } + + /// + /// Gets or Sets PolicyIn + /// + [DataMember(Name = "policy_in", EmitDefaultValue = false)] + public string PolicyIn { get; set; } + + /// + /// Gets or Sets PolicyOut + /// + [DataMember(Name = "policy_out", EmitDefaultValue = false)] + public string PolicyOut { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterFirewallOptionsRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Ebtables: ").Append(Ebtables).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" LogRatelimit: ").Append(LogRatelimit).Append("\n"); + sb.Append(" PolicyForward: ").Append(PolicyForward).Append("\n"); + sb.Append(" PolicyIn: ").Append(PolicyIn).Append("\n"); + sb.Append(" PolicyOut: ").Append(PolicyOut).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterFirewallRuleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterFirewallRuleRequest.cs new file mode 100644 index 0000000..b94c94e --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterFirewallRuleRequest.cs @@ -0,0 +1,218 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterFirewallRuleRequest + /// + [DataContract(Name = "UpdateClusterFirewallRuleRequest")] + public partial class UpdateClusterFirewallRuleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// action. + /// comment. + /// delete. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// moveto. + /// proto. + /// source. + /// sport. + /// type. + public UpdateClusterFirewallRuleRequest(string action = default(string), string comment = default(string), string delete = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int moveto = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + this.Action = action; + this.Comment = comment; + this.Delete = delete; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Moveto = moveto; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + this.Type = type; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", EmitDefaultValue = false)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Moveto + /// + [DataMember(Name = "moveto", EmitDefaultValue = false)] + public int Moveto { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterFirewallRuleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Moveto: ").Append(Moveto).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterHaGroupsSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterHaGroupsSingleRequest.cs new file mode 100644 index 0000000..57c18e0 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterHaGroupsSingleRequest.cs @@ -0,0 +1,128 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterHaGroupsSingleRequest + /// + [DataContract(Name = "UpdateClusterHaGroupsSingleRequest")] + public partial class UpdateClusterHaGroupsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// delete. + /// digest. + /// nodes. + /// nofailback. + /// restricted. + public UpdateClusterHaGroupsSingleRequest(string comment = default(string), string delete = default(string), string digest = default(string), string nodes = default(string), bool nofailback = default(bool), bool restricted = default(bool)) + { + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Nodes = nodes; + this.Nofailback = nofailback; + this.Restricted = restricted; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Nofailback + /// + [DataMember(Name = "nofailback", EmitDefaultValue = true)] + public bool Nofailback { get; set; } + + /// + /// Gets or Sets Restricted + /// + [DataMember(Name = "restricted", EmitDefaultValue = true)] + public bool Restricted { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterHaGroupsSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Nofailback: ").Append(Nofailback).Append("\n"); + sb.Append(" Restricted: ").Append(Restricted).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterHaResourcesSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterHaResourcesSingleRequest.cs new file mode 100644 index 0000000..3104882 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterHaResourcesSingleRequest.cs @@ -0,0 +1,146 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterHaResourcesSingleRequest + /// + [DataContract(Name = "UpdateClusterHaResourcesSingleRequest")] + public partial class UpdateClusterHaResourcesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// delete. + /// digest. + /// failback. + /// group. + /// maxRelocate. + /// maxRestart. + /// state. + public UpdateClusterHaResourcesSingleRequest(string comment = default(string), string delete = default(string), string digest = default(string), bool failback = default(bool), string group = default(string), int maxRelocate = default(int), int maxRestart = default(int), string state = default(string)) + { + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Failback = failback; + this.Group = group; + this.MaxRelocate = maxRelocate; + this.MaxRestart = maxRestart; + this.State = state; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Failback + /// + [DataMember(Name = "failback", EmitDefaultValue = true)] + public bool Failback { get; set; } + + /// + /// Gets or Sets Group + /// + [DataMember(Name = "group", EmitDefaultValue = false)] + public string Group { get; set; } + + /// + /// Gets or Sets MaxRelocate + /// + [DataMember(Name = "max_relocate", EmitDefaultValue = false)] + public int MaxRelocate { get; set; } + + /// + /// Gets or Sets MaxRestart + /// + [DataMember(Name = "max_restart", EmitDefaultValue = false)] + public int MaxRestart { get; set; } + + /// + /// Gets or Sets State + /// + [DataMember(Name = "state", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterHaResourcesSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Failback: ").Append(Failback).Append("\n"); + sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" MaxRelocate: ").Append(MaxRelocate).Append("\n"); + sb.Append(" MaxRestart: ").Append(MaxRestart).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterHaRulesSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterHaRulesSingleRequest.cs new file mode 100644 index 0000000..021347a --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterHaRulesSingleRequest.cs @@ -0,0 +1,165 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterHaRulesSingleRequest + /// + [DataContract(Name = "UpdateClusterHaRulesSingleRequest")] + public partial class UpdateClusterHaRulesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterHaRulesSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// affinity. + /// comment. + /// delete. + /// digest. + /// disable. + /// nodes. + /// resources. + /// strict. + /// type (required). + public UpdateClusterHaRulesSingleRequest(string affinity = default(string), string comment = default(string), string delete = default(string), string digest = default(string), bool disable = default(bool), string nodes = default(string), string resources = default(string), bool strict = default(bool), string type = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for UpdateClusterHaRulesSingleRequest and cannot be null"); + } + this.Type = type; + this.Affinity = affinity; + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.Nodes = nodes; + this.Resources = resources; + this.Strict = strict; + } + + /// + /// Gets or Sets Affinity + /// + [DataMember(Name = "affinity", EmitDefaultValue = false)] + public string Affinity { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Resources + /// + [DataMember(Name = "resources", EmitDefaultValue = false)] + public string Resources { get; set; } + + /// + /// Gets or Sets Strict + /// + [DataMember(Name = "strict", EmitDefaultValue = true)] + public bool Strict { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterHaRulesSingleRequest {\n"); + sb.Append(" Affinity: ").Append(Affinity).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Resources: ").Append(Resources).Append("\n"); + sb.Append(" Strict: ").Append(Strict).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterJobsRealmsyncSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterJobsRealmsyncSingleRequest.cs new file mode 100644 index 0000000..3555f47 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterJobsRealmsyncSingleRequest.cs @@ -0,0 +1,147 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterJobsRealmsyncSingleRequest + /// + [DataContract(Name = "UpdateClusterJobsRealmsyncSingleRequest")] + public partial class UpdateClusterJobsRealmsyncSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterJobsRealmsyncSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// delete. + /// enableNew. + /// enabled. + /// removeVanished. + /// schedule (required). + /// scope. + public UpdateClusterJobsRealmsyncSingleRequest(string comment = default(string), string delete = default(string), bool enableNew = default(bool), bool enabled = default(bool), string removeVanished = default(string), string schedule = default(string), string scope = default(string)) + { + // to ensure "schedule" is required (not null) + if (schedule == null) + { + throw new ArgumentNullException("schedule is a required property for UpdateClusterJobsRealmsyncSingleRequest and cannot be null"); + } + this.Schedule = schedule; + this.Comment = comment; + this.Delete = delete; + this.EnableNew = enableNew; + this.Enabled = enabled; + this.RemoveVanished = removeVanished; + this.Scope = scope; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets EnableNew + /// + [DataMember(Name = "enable-new", EmitDefaultValue = true)] + public bool EnableNew { get; set; } + + /// + /// Gets or Sets Enabled + /// + [DataMember(Name = "enabled", EmitDefaultValue = true)] + public bool Enabled { get; set; } + + /// + /// Gets or Sets RemoveVanished + /// + [DataMember(Name = "remove-vanished", EmitDefaultValue = false)] + public string RemoveVanished { get; set; } + + /// + /// Gets or Sets Schedule + /// + [DataMember(Name = "schedule", IsRequired = true, EmitDefaultValue = true)] + public string Schedule { get; set; } + + /// + /// Gets or Sets Scope + /// + [DataMember(Name = "scope", EmitDefaultValue = false)] + public string Scope { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterJobsRealmsyncSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" EnableNew: ").Append(EnableNew).Append("\n"); + sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" RemoveVanished: ").Append(RemoveVanished).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Scope: ").Append(Scope).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterMappingDirSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterMappingDirSingleRequest.cs new file mode 100644 index 0000000..ee78bb4 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterMappingDirSingleRequest.cs @@ -0,0 +1,110 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterMappingDirSingleRequest + /// + [DataContract(Name = "UpdateClusterMappingDirSingleRequest")] + public partial class UpdateClusterMappingDirSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// description. + /// digest. + /// map. + public UpdateClusterMappingDirSingleRequest(string delete = default(string), string description = default(string), string digest = default(string), List map = default(List)) + { + this.Delete = delete; + this.Description = description; + this.Digest = digest; + this.Map = map; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Map + /// + [DataMember(Name = "map", EmitDefaultValue = false)] + public List Map { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterMappingDirSingleRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterMappingPciSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterMappingPciSingleRequest.cs new file mode 100644 index 0000000..1429267 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterMappingPciSingleRequest.cs @@ -0,0 +1,128 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterMappingPciSingleRequest + /// + [DataContract(Name = "UpdateClusterMappingPciSingleRequest")] + public partial class UpdateClusterMappingPciSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// description. + /// digest. + /// liveMigrationCapable. + /// map. + /// mdev. + public UpdateClusterMappingPciSingleRequest(string delete = default(string), string description = default(string), string digest = default(string), bool liveMigrationCapable = default(bool), List map = default(List), bool mdev = default(bool)) + { + this.Delete = delete; + this.Description = description; + this.Digest = digest; + this.LiveMigrationCapable = liveMigrationCapable; + this.Map = map; + this.Mdev = mdev; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets LiveMigrationCapable + /// + [DataMember(Name = "live-migration-capable", EmitDefaultValue = true)] + public bool LiveMigrationCapable { get; set; } + + /// + /// Gets or Sets Map + /// + [DataMember(Name = "map", EmitDefaultValue = false)] + public List Map { get; set; } + + /// + /// Gets or Sets Mdev + /// + [DataMember(Name = "mdev", EmitDefaultValue = true)] + public bool Mdev { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterMappingPciSingleRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" LiveMigrationCapable: ").Append(LiveMigrationCapable).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append(" Mdev: ").Append(Mdev).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterMappingUsbSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterMappingUsbSingleRequest.cs new file mode 100644 index 0000000..56aa517 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterMappingUsbSingleRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterMappingUsbSingleRequest + /// + [DataContract(Name = "UpdateClusterMappingUsbSingleRequest")] + public partial class UpdateClusterMappingUsbSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterMappingUsbSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// description. + /// digest. + /// map (required). + public UpdateClusterMappingUsbSingleRequest(string delete = default(string), string description = default(string), string digest = default(string), List map = default(List)) + { + // to ensure "map" is required (not null) + if (map == null) + { + throw new ArgumentNullException("map is a required property for UpdateClusterMappingUsbSingleRequest and cannot be null"); + } + this.Map = map; + this.Delete = delete; + this.Description = description; + this.Digest = digest; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Map + /// + [DataMember(Name = "map", IsRequired = true, EmitDefaultValue = true)] + public List Map { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterMappingUsbSingleRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Map: ").Append(Map).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterMetricsServerSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterMetricsServerSingleRequest.cs new file mode 100644 index 0000000..d15b8b0 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterMetricsServerSingleRequest.cs @@ -0,0 +1,300 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterMetricsServerSingleRequest + /// + [DataContract(Name = "UpdateClusterMetricsServerSingleRequest")] + public partial class UpdateClusterMetricsServerSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterMetricsServerSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// apiPathPrefix. + /// bucket. + /// delete. + /// digest. + /// disable. + /// influxdbproto. + /// maxBodySize. + /// mtu. + /// organization. + /// otelCompression. + /// otelHeaders. + /// otelMaxBodySize. + /// otelPath. + /// otelProtocol. + /// otelResourceAttributes. + /// otelTimeout. + /// otelVerifySsl. + /// path. + /// port (required). + /// proto. + /// server (required). + /// timeout. + /// token. + /// verifyCertificate. + public UpdateClusterMetricsServerSingleRequest(string apiPathPrefix = default(string), string bucket = default(string), string delete = default(string), string digest = default(string), bool disable = default(bool), string influxdbproto = default(string), int maxBodySize = default(int), int mtu = default(int), string organization = default(string), string otelCompression = default(string), string otelHeaders = default(string), int otelMaxBodySize = default(int), string otelPath = default(string), string otelProtocol = default(string), string otelResourceAttributes = default(string), int otelTimeout = default(int), bool otelVerifySsl = default(bool), string path = default(string), int port = default(int), string proto = default(string), string server = default(string), int timeout = default(int), string token = default(string), bool verifyCertificate = default(bool)) + { + this.Port = port; + // to ensure "server" is required (not null) + if (server == null) + { + throw new ArgumentNullException("server is a required property for UpdateClusterMetricsServerSingleRequest and cannot be null"); + } + this.Server = server; + this.ApiPathPrefix = apiPathPrefix; + this.Bucket = bucket; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.Influxdbproto = influxdbproto; + this.MaxBodySize = maxBodySize; + this.Mtu = mtu; + this.Organization = organization; + this.OtelCompression = otelCompression; + this.OtelHeaders = otelHeaders; + this.OtelMaxBodySize = otelMaxBodySize; + this.OtelPath = otelPath; + this.OtelProtocol = otelProtocol; + this.OtelResourceAttributes = otelResourceAttributes; + this.OtelTimeout = otelTimeout; + this.OtelVerifySsl = otelVerifySsl; + this.Path = path; + this.Proto = proto; + this.Timeout = timeout; + this.Token = token; + this.VerifyCertificate = verifyCertificate; + } + + /// + /// Gets or Sets ApiPathPrefix + /// + [DataMember(Name = "api-path-prefix", EmitDefaultValue = false)] + public string ApiPathPrefix { get; set; } + + /// + /// Gets or Sets Bucket + /// + [DataMember(Name = "bucket", EmitDefaultValue = false)] + public string Bucket { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Influxdbproto + /// + [DataMember(Name = "influxdbproto", EmitDefaultValue = false)] + public string Influxdbproto { get; set; } + + /// + /// Gets or Sets MaxBodySize + /// + [DataMember(Name = "max-body-size", EmitDefaultValue = false)] + public int MaxBodySize { get; set; } + + /// + /// Gets or Sets Mtu + /// + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public int Mtu { get; set; } + + /// + /// Gets or Sets Organization + /// + [DataMember(Name = "organization", EmitDefaultValue = false)] + public string Organization { get; set; } + + /// + /// Gets or Sets OtelCompression + /// + [DataMember(Name = "otel-compression", EmitDefaultValue = false)] + public string OtelCompression { get; set; } + + /// + /// Gets or Sets OtelHeaders + /// + [DataMember(Name = "otel-headers", EmitDefaultValue = false)] + public string OtelHeaders { get; set; } + + /// + /// Gets or Sets OtelMaxBodySize + /// + [DataMember(Name = "otel-max-body-size", EmitDefaultValue = false)] + public int OtelMaxBodySize { get; set; } + + /// + /// Gets or Sets OtelPath + /// + [DataMember(Name = "otel-path", EmitDefaultValue = false)] + public string OtelPath { get; set; } + + /// + /// Gets or Sets OtelProtocol + /// + [DataMember(Name = "otel-protocol", EmitDefaultValue = false)] + public string OtelProtocol { get; set; } + + /// + /// Gets or Sets OtelResourceAttributes + /// + [DataMember(Name = "otel-resource-attributes", EmitDefaultValue = false)] + public string OtelResourceAttributes { get; set; } + + /// + /// Gets or Sets OtelTimeout + /// + [DataMember(Name = "otel-timeout", EmitDefaultValue = false)] + public int OtelTimeout { get; set; } + + /// + /// Gets or Sets OtelVerifySsl + /// + [DataMember(Name = "otel-verify-ssl", EmitDefaultValue = true)] + public bool OtelVerifySsl { get; set; } + + /// + /// Gets or Sets Path + /// + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)] + public int Port { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Server + /// + [DataMember(Name = "server", IsRequired = true, EmitDefaultValue = true)] + public string Server { get; set; } + + /// + /// Gets or Sets Timeout + /// + [DataMember(Name = "timeout", EmitDefaultValue = false)] + public int Timeout { get; set; } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets VerifyCertificate + /// + [DataMember(Name = "verify-certificate", EmitDefaultValue = true)] + public bool VerifyCertificate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterMetricsServerSingleRequest {\n"); + sb.Append(" ApiPathPrefix: ").Append(ApiPathPrefix).Append("\n"); + sb.Append(" Bucket: ").Append(Bucket).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Influxdbproto: ").Append(Influxdbproto).Append("\n"); + sb.Append(" MaxBodySize: ").Append(MaxBodySize).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Organization: ").Append(Organization).Append("\n"); + sb.Append(" OtelCompression: ").Append(OtelCompression).Append("\n"); + sb.Append(" OtelHeaders: ").Append(OtelHeaders).Append("\n"); + sb.Append(" OtelMaxBodySize: ").Append(OtelMaxBodySize).Append("\n"); + sb.Append(" OtelPath: ").Append(OtelPath).Append("\n"); + sb.Append(" OtelProtocol: ").Append(OtelProtocol).Append("\n"); + sb.Append(" OtelResourceAttributes: ").Append(OtelResourceAttributes).Append("\n"); + sb.Append(" OtelTimeout: ").Append(OtelTimeout).Append("\n"); + sb.Append(" OtelVerifySsl: ").Append(OtelVerifySsl).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Timeout: ").Append(Timeout).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" VerifyCertificate: ").Append(VerifyCertificate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsGotifySingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsGotifySingleRequest.cs new file mode 100644 index 0000000..bda12ef --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsGotifySingleRequest.cs @@ -0,0 +1,128 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterNotificationsEndpointsGotifySingleRequest + /// + [DataContract(Name = "UpdateClusterNotificationsEndpointsGotifySingleRequest")] + public partial class UpdateClusterNotificationsEndpointsGotifySingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// delete. + /// digest. + /// disable. + /// server. + /// token. + public UpdateClusterNotificationsEndpointsGotifySingleRequest(string comment = default(string), List delete = default(List), string digest = default(string), bool disable = default(bool), string server = default(string), string token = default(string)) + { + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.Server = server; + this.Token = token; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public List Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Server + /// + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterNotificationsEndpointsGotifySingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsSendmailSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsSendmailSingleRequest.cs new file mode 100644 index 0000000..e7c5b56 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsSendmailSingleRequest.cs @@ -0,0 +1,146 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterNotificationsEndpointsSendmailSingleRequest + /// + [DataContract(Name = "UpdateClusterNotificationsEndpointsSendmailSingleRequest")] + public partial class UpdateClusterNotificationsEndpointsSendmailSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// author. + /// comment. + /// delete. + /// digest. + /// disable. + /// fromAddress. + /// mailto. + /// mailtoUser. + public UpdateClusterNotificationsEndpointsSendmailSingleRequest(string author = default(string), string comment = default(string), List delete = default(List), string digest = default(string), bool disable = default(bool), string fromAddress = default(string), List mailto = default(List), List mailtoUser = default(List)) + { + this.Author = author; + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.FromAddress = fromAddress; + this.Mailto = mailto; + this.MailtoUser = mailtoUser; + } + + /// + /// Gets or Sets Author + /// + [DataMember(Name = "author", EmitDefaultValue = false)] + public string Author { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public List Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets FromAddress + /// + [DataMember(Name = "from-address", EmitDefaultValue = false)] + public string FromAddress { get; set; } + + /// + /// Gets or Sets Mailto + /// + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public List Mailto { get; set; } + + /// + /// Gets or Sets MailtoUser + /// + [DataMember(Name = "mailto-user", EmitDefaultValue = false)] + public List MailtoUser { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterNotificationsEndpointsSendmailSingleRequest {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" FromAddress: ").Append(FromAddress).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" MailtoUser: ").Append(MailtoUser).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsSmtpSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsSmtpSingleRequest.cs new file mode 100644 index 0000000..e1a6896 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsSmtpSingleRequest.cs @@ -0,0 +1,191 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterNotificationsEndpointsSmtpSingleRequest + /// + [DataContract(Name = "UpdateClusterNotificationsEndpointsSmtpSingleRequest")] + public partial class UpdateClusterNotificationsEndpointsSmtpSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// author. + /// comment. + /// delete. + /// digest. + /// disable. + /// fromAddress. + /// mailto. + /// mailtoUser. + /// mode. + /// password. + /// port. + /// server. + /// username. + public UpdateClusterNotificationsEndpointsSmtpSingleRequest(string author = default(string), string comment = default(string), List delete = default(List), string digest = default(string), bool disable = default(bool), string fromAddress = default(string), List mailto = default(List), List mailtoUser = default(List), string mode = default(string), string password = default(string), int port = default(int), string server = default(string), string username = default(string)) + { + this.Author = author; + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.FromAddress = fromAddress; + this.Mailto = mailto; + this.MailtoUser = mailtoUser; + this.Mode = mode; + this.Password = password; + this.Port = port; + this.Server = server; + this.Username = username; + } + + /// + /// Gets or Sets Author + /// + [DataMember(Name = "author", EmitDefaultValue = false)] + public string Author { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public List Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets FromAddress + /// + [DataMember(Name = "from-address", EmitDefaultValue = false)] + public string FromAddress { get; set; } + + /// + /// Gets or Sets Mailto + /// + [DataMember(Name = "mailto", EmitDefaultValue = false)] + public List Mailto { get; set; } + + /// + /// Gets or Sets MailtoUser + /// + [DataMember(Name = "mailto-user", EmitDefaultValue = false)] + public List MailtoUser { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public int Port { get; set; } + + /// + /// Gets or Sets Server + /// + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", EmitDefaultValue = false)] + public string Username { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterNotificationsEndpointsSmtpSingleRequest {\n"); + sb.Append(" Author: ").Append(Author).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" FromAddress: ").Append(FromAddress).Append("\n"); + sb.Append(" Mailto: ").Append(Mailto).Append("\n"); + sb.Append(" MailtoUser: ").Append(MailtoUser).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsWebhookSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsWebhookSingleRequest.cs new file mode 100644 index 0000000..f317741 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterNotificationsEndpointsWebhookSingleRequest.cs @@ -0,0 +1,155 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterNotificationsEndpointsWebhookSingleRequest + /// + [DataContract(Name = "UpdateClusterNotificationsEndpointsWebhookSingleRequest")] + public partial class UpdateClusterNotificationsEndpointsWebhookSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// body. + /// comment. + /// delete. + /// digest. + /// disable. + /// header. + /// method. + /// secret. + /// url. + public UpdateClusterNotificationsEndpointsWebhookSingleRequest(string body = default(string), string comment = default(string), List delete = default(List), string digest = default(string), bool disable = default(bool), List header = default(List), string method = default(string), List secret = default(List), string url = default(string)) + { + this.Body = body; + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.Header = header; + this.Method = method; + this.Secret = secret; + this.Url = url; + } + + /// + /// Gets or Sets Body + /// + [DataMember(Name = "body", EmitDefaultValue = false)] + public string Body { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public List Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Header + /// + [DataMember(Name = "header", EmitDefaultValue = false)] + public List Header { get; set; } + + /// + /// Gets or Sets Method + /// + [DataMember(Name = "method", EmitDefaultValue = false)] + public string Method { get; set; } + + /// + /// Gets or Sets Secret + /// + [DataMember(Name = "secret", EmitDefaultValue = false)] + public List Secret { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterNotificationsEndpointsWebhookSingleRequest {\n"); + sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Header: ").Append(Header).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Secret: ").Append(Secret).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterNotificationsMatchersSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterNotificationsMatchersSingleRequest.cs new file mode 100644 index 0000000..79a24b9 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterNotificationsMatchersSingleRequest.cs @@ -0,0 +1,164 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterNotificationsMatchersSingleRequest + /// + [DataContract(Name = "UpdateClusterNotificationsMatchersSingleRequest")] + public partial class UpdateClusterNotificationsMatchersSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// delete. + /// digest. + /// disable. + /// invertMatch. + /// matchCalendar. + /// matchField. + /// matchSeverity. + /// mode. + /// target. + public UpdateClusterNotificationsMatchersSingleRequest(string comment = default(string), List delete = default(List), string digest = default(string), bool disable = default(bool), bool invertMatch = default(bool), List matchCalendar = default(List), List matchField = default(List), List matchSeverity = default(List), string mode = default(string), List target = default(List)) + { + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.InvertMatch = invertMatch; + this.MatchCalendar = matchCalendar; + this.MatchField = matchField; + this.MatchSeverity = matchSeverity; + this.Mode = mode; + this.Target = target; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public List Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets InvertMatch + /// + [DataMember(Name = "invert-match", EmitDefaultValue = true)] + public bool InvertMatch { get; set; } + + /// + /// Gets or Sets MatchCalendar + /// + [DataMember(Name = "match-calendar", EmitDefaultValue = false)] + public List MatchCalendar { get; set; } + + /// + /// Gets or Sets MatchField + /// + [DataMember(Name = "match-field", EmitDefaultValue = false)] + public List MatchField { get; set; } + + /// + /// Gets or Sets MatchSeverity + /// + [DataMember(Name = "match-severity", EmitDefaultValue = false)] + public List MatchSeverity { get; set; } + + /// + /// Gets or Sets Mode + /// + [DataMember(Name = "mode", EmitDefaultValue = false)] + public string Mode { get; set; } + + /// + /// Gets or Sets Target + /// + [DataMember(Name = "target", EmitDefaultValue = false)] + public List Target { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterNotificationsMatchersSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" InvertMatch: ").Append(InvertMatch).Append("\n"); + sb.Append(" MatchCalendar: ").Append(MatchCalendar).Append("\n"); + sb.Append(" MatchField: ").Append(MatchField).Append("\n"); + sb.Append(" MatchSeverity: ").Append(MatchSeverity).Append("\n"); + sb.Append(" Mode: ").Append(Mode).Append("\n"); + sb.Append(" Target: ").Append(Target).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterOptionsRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterOptionsRequest.cs new file mode 100644 index 0000000..de340be --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterOptionsRequest.cs @@ -0,0 +1,290 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterOptionsRequest + /// + [DataContract(Name = "UpdateClusterOptionsRequest")] + public partial class UpdateClusterOptionsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// bwlimit. + /// consentText. + /// console. + /// crs. + /// delete. + /// description. + /// emailFrom. + /// fencing. + /// ha. + /// httpProxy. + /// keyboard. + /// language. + /// macPrefix. + /// maxWorkers. + /// migration. + /// migrationUnsecure. + /// nextId. + /// notify. + /// registeredTags. + /// replication. + /// tagStyle. + /// u2f. + /// userTagAccess. + /// webauthn. + public UpdateClusterOptionsRequest(string bwlimit = default(string), string consentText = default(string), string console = default(string), string crs = default(string), string delete = default(string), string description = default(string), string emailFrom = default(string), string fencing = default(string), string ha = default(string), string httpProxy = default(string), string keyboard = default(string), string language = default(string), string macPrefix = default(string), int maxWorkers = default(int), string migration = default(string), bool migrationUnsecure = default(bool), string nextId = default(string), string notify = default(string), string registeredTags = default(string), string replication = default(string), string tagStyle = default(string), string u2f = default(string), string userTagAccess = default(string), string webauthn = default(string)) + { + this.Bwlimit = bwlimit; + this.ConsentText = consentText; + this.Console = console; + this.Crs = crs; + this.Delete = delete; + this.Description = description; + this.EmailFrom = emailFrom; + this.Fencing = fencing; + this.Ha = ha; + this.HttpProxy = httpProxy; + this.Keyboard = keyboard; + this.Language = language; + this.MacPrefix = macPrefix; + this.MaxWorkers = maxWorkers; + this.Migration = migration; + this.MigrationUnsecure = migrationUnsecure; + this.NextId = nextId; + this.Notify = notify; + this.RegisteredTags = registeredTags; + this.Replication = replication; + this.TagStyle = tagStyle; + this.U2f = u2f; + this.UserTagAccess = userTagAccess; + this.Webauthn = webauthn; + } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public string Bwlimit { get; set; } + + /// + /// Gets or Sets ConsentText + /// + [DataMember(Name = "consent-text", EmitDefaultValue = false)] + public string ConsentText { get; set; } + + /// + /// Gets or Sets Console + /// + [DataMember(Name = "console", EmitDefaultValue = false)] + public string Console { get; set; } + + /// + /// Gets or Sets Crs + /// + [DataMember(Name = "crs", EmitDefaultValue = false)] + public string Crs { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets EmailFrom + /// + [DataMember(Name = "email_from", EmitDefaultValue = false)] + public string EmailFrom { get; set; } + + /// + /// Gets or Sets Fencing + /// + [DataMember(Name = "fencing", EmitDefaultValue = false)] + public string Fencing { get; set; } + + /// + /// Gets or Sets Ha + /// + [DataMember(Name = "ha", EmitDefaultValue = false)] + public string Ha { get; set; } + + /// + /// Gets or Sets HttpProxy + /// + [DataMember(Name = "http_proxy", EmitDefaultValue = false)] + public string HttpProxy { get; set; } + + /// + /// Gets or Sets Keyboard + /// + [DataMember(Name = "keyboard", EmitDefaultValue = false)] + public string Keyboard { get; set; } + + /// + /// Gets or Sets Language + /// + [DataMember(Name = "language", EmitDefaultValue = false)] + public string Language { get; set; } + + /// + /// Gets or Sets MacPrefix + /// + [DataMember(Name = "mac_prefix", EmitDefaultValue = false)] + public string MacPrefix { get; set; } + + /// + /// Gets or Sets MaxWorkers + /// + [DataMember(Name = "max_workers", EmitDefaultValue = false)] + public int MaxWorkers { get; set; } + + /// + /// Gets or Sets Migration + /// + [DataMember(Name = "migration", EmitDefaultValue = false)] + public string Migration { get; set; } + + /// + /// Gets or Sets MigrationUnsecure + /// + [DataMember(Name = "migration_unsecure", EmitDefaultValue = true)] + public bool MigrationUnsecure { get; set; } + + /// + /// Gets or Sets NextId + /// + [DataMember(Name = "next-id", EmitDefaultValue = false)] + public string NextId { get; set; } + + /// + /// Gets or Sets Notify + /// + [DataMember(Name = "notify", EmitDefaultValue = false)] + public string Notify { get; set; } + + /// + /// Gets or Sets RegisteredTags + /// + [DataMember(Name = "registered-tags", EmitDefaultValue = false)] + public string RegisteredTags { get; set; } + + /// + /// Gets or Sets Replication + /// + [DataMember(Name = "replication", EmitDefaultValue = false)] + public string Replication { get; set; } + + /// + /// Gets or Sets TagStyle + /// + [DataMember(Name = "tag-style", EmitDefaultValue = false)] + public string TagStyle { get; set; } + + /// + /// Gets or Sets U2f + /// + [DataMember(Name = "u2f", EmitDefaultValue = false)] + public string U2f { get; set; } + + /// + /// Gets or Sets UserTagAccess + /// + [DataMember(Name = "user-tag-access", EmitDefaultValue = false)] + public string UserTagAccess { get; set; } + + /// + /// Gets or Sets Webauthn + /// + [DataMember(Name = "webauthn", EmitDefaultValue = false)] + public string Webauthn { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterOptionsRequest {\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" ConsentText: ").Append(ConsentText).Append("\n"); + sb.Append(" Console: ").Append(Console).Append("\n"); + sb.Append(" Crs: ").Append(Crs).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" EmailFrom: ").Append(EmailFrom).Append("\n"); + sb.Append(" Fencing: ").Append(Fencing).Append("\n"); + sb.Append(" Ha: ").Append(Ha).Append("\n"); + sb.Append(" HttpProxy: ").Append(HttpProxy).Append("\n"); + sb.Append(" Keyboard: ").Append(Keyboard).Append("\n"); + sb.Append(" Language: ").Append(Language).Append("\n"); + sb.Append(" MacPrefix: ").Append(MacPrefix).Append("\n"); + sb.Append(" MaxWorkers: ").Append(MaxWorkers).Append("\n"); + sb.Append(" Migration: ").Append(Migration).Append("\n"); + sb.Append(" MigrationUnsecure: ").Append(MigrationUnsecure).Append("\n"); + sb.Append(" NextId: ").Append(NextId).Append("\n"); + sb.Append(" Notify: ").Append(Notify).Append("\n"); + sb.Append(" RegisteredTags: ").Append(RegisteredTags).Append("\n"); + sb.Append(" Replication: ").Append(Replication).Append("\n"); + sb.Append(" TagStyle: ").Append(TagStyle).Append("\n"); + sb.Append(" U2f: ").Append(U2f).Append("\n"); + sb.Append(" UserTagAccess: ").Append(UserTagAccess).Append("\n"); + sb.Append(" Webauthn: ").Append(Webauthn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterReplicationSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterReplicationSingleRequest.cs new file mode 100644 index 0000000..b06f11c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterReplicationSingleRequest.cs @@ -0,0 +1,146 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterReplicationSingleRequest + /// + [DataContract(Name = "UpdateClusterReplicationSingleRequest")] + public partial class UpdateClusterReplicationSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// delete. + /// digest. + /// disable. + /// rate. + /// removeJob. + /// schedule. + /// source. + public UpdateClusterReplicationSingleRequest(string comment = default(string), string delete = default(string), string digest = default(string), bool disable = default(bool), decimal rate = default(decimal), string removeJob = default(string), string schedule = default(string), string source = default(string)) + { + this.Comment = comment; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.Rate = rate; + this.RemoveJob = removeJob; + this.Schedule = schedule; + this.Source = source; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Rate + /// + [DataMember(Name = "rate", EmitDefaultValue = false)] + public decimal Rate { get; set; } + + /// + /// Gets or Sets RemoveJob + /// + [DataMember(Name = "remove_job", EmitDefaultValue = false)] + public string RemoveJob { get; set; } + + /// + /// Gets or Sets Schedule + /// + [DataMember(Name = "schedule", EmitDefaultValue = false)] + public string Schedule { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterReplicationSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Rate: ").Append(Rate).Append("\n"); + sb.Append(" RemoveJob: ").Append(RemoveJob).Append("\n"); + sb.Append(" Schedule: ").Append(Schedule).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSDNControllerRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSDNControllerRequest.cs new file mode 100644 index 0000000..5f90c0e --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSDNControllerRequest.cs @@ -0,0 +1,200 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSDNControllerRequest + /// + [DataContract(Name = "UpdateClusterSDNControllerRequest")] + public partial class UpdateClusterSDNControllerRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// asn. + /// bgpMultipathAsPathRelax. + /// delete. + /// digest. + /// ebgp. + /// ebgpMultihop. + /// fabric. + /// isisDomain. + /// isisIfaces. + /// isisNet. + /// lockToken. + /// loopback. + /// node. + /// peers. + public UpdateClusterSDNControllerRequest(int asn = default(int), bool bgpMultipathAsPathRelax = default(bool), string delete = default(string), string digest = default(string), bool ebgp = default(bool), int ebgpMultihop = default(int), string fabric = default(string), string isisDomain = default(string), string isisIfaces = default(string), string isisNet = default(string), string lockToken = default(string), string loopback = default(string), string node = default(string), string peers = default(string)) + { + this.Asn = asn; + this.BgpMultipathAsPathRelax = bgpMultipathAsPathRelax; + this.Delete = delete; + this.Digest = digest; + this.Ebgp = ebgp; + this.EbgpMultihop = ebgpMultihop; + this.Fabric = fabric; + this.IsisDomain = isisDomain; + this.IsisIfaces = isisIfaces; + this.IsisNet = isisNet; + this.LockToken = lockToken; + this.Loopback = loopback; + this.Node = node; + this.Peers = peers; + } + + /// + /// Gets or Sets Asn + /// + [DataMember(Name = "asn", EmitDefaultValue = false)] + public int Asn { get; set; } + + /// + /// Gets or Sets BgpMultipathAsPathRelax + /// + [DataMember(Name = "bgp-multipath-as-path-relax", EmitDefaultValue = true)] + public bool BgpMultipathAsPathRelax { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Ebgp + /// + [DataMember(Name = "ebgp", EmitDefaultValue = true)] + public bool Ebgp { get; set; } + + /// + /// Gets or Sets EbgpMultihop + /// + [DataMember(Name = "ebgp-multihop", EmitDefaultValue = false)] + public int EbgpMultihop { get; set; } + + /// + /// Gets or Sets Fabric + /// + [DataMember(Name = "fabric", EmitDefaultValue = false)] + public string Fabric { get; set; } + + /// + /// Gets or Sets IsisDomain + /// + [DataMember(Name = "isis-domain", EmitDefaultValue = false)] + public string IsisDomain { get; set; } + + /// + /// Gets or Sets IsisIfaces + /// + [DataMember(Name = "isis-ifaces", EmitDefaultValue = false)] + public string IsisIfaces { get; set; } + + /// + /// Gets or Sets IsisNet + /// + [DataMember(Name = "isis-net", EmitDefaultValue = false)] + public string IsisNet { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Loopback + /// + [DataMember(Name = "loopback", EmitDefaultValue = false)] + public string Loopback { get; set; } + + /// + /// Gets or Sets Node + /// + [DataMember(Name = "node", EmitDefaultValue = false)] + public string Node { get; set; } + + /// + /// Gets or Sets Peers + /// + [DataMember(Name = "peers", EmitDefaultValue = false)] + public string Peers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSDNControllerRequest {\n"); + sb.Append(" Asn: ").Append(Asn).Append("\n"); + sb.Append(" BgpMultipathAsPathRelax: ").Append(BgpMultipathAsPathRelax).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Ebgp: ").Append(Ebgp).Append("\n"); + sb.Append(" EbgpMultihop: ").Append(EbgpMultihop).Append("\n"); + sb.Append(" Fabric: ").Append(Fabric).Append("\n"); + sb.Append(" IsisDomain: ").Append(IsisDomain).Append("\n"); + sb.Append(" IsisIfaces: ").Append(IsisIfaces).Append("\n"); + sb.Append(" IsisNet: ").Append(IsisNet).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Loopback: ").Append(Loopback).Append("\n"); + sb.Append(" Node: ").Append(Node).Append("\n"); + sb.Append(" Peers: ").Append(Peers).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSDNRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSDNRequest.cs new file mode 100644 index 0000000..0fcc86e --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSDNRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSDNRequest + /// + [DataContract(Name = "UpdateClusterSDNRequest")] + public partial class UpdateClusterSDNRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// lockToken. + /// releaseLock. + public UpdateClusterSDNRequest(string lockToken = default(string), bool releaseLock = default(bool)) + { + this.LockToken = lockToken; + this.ReleaseLock = releaseLock; + } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets ReleaseLock + /// + [DataMember(Name = "release-lock", EmitDefaultValue = true)] + public bool ReleaseLock { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSDNRequest {\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" ReleaseLock: ").Append(ReleaseLock).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSDNVnetRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSDNVnetRequest.cs new file mode 100644 index 0000000..246172c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSDNVnetRequest.cs @@ -0,0 +1,146 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSDNVnetRequest + /// + [DataContract(Name = "UpdateClusterSDNVnetRequest")] + public partial class UpdateClusterSDNVnetRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// alias. + /// delete. + /// digest. + /// isolatePorts. + /// lockToken. + /// tag. + /// vlanaware. + /// zone. + public UpdateClusterSDNVnetRequest(string alias = default(string), string delete = default(string), string digest = default(string), bool isolatePorts = default(bool), string lockToken = default(string), int tag = default(int), bool vlanaware = default(bool), string zone = default(string)) + { + this.Alias = alias; + this.Delete = delete; + this.Digest = digest; + this.IsolatePorts = isolatePorts; + this.LockToken = lockToken; + this.Tag = tag; + this.Vlanaware = vlanaware; + this.Zone = zone; + } + + /// + /// Gets or Sets Alias + /// + [DataMember(Name = "alias", EmitDefaultValue = false)] + public string Alias { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets IsolatePorts + /// + [DataMember(Name = "isolate-ports", EmitDefaultValue = true)] + public bool IsolatePorts { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Tag + /// + [DataMember(Name = "tag", EmitDefaultValue = false)] + public int Tag { get; set; } + + /// + /// Gets or Sets Vlanaware + /// + [DataMember(Name = "vlanaware", EmitDefaultValue = true)] + public bool Vlanaware { get; set; } + + /// + /// Gets or Sets Zone + /// + [DataMember(Name = "zone", EmitDefaultValue = false)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSDNVnetRequest {\n"); + sb.Append(" Alias: ").Append(Alias).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" IsolatePorts: ").Append(IsolatePorts).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" Vlanaware: ").Append(Vlanaware).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSDNZoneRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSDNZoneRequest.cs new file mode 100644 index 0000000..7f0fc5c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSDNZoneRequest.cs @@ -0,0 +1,317 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSDNZoneRequest + /// + [DataContract(Name = "UpdateClusterSDNZoneRequest")] + public partial class UpdateClusterSDNZoneRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// advertiseSubnets. + /// bridge. + /// bridgeDisableMacLearning. + /// controller. + /// delete. + /// dhcp. + /// digest. + /// disableArpNdSuppression. + /// dns. + /// dnszone. + /// dpId. + /// exitnodes. + /// exitnodesLocalRouting. + /// exitnodesPrimary. + /// fabric. + /// ipam. + /// lockToken. + /// mac. + /// mtu. + /// nodes. + /// peers. + /// reversedns. + /// rtImport. + /// tag. + /// vlanProtocol. + /// vrfVxlan. + /// vxlanPort. + public UpdateClusterSDNZoneRequest(bool advertiseSubnets = default(bool), string bridge = default(string), bool bridgeDisableMacLearning = default(bool), string controller = default(string), string delete = default(string), string dhcp = default(string), string digest = default(string), bool disableArpNdSuppression = default(bool), string dns = default(string), string dnszone = default(string), int dpId = default(int), string exitnodes = default(string), bool exitnodesLocalRouting = default(bool), string exitnodesPrimary = default(string), string fabric = default(string), string ipam = default(string), string lockToken = default(string), string mac = default(string), int mtu = default(int), string nodes = default(string), string peers = default(string), string reversedns = default(string), string rtImport = default(string), int tag = default(int), string vlanProtocol = default(string), int vrfVxlan = default(int), int vxlanPort = default(int)) + { + this.AdvertiseSubnets = advertiseSubnets; + this.Bridge = bridge; + this.BridgeDisableMacLearning = bridgeDisableMacLearning; + this.Controller = controller; + this.Delete = delete; + this.Dhcp = dhcp; + this.Digest = digest; + this.DisableArpNdSuppression = disableArpNdSuppression; + this.Dns = dns; + this.Dnszone = dnszone; + this.DpId = dpId; + this.Exitnodes = exitnodes; + this.ExitnodesLocalRouting = exitnodesLocalRouting; + this.ExitnodesPrimary = exitnodesPrimary; + this.Fabric = fabric; + this.Ipam = ipam; + this.LockToken = lockToken; + this.Mac = mac; + this.Mtu = mtu; + this.Nodes = nodes; + this.Peers = peers; + this.Reversedns = reversedns; + this.RtImport = rtImport; + this.Tag = tag; + this.VlanProtocol = vlanProtocol; + this.VrfVxlan = vrfVxlan; + this.VxlanPort = vxlanPort; + } + + /// + /// Gets or Sets AdvertiseSubnets + /// + [DataMember(Name = "advertise-subnets", EmitDefaultValue = true)] + public bool AdvertiseSubnets { get; set; } + + /// + /// Gets or Sets Bridge + /// + [DataMember(Name = "bridge", EmitDefaultValue = false)] + public string Bridge { get; set; } + + /// + /// Gets or Sets BridgeDisableMacLearning + /// + [DataMember(Name = "bridge-disable-mac-learning", EmitDefaultValue = true)] + public bool BridgeDisableMacLearning { get; set; } + + /// + /// Gets or Sets Controller + /// + [DataMember(Name = "controller", EmitDefaultValue = false)] + public string Controller { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dhcp + /// + [DataMember(Name = "dhcp", EmitDefaultValue = false)] + public string Dhcp { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets DisableArpNdSuppression + /// + [DataMember(Name = "disable-arp-nd-suppression", EmitDefaultValue = true)] + public bool DisableArpNdSuppression { get; set; } + + /// + /// Gets or Sets Dns + /// + [DataMember(Name = "dns", EmitDefaultValue = false)] + public string Dns { get; set; } + + /// + /// Gets or Sets Dnszone + /// + [DataMember(Name = "dnszone", EmitDefaultValue = false)] + public string Dnszone { get; set; } + + /// + /// Gets or Sets DpId + /// + [DataMember(Name = "dp-id", EmitDefaultValue = false)] + public int DpId { get; set; } + + /// + /// Gets or Sets Exitnodes + /// + [DataMember(Name = "exitnodes", EmitDefaultValue = false)] + public string Exitnodes { get; set; } + + /// + /// Gets or Sets ExitnodesLocalRouting + /// + [DataMember(Name = "exitnodes-local-routing", EmitDefaultValue = true)] + public bool ExitnodesLocalRouting { get; set; } + + /// + /// Gets or Sets ExitnodesPrimary + /// + [DataMember(Name = "exitnodes-primary", EmitDefaultValue = false)] + public string ExitnodesPrimary { get; set; } + + /// + /// Gets or Sets Fabric + /// + [DataMember(Name = "fabric", EmitDefaultValue = false)] + public string Fabric { get; set; } + + /// + /// Gets or Sets Ipam + /// + [DataMember(Name = "ipam", EmitDefaultValue = false)] + public string Ipam { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Mac + /// + [DataMember(Name = "mac", EmitDefaultValue = false)] + public string Mac { get; set; } + + /// + /// Gets or Sets Mtu + /// + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public int Mtu { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Peers + /// + [DataMember(Name = "peers", EmitDefaultValue = false)] + public string Peers { get; set; } + + /// + /// Gets or Sets Reversedns + /// + [DataMember(Name = "reversedns", EmitDefaultValue = false)] + public string Reversedns { get; set; } + + /// + /// Gets or Sets RtImport + /// + [DataMember(Name = "rt-import", EmitDefaultValue = false)] + public string RtImport { get; set; } + + /// + /// Gets or Sets Tag + /// + [DataMember(Name = "tag", EmitDefaultValue = false)] + public int Tag { get; set; } + + /// + /// Gets or Sets VlanProtocol + /// + [DataMember(Name = "vlan-protocol", EmitDefaultValue = false)] + public string VlanProtocol { get; set; } + + /// + /// Gets or Sets VrfVxlan + /// + [DataMember(Name = "vrf-vxlan", EmitDefaultValue = false)] + public int VrfVxlan { get; set; } + + /// + /// Gets or Sets VxlanPort + /// + [DataMember(Name = "vxlan-port", EmitDefaultValue = false)] + public int VxlanPort { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSDNZoneRequest {\n"); + sb.Append(" AdvertiseSubnets: ").Append(AdvertiseSubnets).Append("\n"); + sb.Append(" Bridge: ").Append(Bridge).Append("\n"); + sb.Append(" BridgeDisableMacLearning: ").Append(BridgeDisableMacLearning).Append("\n"); + sb.Append(" Controller: ").Append(Controller).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dhcp: ").Append(Dhcp).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" DisableArpNdSuppression: ").Append(DisableArpNdSuppression).Append("\n"); + sb.Append(" Dns: ").Append(Dns).Append("\n"); + sb.Append(" Dnszone: ").Append(Dnszone).Append("\n"); + sb.Append(" DpId: ").Append(DpId).Append("\n"); + sb.Append(" Exitnodes: ").Append(Exitnodes).Append("\n"); + sb.Append(" ExitnodesLocalRouting: ").Append(ExitnodesLocalRouting).Append("\n"); + sb.Append(" ExitnodesPrimary: ").Append(ExitnodesPrimary).Append("\n"); + sb.Append(" Fabric: ").Append(Fabric).Append("\n"); + sb.Append(" Ipam: ").Append(Ipam).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Mac: ").Append(Mac).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Peers: ").Append(Peers).Append("\n"); + sb.Append(" Reversedns: ").Append(Reversedns).Append("\n"); + sb.Append(" RtImport: ").Append(RtImport).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" VlanProtocol: ").Append(VlanProtocol).Append("\n"); + sb.Append(" VrfVxlan: ").Append(VrfVxlan).Append("\n"); + sb.Append(" VxlanPort: ").Append(VxlanPort).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSdnDnsSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSdnDnsSingleRequest.cs new file mode 100644 index 0000000..f6ce7d8 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSdnDnsSingleRequest.cs @@ -0,0 +1,146 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSdnDnsSingleRequest + /// + [DataContract(Name = "UpdateClusterSdnDnsSingleRequest")] + public partial class UpdateClusterSdnDnsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// digest. + /// fingerprint. + /// key. + /// lockToken. + /// reversemaskv6. + /// ttl. + /// url. + public UpdateClusterSdnDnsSingleRequest(string delete = default(string), string digest = default(string), string fingerprint = default(string), string key = default(string), string lockToken = default(string), int reversemaskv6 = default(int), int ttl = default(int), string url = default(string)) + { + this.Delete = delete; + this.Digest = digest; + this.Fingerprint = fingerprint; + this.Key = key; + this.LockToken = lockToken; + this.Reversemaskv6 = reversemaskv6; + this.Ttl = ttl; + this.Url = url; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Fingerprint + /// + [DataMember(Name = "fingerprint", EmitDefaultValue = false)] + public string Fingerprint { get; set; } + + /// + /// Gets or Sets Key + /// + [DataMember(Name = "key", EmitDefaultValue = false)] + public string Key { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Reversemaskv6 + /// + [DataMember(Name = "reversemaskv6", EmitDefaultValue = false)] + public int Reversemaskv6 { get; set; } + + /// + /// Gets or Sets Ttl + /// + [DataMember(Name = "ttl", EmitDefaultValue = false)] + public int Ttl { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSdnDnsSingleRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Fingerprint: ").Append(Fingerprint).Append("\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Reversemaskv6: ").Append(Reversemaskv6).Append("\n"); + sb.Append(" Ttl: ").Append(Ttl).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSdnFabricsFabricSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSdnFabricsFabricSingleRequest.cs new file mode 100644 index 0000000..1bd60d7 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSdnFabricsFabricSingleRequest.cs @@ -0,0 +1,170 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSdnFabricsFabricSingleRequest + /// + [DataContract(Name = "UpdateClusterSdnFabricsFabricSingleRequest")] + public partial class UpdateClusterSdnFabricsFabricSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterSdnFabricsFabricSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// area. + /// csnpInterval. + /// delete (required). + /// digest. + /// helloInterval. + /// ip6Prefix. + /// ipPrefix. + /// lockToken. + /// protocol (required). + public UpdateClusterSdnFabricsFabricSingleRequest(string area = default(string), decimal csnpInterval = default(decimal), List delete = default(List), string digest = default(string), decimal helloInterval = default(decimal), string ip6Prefix = default(string), string ipPrefix = default(string), string lockToken = default(string), string protocol = default(string)) + { + // to ensure "delete" is required (not null) + if (delete == null) + { + throw new ArgumentNullException("delete is a required property for UpdateClusterSdnFabricsFabricSingleRequest and cannot be null"); + } + this.Delete = delete; + // to ensure "protocol" is required (not null) + if (protocol == null) + { + throw new ArgumentNullException("protocol is a required property for UpdateClusterSdnFabricsFabricSingleRequest and cannot be null"); + } + this.Protocol = protocol; + this.Area = area; + this.CsnpInterval = csnpInterval; + this.Digest = digest; + this.HelloInterval = helloInterval; + this.Ip6Prefix = ip6Prefix; + this.IpPrefix = ipPrefix; + this.LockToken = lockToken; + } + + /// + /// Gets or Sets Area + /// + [DataMember(Name = "area", EmitDefaultValue = false)] + public string Area { get; set; } + + /// + /// Gets or Sets CsnpInterval + /// + [DataMember(Name = "csnp_interval", EmitDefaultValue = false)] + public decimal CsnpInterval { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", IsRequired = true, EmitDefaultValue = true)] + public List Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets HelloInterval + /// + [DataMember(Name = "hello_interval", EmitDefaultValue = false)] + public decimal HelloInterval { get; set; } + + /// + /// Gets or Sets Ip6Prefix + /// + [DataMember(Name = "ip6_prefix", EmitDefaultValue = false)] + public string Ip6Prefix { get; set; } + + /// + /// Gets or Sets IpPrefix + /// + [DataMember(Name = "ip_prefix", EmitDefaultValue = false)] + public string IpPrefix { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Protocol + /// + [DataMember(Name = "protocol", IsRequired = true, EmitDefaultValue = true)] + public string Protocol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSdnFabricsFabricSingleRequest {\n"); + sb.Append(" Area: ").Append(Area).Append("\n"); + sb.Append(" CsnpInterval: ").Append(CsnpInterval).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" HelloInterval: ").Append(HelloInterval).Append("\n"); + sb.Append(" Ip6Prefix: ").Append(Ip6Prefix).Append("\n"); + sb.Append(" IpPrefix: ").Append(IpPrefix).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Protocol: ").Append(Protocol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSdnFabricsNodeSingleSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSdnFabricsNodeSingleSingleRequest.cs new file mode 100644 index 0000000..e6072f1 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSdnFabricsNodeSingleSingleRequest.cs @@ -0,0 +1,152 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSdnFabricsNodeSingleSingleRequest + /// + [DataContract(Name = "UpdateClusterSdnFabricsNodeSingleSingleRequest")] + public partial class UpdateClusterSdnFabricsNodeSingleSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterSdnFabricsNodeSingleSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// digest. + /// interfaces (required). + /// ip. + /// ip6. + /// lockToken. + /// protocol (required). + public UpdateClusterSdnFabricsNodeSingleSingleRequest(List delete = default(List), string digest = default(string), List interfaces = default(List), string ip = default(string), string ip6 = default(string), string lockToken = default(string), string protocol = default(string)) + { + // to ensure "interfaces" is required (not null) + if (interfaces == null) + { + throw new ArgumentNullException("interfaces is a required property for UpdateClusterSdnFabricsNodeSingleSingleRequest and cannot be null"); + } + this.Interfaces = interfaces; + // to ensure "protocol" is required (not null) + if (protocol == null) + { + throw new ArgumentNullException("protocol is a required property for UpdateClusterSdnFabricsNodeSingleSingleRequest and cannot be null"); + } + this.Protocol = protocol; + this.Delete = delete; + this.Digest = digest; + this.Ip = ip; + this.Ip6 = ip6; + this.LockToken = lockToken; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public List Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Interfaces + /// + [DataMember(Name = "interfaces", IsRequired = true, EmitDefaultValue = true)] + public List Interfaces { get; set; } + + /// + /// Gets or Sets Ip + /// + [DataMember(Name = "ip", EmitDefaultValue = false)] + public string Ip { get; set; } + + /// + /// Gets or Sets Ip6 + /// + [DataMember(Name = "ip6", EmitDefaultValue = false)] + public string Ip6 { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Protocol + /// + [DataMember(Name = "protocol", IsRequired = true, EmitDefaultValue = true)] + public string Protocol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSdnFabricsNodeSingleSingleRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Interfaces: ").Append(Interfaces).Append("\n"); + sb.Append(" Ip: ").Append(Ip).Append("\n"); + sb.Append(" Ip6: ").Append(Ip6).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Protocol: ").Append(Protocol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSdnIpamsSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSdnIpamsSingleRequest.cs new file mode 100644 index 0000000..6b23d54 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSdnIpamsSingleRequest.cs @@ -0,0 +1,137 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSdnIpamsSingleRequest + /// + [DataContract(Name = "UpdateClusterSdnIpamsSingleRequest")] + public partial class UpdateClusterSdnIpamsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// digest. + /// fingerprint. + /// lockToken. + /// section. + /// token. + /// url. + public UpdateClusterSdnIpamsSingleRequest(string delete = default(string), string digest = default(string), string fingerprint = default(string), string lockToken = default(string), int section = default(int), string token = default(string), string url = default(string)) + { + this.Delete = delete; + this.Digest = digest; + this.Fingerprint = fingerprint; + this.LockToken = lockToken; + this.Section = section; + this.Token = token; + this.Url = url; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Fingerprint + /// + [DataMember(Name = "fingerprint", EmitDefaultValue = false)] + public string Fingerprint { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Section + /// + [DataMember(Name = "section", EmitDefaultValue = false)] + public int Section { get; set; } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSdnIpamsSingleRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Fingerprint: ").Append(Fingerprint).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Section: ").Append(Section).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleFirewallOptionsRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleFirewallOptionsRequest.cs new file mode 100644 index 0000000..329a8e6 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleFirewallOptionsRequest.cs @@ -0,0 +1,119 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSdnVnetsSingleFirewallOptionsRequest + /// + [DataContract(Name = "UpdateClusterSdnVnetsSingleFirewallOptionsRequest")] + public partial class UpdateClusterSdnVnetsSingleFirewallOptionsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// digest. + /// enable. + /// logLevelForward. + /// policyForward. + public UpdateClusterSdnVnetsSingleFirewallOptionsRequest(string delete = default(string), string digest = default(string), bool enable = default(bool), string logLevelForward = default(string), string policyForward = default(string)) + { + this.Delete = delete; + this.Digest = digest; + this.Enable = enable; + this.LogLevelForward = logLevelForward; + this.PolicyForward = policyForward; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = true)] + public bool Enable { get; set; } + + /// + /// Gets or Sets LogLevelForward + /// + [DataMember(Name = "log_level_forward", EmitDefaultValue = false)] + public string LogLevelForward { get; set; } + + /// + /// Gets or Sets PolicyForward + /// + [DataMember(Name = "policy_forward", EmitDefaultValue = false)] + public string PolicyForward { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSdnVnetsSingleFirewallOptionsRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" LogLevelForward: ").Append(LogLevelForward).Append("\n"); + sb.Append(" PolicyForward: ").Append(PolicyForward).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest.cs new file mode 100644 index 0000000..47cc8bf --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest.cs @@ -0,0 +1,218 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest + /// + [DataContract(Name = "UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest")] + public partial class UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// action. + /// comment. + /// delete. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// moveto. + /// proto. + /// source. + /// sport. + /// type. + public UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest(string action = default(string), string comment = default(string), string delete = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int moveto = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + this.Action = action; + this.Comment = comment; + this.Delete = delete; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Moveto = moveto; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + this.Type = type; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", EmitDefaultValue = false)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Moveto + /// + [DataMember(Name = "moveto", EmitDefaultValue = false)] + public int Moveto { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Moveto: ").Append(Moveto).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleIpsRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleIpsRequest.cs new file mode 100644 index 0000000..bcde3f3 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleIpsRequest.cs @@ -0,0 +1,125 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSdnVnetsSingleIpsRequest + /// + [DataContract(Name = "UpdateClusterSdnVnetsSingleIpsRequest")] + public partial class UpdateClusterSdnVnetsSingleIpsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateClusterSdnVnetsSingleIpsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// ip (required). + /// mac. + /// vmid. + /// zone (required). + public UpdateClusterSdnVnetsSingleIpsRequest(string ip = default(string), string mac = default(string), int vmid = default(int), string zone = default(string)) + { + // to ensure "ip" is required (not null) + if (ip == null) + { + throw new ArgumentNullException("ip is a required property for UpdateClusterSdnVnetsSingleIpsRequest and cannot be null"); + } + this.Ip = ip; + // to ensure "zone" is required (not null) + if (zone == null) + { + throw new ArgumentNullException("zone is a required property for UpdateClusterSdnVnetsSingleIpsRequest and cannot be null"); + } + this.Zone = zone; + this.Mac = mac; + this.Vmid = vmid; + } + + /// + /// Gets or Sets Ip + /// + [DataMember(Name = "ip", IsRequired = true, EmitDefaultValue = true)] + public string Ip { get; set; } + + /// + /// Gets or Sets Mac + /// + [DataMember(Name = "mac", EmitDefaultValue = false)] + public string Mac { get; set; } + + /// + /// Gets or Sets Vmid + /// + [DataMember(Name = "vmid", EmitDefaultValue = false)] + public int Vmid { get; set; } + + /// + /// Gets or Sets Zone + /// + [DataMember(Name = "zone", IsRequired = true, EmitDefaultValue = true)] + public string Zone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSdnVnetsSingleIpsRequest {\n"); + sb.Append(" Ip: ").Append(Ip).Append("\n"); + sb.Append(" Mac: ").Append(Mac).Append("\n"); + sb.Append(" Vmid: ").Append(Vmid).Append("\n"); + sb.Append(" Zone: ").Append(Zone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleSubnetsSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleSubnetsSingleRequest.cs new file mode 100644 index 0000000..0b40b47 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateClusterSdnVnetsSingleSubnetsSingleRequest.cs @@ -0,0 +1,146 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateClusterSdnVnetsSingleSubnetsSingleRequest + /// + [DataContract(Name = "UpdateClusterSdnVnetsSingleSubnetsSingleRequest")] + public partial class UpdateClusterSdnVnetsSingleSubnetsSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// dhcpDnsServer. + /// dhcpRange. + /// digest. + /// dnszoneprefix. + /// gateway. + /// lockToken. + /// snat. + public UpdateClusterSdnVnetsSingleSubnetsSingleRequest(string delete = default(string), string dhcpDnsServer = default(string), List dhcpRange = default(List), string digest = default(string), string dnszoneprefix = default(string), string gateway = default(string), string lockToken = default(string), bool snat = default(bool)) + { + this.Delete = delete; + this.DhcpDnsServer = dhcpDnsServer; + this.DhcpRange = dhcpRange; + this.Digest = digest; + this.Dnszoneprefix = dnszoneprefix; + this.Gateway = gateway; + this.LockToken = lockToken; + this.Snat = snat; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets DhcpDnsServer + /// + [DataMember(Name = "dhcp-dns-server", EmitDefaultValue = false)] + public string DhcpDnsServer { get; set; } + + /// + /// Gets or Sets DhcpRange + /// + [DataMember(Name = "dhcp-range", EmitDefaultValue = false)] + public List DhcpRange { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dnszoneprefix + /// + [DataMember(Name = "dnszoneprefix", EmitDefaultValue = false)] + public string Dnszoneprefix { get; set; } + + /// + /// Gets or Sets Gateway + /// + [DataMember(Name = "gateway", EmitDefaultValue = false)] + public string Gateway { get; set; } + + /// + /// Gets or Sets LockToken + /// + [DataMember(Name = "lock-token", EmitDefaultValue = false)] + public string LockToken { get; set; } + + /// + /// Gets or Sets Snat + /// + [DataMember(Name = "snat", EmitDefaultValue = true)] + public bool Snat { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateClusterSdnVnetsSingleSubnetsSingleRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" DhcpDnsServer: ").Append(DhcpDnsServer).Append("\n"); + sb.Append(" DhcpRange: ").Append(DhcpRange).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dnszoneprefix: ").Append(Dnszoneprefix).Append("\n"); + sb.Append(" Gateway: ").Append(Gateway).Append("\n"); + sb.Append(" LockToken: ").Append(LockToken).Append("\n"); + sb.Append(" Snat: ").Append(Snat).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodeFirewallOptionsRequest.cs b/src/ProxmoxSharp/Model/UpdateNodeFirewallOptionsRequest.cs new file mode 100644 index 0000000..1df99fa --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodeFirewallOptionsRequest.cs @@ -0,0 +1,263 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodeFirewallOptionsRequest + /// + [DataContract(Name = "UpdateNodeFirewallOptionsRequest")] + public partial class UpdateNodeFirewallOptionsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// digest. + /// enable. + /// logLevelForward. + /// logLevelIn. + /// logLevelOut. + /// logNfConntrack. + /// ndp. + /// nfConntrackAllowInvalid. + /// nfConntrackHelpers. + /// nfConntrackMax. + /// nfConntrackTcpTimeoutEstablished. + /// nfConntrackTcpTimeoutSynRecv. + /// nftables. + /// nosmurfs. + /// protectionSynflood. + /// protectionSynfloodBurst. + /// protectionSynfloodRate. + /// smurfLogLevel. + /// tcpFlagsLogLevel. + /// tcpflags. + public UpdateNodeFirewallOptionsRequest(string delete = default(string), string digest = default(string), bool enable = default(bool), string logLevelForward = default(string), string logLevelIn = default(string), string logLevelOut = default(string), bool logNfConntrack = default(bool), bool ndp = default(bool), bool nfConntrackAllowInvalid = default(bool), string nfConntrackHelpers = default(string), int nfConntrackMax = default(int), int nfConntrackTcpTimeoutEstablished = default(int), int nfConntrackTcpTimeoutSynRecv = default(int), bool nftables = default(bool), bool nosmurfs = default(bool), bool protectionSynflood = default(bool), int protectionSynfloodBurst = default(int), int protectionSynfloodRate = default(int), string smurfLogLevel = default(string), string tcpFlagsLogLevel = default(string), bool tcpflags = default(bool)) + { + this.Delete = delete; + this.Digest = digest; + this.Enable = enable; + this.LogLevelForward = logLevelForward; + this.LogLevelIn = logLevelIn; + this.LogLevelOut = logLevelOut; + this.LogNfConntrack = logNfConntrack; + this.Ndp = ndp; + this.NfConntrackAllowInvalid = nfConntrackAllowInvalid; + this.NfConntrackHelpers = nfConntrackHelpers; + this.NfConntrackMax = nfConntrackMax; + this.NfConntrackTcpTimeoutEstablished = nfConntrackTcpTimeoutEstablished; + this.NfConntrackTcpTimeoutSynRecv = nfConntrackTcpTimeoutSynRecv; + this.Nftables = nftables; + this.Nosmurfs = nosmurfs; + this.ProtectionSynflood = protectionSynflood; + this.ProtectionSynfloodBurst = protectionSynfloodBurst; + this.ProtectionSynfloodRate = protectionSynfloodRate; + this.SmurfLogLevel = smurfLogLevel; + this.TcpFlagsLogLevel = tcpFlagsLogLevel; + this.Tcpflags = tcpflags; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = true)] + public bool Enable { get; set; } + + /// + /// Gets or Sets LogLevelForward + /// + [DataMember(Name = "log_level_forward", EmitDefaultValue = false)] + public string LogLevelForward { get; set; } + + /// + /// Gets or Sets LogLevelIn + /// + [DataMember(Name = "log_level_in", EmitDefaultValue = false)] + public string LogLevelIn { get; set; } + + /// + /// Gets or Sets LogLevelOut + /// + [DataMember(Name = "log_level_out", EmitDefaultValue = false)] + public string LogLevelOut { get; set; } + + /// + /// Gets or Sets LogNfConntrack + /// + [DataMember(Name = "log_nf_conntrack", EmitDefaultValue = true)] + public bool LogNfConntrack { get; set; } + + /// + /// Gets or Sets Ndp + /// + [DataMember(Name = "ndp", EmitDefaultValue = true)] + public bool Ndp { get; set; } + + /// + /// Gets or Sets NfConntrackAllowInvalid + /// + [DataMember(Name = "nf_conntrack_allow_invalid", EmitDefaultValue = true)] + public bool NfConntrackAllowInvalid { get; set; } + + /// + /// Gets or Sets NfConntrackHelpers + /// + [DataMember(Name = "nf_conntrack_helpers", EmitDefaultValue = false)] + public string NfConntrackHelpers { get; set; } + + /// + /// Gets or Sets NfConntrackMax + /// + [DataMember(Name = "nf_conntrack_max", EmitDefaultValue = false)] + public int NfConntrackMax { get; set; } + + /// + /// Gets or Sets NfConntrackTcpTimeoutEstablished + /// + [DataMember(Name = "nf_conntrack_tcp_timeout_established", EmitDefaultValue = false)] + public int NfConntrackTcpTimeoutEstablished { get; set; } + + /// + /// Gets or Sets NfConntrackTcpTimeoutSynRecv + /// + [DataMember(Name = "nf_conntrack_tcp_timeout_syn_recv", EmitDefaultValue = false)] + public int NfConntrackTcpTimeoutSynRecv { get; set; } + + /// + /// Gets or Sets Nftables + /// + [DataMember(Name = "nftables", EmitDefaultValue = true)] + public bool Nftables { get; set; } + + /// + /// Gets or Sets Nosmurfs + /// + [DataMember(Name = "nosmurfs", EmitDefaultValue = true)] + public bool Nosmurfs { get; set; } + + /// + /// Gets or Sets ProtectionSynflood + /// + [DataMember(Name = "protection_synflood", EmitDefaultValue = true)] + public bool ProtectionSynflood { get; set; } + + /// + /// Gets or Sets ProtectionSynfloodBurst + /// + [DataMember(Name = "protection_synflood_burst", EmitDefaultValue = false)] + public int ProtectionSynfloodBurst { get; set; } + + /// + /// Gets or Sets ProtectionSynfloodRate + /// + [DataMember(Name = "protection_synflood_rate", EmitDefaultValue = false)] + public int ProtectionSynfloodRate { get; set; } + + /// + /// Gets or Sets SmurfLogLevel + /// + [DataMember(Name = "smurf_log_level", EmitDefaultValue = false)] + public string SmurfLogLevel { get; set; } + + /// + /// Gets or Sets TcpFlagsLogLevel + /// + [DataMember(Name = "tcp_flags_log_level", EmitDefaultValue = false)] + public string TcpFlagsLogLevel { get; set; } + + /// + /// Gets or Sets Tcpflags + /// + [DataMember(Name = "tcpflags", EmitDefaultValue = true)] + public bool Tcpflags { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodeFirewallOptionsRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" LogLevelForward: ").Append(LogLevelForward).Append("\n"); + sb.Append(" LogLevelIn: ").Append(LogLevelIn).Append("\n"); + sb.Append(" LogLevelOut: ").Append(LogLevelOut).Append("\n"); + sb.Append(" LogNfConntrack: ").Append(LogNfConntrack).Append("\n"); + sb.Append(" Ndp: ").Append(Ndp).Append("\n"); + sb.Append(" NfConntrackAllowInvalid: ").Append(NfConntrackAllowInvalid).Append("\n"); + sb.Append(" NfConntrackHelpers: ").Append(NfConntrackHelpers).Append("\n"); + sb.Append(" NfConntrackMax: ").Append(NfConntrackMax).Append("\n"); + sb.Append(" NfConntrackTcpTimeoutEstablished: ").Append(NfConntrackTcpTimeoutEstablished).Append("\n"); + sb.Append(" NfConntrackTcpTimeoutSynRecv: ").Append(NfConntrackTcpTimeoutSynRecv).Append("\n"); + sb.Append(" Nftables: ").Append(Nftables).Append("\n"); + sb.Append(" Nosmurfs: ").Append(Nosmurfs).Append("\n"); + sb.Append(" ProtectionSynflood: ").Append(ProtectionSynflood).Append("\n"); + sb.Append(" ProtectionSynfloodBurst: ").Append(ProtectionSynfloodBurst).Append("\n"); + sb.Append(" ProtectionSynfloodRate: ").Append(ProtectionSynfloodRate).Append("\n"); + sb.Append(" SmurfLogLevel: ").Append(SmurfLogLevel).Append("\n"); + sb.Append(" TcpFlagsLogLevel: ").Append(TcpFlagsLogLevel).Append("\n"); + sb.Append(" Tcpflags: ").Append(Tcpflags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodeFirewallRuleRequest.cs b/src/ProxmoxSharp/Model/UpdateNodeFirewallRuleRequest.cs new file mode 100644 index 0000000..f91d730 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodeFirewallRuleRequest.cs @@ -0,0 +1,218 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodeFirewallRuleRequest + /// + [DataContract(Name = "UpdateNodeFirewallRuleRequest")] + public partial class UpdateNodeFirewallRuleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// action. + /// comment. + /// delete. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// moveto. + /// proto. + /// source. + /// sport. + /// type. + public UpdateNodeFirewallRuleRequest(string action = default(string), string comment = default(string), string delete = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int moveto = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + this.Action = action; + this.Comment = comment; + this.Delete = delete; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Moveto = moveto; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + this.Type = type; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", EmitDefaultValue = false)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Moveto + /// + [DataMember(Name = "moveto", EmitDefaultValue = false)] + public int Moveto { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodeFirewallRuleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Moveto: ").Append(Moveto).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleAptRepositoriesRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleAptRepositoriesRequest.cs new file mode 100644 index 0000000..ed06aa1 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleAptRepositoriesRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleAptRepositoriesRequest + /// + [DataContract(Name = "UpdateNodesSingleAptRepositoriesRequest")] + public partial class UpdateNodesSingleAptRepositoriesRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleAptRepositoriesRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// digest. + /// handle (required). + public UpdateNodesSingleAptRepositoriesRequest(string digest = default(string), string handle = default(string)) + { + // to ensure "handle" is required (not null) + if (handle == null) + { + throw new ArgumentNullException("handle is a required property for UpdateNodesSingleAptRepositoriesRequest and cannot be null"); + } + this.Handle = handle; + this.Digest = digest; + } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Handle + /// + [DataMember(Name = "handle", IsRequired = true, EmitDefaultValue = true)] + public string Handle { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleAptRepositoriesRequest {\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Handle: ").Append(Handle).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleCephPoolSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleCephPoolSingleRequest.cs new file mode 100644 index 0000000..c94ac5c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleCephPoolSingleRequest.cs @@ -0,0 +1,155 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleCephPoolSingleRequest + /// + [DataContract(Name = "UpdateNodesSingleCephPoolSingleRequest")] + public partial class UpdateNodesSingleCephPoolSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// application. + /// crushRule. + /// minSize. + /// pgAutoscaleMode. + /// pgNum. + /// pgNumMin. + /// size. + /// targetSize. + /// targetSizeRatio. + public UpdateNodesSingleCephPoolSingleRequest(string application = default(string), string crushRule = default(string), int minSize = default(int), string pgAutoscaleMode = default(string), int pgNum = default(int), int pgNumMin = default(int), int size = default(int), string targetSize = default(string), decimal targetSizeRatio = default(decimal)) + { + this.Application = application; + this.CrushRule = crushRule; + this.MinSize = minSize; + this.PgAutoscaleMode = pgAutoscaleMode; + this.PgNum = pgNum; + this.PgNumMin = pgNumMin; + this.Size = size; + this.TargetSize = targetSize; + this.TargetSizeRatio = targetSizeRatio; + } + + /// + /// Gets or Sets Application + /// + [DataMember(Name = "application", EmitDefaultValue = false)] + public string Application { get; set; } + + /// + /// Gets or Sets CrushRule + /// + [DataMember(Name = "crush_rule", EmitDefaultValue = false)] + public string CrushRule { get; set; } + + /// + /// Gets or Sets MinSize + /// + [DataMember(Name = "min_size", EmitDefaultValue = false)] + public int MinSize { get; set; } + + /// + /// Gets or Sets PgAutoscaleMode + /// + [DataMember(Name = "pg_autoscale_mode", EmitDefaultValue = false)] + public string PgAutoscaleMode { get; set; } + + /// + /// Gets or Sets PgNum + /// + [DataMember(Name = "pg_num", EmitDefaultValue = false)] + public int PgNum { get; set; } + + /// + /// Gets or Sets PgNumMin + /// + [DataMember(Name = "pg_num_min", EmitDefaultValue = false)] + public int PgNumMin { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public int Size { get; set; } + + /// + /// Gets or Sets TargetSize + /// + [DataMember(Name = "target_size", EmitDefaultValue = false)] + public string TargetSize { get; set; } + + /// + /// Gets or Sets TargetSizeRatio + /// + [DataMember(Name = "target_size_ratio", EmitDefaultValue = false)] + public decimal TargetSizeRatio { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleCephPoolSingleRequest {\n"); + sb.Append(" Application: ").Append(Application).Append("\n"); + sb.Append(" CrushRule: ").Append(CrushRule).Append("\n"); + sb.Append(" MinSize: ").Append(MinSize).Append("\n"); + sb.Append(" PgAutoscaleMode: ").Append(PgAutoscaleMode).Append("\n"); + sb.Append(" PgNum: ").Append(PgNum).Append("\n"); + sb.Append(" PgNumMin: ").Append(PgNumMin).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" TargetSize: ").Append(TargetSize).Append("\n"); + sb.Append(" TargetSizeRatio: ").Append(TargetSizeRatio).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleCertificatesAcmeCertificateRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleCertificatesAcmeCertificateRequest.cs new file mode 100644 index 0000000..70cf90d --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleCertificatesAcmeCertificateRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleCertificatesAcmeCertificateRequest + /// + [DataContract(Name = "UpdateNodesSingleCertificatesAcmeCertificateRequest")] + public partial class UpdateNodesSingleCertificatesAcmeCertificateRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// force. + public UpdateNodesSingleCertificatesAcmeCertificateRequest(bool force = default(bool)) + { + this.Force = force; + } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleCertificatesAcmeCertificateRequest {\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleConfigRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleConfigRequest.cs new file mode 100644 index 0000000..f30dc60 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleConfigRequest.cs @@ -0,0 +1,407 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleConfigRequest + /// + [DataContract(Name = "UpdateNodesSingleConfigRequest")] + public partial class UpdateNodesSingleConfigRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// acme. + /// acmedomain0. + /// acmedomain1. + /// acmedomain2. + /// acmedomain3. + /// acmedomain4. + /// acmedomain5. + /// acmedomain6. + /// acmedomain7. + /// acmedomain8. + /// acmedomain9. + /// acmedomain10. + /// acmedomain11. + /// acmedomain12. + /// acmedomain13. + /// acmedomain14. + /// acmedomain15. + /// acmedomain16. + /// acmedomain17. + /// acmedomain18. + /// acmedomain19. + /// acmedomain20. + /// acmedomain21. + /// acmedomain22. + /// acmedomain23. + /// acmedomain24. + /// acmedomain25. + /// acmedomain26. + /// acmedomain27. + /// acmedomain28. + /// acmedomain29. + /// ballooningTarget. + /// delete. + /// description. + /// digest. + /// startallOnbootDelay. + /// wakeonlan. + public UpdateNodesSingleConfigRequest(string acme = default(string), string acmedomain0 = default(string), string acmedomain1 = default(string), string acmedomain2 = default(string), string acmedomain3 = default(string), string acmedomain4 = default(string), string acmedomain5 = default(string), string acmedomain6 = default(string), string acmedomain7 = default(string), string acmedomain8 = default(string), string acmedomain9 = default(string), string acmedomain10 = default(string), string acmedomain11 = default(string), string acmedomain12 = default(string), string acmedomain13 = default(string), string acmedomain14 = default(string), string acmedomain15 = default(string), string acmedomain16 = default(string), string acmedomain17 = default(string), string acmedomain18 = default(string), string acmedomain19 = default(string), string acmedomain20 = default(string), string acmedomain21 = default(string), string acmedomain22 = default(string), string acmedomain23 = default(string), string acmedomain24 = default(string), string acmedomain25 = default(string), string acmedomain26 = default(string), string acmedomain27 = default(string), string acmedomain28 = default(string), string acmedomain29 = default(string), int ballooningTarget = default(int), string delete = default(string), string description = default(string), string digest = default(string), int startallOnbootDelay = default(int), string wakeonlan = default(string)) + { + this.Acme = acme; + this.Acmedomain0 = acmedomain0; + this.Acmedomain1 = acmedomain1; + this.Acmedomain2 = acmedomain2; + this.Acmedomain3 = acmedomain3; + this.Acmedomain4 = acmedomain4; + this.Acmedomain5 = acmedomain5; + this.Acmedomain6 = acmedomain6; + this.Acmedomain7 = acmedomain7; + this.Acmedomain8 = acmedomain8; + this.Acmedomain9 = acmedomain9; + this.Acmedomain10 = acmedomain10; + this.Acmedomain11 = acmedomain11; + this.Acmedomain12 = acmedomain12; + this.Acmedomain13 = acmedomain13; + this.Acmedomain14 = acmedomain14; + this.Acmedomain15 = acmedomain15; + this.Acmedomain16 = acmedomain16; + this.Acmedomain17 = acmedomain17; + this.Acmedomain18 = acmedomain18; + this.Acmedomain19 = acmedomain19; + this.Acmedomain20 = acmedomain20; + this.Acmedomain21 = acmedomain21; + this.Acmedomain22 = acmedomain22; + this.Acmedomain23 = acmedomain23; + this.Acmedomain24 = acmedomain24; + this.Acmedomain25 = acmedomain25; + this.Acmedomain26 = acmedomain26; + this.Acmedomain27 = acmedomain27; + this.Acmedomain28 = acmedomain28; + this.Acmedomain29 = acmedomain29; + this.BallooningTarget = ballooningTarget; + this.Delete = delete; + this.Description = description; + this.Digest = digest; + this.StartallOnbootDelay = startallOnbootDelay; + this.Wakeonlan = wakeonlan; + } + + /// + /// Gets or Sets Acme + /// + [DataMember(Name = "acme", EmitDefaultValue = false)] + public string Acme { get; set; } + + /// + /// Gets or Sets Acmedomain0 + /// + [DataMember(Name = "acmedomain0", EmitDefaultValue = false)] + public string Acmedomain0 { get; set; } + + /// + /// Gets or Sets Acmedomain1 + /// + [DataMember(Name = "acmedomain1", EmitDefaultValue = false)] + public string Acmedomain1 { get; set; } + + /// + /// Gets or Sets Acmedomain2 + /// + [DataMember(Name = "acmedomain2", EmitDefaultValue = false)] + public string Acmedomain2 { get; set; } + + /// + /// Gets or Sets Acmedomain3 + /// + [DataMember(Name = "acmedomain3", EmitDefaultValue = false)] + public string Acmedomain3 { get; set; } + + /// + /// Gets or Sets Acmedomain4 + /// + [DataMember(Name = "acmedomain4", EmitDefaultValue = false)] + public string Acmedomain4 { get; set; } + + /// + /// Gets or Sets Acmedomain5 + /// + [DataMember(Name = "acmedomain5", EmitDefaultValue = false)] + public string Acmedomain5 { get; set; } + + /// + /// Gets or Sets Acmedomain6 + /// + [DataMember(Name = "acmedomain6", EmitDefaultValue = false)] + public string Acmedomain6 { get; set; } + + /// + /// Gets or Sets Acmedomain7 + /// + [DataMember(Name = "acmedomain7", EmitDefaultValue = false)] + public string Acmedomain7 { get; set; } + + /// + /// Gets or Sets Acmedomain8 + /// + [DataMember(Name = "acmedomain8", EmitDefaultValue = false)] + public string Acmedomain8 { get; set; } + + /// + /// Gets or Sets Acmedomain9 + /// + [DataMember(Name = "acmedomain9", EmitDefaultValue = false)] + public string Acmedomain9 { get; set; } + + /// + /// Gets or Sets Acmedomain10 + /// + [DataMember(Name = "acmedomain10", EmitDefaultValue = false)] + public string Acmedomain10 { get; set; } + + /// + /// Gets or Sets Acmedomain11 + /// + [DataMember(Name = "acmedomain11", EmitDefaultValue = false)] + public string Acmedomain11 { get; set; } + + /// + /// Gets or Sets Acmedomain12 + /// + [DataMember(Name = "acmedomain12", EmitDefaultValue = false)] + public string Acmedomain12 { get; set; } + + /// + /// Gets or Sets Acmedomain13 + /// + [DataMember(Name = "acmedomain13", EmitDefaultValue = false)] + public string Acmedomain13 { get; set; } + + /// + /// Gets or Sets Acmedomain14 + /// + [DataMember(Name = "acmedomain14", EmitDefaultValue = false)] + public string Acmedomain14 { get; set; } + + /// + /// Gets or Sets Acmedomain15 + /// + [DataMember(Name = "acmedomain15", EmitDefaultValue = false)] + public string Acmedomain15 { get; set; } + + /// + /// Gets or Sets Acmedomain16 + /// + [DataMember(Name = "acmedomain16", EmitDefaultValue = false)] + public string Acmedomain16 { get; set; } + + /// + /// Gets or Sets Acmedomain17 + /// + [DataMember(Name = "acmedomain17", EmitDefaultValue = false)] + public string Acmedomain17 { get; set; } + + /// + /// Gets or Sets Acmedomain18 + /// + [DataMember(Name = "acmedomain18", EmitDefaultValue = false)] + public string Acmedomain18 { get; set; } + + /// + /// Gets or Sets Acmedomain19 + /// + [DataMember(Name = "acmedomain19", EmitDefaultValue = false)] + public string Acmedomain19 { get; set; } + + /// + /// Gets or Sets Acmedomain20 + /// + [DataMember(Name = "acmedomain20", EmitDefaultValue = false)] + public string Acmedomain20 { get; set; } + + /// + /// Gets or Sets Acmedomain21 + /// + [DataMember(Name = "acmedomain21", EmitDefaultValue = false)] + public string Acmedomain21 { get; set; } + + /// + /// Gets or Sets Acmedomain22 + /// + [DataMember(Name = "acmedomain22", EmitDefaultValue = false)] + public string Acmedomain22 { get; set; } + + /// + /// Gets or Sets Acmedomain23 + /// + [DataMember(Name = "acmedomain23", EmitDefaultValue = false)] + public string Acmedomain23 { get; set; } + + /// + /// Gets or Sets Acmedomain24 + /// + [DataMember(Name = "acmedomain24", EmitDefaultValue = false)] + public string Acmedomain24 { get; set; } + + /// + /// Gets or Sets Acmedomain25 + /// + [DataMember(Name = "acmedomain25", EmitDefaultValue = false)] + public string Acmedomain25 { get; set; } + + /// + /// Gets or Sets Acmedomain26 + /// + [DataMember(Name = "acmedomain26", EmitDefaultValue = false)] + public string Acmedomain26 { get; set; } + + /// + /// Gets or Sets Acmedomain27 + /// + [DataMember(Name = "acmedomain27", EmitDefaultValue = false)] + public string Acmedomain27 { get; set; } + + /// + /// Gets or Sets Acmedomain28 + /// + [DataMember(Name = "acmedomain28", EmitDefaultValue = false)] + public string Acmedomain28 { get; set; } + + /// + /// Gets or Sets Acmedomain29 + /// + [DataMember(Name = "acmedomain29", EmitDefaultValue = false)] + public string Acmedomain29 { get; set; } + + /// + /// Gets or Sets BallooningTarget + /// + [DataMember(Name = "ballooning-target", EmitDefaultValue = false)] + public int BallooningTarget { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets StartallOnbootDelay + /// + [DataMember(Name = "startall-onboot-delay", EmitDefaultValue = false)] + public int StartallOnbootDelay { get; set; } + + /// + /// Gets or Sets Wakeonlan + /// + [DataMember(Name = "wakeonlan", EmitDefaultValue = false)] + public string Wakeonlan { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleConfigRequest {\n"); + sb.Append(" Acme: ").Append(Acme).Append("\n"); + sb.Append(" Acmedomain0: ").Append(Acmedomain0).Append("\n"); + sb.Append(" Acmedomain1: ").Append(Acmedomain1).Append("\n"); + sb.Append(" Acmedomain2: ").Append(Acmedomain2).Append("\n"); + sb.Append(" Acmedomain3: ").Append(Acmedomain3).Append("\n"); + sb.Append(" Acmedomain4: ").Append(Acmedomain4).Append("\n"); + sb.Append(" Acmedomain5: ").Append(Acmedomain5).Append("\n"); + sb.Append(" Acmedomain6: ").Append(Acmedomain6).Append("\n"); + sb.Append(" Acmedomain7: ").Append(Acmedomain7).Append("\n"); + sb.Append(" Acmedomain8: ").Append(Acmedomain8).Append("\n"); + sb.Append(" Acmedomain9: ").Append(Acmedomain9).Append("\n"); + sb.Append(" Acmedomain10: ").Append(Acmedomain10).Append("\n"); + sb.Append(" Acmedomain11: ").Append(Acmedomain11).Append("\n"); + sb.Append(" Acmedomain12: ").Append(Acmedomain12).Append("\n"); + sb.Append(" Acmedomain13: ").Append(Acmedomain13).Append("\n"); + sb.Append(" Acmedomain14: ").Append(Acmedomain14).Append("\n"); + sb.Append(" Acmedomain15: ").Append(Acmedomain15).Append("\n"); + sb.Append(" Acmedomain16: ").Append(Acmedomain16).Append("\n"); + sb.Append(" Acmedomain17: ").Append(Acmedomain17).Append("\n"); + sb.Append(" Acmedomain18: ").Append(Acmedomain18).Append("\n"); + sb.Append(" Acmedomain19: ").Append(Acmedomain19).Append("\n"); + sb.Append(" Acmedomain20: ").Append(Acmedomain20).Append("\n"); + sb.Append(" Acmedomain21: ").Append(Acmedomain21).Append("\n"); + sb.Append(" Acmedomain22: ").Append(Acmedomain22).Append("\n"); + sb.Append(" Acmedomain23: ").Append(Acmedomain23).Append("\n"); + sb.Append(" Acmedomain24: ").Append(Acmedomain24).Append("\n"); + sb.Append(" Acmedomain25: ").Append(Acmedomain25).Append("\n"); + sb.Append(" Acmedomain26: ").Append(Acmedomain26).Append("\n"); + sb.Append(" Acmedomain27: ").Append(Acmedomain27).Append("\n"); + sb.Append(" Acmedomain28: ").Append(Acmedomain28).Append("\n"); + sb.Append(" Acmedomain29: ").Append(Acmedomain29).Append("\n"); + sb.Append(" BallooningTarget: ").Append(BallooningTarget).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" StartallOnbootDelay: ").Append(StartallOnbootDelay).Append("\n"); + sb.Append(" Wakeonlan: ").Append(Wakeonlan).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleDisksWipediskRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleDisksWipediskRequest.cs new file mode 100644 index 0000000..d19ef59 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleDisksWipediskRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleDisksWipediskRequest + /// + [DataContract(Name = "UpdateNodesSingleDisksWipediskRequest")] + public partial class UpdateNodesSingleDisksWipediskRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleDisksWipediskRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// disk (required). + public UpdateNodesSingleDisksWipediskRequest(string disk = default(string)) + { + // to ensure "disk" is required (not null) + if (disk == null) + { + throw new ArgumentNullException("disk is a required property for UpdateNodesSingleDisksWipediskRequest and cannot be null"); + } + this.Disk = disk; + } + + /// + /// Gets or Sets Disk + /// + [DataMember(Name = "disk", IsRequired = true, EmitDefaultValue = true)] + public string Disk { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleDisksWipediskRequest {\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleDnsRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleDnsRequest.cs new file mode 100644 index 0000000..1c27200 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleDnsRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleDnsRequest + /// + [DataContract(Name = "UpdateNodesSingleDnsRequest")] + public partial class UpdateNodesSingleDnsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleDnsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// dns1. + /// dns2. + /// dns3. + /// search (required). + public UpdateNodesSingleDnsRequest(string dns1 = default(string), string dns2 = default(string), string dns3 = default(string), string search = default(string)) + { + // to ensure "search" is required (not null) + if (search == null) + { + throw new ArgumentNullException("search is a required property for UpdateNodesSingleDnsRequest and cannot be null"); + } + this.Search = search; + this.Dns1 = dns1; + this.Dns2 = dns2; + this.Dns3 = dns3; + } + + /// + /// Gets or Sets Dns1 + /// + [DataMember(Name = "dns1", EmitDefaultValue = false)] + public string Dns1 { get; set; } + + /// + /// Gets or Sets Dns2 + /// + [DataMember(Name = "dns2", EmitDefaultValue = false)] + public string Dns2 { get; set; } + + /// + /// Gets or Sets Dns3 + /// + [DataMember(Name = "dns3", EmitDefaultValue = false)] + public string Dns3 { get; set; } + + /// + /// Gets or Sets Search + /// + [DataMember(Name = "search", IsRequired = true, EmitDefaultValue = true)] + public string Search { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleDnsRequest {\n"); + sb.Append(" Dns1: ").Append(Dns1).Append("\n"); + sb.Append(" Dns2: ").Append(Dns2).Append("\n"); + sb.Append(" Dns3: ").Append(Dns3).Append("\n"); + sb.Append(" Search: ").Append(Search).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleConfigRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleConfigRequest.cs new file mode 100644 index 0000000..607eb4a --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleConfigRequest.cs @@ -0,0 +1,1433 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleLxcSingleConfigRequest + /// + [DataContract(Name = "UpdateNodesSingleLxcSingleConfigRequest")] + public partial class UpdateNodesSingleLxcSingleConfigRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// arch. + /// cmode. + /// console. + /// cores. + /// cpulimit. + /// cpuunits. + /// debug. + /// delete. + /// description. + /// dev0. + /// dev1. + /// dev2. + /// dev3. + /// dev4. + /// dev5. + /// dev6. + /// dev7. + /// dev8. + /// dev9. + /// dev10. + /// dev11. + /// dev12. + /// dev13. + /// dev14. + /// dev15. + /// dev16. + /// dev17. + /// dev18. + /// dev19. + /// dev20. + /// dev21. + /// dev22. + /// dev23. + /// dev24. + /// dev25. + /// dev26. + /// dev27. + /// dev28. + /// dev29. + /// digest. + /// entrypoint. + /// env. + /// features. + /// hookscript. + /// hostname. + /// varLock. + /// memory. + /// mp0. + /// mp1. + /// mp2. + /// mp3. + /// mp4. + /// mp5. + /// mp6. + /// mp7. + /// mp8. + /// mp9. + /// mp10. + /// mp11. + /// mp12. + /// mp13. + /// mp14. + /// mp15. + /// mp16. + /// mp17. + /// mp18. + /// mp19. + /// mp20. + /// mp21. + /// mp22. + /// mp23. + /// mp24. + /// mp25. + /// mp26. + /// mp27. + /// mp28. + /// mp29. + /// nameserver. + /// net0. + /// net1. + /// net2. + /// net3. + /// net4. + /// net5. + /// net6. + /// net7. + /// net8. + /// net9. + /// net10. + /// net11. + /// net12. + /// net13. + /// net14. + /// net15. + /// net16. + /// net17. + /// net18. + /// net19. + /// net20. + /// net21. + /// net22. + /// net23. + /// net24. + /// net25. + /// net26. + /// net27. + /// net28. + /// net29. + /// onboot. + /// ostype. + /// protection. + /// revert. + /// rootfs. + /// searchdomain. + /// startup. + /// swap. + /// tags. + /// template. + /// timezone. + /// tty. + /// unprivileged. + /// unused0. + /// unused1. + /// unused2. + /// unused3. + /// unused4. + /// unused5. + /// unused6. + /// unused7. + /// unused8. + /// unused9. + /// unused10. + /// unused11. + /// unused12. + /// unused13. + /// unused14. + /// unused15. + /// unused16. + /// unused17. + /// unused18. + /// unused19. + /// unused20. + /// unused21. + /// unused22. + /// unused23. + /// unused24. + /// unused25. + /// unused26. + /// unused27. + /// unused28. + /// unused29. + public UpdateNodesSingleLxcSingleConfigRequest(string arch = default(string), string cmode = default(string), bool console = default(bool), int cores = default(int), decimal cpulimit = default(decimal), int cpuunits = default(int), bool debug = default(bool), string delete = default(string), string description = default(string), string dev0 = default(string), string dev1 = default(string), string dev2 = default(string), string dev3 = default(string), string dev4 = default(string), string dev5 = default(string), string dev6 = default(string), string dev7 = default(string), string dev8 = default(string), string dev9 = default(string), string dev10 = default(string), string dev11 = default(string), string dev12 = default(string), string dev13 = default(string), string dev14 = default(string), string dev15 = default(string), string dev16 = default(string), string dev17 = default(string), string dev18 = default(string), string dev19 = default(string), string dev20 = default(string), string dev21 = default(string), string dev22 = default(string), string dev23 = default(string), string dev24 = default(string), string dev25 = default(string), string dev26 = default(string), string dev27 = default(string), string dev28 = default(string), string dev29 = default(string), string digest = default(string), string entrypoint = default(string), string env = default(string), string features = default(string), string hookscript = default(string), string hostname = default(string), string varLock = default(string), int memory = default(int), string mp0 = default(string), string mp1 = default(string), string mp2 = default(string), string mp3 = default(string), string mp4 = default(string), string mp5 = default(string), string mp6 = default(string), string mp7 = default(string), string mp8 = default(string), string mp9 = default(string), string mp10 = default(string), string mp11 = default(string), string mp12 = default(string), string mp13 = default(string), string mp14 = default(string), string mp15 = default(string), string mp16 = default(string), string mp17 = default(string), string mp18 = default(string), string mp19 = default(string), string mp20 = default(string), string mp21 = default(string), string mp22 = default(string), string mp23 = default(string), string mp24 = default(string), string mp25 = default(string), string mp26 = default(string), string mp27 = default(string), string mp28 = default(string), string mp29 = default(string), string nameserver = default(string), string net0 = default(string), string net1 = default(string), string net2 = default(string), string net3 = default(string), string net4 = default(string), string net5 = default(string), string net6 = default(string), string net7 = default(string), string net8 = default(string), string net9 = default(string), string net10 = default(string), string net11 = default(string), string net12 = default(string), string net13 = default(string), string net14 = default(string), string net15 = default(string), string net16 = default(string), string net17 = default(string), string net18 = default(string), string net19 = default(string), string net20 = default(string), string net21 = default(string), string net22 = default(string), string net23 = default(string), string net24 = default(string), string net25 = default(string), string net26 = default(string), string net27 = default(string), string net28 = default(string), string net29 = default(string), bool onboot = default(bool), string ostype = default(string), bool protection = default(bool), string revert = default(string), string rootfs = default(string), string searchdomain = default(string), string startup = default(string), int swap = default(int), string tags = default(string), bool template = default(bool), string timezone = default(string), int tty = default(int), bool unprivileged = default(bool), string unused0 = default(string), string unused1 = default(string), string unused2 = default(string), string unused3 = default(string), string unused4 = default(string), string unused5 = default(string), string unused6 = default(string), string unused7 = default(string), string unused8 = default(string), string unused9 = default(string), string unused10 = default(string), string unused11 = default(string), string unused12 = default(string), string unused13 = default(string), string unused14 = default(string), string unused15 = default(string), string unused16 = default(string), string unused17 = default(string), string unused18 = default(string), string unused19 = default(string), string unused20 = default(string), string unused21 = default(string), string unused22 = default(string), string unused23 = default(string), string unused24 = default(string), string unused25 = default(string), string unused26 = default(string), string unused27 = default(string), string unused28 = default(string), string unused29 = default(string)) + { + this.Arch = arch; + this.Cmode = cmode; + this.Console = console; + this.Cores = cores; + this.Cpulimit = cpulimit; + this.Cpuunits = cpuunits; + this.Debug = debug; + this.Delete = delete; + this.Description = description; + this.Dev0 = dev0; + this.Dev1 = dev1; + this.Dev2 = dev2; + this.Dev3 = dev3; + this.Dev4 = dev4; + this.Dev5 = dev5; + this.Dev6 = dev6; + this.Dev7 = dev7; + this.Dev8 = dev8; + this.Dev9 = dev9; + this.Dev10 = dev10; + this.Dev11 = dev11; + this.Dev12 = dev12; + this.Dev13 = dev13; + this.Dev14 = dev14; + this.Dev15 = dev15; + this.Dev16 = dev16; + this.Dev17 = dev17; + this.Dev18 = dev18; + this.Dev19 = dev19; + this.Dev20 = dev20; + this.Dev21 = dev21; + this.Dev22 = dev22; + this.Dev23 = dev23; + this.Dev24 = dev24; + this.Dev25 = dev25; + this.Dev26 = dev26; + this.Dev27 = dev27; + this.Dev28 = dev28; + this.Dev29 = dev29; + this.Digest = digest; + this.Entrypoint = entrypoint; + this.Env = env; + this.Features = features; + this.Hookscript = hookscript; + this.Hostname = hostname; + this.Lock = varLock; + this.Memory = memory; + this.Mp0 = mp0; + this.Mp1 = mp1; + this.Mp2 = mp2; + this.Mp3 = mp3; + this.Mp4 = mp4; + this.Mp5 = mp5; + this.Mp6 = mp6; + this.Mp7 = mp7; + this.Mp8 = mp8; + this.Mp9 = mp9; + this.Mp10 = mp10; + this.Mp11 = mp11; + this.Mp12 = mp12; + this.Mp13 = mp13; + this.Mp14 = mp14; + this.Mp15 = mp15; + this.Mp16 = mp16; + this.Mp17 = mp17; + this.Mp18 = mp18; + this.Mp19 = mp19; + this.Mp20 = mp20; + this.Mp21 = mp21; + this.Mp22 = mp22; + this.Mp23 = mp23; + this.Mp24 = mp24; + this.Mp25 = mp25; + this.Mp26 = mp26; + this.Mp27 = mp27; + this.Mp28 = mp28; + this.Mp29 = mp29; + this.Nameserver = nameserver; + this.Net0 = net0; + this.Net1 = net1; + this.Net2 = net2; + this.Net3 = net3; + this.Net4 = net4; + this.Net5 = net5; + this.Net6 = net6; + this.Net7 = net7; + this.Net8 = net8; + this.Net9 = net9; + this.Net10 = net10; + this.Net11 = net11; + this.Net12 = net12; + this.Net13 = net13; + this.Net14 = net14; + this.Net15 = net15; + this.Net16 = net16; + this.Net17 = net17; + this.Net18 = net18; + this.Net19 = net19; + this.Net20 = net20; + this.Net21 = net21; + this.Net22 = net22; + this.Net23 = net23; + this.Net24 = net24; + this.Net25 = net25; + this.Net26 = net26; + this.Net27 = net27; + this.Net28 = net28; + this.Net29 = net29; + this.Onboot = onboot; + this.Ostype = ostype; + this.Protection = protection; + this.Revert = revert; + this.Rootfs = rootfs; + this.Searchdomain = searchdomain; + this.Startup = startup; + this.Swap = swap; + this.Tags = tags; + this.Template = template; + this.Timezone = timezone; + this.Tty = tty; + this.Unprivileged = unprivileged; + this.Unused0 = unused0; + this.Unused1 = unused1; + this.Unused2 = unused2; + this.Unused3 = unused3; + this.Unused4 = unused4; + this.Unused5 = unused5; + this.Unused6 = unused6; + this.Unused7 = unused7; + this.Unused8 = unused8; + this.Unused9 = unused9; + this.Unused10 = unused10; + this.Unused11 = unused11; + this.Unused12 = unused12; + this.Unused13 = unused13; + this.Unused14 = unused14; + this.Unused15 = unused15; + this.Unused16 = unused16; + this.Unused17 = unused17; + this.Unused18 = unused18; + this.Unused19 = unused19; + this.Unused20 = unused20; + this.Unused21 = unused21; + this.Unused22 = unused22; + this.Unused23 = unused23; + this.Unused24 = unused24; + this.Unused25 = unused25; + this.Unused26 = unused26; + this.Unused27 = unused27; + this.Unused28 = unused28; + this.Unused29 = unused29; + } + + /// + /// Gets or Sets Arch + /// + [DataMember(Name = "arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Gets or Sets Cmode + /// + [DataMember(Name = "cmode", EmitDefaultValue = false)] + public string Cmode { get; set; } + + /// + /// Gets or Sets Console + /// + [DataMember(Name = "console", EmitDefaultValue = true)] + public bool Console { get; set; } + + /// + /// Gets or Sets Cores + /// + [DataMember(Name = "cores", EmitDefaultValue = false)] + public int Cores { get; set; } + + /// + /// Gets or Sets Cpulimit + /// + [DataMember(Name = "cpulimit", EmitDefaultValue = false)] + public decimal Cpulimit { get; set; } + + /// + /// Gets or Sets Cpuunits + /// + [DataMember(Name = "cpuunits", EmitDefaultValue = false)] + public int Cpuunits { get; set; } + + /// + /// Gets or Sets Debug + /// + [DataMember(Name = "debug", EmitDefaultValue = true)] + public bool Debug { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Dev0 + /// + [DataMember(Name = "dev0", EmitDefaultValue = false)] + public string Dev0 { get; set; } + + /// + /// Gets or Sets Dev1 + /// + [DataMember(Name = "dev1", EmitDefaultValue = false)] + public string Dev1 { get; set; } + + /// + /// Gets or Sets Dev2 + /// + [DataMember(Name = "dev2", EmitDefaultValue = false)] + public string Dev2 { get; set; } + + /// + /// Gets or Sets Dev3 + /// + [DataMember(Name = "dev3", EmitDefaultValue = false)] + public string Dev3 { get; set; } + + /// + /// Gets or Sets Dev4 + /// + [DataMember(Name = "dev4", EmitDefaultValue = false)] + public string Dev4 { get; set; } + + /// + /// Gets or Sets Dev5 + /// + [DataMember(Name = "dev5", EmitDefaultValue = false)] + public string Dev5 { get; set; } + + /// + /// Gets or Sets Dev6 + /// + [DataMember(Name = "dev6", EmitDefaultValue = false)] + public string Dev6 { get; set; } + + /// + /// Gets or Sets Dev7 + /// + [DataMember(Name = "dev7", EmitDefaultValue = false)] + public string Dev7 { get; set; } + + /// + /// Gets or Sets Dev8 + /// + [DataMember(Name = "dev8", EmitDefaultValue = false)] + public string Dev8 { get; set; } + + /// + /// Gets or Sets Dev9 + /// + [DataMember(Name = "dev9", EmitDefaultValue = false)] + public string Dev9 { get; set; } + + /// + /// Gets or Sets Dev10 + /// + [DataMember(Name = "dev10", EmitDefaultValue = false)] + public string Dev10 { get; set; } + + /// + /// Gets or Sets Dev11 + /// + [DataMember(Name = "dev11", EmitDefaultValue = false)] + public string Dev11 { get; set; } + + /// + /// Gets or Sets Dev12 + /// + [DataMember(Name = "dev12", EmitDefaultValue = false)] + public string Dev12 { get; set; } + + /// + /// Gets or Sets Dev13 + /// + [DataMember(Name = "dev13", EmitDefaultValue = false)] + public string Dev13 { get; set; } + + /// + /// Gets or Sets Dev14 + /// + [DataMember(Name = "dev14", EmitDefaultValue = false)] + public string Dev14 { get; set; } + + /// + /// Gets or Sets Dev15 + /// + [DataMember(Name = "dev15", EmitDefaultValue = false)] + public string Dev15 { get; set; } + + /// + /// Gets or Sets Dev16 + /// + [DataMember(Name = "dev16", EmitDefaultValue = false)] + public string Dev16 { get; set; } + + /// + /// Gets or Sets Dev17 + /// + [DataMember(Name = "dev17", EmitDefaultValue = false)] + public string Dev17 { get; set; } + + /// + /// Gets or Sets Dev18 + /// + [DataMember(Name = "dev18", EmitDefaultValue = false)] + public string Dev18 { get; set; } + + /// + /// Gets or Sets Dev19 + /// + [DataMember(Name = "dev19", EmitDefaultValue = false)] + public string Dev19 { get; set; } + + /// + /// Gets or Sets Dev20 + /// + [DataMember(Name = "dev20", EmitDefaultValue = false)] + public string Dev20 { get; set; } + + /// + /// Gets or Sets Dev21 + /// + [DataMember(Name = "dev21", EmitDefaultValue = false)] + public string Dev21 { get; set; } + + /// + /// Gets or Sets Dev22 + /// + [DataMember(Name = "dev22", EmitDefaultValue = false)] + public string Dev22 { get; set; } + + /// + /// Gets or Sets Dev23 + /// + [DataMember(Name = "dev23", EmitDefaultValue = false)] + public string Dev23 { get; set; } + + /// + /// Gets or Sets Dev24 + /// + [DataMember(Name = "dev24", EmitDefaultValue = false)] + public string Dev24 { get; set; } + + /// + /// Gets or Sets Dev25 + /// + [DataMember(Name = "dev25", EmitDefaultValue = false)] + public string Dev25 { get; set; } + + /// + /// Gets or Sets Dev26 + /// + [DataMember(Name = "dev26", EmitDefaultValue = false)] + public string Dev26 { get; set; } + + /// + /// Gets or Sets Dev27 + /// + [DataMember(Name = "dev27", EmitDefaultValue = false)] + public string Dev27 { get; set; } + + /// + /// Gets or Sets Dev28 + /// + [DataMember(Name = "dev28", EmitDefaultValue = false)] + public string Dev28 { get; set; } + + /// + /// Gets or Sets Dev29 + /// + [DataMember(Name = "dev29", EmitDefaultValue = false)] + public string Dev29 { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Entrypoint + /// + [DataMember(Name = "entrypoint", EmitDefaultValue = false)] + public string Entrypoint { get; set; } + + /// + /// Gets or Sets Env + /// + [DataMember(Name = "env", EmitDefaultValue = false)] + public string Env { get; set; } + + /// + /// Gets or Sets Features + /// + [DataMember(Name = "features", EmitDefaultValue = false)] + public string Features { get; set; } + + /// + /// Gets or Sets Hookscript + /// + [DataMember(Name = "hookscript", EmitDefaultValue = false)] + public string Hookscript { get; set; } + + /// + /// Gets or Sets Hostname + /// + [DataMember(Name = "hostname", EmitDefaultValue = false)] + public string Hostname { get; set; } + + /// + /// Gets or Sets Lock + /// + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Gets or Sets Memory + /// + [DataMember(Name = "memory", EmitDefaultValue = false)] + public int Memory { get; set; } + + /// + /// Gets or Sets Mp0 + /// + [DataMember(Name = "mp0", EmitDefaultValue = false)] + public string Mp0 { get; set; } + + /// + /// Gets or Sets Mp1 + /// + [DataMember(Name = "mp1", EmitDefaultValue = false)] + public string Mp1 { get; set; } + + /// + /// Gets or Sets Mp2 + /// + [DataMember(Name = "mp2", EmitDefaultValue = false)] + public string Mp2 { get; set; } + + /// + /// Gets or Sets Mp3 + /// + [DataMember(Name = "mp3", EmitDefaultValue = false)] + public string Mp3 { get; set; } + + /// + /// Gets or Sets Mp4 + /// + [DataMember(Name = "mp4", EmitDefaultValue = false)] + public string Mp4 { get; set; } + + /// + /// Gets or Sets Mp5 + /// + [DataMember(Name = "mp5", EmitDefaultValue = false)] + public string Mp5 { get; set; } + + /// + /// Gets or Sets Mp6 + /// + [DataMember(Name = "mp6", EmitDefaultValue = false)] + public string Mp6 { get; set; } + + /// + /// Gets or Sets Mp7 + /// + [DataMember(Name = "mp7", EmitDefaultValue = false)] + public string Mp7 { get; set; } + + /// + /// Gets or Sets Mp8 + /// + [DataMember(Name = "mp8", EmitDefaultValue = false)] + public string Mp8 { get; set; } + + /// + /// Gets or Sets Mp9 + /// + [DataMember(Name = "mp9", EmitDefaultValue = false)] + public string Mp9 { get; set; } + + /// + /// Gets or Sets Mp10 + /// + [DataMember(Name = "mp10", EmitDefaultValue = false)] + public string Mp10 { get; set; } + + /// + /// Gets or Sets Mp11 + /// + [DataMember(Name = "mp11", EmitDefaultValue = false)] + public string Mp11 { get; set; } + + /// + /// Gets or Sets Mp12 + /// + [DataMember(Name = "mp12", EmitDefaultValue = false)] + public string Mp12 { get; set; } + + /// + /// Gets or Sets Mp13 + /// + [DataMember(Name = "mp13", EmitDefaultValue = false)] + public string Mp13 { get; set; } + + /// + /// Gets or Sets Mp14 + /// + [DataMember(Name = "mp14", EmitDefaultValue = false)] + public string Mp14 { get; set; } + + /// + /// Gets or Sets Mp15 + /// + [DataMember(Name = "mp15", EmitDefaultValue = false)] + public string Mp15 { get; set; } + + /// + /// Gets or Sets Mp16 + /// + [DataMember(Name = "mp16", EmitDefaultValue = false)] + public string Mp16 { get; set; } + + /// + /// Gets or Sets Mp17 + /// + [DataMember(Name = "mp17", EmitDefaultValue = false)] + public string Mp17 { get; set; } + + /// + /// Gets or Sets Mp18 + /// + [DataMember(Name = "mp18", EmitDefaultValue = false)] + public string Mp18 { get; set; } + + /// + /// Gets or Sets Mp19 + /// + [DataMember(Name = "mp19", EmitDefaultValue = false)] + public string Mp19 { get; set; } + + /// + /// Gets or Sets Mp20 + /// + [DataMember(Name = "mp20", EmitDefaultValue = false)] + public string Mp20 { get; set; } + + /// + /// Gets or Sets Mp21 + /// + [DataMember(Name = "mp21", EmitDefaultValue = false)] + public string Mp21 { get; set; } + + /// + /// Gets or Sets Mp22 + /// + [DataMember(Name = "mp22", EmitDefaultValue = false)] + public string Mp22 { get; set; } + + /// + /// Gets or Sets Mp23 + /// + [DataMember(Name = "mp23", EmitDefaultValue = false)] + public string Mp23 { get; set; } + + /// + /// Gets or Sets Mp24 + /// + [DataMember(Name = "mp24", EmitDefaultValue = false)] + public string Mp24 { get; set; } + + /// + /// Gets or Sets Mp25 + /// + [DataMember(Name = "mp25", EmitDefaultValue = false)] + public string Mp25 { get; set; } + + /// + /// Gets or Sets Mp26 + /// + [DataMember(Name = "mp26", EmitDefaultValue = false)] + public string Mp26 { get; set; } + + /// + /// Gets or Sets Mp27 + /// + [DataMember(Name = "mp27", EmitDefaultValue = false)] + public string Mp27 { get; set; } + + /// + /// Gets or Sets Mp28 + /// + [DataMember(Name = "mp28", EmitDefaultValue = false)] + public string Mp28 { get; set; } + + /// + /// Gets or Sets Mp29 + /// + [DataMember(Name = "mp29", EmitDefaultValue = false)] + public string Mp29 { get; set; } + + /// + /// Gets or Sets Nameserver + /// + [DataMember(Name = "nameserver", EmitDefaultValue = false)] + public string Nameserver { get; set; } + + /// + /// Gets or Sets Net0 + /// + [DataMember(Name = "net0", EmitDefaultValue = false)] + public string Net0 { get; set; } + + /// + /// Gets or Sets Net1 + /// + [DataMember(Name = "net1", EmitDefaultValue = false)] + public string Net1 { get; set; } + + /// + /// Gets or Sets Net2 + /// + [DataMember(Name = "net2", EmitDefaultValue = false)] + public string Net2 { get; set; } + + /// + /// Gets or Sets Net3 + /// + [DataMember(Name = "net3", EmitDefaultValue = false)] + public string Net3 { get; set; } + + /// + /// Gets or Sets Net4 + /// + [DataMember(Name = "net4", EmitDefaultValue = false)] + public string Net4 { get; set; } + + /// + /// Gets or Sets Net5 + /// + [DataMember(Name = "net5", EmitDefaultValue = false)] + public string Net5 { get; set; } + + /// + /// Gets or Sets Net6 + /// + [DataMember(Name = "net6", EmitDefaultValue = false)] + public string Net6 { get; set; } + + /// + /// Gets or Sets Net7 + /// + [DataMember(Name = "net7", EmitDefaultValue = false)] + public string Net7 { get; set; } + + /// + /// Gets or Sets Net8 + /// + [DataMember(Name = "net8", EmitDefaultValue = false)] + public string Net8 { get; set; } + + /// + /// Gets or Sets Net9 + /// + [DataMember(Name = "net9", EmitDefaultValue = false)] + public string Net9 { get; set; } + + /// + /// Gets or Sets Net10 + /// + [DataMember(Name = "net10", EmitDefaultValue = false)] + public string Net10 { get; set; } + + /// + /// Gets or Sets Net11 + /// + [DataMember(Name = "net11", EmitDefaultValue = false)] + public string Net11 { get; set; } + + /// + /// Gets or Sets Net12 + /// + [DataMember(Name = "net12", EmitDefaultValue = false)] + public string Net12 { get; set; } + + /// + /// Gets or Sets Net13 + /// + [DataMember(Name = "net13", EmitDefaultValue = false)] + public string Net13 { get; set; } + + /// + /// Gets or Sets Net14 + /// + [DataMember(Name = "net14", EmitDefaultValue = false)] + public string Net14 { get; set; } + + /// + /// Gets or Sets Net15 + /// + [DataMember(Name = "net15", EmitDefaultValue = false)] + public string Net15 { get; set; } + + /// + /// Gets or Sets Net16 + /// + [DataMember(Name = "net16", EmitDefaultValue = false)] + public string Net16 { get; set; } + + /// + /// Gets or Sets Net17 + /// + [DataMember(Name = "net17", EmitDefaultValue = false)] + public string Net17 { get; set; } + + /// + /// Gets or Sets Net18 + /// + [DataMember(Name = "net18", EmitDefaultValue = false)] + public string Net18 { get; set; } + + /// + /// Gets or Sets Net19 + /// + [DataMember(Name = "net19", EmitDefaultValue = false)] + public string Net19 { get; set; } + + /// + /// Gets or Sets Net20 + /// + [DataMember(Name = "net20", EmitDefaultValue = false)] + public string Net20 { get; set; } + + /// + /// Gets or Sets Net21 + /// + [DataMember(Name = "net21", EmitDefaultValue = false)] + public string Net21 { get; set; } + + /// + /// Gets or Sets Net22 + /// + [DataMember(Name = "net22", EmitDefaultValue = false)] + public string Net22 { get; set; } + + /// + /// Gets or Sets Net23 + /// + [DataMember(Name = "net23", EmitDefaultValue = false)] + public string Net23 { get; set; } + + /// + /// Gets or Sets Net24 + /// + [DataMember(Name = "net24", EmitDefaultValue = false)] + public string Net24 { get; set; } + + /// + /// Gets or Sets Net25 + /// + [DataMember(Name = "net25", EmitDefaultValue = false)] + public string Net25 { get; set; } + + /// + /// Gets or Sets Net26 + /// + [DataMember(Name = "net26", EmitDefaultValue = false)] + public string Net26 { get; set; } + + /// + /// Gets or Sets Net27 + /// + [DataMember(Name = "net27", EmitDefaultValue = false)] + public string Net27 { get; set; } + + /// + /// Gets or Sets Net28 + /// + [DataMember(Name = "net28", EmitDefaultValue = false)] + public string Net28 { get; set; } + + /// + /// Gets or Sets Net29 + /// + [DataMember(Name = "net29", EmitDefaultValue = false)] + public string Net29 { get; set; } + + /// + /// Gets or Sets Onboot + /// + [DataMember(Name = "onboot", EmitDefaultValue = true)] + public bool Onboot { get; set; } + + /// + /// Gets or Sets Ostype + /// + [DataMember(Name = "ostype", EmitDefaultValue = false)] + public string Ostype { get; set; } + + /// + /// Gets or Sets Protection + /// + [DataMember(Name = "protection", EmitDefaultValue = true)] + public bool Protection { get; set; } + + /// + /// Gets or Sets Revert + /// + [DataMember(Name = "revert", EmitDefaultValue = false)] + public string Revert { get; set; } + + /// + /// Gets or Sets Rootfs + /// + [DataMember(Name = "rootfs", EmitDefaultValue = false)] + public string Rootfs { get; set; } + + /// + /// Gets or Sets Searchdomain + /// + [DataMember(Name = "searchdomain", EmitDefaultValue = false)] + public string Searchdomain { get; set; } + + /// + /// Gets or Sets Startup + /// + [DataMember(Name = "startup", EmitDefaultValue = false)] + public string Startup { get; set; } + + /// + /// Gets or Sets Swap + /// + [DataMember(Name = "swap", EmitDefaultValue = false)] + public int Swap { get; set; } + + /// + /// Gets or Sets Tags + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Gets or Sets Template + /// + [DataMember(Name = "template", EmitDefaultValue = true)] + public bool Template { get; set; } + + /// + /// Gets or Sets Timezone + /// + [DataMember(Name = "timezone", EmitDefaultValue = false)] + public string Timezone { get; set; } + + /// + /// Gets or Sets Tty + /// + [DataMember(Name = "tty", EmitDefaultValue = false)] + public int Tty { get; set; } + + /// + /// Gets or Sets Unprivileged + /// + [DataMember(Name = "unprivileged", EmitDefaultValue = true)] + public bool Unprivileged { get; set; } + + /// + /// Gets or Sets Unused0 + /// + [DataMember(Name = "unused0", EmitDefaultValue = false)] + public string Unused0 { get; set; } + + /// + /// Gets or Sets Unused1 + /// + [DataMember(Name = "unused1", EmitDefaultValue = false)] + public string Unused1 { get; set; } + + /// + /// Gets or Sets Unused2 + /// + [DataMember(Name = "unused2", EmitDefaultValue = false)] + public string Unused2 { get; set; } + + /// + /// Gets or Sets Unused3 + /// + [DataMember(Name = "unused3", EmitDefaultValue = false)] + public string Unused3 { get; set; } + + /// + /// Gets or Sets Unused4 + /// + [DataMember(Name = "unused4", EmitDefaultValue = false)] + public string Unused4 { get; set; } + + /// + /// Gets or Sets Unused5 + /// + [DataMember(Name = "unused5", EmitDefaultValue = false)] + public string Unused5 { get; set; } + + /// + /// Gets or Sets Unused6 + /// + [DataMember(Name = "unused6", EmitDefaultValue = false)] + public string Unused6 { get; set; } + + /// + /// Gets or Sets Unused7 + /// + [DataMember(Name = "unused7", EmitDefaultValue = false)] + public string Unused7 { get; set; } + + /// + /// Gets or Sets Unused8 + /// + [DataMember(Name = "unused8", EmitDefaultValue = false)] + public string Unused8 { get; set; } + + /// + /// Gets or Sets Unused9 + /// + [DataMember(Name = "unused9", EmitDefaultValue = false)] + public string Unused9 { get; set; } + + /// + /// Gets or Sets Unused10 + /// + [DataMember(Name = "unused10", EmitDefaultValue = false)] + public string Unused10 { get; set; } + + /// + /// Gets or Sets Unused11 + /// + [DataMember(Name = "unused11", EmitDefaultValue = false)] + public string Unused11 { get; set; } + + /// + /// Gets or Sets Unused12 + /// + [DataMember(Name = "unused12", EmitDefaultValue = false)] + public string Unused12 { get; set; } + + /// + /// Gets or Sets Unused13 + /// + [DataMember(Name = "unused13", EmitDefaultValue = false)] + public string Unused13 { get; set; } + + /// + /// Gets or Sets Unused14 + /// + [DataMember(Name = "unused14", EmitDefaultValue = false)] + public string Unused14 { get; set; } + + /// + /// Gets or Sets Unused15 + /// + [DataMember(Name = "unused15", EmitDefaultValue = false)] + public string Unused15 { get; set; } + + /// + /// Gets or Sets Unused16 + /// + [DataMember(Name = "unused16", EmitDefaultValue = false)] + public string Unused16 { get; set; } + + /// + /// Gets or Sets Unused17 + /// + [DataMember(Name = "unused17", EmitDefaultValue = false)] + public string Unused17 { get; set; } + + /// + /// Gets or Sets Unused18 + /// + [DataMember(Name = "unused18", EmitDefaultValue = false)] + public string Unused18 { get; set; } + + /// + /// Gets or Sets Unused19 + /// + [DataMember(Name = "unused19", EmitDefaultValue = false)] + public string Unused19 { get; set; } + + /// + /// Gets or Sets Unused20 + /// + [DataMember(Name = "unused20", EmitDefaultValue = false)] + public string Unused20 { get; set; } + + /// + /// Gets or Sets Unused21 + /// + [DataMember(Name = "unused21", EmitDefaultValue = false)] + public string Unused21 { get; set; } + + /// + /// Gets or Sets Unused22 + /// + [DataMember(Name = "unused22", EmitDefaultValue = false)] + public string Unused22 { get; set; } + + /// + /// Gets or Sets Unused23 + /// + [DataMember(Name = "unused23", EmitDefaultValue = false)] + public string Unused23 { get; set; } + + /// + /// Gets or Sets Unused24 + /// + [DataMember(Name = "unused24", EmitDefaultValue = false)] + public string Unused24 { get; set; } + + /// + /// Gets or Sets Unused25 + /// + [DataMember(Name = "unused25", EmitDefaultValue = false)] + public string Unused25 { get; set; } + + /// + /// Gets or Sets Unused26 + /// + [DataMember(Name = "unused26", EmitDefaultValue = false)] + public string Unused26 { get; set; } + + /// + /// Gets or Sets Unused27 + /// + [DataMember(Name = "unused27", EmitDefaultValue = false)] + public string Unused27 { get; set; } + + /// + /// Gets or Sets Unused28 + /// + [DataMember(Name = "unused28", EmitDefaultValue = false)] + public string Unused28 { get; set; } + + /// + /// Gets or Sets Unused29 + /// + [DataMember(Name = "unused29", EmitDefaultValue = false)] + public string Unused29 { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleLxcSingleConfigRequest {\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" Cmode: ").Append(Cmode).Append("\n"); + sb.Append(" Console: ").Append(Console).Append("\n"); + sb.Append(" Cores: ").Append(Cores).Append("\n"); + sb.Append(" Cpulimit: ").Append(Cpulimit).Append("\n"); + sb.Append(" Cpuunits: ").Append(Cpuunits).Append("\n"); + sb.Append(" Debug: ").Append(Debug).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Dev0: ").Append(Dev0).Append("\n"); + sb.Append(" Dev1: ").Append(Dev1).Append("\n"); + sb.Append(" Dev2: ").Append(Dev2).Append("\n"); + sb.Append(" Dev3: ").Append(Dev3).Append("\n"); + sb.Append(" Dev4: ").Append(Dev4).Append("\n"); + sb.Append(" Dev5: ").Append(Dev5).Append("\n"); + sb.Append(" Dev6: ").Append(Dev6).Append("\n"); + sb.Append(" Dev7: ").Append(Dev7).Append("\n"); + sb.Append(" Dev8: ").Append(Dev8).Append("\n"); + sb.Append(" Dev9: ").Append(Dev9).Append("\n"); + sb.Append(" Dev10: ").Append(Dev10).Append("\n"); + sb.Append(" Dev11: ").Append(Dev11).Append("\n"); + sb.Append(" Dev12: ").Append(Dev12).Append("\n"); + sb.Append(" Dev13: ").Append(Dev13).Append("\n"); + sb.Append(" Dev14: ").Append(Dev14).Append("\n"); + sb.Append(" Dev15: ").Append(Dev15).Append("\n"); + sb.Append(" Dev16: ").Append(Dev16).Append("\n"); + sb.Append(" Dev17: ").Append(Dev17).Append("\n"); + sb.Append(" Dev18: ").Append(Dev18).Append("\n"); + sb.Append(" Dev19: ").Append(Dev19).Append("\n"); + sb.Append(" Dev20: ").Append(Dev20).Append("\n"); + sb.Append(" Dev21: ").Append(Dev21).Append("\n"); + sb.Append(" Dev22: ").Append(Dev22).Append("\n"); + sb.Append(" Dev23: ").Append(Dev23).Append("\n"); + sb.Append(" Dev24: ").Append(Dev24).Append("\n"); + sb.Append(" Dev25: ").Append(Dev25).Append("\n"); + sb.Append(" Dev26: ").Append(Dev26).Append("\n"); + sb.Append(" Dev27: ").Append(Dev27).Append("\n"); + sb.Append(" Dev28: ").Append(Dev28).Append("\n"); + sb.Append(" Dev29: ").Append(Dev29).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Entrypoint: ").Append(Entrypoint).Append("\n"); + sb.Append(" Env: ").Append(Env).Append("\n"); + sb.Append(" Features: ").Append(Features).Append("\n"); + sb.Append(" Hookscript: ").Append(Hookscript).Append("\n"); + sb.Append(" Hostname: ").Append(Hostname).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Memory: ").Append(Memory).Append("\n"); + sb.Append(" Mp0: ").Append(Mp0).Append("\n"); + sb.Append(" Mp1: ").Append(Mp1).Append("\n"); + sb.Append(" Mp2: ").Append(Mp2).Append("\n"); + sb.Append(" Mp3: ").Append(Mp3).Append("\n"); + sb.Append(" Mp4: ").Append(Mp4).Append("\n"); + sb.Append(" Mp5: ").Append(Mp5).Append("\n"); + sb.Append(" Mp6: ").Append(Mp6).Append("\n"); + sb.Append(" Mp7: ").Append(Mp7).Append("\n"); + sb.Append(" Mp8: ").Append(Mp8).Append("\n"); + sb.Append(" Mp9: ").Append(Mp9).Append("\n"); + sb.Append(" Mp10: ").Append(Mp10).Append("\n"); + sb.Append(" Mp11: ").Append(Mp11).Append("\n"); + sb.Append(" Mp12: ").Append(Mp12).Append("\n"); + sb.Append(" Mp13: ").Append(Mp13).Append("\n"); + sb.Append(" Mp14: ").Append(Mp14).Append("\n"); + sb.Append(" Mp15: ").Append(Mp15).Append("\n"); + sb.Append(" Mp16: ").Append(Mp16).Append("\n"); + sb.Append(" Mp17: ").Append(Mp17).Append("\n"); + sb.Append(" Mp18: ").Append(Mp18).Append("\n"); + sb.Append(" Mp19: ").Append(Mp19).Append("\n"); + sb.Append(" Mp20: ").Append(Mp20).Append("\n"); + sb.Append(" Mp21: ").Append(Mp21).Append("\n"); + sb.Append(" Mp22: ").Append(Mp22).Append("\n"); + sb.Append(" Mp23: ").Append(Mp23).Append("\n"); + sb.Append(" Mp24: ").Append(Mp24).Append("\n"); + sb.Append(" Mp25: ").Append(Mp25).Append("\n"); + sb.Append(" Mp26: ").Append(Mp26).Append("\n"); + sb.Append(" Mp27: ").Append(Mp27).Append("\n"); + sb.Append(" Mp28: ").Append(Mp28).Append("\n"); + sb.Append(" Mp29: ").Append(Mp29).Append("\n"); + sb.Append(" Nameserver: ").Append(Nameserver).Append("\n"); + sb.Append(" Net0: ").Append(Net0).Append("\n"); + sb.Append(" Net1: ").Append(Net1).Append("\n"); + sb.Append(" Net2: ").Append(Net2).Append("\n"); + sb.Append(" Net3: ").Append(Net3).Append("\n"); + sb.Append(" Net4: ").Append(Net4).Append("\n"); + sb.Append(" Net5: ").Append(Net5).Append("\n"); + sb.Append(" Net6: ").Append(Net6).Append("\n"); + sb.Append(" Net7: ").Append(Net7).Append("\n"); + sb.Append(" Net8: ").Append(Net8).Append("\n"); + sb.Append(" Net9: ").Append(Net9).Append("\n"); + sb.Append(" Net10: ").Append(Net10).Append("\n"); + sb.Append(" Net11: ").Append(Net11).Append("\n"); + sb.Append(" Net12: ").Append(Net12).Append("\n"); + sb.Append(" Net13: ").Append(Net13).Append("\n"); + sb.Append(" Net14: ").Append(Net14).Append("\n"); + sb.Append(" Net15: ").Append(Net15).Append("\n"); + sb.Append(" Net16: ").Append(Net16).Append("\n"); + sb.Append(" Net17: ").Append(Net17).Append("\n"); + sb.Append(" Net18: ").Append(Net18).Append("\n"); + sb.Append(" Net19: ").Append(Net19).Append("\n"); + sb.Append(" Net20: ").Append(Net20).Append("\n"); + sb.Append(" Net21: ").Append(Net21).Append("\n"); + sb.Append(" Net22: ").Append(Net22).Append("\n"); + sb.Append(" Net23: ").Append(Net23).Append("\n"); + sb.Append(" Net24: ").Append(Net24).Append("\n"); + sb.Append(" Net25: ").Append(Net25).Append("\n"); + sb.Append(" Net26: ").Append(Net26).Append("\n"); + sb.Append(" Net27: ").Append(Net27).Append("\n"); + sb.Append(" Net28: ").Append(Net28).Append("\n"); + sb.Append(" Net29: ").Append(Net29).Append("\n"); + sb.Append(" Onboot: ").Append(Onboot).Append("\n"); + sb.Append(" Ostype: ").Append(Ostype).Append("\n"); + sb.Append(" Protection: ").Append(Protection).Append("\n"); + sb.Append(" Revert: ").Append(Revert).Append("\n"); + sb.Append(" Rootfs: ").Append(Rootfs).Append("\n"); + sb.Append(" Searchdomain: ").Append(Searchdomain).Append("\n"); + sb.Append(" Startup: ").Append(Startup).Append("\n"); + sb.Append(" Swap: ").Append(Swap).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Timezone: ").Append(Timezone).Append("\n"); + sb.Append(" Tty: ").Append(Tty).Append("\n"); + sb.Append(" Unprivileged: ").Append(Unprivileged).Append("\n"); + sb.Append(" Unused0: ").Append(Unused0).Append("\n"); + sb.Append(" Unused1: ").Append(Unused1).Append("\n"); + sb.Append(" Unused2: ").Append(Unused2).Append("\n"); + sb.Append(" Unused3: ").Append(Unused3).Append("\n"); + sb.Append(" Unused4: ").Append(Unused4).Append("\n"); + sb.Append(" Unused5: ").Append(Unused5).Append("\n"); + sb.Append(" Unused6: ").Append(Unused6).Append("\n"); + sb.Append(" Unused7: ").Append(Unused7).Append("\n"); + sb.Append(" Unused8: ").Append(Unused8).Append("\n"); + sb.Append(" Unused9: ").Append(Unused9).Append("\n"); + sb.Append(" Unused10: ").Append(Unused10).Append("\n"); + sb.Append(" Unused11: ").Append(Unused11).Append("\n"); + sb.Append(" Unused12: ").Append(Unused12).Append("\n"); + sb.Append(" Unused13: ").Append(Unused13).Append("\n"); + sb.Append(" Unused14: ").Append(Unused14).Append("\n"); + sb.Append(" Unused15: ").Append(Unused15).Append("\n"); + sb.Append(" Unused16: ").Append(Unused16).Append("\n"); + sb.Append(" Unused17: ").Append(Unused17).Append("\n"); + sb.Append(" Unused18: ").Append(Unused18).Append("\n"); + sb.Append(" Unused19: ").Append(Unused19).Append("\n"); + sb.Append(" Unused20: ").Append(Unused20).Append("\n"); + sb.Append(" Unused21: ").Append(Unused21).Append("\n"); + sb.Append(" Unused22: ").Append(Unused22).Append("\n"); + sb.Append(" Unused23: ").Append(Unused23).Append("\n"); + sb.Append(" Unused24: ").Append(Unused24).Append("\n"); + sb.Append(" Unused25: ").Append(Unused25).Append("\n"); + sb.Append(" Unused26: ").Append(Unused26).Append("\n"); + sb.Append(" Unused27: ").Append(Unused27).Append("\n"); + sb.Append(" Unused28: ").Append(Unused28).Append("\n"); + sb.Append(" Unused29: ").Append(Unused29).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest.cs new file mode 100644 index 0000000..1c1b277 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest + /// + [DataContract(Name = "UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest")] + public partial class UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// digest. + /// rename. + public UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest(string cidr = default(string), string comment = default(string), string digest = default(string), string rename = default(string)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest and cannot be null"); + } + this.Cidr = cidr; + this.Comment = comment; + this.Digest = digest; + this.Rename = rename; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Rename + /// + [DataMember(Name = "rename", EmitDefaultValue = false)] + public string Rename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Rename: ").Append(Rename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest.cs new file mode 100644 index 0000000..1f3b5a3 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest + /// + [DataContract(Name = "UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest")] + public partial class UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// digest. + /// nomatch. + public UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest(string comment = default(string), string digest = default(string), bool nomatch = default(bool)) + { + this.Comment = comment; + this.Digest = digest; + this.Nomatch = nomatch; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Nomatch + /// + [DataMember(Name = "nomatch", EmitDefaultValue = true)] + public bool Nomatch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Nomatch: ").Append(Nomatch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallOptionsRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallOptionsRequest.cs new file mode 100644 index 0000000..25c566c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallOptionsRequest.cs @@ -0,0 +1,182 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleLxcSingleFirewallOptionsRequest + /// + [DataContract(Name = "UpdateNodesSingleLxcSingleFirewallOptionsRequest")] + public partial class UpdateNodesSingleLxcSingleFirewallOptionsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// dhcp. + /// digest. + /// enable. + /// ipfilter. + /// logLevelIn. + /// logLevelOut. + /// macfilter. + /// ndp. + /// policyIn. + /// policyOut. + /// radv. + public UpdateNodesSingleLxcSingleFirewallOptionsRequest(string delete = default(string), bool dhcp = default(bool), string digest = default(string), bool enable = default(bool), bool ipfilter = default(bool), string logLevelIn = default(string), string logLevelOut = default(string), bool macfilter = default(bool), bool ndp = default(bool), string policyIn = default(string), string policyOut = default(string), bool radv = default(bool)) + { + this.Delete = delete; + this.Dhcp = dhcp; + this.Digest = digest; + this.Enable = enable; + this.Ipfilter = ipfilter; + this.LogLevelIn = logLevelIn; + this.LogLevelOut = logLevelOut; + this.Macfilter = macfilter; + this.Ndp = ndp; + this.PolicyIn = policyIn; + this.PolicyOut = policyOut; + this.Radv = radv; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dhcp + /// + [DataMember(Name = "dhcp", EmitDefaultValue = true)] + public bool Dhcp { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = true)] + public bool Enable { get; set; } + + /// + /// Gets or Sets Ipfilter + /// + [DataMember(Name = "ipfilter", EmitDefaultValue = true)] + public bool Ipfilter { get; set; } + + /// + /// Gets or Sets LogLevelIn + /// + [DataMember(Name = "log_level_in", EmitDefaultValue = false)] + public string LogLevelIn { get; set; } + + /// + /// Gets or Sets LogLevelOut + /// + [DataMember(Name = "log_level_out", EmitDefaultValue = false)] + public string LogLevelOut { get; set; } + + /// + /// Gets or Sets Macfilter + /// + [DataMember(Name = "macfilter", EmitDefaultValue = true)] + public bool Macfilter { get; set; } + + /// + /// Gets or Sets Ndp + /// + [DataMember(Name = "ndp", EmitDefaultValue = true)] + public bool Ndp { get; set; } + + /// + /// Gets or Sets PolicyIn + /// + [DataMember(Name = "policy_in", EmitDefaultValue = false)] + public string PolicyIn { get; set; } + + /// + /// Gets or Sets PolicyOut + /// + [DataMember(Name = "policy_out", EmitDefaultValue = false)] + public string PolicyOut { get; set; } + + /// + /// Gets or Sets Radv + /// + [DataMember(Name = "radv", EmitDefaultValue = true)] + public bool Radv { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleLxcSingleFirewallOptionsRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dhcp: ").Append(Dhcp).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Ipfilter: ").Append(Ipfilter).Append("\n"); + sb.Append(" LogLevelIn: ").Append(LogLevelIn).Append("\n"); + sb.Append(" LogLevelOut: ").Append(LogLevelOut).Append("\n"); + sb.Append(" Macfilter: ").Append(Macfilter).Append("\n"); + sb.Append(" Ndp: ").Append(Ndp).Append("\n"); + sb.Append(" PolicyIn: ").Append(PolicyIn).Append("\n"); + sb.Append(" PolicyOut: ").Append(PolicyOut).Append("\n"); + sb.Append(" Radv: ").Append(Radv).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallRulesSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallRulesSingleRequest.cs new file mode 100644 index 0000000..43d5667 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleFirewallRulesSingleRequest.cs @@ -0,0 +1,218 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleLxcSingleFirewallRulesSingleRequest + /// + [DataContract(Name = "UpdateNodesSingleLxcSingleFirewallRulesSingleRequest")] + public partial class UpdateNodesSingleLxcSingleFirewallRulesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// action. + /// comment. + /// delete. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// moveto. + /// proto. + /// source. + /// sport. + /// type. + public UpdateNodesSingleLxcSingleFirewallRulesSingleRequest(string action = default(string), string comment = default(string), string delete = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int moveto = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + this.Action = action; + this.Comment = comment; + this.Delete = delete; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Moveto = moveto; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + this.Type = type; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", EmitDefaultValue = false)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Moveto + /// + [DataMember(Name = "moveto", EmitDefaultValue = false)] + public int Moveto { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleLxcSingleFirewallRulesSingleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Moveto: ").Append(Moveto).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleResizeRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleResizeRequest.cs new file mode 100644 index 0000000..c16e0b4 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleResizeRequest.cs @@ -0,0 +1,116 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleLxcSingleResizeRequest + /// + [DataContract(Name = "UpdateNodesSingleLxcSingleResizeRequest")] + public partial class UpdateNodesSingleLxcSingleResizeRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleLxcSingleResizeRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// digest. + /// disk (required). + /// size (required). + public UpdateNodesSingleLxcSingleResizeRequest(string digest = default(string), string disk = default(string), string size = default(string)) + { + // to ensure "disk" is required (not null) + if (disk == null) + { + throw new ArgumentNullException("disk is a required property for UpdateNodesSingleLxcSingleResizeRequest and cannot be null"); + } + this.Disk = disk; + // to ensure "size" is required (not null) + if (size == null) + { + throw new ArgumentNullException("size is a required property for UpdateNodesSingleLxcSingleResizeRequest and cannot be null"); + } + this.Size = size; + this.Digest = digest; + } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disk + /// + [DataMember(Name = "disk", IsRequired = true, EmitDefaultValue = true)] + public string Disk { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", IsRequired = true, EmitDefaultValue = true)] + public string Size { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleLxcSingleResizeRequest {\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disk: ").Append(Disk).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest.cs new file mode 100644 index 0000000..7047c41 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest + /// + [DataContract(Name = "UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest")] + public partial class UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// description. + public UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest(string description = default(string)) + { + this.Description = description; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleNetworkRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleNetworkRequest.cs new file mode 100644 index 0000000..914e920 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleNetworkRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleNetworkRequest + /// + [DataContract(Name = "UpdateNodesSingleNetworkRequest")] + public partial class UpdateNodesSingleNetworkRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// regenerateFrr. + public UpdateNodesSingleNetworkRequest(bool regenerateFrr = default(bool)) + { + this.RegenerateFrr = regenerateFrr; + } + + /// + /// Gets or Sets RegenerateFrr + /// + [DataMember(Name = "regenerate-frr", EmitDefaultValue = true)] + public bool RegenerateFrr { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleNetworkRequest {\n"); + sb.Append(" RegenerateFrr: ").Append(RegenerateFrr).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleNetworkSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleNetworkSingleRequest.cs new file mode 100644 index 0000000..907fe07 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleNetworkSingleRequest.cs @@ -0,0 +1,336 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleNetworkSingleRequest + /// + [DataContract(Name = "UpdateNodesSingleNetworkSingleRequest")] + public partial class UpdateNodesSingleNetworkSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleNetworkSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// address. + /// address6. + /// autostart. + /// bondPrimary. + /// bondMode. + /// bondXmitHashPolicy. + /// bridgePorts. + /// bridgeVids. + /// bridgeVlanAware. + /// cidr. + /// cidr6. + /// comments. + /// comments6. + /// delete. + /// gateway. + /// gateway6. + /// mtu. + /// netmask. + /// netmask6. + /// ovsBonds. + /// ovsBridge. + /// ovsOptions. + /// ovsPorts. + /// ovsTag. + /// slaves. + /// type (required). + /// vlanId. + /// vlanRawDevice. + public UpdateNodesSingleNetworkSingleRequest(string address = default(string), string address6 = default(string), bool autostart = default(bool), string bondPrimary = default(string), string bondMode = default(string), string bondXmitHashPolicy = default(string), string bridgePorts = default(string), string bridgeVids = default(string), bool bridgeVlanAware = default(bool), string cidr = default(string), string cidr6 = default(string), string comments = default(string), string comments6 = default(string), string delete = default(string), string gateway = default(string), string gateway6 = default(string), int mtu = default(int), string netmask = default(string), int netmask6 = default(int), string ovsBonds = default(string), string ovsBridge = default(string), string ovsOptions = default(string), string ovsPorts = default(string), int ovsTag = default(int), string slaves = default(string), string type = default(string), int vlanId = default(int), string vlanRawDevice = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for UpdateNodesSingleNetworkSingleRequest and cannot be null"); + } + this.Type = type; + this.Address = address; + this.Address6 = address6; + this.Autostart = autostart; + this.BondPrimary = bondPrimary; + this.BondMode = bondMode; + this.BondXmitHashPolicy = bondXmitHashPolicy; + this.BridgePorts = bridgePorts; + this.BridgeVids = bridgeVids; + this.BridgeVlanAware = bridgeVlanAware; + this.Cidr = cidr; + this.Cidr6 = cidr6; + this.Comments = comments; + this.Comments6 = comments6; + this.Delete = delete; + this.Gateway = gateway; + this.Gateway6 = gateway6; + this.Mtu = mtu; + this.Netmask = netmask; + this.Netmask6 = netmask6; + this.OvsBonds = ovsBonds; + this.OvsBridge = ovsBridge; + this.OvsOptions = ovsOptions; + this.OvsPorts = ovsPorts; + this.OvsTag = ovsTag; + this.Slaves = slaves; + this.VlanId = vlanId; + this.VlanRawDevice = vlanRawDevice; + } + + /// + /// Gets or Sets Address + /// + [DataMember(Name = "address", EmitDefaultValue = false)] + public string Address { get; set; } + + /// + /// Gets or Sets Address6 + /// + [DataMember(Name = "address6", EmitDefaultValue = false)] + public string Address6 { get; set; } + + /// + /// Gets or Sets Autostart + /// + [DataMember(Name = "autostart", EmitDefaultValue = true)] + public bool Autostart { get; set; } + + /// + /// Gets or Sets BondPrimary + /// + [DataMember(Name = "bond-primary", EmitDefaultValue = false)] + public string BondPrimary { get; set; } + + /// + /// Gets or Sets BondMode + /// + [DataMember(Name = "bond_mode", EmitDefaultValue = false)] + public string BondMode { get; set; } + + /// + /// Gets or Sets BondXmitHashPolicy + /// + [DataMember(Name = "bond_xmit_hash_policy", EmitDefaultValue = false)] + public string BondXmitHashPolicy { get; set; } + + /// + /// Gets or Sets BridgePorts + /// + [DataMember(Name = "bridge_ports", EmitDefaultValue = false)] + public string BridgePorts { get; set; } + + /// + /// Gets or Sets BridgeVids + /// + [DataMember(Name = "bridge_vids", EmitDefaultValue = false)] + public string BridgeVids { get; set; } + + /// + /// Gets or Sets BridgeVlanAware + /// + [DataMember(Name = "bridge_vlan_aware", EmitDefaultValue = true)] + public bool BridgeVlanAware { get; set; } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", EmitDefaultValue = false)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Cidr6 + /// + [DataMember(Name = "cidr6", EmitDefaultValue = false)] + public string Cidr6 { get; set; } + + /// + /// Gets or Sets Comments + /// + [DataMember(Name = "comments", EmitDefaultValue = false)] + public string Comments { get; set; } + + /// + /// Gets or Sets Comments6 + /// + [DataMember(Name = "comments6", EmitDefaultValue = false)] + public string Comments6 { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Gateway + /// + [DataMember(Name = "gateway", EmitDefaultValue = false)] + public string Gateway { get; set; } + + /// + /// Gets or Sets Gateway6 + /// + [DataMember(Name = "gateway6", EmitDefaultValue = false)] + public string Gateway6 { get; set; } + + /// + /// Gets or Sets Mtu + /// + [DataMember(Name = "mtu", EmitDefaultValue = false)] + public int Mtu { get; set; } + + /// + /// Gets or Sets Netmask + /// + [DataMember(Name = "netmask", EmitDefaultValue = false)] + public string Netmask { get; set; } + + /// + /// Gets or Sets Netmask6 + /// + [DataMember(Name = "netmask6", EmitDefaultValue = false)] + public int Netmask6 { get; set; } + + /// + /// Gets or Sets OvsBonds + /// + [DataMember(Name = "ovs_bonds", EmitDefaultValue = false)] + public string OvsBonds { get; set; } + + /// + /// Gets or Sets OvsBridge + /// + [DataMember(Name = "ovs_bridge", EmitDefaultValue = false)] + public string OvsBridge { get; set; } + + /// + /// Gets or Sets OvsOptions + /// + [DataMember(Name = "ovs_options", EmitDefaultValue = false)] + public string OvsOptions { get; set; } + + /// + /// Gets or Sets OvsPorts + /// + [DataMember(Name = "ovs_ports", EmitDefaultValue = false)] + public string OvsPorts { get; set; } + + /// + /// Gets or Sets OvsTag + /// + [DataMember(Name = "ovs_tag", EmitDefaultValue = false)] + public int OvsTag { get; set; } + + /// + /// Gets or Sets Slaves + /// + [DataMember(Name = "slaves", EmitDefaultValue = false)] + public string Slaves { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Gets or Sets VlanId + /// + [DataMember(Name = "vlan-id", EmitDefaultValue = false)] + public int VlanId { get; set; } + + /// + /// Gets or Sets VlanRawDevice + /// + [DataMember(Name = "vlan-raw-device", EmitDefaultValue = false)] + public string VlanRawDevice { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleNetworkSingleRequest {\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Address6: ").Append(Address6).Append("\n"); + sb.Append(" Autostart: ").Append(Autostart).Append("\n"); + sb.Append(" BondPrimary: ").Append(BondPrimary).Append("\n"); + sb.Append(" BondMode: ").Append(BondMode).Append("\n"); + sb.Append(" BondXmitHashPolicy: ").Append(BondXmitHashPolicy).Append("\n"); + sb.Append(" BridgePorts: ").Append(BridgePorts).Append("\n"); + sb.Append(" BridgeVids: ").Append(BridgeVids).Append("\n"); + sb.Append(" BridgeVlanAware: ").Append(BridgeVlanAware).Append("\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Cidr6: ").Append(Cidr6).Append("\n"); + sb.Append(" Comments: ").Append(Comments).Append("\n"); + sb.Append(" Comments6: ").Append(Comments6).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Gateway: ").Append(Gateway).Append("\n"); + sb.Append(" Gateway6: ").Append(Gateway6).Append("\n"); + sb.Append(" Mtu: ").Append(Mtu).Append("\n"); + sb.Append(" Netmask: ").Append(Netmask).Append("\n"); + sb.Append(" Netmask6: ").Append(Netmask6).Append("\n"); + sb.Append(" OvsBonds: ").Append(OvsBonds).Append("\n"); + sb.Append(" OvsBridge: ").Append(OvsBridge).Append("\n"); + sb.Append(" OvsOptions: ").Append(OvsOptions).Append("\n"); + sb.Append(" OvsPorts: ").Append(OvsPorts).Append("\n"); + sb.Append(" OvsTag: ").Append(OvsTag).Append("\n"); + sb.Append(" Slaves: ").Append(Slaves).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" VlanId: ").Append(VlanId).Append("\n"); + sb.Append(" VlanRawDevice: ").Append(VlanRawDevice).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest.cs new file mode 100644 index 0000000..426806b --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest.cs @@ -0,0 +1,120 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest + /// + [DataContract(Name = "UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest")] + public partial class UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// cidr (required). + /// comment. + /// digest. + /// rename. + public UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest(string cidr = default(string), string comment = default(string), string digest = default(string), string rename = default(string)) + { + // to ensure "cidr" is required (not null) + if (cidr == null) + { + throw new ArgumentNullException("cidr is a required property for UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest and cannot be null"); + } + this.Cidr = cidr; + this.Comment = comment; + this.Digest = digest; + this.Rename = rename; + } + + /// + /// Gets or Sets Cidr + /// + [DataMember(Name = "cidr", IsRequired = true, EmitDefaultValue = true)] + public string Cidr { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Rename + /// + [DataMember(Name = "rename", EmitDefaultValue = false)] + public string Rename { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest {\n"); + sb.Append(" Cidr: ").Append(Cidr).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Rename: ").Append(Rename).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleQemuSingleSendkeyRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleQemuSingleSendkeyRequest.cs new file mode 100644 index 0000000..f88c4a6 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleQemuSingleSendkeyRequest.cs @@ -0,0 +1,102 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleQemuSingleSendkeyRequest + /// + [DataContract(Name = "UpdateNodesSingleQemuSingleSendkeyRequest")] + public partial class UpdateNodesSingleQemuSingleSendkeyRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleQemuSingleSendkeyRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// key (required). + /// skiplock. + public UpdateNodesSingleQemuSingleSendkeyRequest(string key = default(string), bool skiplock = default(bool)) + { + // to ensure "key" is required (not null) + if (key == null) + { + throw new ArgumentNullException("key is a required property for UpdateNodesSingleQemuSingleSendkeyRequest and cannot be null"); + } + this.Key = key; + this.Skiplock = skiplock; + } + + /// + /// Gets or Sets Key + /// + [DataMember(Name = "key", IsRequired = true, EmitDefaultValue = true)] + public string Key { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleQemuSingleSendkeyRequest {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleStorageSingleContentSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleStorageSingleContentSingleRequest.cs new file mode 100644 index 0000000..122afac --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleStorageSingleContentSingleRequest.cs @@ -0,0 +1,92 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleStorageSingleContentSingleRequest + /// + [DataContract(Name = "UpdateNodesSingleStorageSingleContentSingleRequest")] + public partial class UpdateNodesSingleStorageSingleContentSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// notes. + /// varProtected. + public UpdateNodesSingleStorageSingleContentSingleRequest(string notes = default(string), bool varProtected = default(bool)) + { + this.Notes = notes; + this.Protected = varProtected; + } + + /// + /// Gets or Sets Notes + /// + [DataMember(Name = "notes", EmitDefaultValue = false)] + public string Notes { get; set; } + + /// + /// Gets or Sets Protected + /// + [DataMember(Name = "protected", EmitDefaultValue = true)] + public bool Protected { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleStorageSingleContentSingleRequest {\n"); + sb.Append(" Notes: ").Append(Notes).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleSubscriptionRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleSubscriptionRequest.cs new file mode 100644 index 0000000..ce498f1 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleSubscriptionRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleSubscriptionRequest + /// + [DataContract(Name = "UpdateNodesSingleSubscriptionRequest")] + public partial class UpdateNodesSingleSubscriptionRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleSubscriptionRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// key (required). + public UpdateNodesSingleSubscriptionRequest(string key = default(string)) + { + // to ensure "key" is required (not null) + if (key == null) + { + throw new ArgumentNullException("key is a required property for UpdateNodesSingleSubscriptionRequest and cannot be null"); + } + this.Key = key; + } + + /// + /// Gets or Sets Key + /// + [DataMember(Name = "key", IsRequired = true, EmitDefaultValue = true)] + public string Key { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleSubscriptionRequest {\n"); + sb.Append(" Key: ").Append(Key).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateNodesSingleTimeRequest.cs b/src/ProxmoxSharp/Model/UpdateNodesSingleTimeRequest.cs new file mode 100644 index 0000000..ee0667c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateNodesSingleTimeRequest.cs @@ -0,0 +1,93 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateNodesSingleTimeRequest + /// + [DataContract(Name = "UpdateNodesSingleTimeRequest")] + public partial class UpdateNodesSingleTimeRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateNodesSingleTimeRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// timezone (required). + public UpdateNodesSingleTimeRequest(string timezone = default(string)) + { + // to ensure "timezone" is required (not null) + if (timezone == null) + { + throw new ArgumentNullException("timezone is a required property for UpdateNodesSingleTimeRequest and cannot be null"); + } + this.Timezone = timezone; + } + + /// + /// Gets or Sets Timezone + /// + [DataMember(Name = "timezone", IsRequired = true, EmitDefaultValue = true)] + public string Timezone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateNodesSingleTimeRequest {\n"); + sb.Append(" Timezone: ").Append(Timezone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdatePoolRequest.cs b/src/ProxmoxSharp/Model/UpdatePoolRequest.cs new file mode 100644 index 0000000..5be5f6f --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdatePoolRequest.cs @@ -0,0 +1,119 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdatePoolRequest + /// + [DataContract(Name = "UpdatePoolRequest")] + public partial class UpdatePoolRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// allowMove. + /// comment. + /// delete. + /// storage. + /// vms. + public UpdatePoolRequest(bool allowMove = default(bool), string comment = default(string), bool delete = default(bool), string storage = default(string), string vms = default(string)) + { + this.AllowMove = allowMove; + this.Comment = comment; + this.Delete = delete; + this.Storage = storage; + this.Vms = vms; + } + + /// + /// Gets or Sets AllowMove + /// + [DataMember(Name = "allow-move", EmitDefaultValue = true)] + public bool AllowMove { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = true)] + public bool Delete { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public string Vms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdatePoolRequest {\n"); + sb.Append(" AllowMove: ").Append(AllowMove).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdatePoolsRequest.cs b/src/ProxmoxSharp/Model/UpdatePoolsRequest.cs new file mode 100644 index 0000000..3a87450 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdatePoolsRequest.cs @@ -0,0 +1,138 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdatePoolsRequest + /// + [DataContract(Name = "UpdatePoolsRequest")] + public partial class UpdatePoolsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdatePoolsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// allowMove. + /// comment. + /// delete. + /// poolid (required). + /// storage. + /// vms. + public UpdatePoolsRequest(bool allowMove = default(bool), string comment = default(string), bool delete = default(bool), string poolid = default(string), string storage = default(string), string vms = default(string)) + { + // to ensure "poolid" is required (not null) + if (poolid == null) + { + throw new ArgumentNullException("poolid is a required property for UpdatePoolsRequest and cannot be null"); + } + this.Poolid = poolid; + this.AllowMove = allowMove; + this.Comment = comment; + this.Delete = delete; + this.Storage = storage; + this.Vms = vms; + } + + /// + /// Gets or Sets AllowMove + /// + [DataMember(Name = "allow-move", EmitDefaultValue = true)] + public bool AllowMove { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = true)] + public bool Delete { get; set; } + + /// + /// Gets or Sets Poolid + /// + [DataMember(Name = "poolid", IsRequired = true, EmitDefaultValue = true)] + public string Poolid { get; set; } + + /// + /// Gets or Sets Storage + /// + [DataMember(Name = "storage", EmitDefaultValue = false)] + public string Storage { get; set; } + + /// + /// Gets or Sets Vms + /// + [DataMember(Name = "vms", EmitDefaultValue = false)] + public string Vms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdatePoolsRequest {\n"); + sb.Append(" AllowMove: ").Append(AllowMove).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Poolid: ").Append(Poolid).Append("\n"); + sb.Append(" Storage: ").Append(Storage).Append("\n"); + sb.Append(" Vms: ").Append(Vms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateStorageSingleRequest.cs b/src/ProxmoxSharp/Model/UpdateStorageSingleRequest.cs new file mode 100644 index 0000000..7f53c1c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateStorageSingleRequest.cs @@ -0,0 +1,524 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateStorageSingleRequest + /// + [DataContract(Name = "UpdateStorageSingleRequest")] + public partial class UpdateStorageSingleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// blocksize. + /// bwlimit. + /// comstarHg. + /// comstarTg. + /// content. + /// contentDirs. + /// createBasePath. + /// createSubdirs. + /// dataPool. + /// delete. + /// digest. + /// disable. + /// domain. + /// encryptionKey. + /// fingerprint. + /// format. + /// fsName. + /// fuse. + /// isMountpoint. + /// keyring. + /// krbd. + /// lioTpg. + /// masterPubkey. + /// maxProtectedBackups. + /// mkdir. + /// monhost. + /// mountpoint. + /// varNamespace. + /// nocow. + /// nodes. + /// nowritecache. + /// options. + /// password. + /// pool. + /// port. + /// preallocation. + /// pruneBackups. + /// saferemove. + /// saferemoveStepsize. + /// saferemoveThroughput. + /// server. + /// shared. + /// skipCertVerification. + /// smbversion. + /// snapshotAsVolumeChain. + /// sparse. + /// subdir. + /// taggedOnly. + /// username. + /// zfsBasePath. + public UpdateStorageSingleRequest(string blocksize = default(string), string bwlimit = default(string), string comstarHg = default(string), string comstarTg = default(string), string content = default(string), string contentDirs = default(string), bool createBasePath = default(bool), bool createSubdirs = default(bool), string dataPool = default(string), string delete = default(string), string digest = default(string), bool disable = default(bool), string domain = default(string), string encryptionKey = default(string), string fingerprint = default(string), string format = default(string), string fsName = default(string), bool fuse = default(bool), string isMountpoint = default(string), string keyring = default(string), bool krbd = default(bool), string lioTpg = default(string), string masterPubkey = default(string), int maxProtectedBackups = default(int), bool mkdir = default(bool), string monhost = default(string), string mountpoint = default(string), string varNamespace = default(string), bool nocow = default(bool), string nodes = default(string), bool nowritecache = default(bool), string options = default(string), string password = default(string), string pool = default(string), int port = default(int), string preallocation = default(string), string pruneBackups = default(string), bool saferemove = default(bool), int saferemoveStepsize = default(int), string saferemoveThroughput = default(string), string server = default(string), bool shared = default(bool), bool skipCertVerification = default(bool), string smbversion = default(string), bool snapshotAsVolumeChain = default(bool), bool sparse = default(bool), string subdir = default(string), bool taggedOnly = default(bool), string username = default(string), string zfsBasePath = default(string)) + { + this.Blocksize = blocksize; + this.Bwlimit = bwlimit; + this.ComstarHg = comstarHg; + this.ComstarTg = comstarTg; + this.Content = content; + this.ContentDirs = contentDirs; + this.CreateBasePath = createBasePath; + this.CreateSubdirs = createSubdirs; + this.DataPool = dataPool; + this.Delete = delete; + this.Digest = digest; + this.Disable = disable; + this.Domain = domain; + this.EncryptionKey = encryptionKey; + this.Fingerprint = fingerprint; + this.Format = format; + this.FsName = fsName; + this.Fuse = fuse; + this.IsMountpoint = isMountpoint; + this.Keyring = keyring; + this.Krbd = krbd; + this.LioTpg = lioTpg; + this.MasterPubkey = masterPubkey; + this.MaxProtectedBackups = maxProtectedBackups; + this.Mkdir = mkdir; + this.Monhost = monhost; + this.Mountpoint = mountpoint; + this.Namespace = varNamespace; + this.Nocow = nocow; + this.Nodes = nodes; + this.Nowritecache = nowritecache; + this.Options = options; + this.Password = password; + this.Pool = pool; + this.Port = port; + this.Preallocation = preallocation; + this.PruneBackups = pruneBackups; + this.Saferemove = saferemove; + this.SaferemoveStepsize = saferemoveStepsize; + this.SaferemoveThroughput = saferemoveThroughput; + this.Server = server; + this.Shared = shared; + this.SkipCertVerification = skipCertVerification; + this.Smbversion = smbversion; + this.SnapshotAsVolumeChain = snapshotAsVolumeChain; + this.Sparse = sparse; + this.Subdir = subdir; + this.TaggedOnly = taggedOnly; + this.Username = username; + this.ZfsBasePath = zfsBasePath; + } + + /// + /// Gets or Sets Blocksize + /// + [DataMember(Name = "blocksize", EmitDefaultValue = false)] + public string Blocksize { get; set; } + + /// + /// Gets or Sets Bwlimit + /// + [DataMember(Name = "bwlimit", EmitDefaultValue = false)] + public string Bwlimit { get; set; } + + /// + /// Gets or Sets ComstarHg + /// + [DataMember(Name = "comstar_hg", EmitDefaultValue = false)] + public string ComstarHg { get; set; } + + /// + /// Gets or Sets ComstarTg + /// + [DataMember(Name = "comstar_tg", EmitDefaultValue = false)] + public string ComstarTg { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public string Content { get; set; } + + /// + /// Gets or Sets ContentDirs + /// + [DataMember(Name = "content-dirs", EmitDefaultValue = false)] + public string ContentDirs { get; set; } + + /// + /// Gets or Sets CreateBasePath + /// + [DataMember(Name = "create-base-path", EmitDefaultValue = true)] + public bool CreateBasePath { get; set; } + + /// + /// Gets or Sets CreateSubdirs + /// + [DataMember(Name = "create-subdirs", EmitDefaultValue = true)] + public bool CreateSubdirs { get; set; } + + /// + /// Gets or Sets DataPool + /// + [DataMember(Name = "data-pool", EmitDefaultValue = false)] + public string DataPool { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Disable + /// + [DataMember(Name = "disable", EmitDefaultValue = true)] + public bool Disable { get; set; } + + /// + /// Gets or Sets Domain + /// + [DataMember(Name = "domain", EmitDefaultValue = false)] + public string Domain { get; set; } + + /// + /// Gets or Sets EncryptionKey + /// + [DataMember(Name = "encryption-key", EmitDefaultValue = false)] + public string EncryptionKey { get; set; } + + /// + /// Gets or Sets Fingerprint + /// + [DataMember(Name = "fingerprint", EmitDefaultValue = false)] + public string Fingerprint { get; set; } + + /// + /// Gets or Sets Format + /// + [DataMember(Name = "format", EmitDefaultValue = false)] + public string Format { get; set; } + + /// + /// Gets or Sets FsName + /// + [DataMember(Name = "fs-name", EmitDefaultValue = false)] + public string FsName { get; set; } + + /// + /// Gets or Sets Fuse + /// + [DataMember(Name = "fuse", EmitDefaultValue = true)] + public bool Fuse { get; set; } + + /// + /// Gets or Sets IsMountpoint + /// + [DataMember(Name = "is_mountpoint", EmitDefaultValue = false)] + public string IsMountpoint { get; set; } + + /// + /// Gets or Sets Keyring + /// + [DataMember(Name = "keyring", EmitDefaultValue = false)] + public string Keyring { get; set; } + + /// + /// Gets or Sets Krbd + /// + [DataMember(Name = "krbd", EmitDefaultValue = true)] + public bool Krbd { get; set; } + + /// + /// Gets or Sets LioTpg + /// + [DataMember(Name = "lio_tpg", EmitDefaultValue = false)] + public string LioTpg { get; set; } + + /// + /// Gets or Sets MasterPubkey + /// + [DataMember(Name = "master-pubkey", EmitDefaultValue = false)] + public string MasterPubkey { get; set; } + + /// + /// Gets or Sets MaxProtectedBackups + /// + [DataMember(Name = "max-protected-backups", EmitDefaultValue = false)] + public int MaxProtectedBackups { get; set; } + + /// + /// Gets or Sets Mkdir + /// + [DataMember(Name = "mkdir", EmitDefaultValue = true)] + public bool Mkdir { get; set; } + + /// + /// Gets or Sets Monhost + /// + [DataMember(Name = "monhost", EmitDefaultValue = false)] + public string Monhost { get; set; } + + /// + /// Gets or Sets Mountpoint + /// + [DataMember(Name = "mountpoint", EmitDefaultValue = false)] + public string Mountpoint { get; set; } + + /// + /// Gets or Sets Namespace + /// + [DataMember(Name = "namespace", EmitDefaultValue = false)] + public string Namespace { get; set; } + + /// + /// Gets or Sets Nocow + /// + [DataMember(Name = "nocow", EmitDefaultValue = true)] + public bool Nocow { get; set; } + + /// + /// Gets or Sets Nodes + /// + [DataMember(Name = "nodes", EmitDefaultValue = false)] + public string Nodes { get; set; } + + /// + /// Gets or Sets Nowritecache + /// + [DataMember(Name = "nowritecache", EmitDefaultValue = true)] + public bool Nowritecache { get; set; } + + /// + /// Gets or Sets Options + /// + [DataMember(Name = "options", EmitDefaultValue = false)] + public string Options { get; set; } + + /// + /// Gets or Sets Password + /// + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } + + /// + /// Gets or Sets Pool + /// + [DataMember(Name = "pool", EmitDefaultValue = false)] + public string Pool { get; set; } + + /// + /// Gets or Sets Port + /// + [DataMember(Name = "port", EmitDefaultValue = false)] + public int Port { get; set; } + + /// + /// Gets or Sets Preallocation + /// + [DataMember(Name = "preallocation", EmitDefaultValue = false)] + public string Preallocation { get; set; } + + /// + /// Gets or Sets PruneBackups + /// + [DataMember(Name = "prune-backups", EmitDefaultValue = false)] + public string PruneBackups { get; set; } + + /// + /// Gets or Sets Saferemove + /// + [DataMember(Name = "saferemove", EmitDefaultValue = true)] + public bool Saferemove { get; set; } + + /// + /// Gets or Sets SaferemoveStepsize + /// + [DataMember(Name = "saferemove-stepsize", EmitDefaultValue = false)] + public int SaferemoveStepsize { get; set; } + + /// + /// Gets or Sets SaferemoveThroughput + /// + [DataMember(Name = "saferemove_throughput", EmitDefaultValue = false)] + public string SaferemoveThroughput { get; set; } + + /// + /// Gets or Sets Server + /// + [DataMember(Name = "server", EmitDefaultValue = false)] + public string Server { get; set; } + + /// + /// Gets or Sets Shared + /// + [DataMember(Name = "shared", EmitDefaultValue = true)] + public bool Shared { get; set; } + + /// + /// Gets or Sets SkipCertVerification + /// + [DataMember(Name = "skip-cert-verification", EmitDefaultValue = true)] + public bool SkipCertVerification { get; set; } + + /// + /// Gets or Sets Smbversion + /// + [DataMember(Name = "smbversion", EmitDefaultValue = false)] + public string Smbversion { get; set; } + + /// + /// Gets or Sets SnapshotAsVolumeChain + /// + [DataMember(Name = "snapshot-as-volume-chain", EmitDefaultValue = true)] + public bool SnapshotAsVolumeChain { get; set; } + + /// + /// Gets or Sets Sparse + /// + [DataMember(Name = "sparse", EmitDefaultValue = true)] + public bool Sparse { get; set; } + + /// + /// Gets or Sets Subdir + /// + [DataMember(Name = "subdir", EmitDefaultValue = false)] + public string Subdir { get; set; } + + /// + /// Gets or Sets TaggedOnly + /// + [DataMember(Name = "tagged_only", EmitDefaultValue = true)] + public bool TaggedOnly { get; set; } + + /// + /// Gets or Sets Username + /// + [DataMember(Name = "username", EmitDefaultValue = false)] + public string Username { get; set; } + + /// + /// Gets or Sets ZfsBasePath + /// + [DataMember(Name = "zfs-base-path", EmitDefaultValue = false)] + public string ZfsBasePath { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateStorageSingleRequest {\n"); + sb.Append(" Blocksize: ").Append(Blocksize).Append("\n"); + sb.Append(" Bwlimit: ").Append(Bwlimit).Append("\n"); + sb.Append(" ComstarHg: ").Append(ComstarHg).Append("\n"); + sb.Append(" ComstarTg: ").Append(ComstarTg).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" ContentDirs: ").Append(ContentDirs).Append("\n"); + sb.Append(" CreateBasePath: ").Append(CreateBasePath).Append("\n"); + sb.Append(" CreateSubdirs: ").Append(CreateSubdirs).Append("\n"); + sb.Append(" DataPool: ").Append(DataPool).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Disable: ").Append(Disable).Append("\n"); + sb.Append(" Domain: ").Append(Domain).Append("\n"); + sb.Append(" EncryptionKey: ").Append(EncryptionKey).Append("\n"); + sb.Append(" Fingerprint: ").Append(Fingerprint).Append("\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" FsName: ").Append(FsName).Append("\n"); + sb.Append(" Fuse: ").Append(Fuse).Append("\n"); + sb.Append(" IsMountpoint: ").Append(IsMountpoint).Append("\n"); + sb.Append(" Keyring: ").Append(Keyring).Append("\n"); + sb.Append(" Krbd: ").Append(Krbd).Append("\n"); + sb.Append(" LioTpg: ").Append(LioTpg).Append("\n"); + sb.Append(" MasterPubkey: ").Append(MasterPubkey).Append("\n"); + sb.Append(" MaxProtectedBackups: ").Append(MaxProtectedBackups).Append("\n"); + sb.Append(" Mkdir: ").Append(Mkdir).Append("\n"); + sb.Append(" Monhost: ").Append(Monhost).Append("\n"); + sb.Append(" Mountpoint: ").Append(Mountpoint).Append("\n"); + sb.Append(" Namespace: ").Append(Namespace).Append("\n"); + sb.Append(" Nocow: ").Append(Nocow).Append("\n"); + sb.Append(" Nodes: ").Append(Nodes).Append("\n"); + sb.Append(" Nowritecache: ").Append(Nowritecache).Append("\n"); + sb.Append(" Options: ").Append(Options).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" Pool: ").Append(Pool).Append("\n"); + sb.Append(" Port: ").Append(Port).Append("\n"); + sb.Append(" Preallocation: ").Append(Preallocation).Append("\n"); + sb.Append(" PruneBackups: ").Append(PruneBackups).Append("\n"); + sb.Append(" Saferemove: ").Append(Saferemove).Append("\n"); + sb.Append(" SaferemoveStepsize: ").Append(SaferemoveStepsize).Append("\n"); + sb.Append(" SaferemoveThroughput: ").Append(SaferemoveThroughput).Append("\n"); + sb.Append(" Server: ").Append(Server).Append("\n"); + sb.Append(" Shared: ").Append(Shared).Append("\n"); + sb.Append(" SkipCertVerification: ").Append(SkipCertVerification).Append("\n"); + sb.Append(" Smbversion: ").Append(Smbversion).Append("\n"); + sb.Append(" SnapshotAsVolumeChain: ").Append(SnapshotAsVolumeChain).Append("\n"); + sb.Append(" Sparse: ").Append(Sparse).Append("\n"); + sb.Append(" Subdir: ").Append(Subdir).Append("\n"); + sb.Append(" TaggedOnly: ").Append(TaggedOnly).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append(" ZfsBasePath: ").Append(ZfsBasePath).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateVMConfigRequest.cs b/src/ProxmoxSharp/Model/UpdateVMConfigRequest.cs new file mode 100644 index 0000000..cb14998 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateVMConfigRequest.cs @@ -0,0 +1,4259 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateVMConfigRequest + /// + [DataContract(Name = "UpdateVMConfigRequest")] + public partial class UpdateVMConfigRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// acpi. + /// affinity. + /// agent. + /// allowKsm. + /// amdSev. + /// arch. + /// args. + /// audio0. + /// autostart. + /// backgroundDelay. + /// balloon. + /// bios. + /// boot. + /// bootdisk. + /// cdrom. + /// cicustom. + /// cipassword. + /// citype. + /// ciupgrade. + /// ciuser. + /// cores. + /// cpu. + /// cpulimit. + /// cpuunits. + /// delete. + /// description. + /// digest. + /// efidisk0. + /// force. + /// freeze. + /// hookscript. + /// hostpci0. + /// hostpci1. + /// hostpci2. + /// hostpci3. + /// hostpci4. + /// hostpci5. + /// hostpci6. + /// hostpci7. + /// hostpci8. + /// hostpci9. + /// hostpci10. + /// hostpci11. + /// hostpci12. + /// hostpci13. + /// hostpci14. + /// hostpci15. + /// hostpci16. + /// hostpci17. + /// hostpci18. + /// hostpci19. + /// hostpci20. + /// hostpci21. + /// hostpci22. + /// hostpci23. + /// hostpci24. + /// hostpci25. + /// hostpci26. + /// hostpci27. + /// hostpci28. + /// hostpci29. + /// hotplug. + /// hugepages. + /// ide0. + /// ide1. + /// ide2. + /// ide3. + /// ide4. + /// ide5. + /// ide6. + /// ide7. + /// ide8. + /// ide9. + /// ide10. + /// ide11. + /// ide12. + /// ide13. + /// ide14. + /// ide15. + /// ide16. + /// ide17. + /// ide18. + /// ide19. + /// ide20. + /// ide21. + /// ide22. + /// ide23. + /// ide24. + /// ide25. + /// ide26. + /// ide27. + /// ide28. + /// ide29. + /// importWorkingStorage. + /// intelTdx. + /// ipconfig0. + /// ipconfig1. + /// ipconfig2. + /// ipconfig3. + /// ipconfig4. + /// ipconfig5. + /// ipconfig6. + /// ipconfig7. + /// ipconfig8. + /// ipconfig9. + /// ipconfig10. + /// ipconfig11. + /// ipconfig12. + /// ipconfig13. + /// ipconfig14. + /// ipconfig15. + /// ipconfig16. + /// ipconfig17. + /// ipconfig18. + /// ipconfig19. + /// ipconfig20. + /// ipconfig21. + /// ipconfig22. + /// ipconfig23. + /// ipconfig24. + /// ipconfig25. + /// ipconfig26. + /// ipconfig27. + /// ipconfig28. + /// ipconfig29. + /// ivshmem. + /// keephugepages. + /// keyboard. + /// kvm. + /// localtime. + /// varLock. + /// machine. + /// memory. + /// migrateDowntime. + /// migrateSpeed. + /// name. + /// nameserver. + /// net0. + /// net1. + /// net2. + /// net3. + /// net4. + /// net5. + /// net6. + /// net7. + /// net8. + /// net9. + /// net10. + /// net11. + /// net12. + /// net13. + /// net14. + /// net15. + /// net16. + /// net17. + /// net18. + /// net19. + /// net20. + /// net21. + /// net22. + /// net23. + /// net24. + /// net25. + /// net26. + /// net27. + /// net28. + /// net29. + /// numa. + /// numa0. + /// numa1. + /// numa2. + /// numa3. + /// numa4. + /// numa5. + /// numa6. + /// numa7. + /// numa8. + /// numa9. + /// numa10. + /// numa11. + /// numa12. + /// numa13. + /// numa14. + /// numa15. + /// numa16. + /// numa17. + /// numa18. + /// numa19. + /// numa20. + /// numa21. + /// numa22. + /// numa23. + /// numa24. + /// numa25. + /// numa26. + /// numa27. + /// numa28. + /// numa29. + /// onboot. + /// ostype. + /// parallel0. + /// parallel1. + /// parallel2. + /// parallel3. + /// parallel4. + /// parallel5. + /// parallel6. + /// parallel7. + /// parallel8. + /// parallel9. + /// parallel10. + /// parallel11. + /// parallel12. + /// parallel13. + /// parallel14. + /// parallel15. + /// parallel16. + /// parallel17. + /// parallel18. + /// parallel19. + /// parallel20. + /// parallel21. + /// parallel22. + /// parallel23. + /// parallel24. + /// parallel25. + /// parallel26. + /// parallel27. + /// parallel28. + /// parallel29. + /// protection. + /// reboot. + /// revert. + /// rng0. + /// sata0. + /// sata1. + /// sata2. + /// sata3. + /// sata4. + /// sata5. + /// sata6. + /// sata7. + /// sata8. + /// sata9. + /// sata10. + /// sata11. + /// sata12. + /// sata13. + /// sata14. + /// sata15. + /// sata16. + /// sata17. + /// sata18. + /// sata19. + /// sata20. + /// sata21. + /// sata22. + /// sata23. + /// sata24. + /// sata25. + /// sata26. + /// sata27. + /// sata28. + /// sata29. + /// scsi0. + /// scsi1. + /// scsi2. + /// scsi3. + /// scsi4. + /// scsi5. + /// scsi6. + /// scsi7. + /// scsi8. + /// scsi9. + /// scsi10. + /// scsi11. + /// scsi12. + /// scsi13. + /// scsi14. + /// scsi15. + /// scsi16. + /// scsi17. + /// scsi18. + /// scsi19. + /// scsi20. + /// scsi21. + /// scsi22. + /// scsi23. + /// scsi24. + /// scsi25. + /// scsi26. + /// scsi27. + /// scsi28. + /// scsi29. + /// scsihw. + /// searchdomain. + /// serial0. + /// serial1. + /// serial2. + /// serial3. + /// serial4. + /// serial5. + /// serial6. + /// serial7. + /// serial8. + /// serial9. + /// serial10. + /// serial11. + /// serial12. + /// serial13. + /// serial14. + /// serial15. + /// serial16. + /// serial17. + /// serial18. + /// serial19. + /// serial20. + /// serial21. + /// serial22. + /// serial23. + /// serial24. + /// serial25. + /// serial26. + /// serial27. + /// serial28. + /// serial29. + /// shares. + /// skiplock. + /// smbios1. + /// smp. + /// sockets. + /// spiceEnhancements. + /// sshkeys. + /// startdate. + /// startup. + /// tablet. + /// tags. + /// tdf. + /// template. + /// tpmstate0. + /// unused0. + /// unused1. + /// unused2. + /// unused3. + /// unused4. + /// unused5. + /// unused6. + /// unused7. + /// unused8. + /// unused9. + /// unused10. + /// unused11. + /// unused12. + /// unused13. + /// unused14. + /// unused15. + /// unused16. + /// unused17. + /// unused18. + /// unused19. + /// unused20. + /// unused21. + /// unused22. + /// unused23. + /// unused24. + /// unused25. + /// unused26. + /// unused27. + /// unused28. + /// unused29. + /// usb0. + /// usb1. + /// usb2. + /// usb3. + /// usb4. + /// usb5. + /// usb6. + /// usb7. + /// usb8. + /// usb9. + /// usb10. + /// usb11. + /// usb12. + /// usb13. + /// usb14. + /// usb15. + /// usb16. + /// usb17. + /// usb18. + /// usb19. + /// usb20. + /// usb21. + /// usb22. + /// usb23. + /// usb24. + /// usb25. + /// usb26. + /// usb27. + /// usb28. + /// usb29. + /// vcpus. + /// vga. + /// virtio0. + /// virtio1. + /// virtio2. + /// virtio3. + /// virtio4. + /// virtio5. + /// virtio6. + /// virtio7. + /// virtio8. + /// virtio9. + /// virtio10. + /// virtio11. + /// virtio12. + /// virtio13. + /// virtio14. + /// virtio15. + /// virtio16. + /// virtio17. + /// virtio18. + /// virtio19. + /// virtio20. + /// virtio21. + /// virtio22. + /// virtio23. + /// virtio24. + /// virtio25. + /// virtio26. + /// virtio27. + /// virtio28. + /// virtio29. + /// virtiofs0. + /// virtiofs1. + /// virtiofs2. + /// virtiofs3. + /// virtiofs4. + /// virtiofs5. + /// virtiofs6. + /// virtiofs7. + /// virtiofs8. + /// virtiofs9. + /// virtiofs10. + /// virtiofs11. + /// virtiofs12. + /// virtiofs13. + /// virtiofs14. + /// virtiofs15. + /// virtiofs16. + /// virtiofs17. + /// virtiofs18. + /// virtiofs19. + /// virtiofs20. + /// virtiofs21. + /// virtiofs22. + /// virtiofs23. + /// virtiofs24. + /// virtiofs25. + /// virtiofs26. + /// virtiofs27. + /// virtiofs28. + /// virtiofs29. + /// vmgenid. + /// vmstatestorage. + /// watchdog. + public UpdateVMConfigRequest(bool acpi = default(bool), string affinity = default(string), string agent = default(string), bool allowKsm = default(bool), string amdSev = default(string), string arch = default(string), string args = default(string), string audio0 = default(string), bool autostart = default(bool), int backgroundDelay = default(int), int balloon = default(int), string bios = default(string), string boot = default(string), string bootdisk = default(string), string cdrom = default(string), string cicustom = default(string), string cipassword = default(string), string citype = default(string), bool ciupgrade = default(bool), string ciuser = default(string), int cores = default(int), string cpu = default(string), decimal cpulimit = default(decimal), int cpuunits = default(int), string delete = default(string), string description = default(string), string digest = default(string), string efidisk0 = default(string), bool force = default(bool), bool freeze = default(bool), string hookscript = default(string), string hostpci0 = default(string), string hostpci1 = default(string), string hostpci2 = default(string), string hostpci3 = default(string), string hostpci4 = default(string), string hostpci5 = default(string), string hostpci6 = default(string), string hostpci7 = default(string), string hostpci8 = default(string), string hostpci9 = default(string), string hostpci10 = default(string), string hostpci11 = default(string), string hostpci12 = default(string), string hostpci13 = default(string), string hostpci14 = default(string), string hostpci15 = default(string), string hostpci16 = default(string), string hostpci17 = default(string), string hostpci18 = default(string), string hostpci19 = default(string), string hostpci20 = default(string), string hostpci21 = default(string), string hostpci22 = default(string), string hostpci23 = default(string), string hostpci24 = default(string), string hostpci25 = default(string), string hostpci26 = default(string), string hostpci27 = default(string), string hostpci28 = default(string), string hostpci29 = default(string), string hotplug = default(string), string hugepages = default(string), string ide0 = default(string), string ide1 = default(string), string ide2 = default(string), string ide3 = default(string), string ide4 = default(string), string ide5 = default(string), string ide6 = default(string), string ide7 = default(string), string ide8 = default(string), string ide9 = default(string), string ide10 = default(string), string ide11 = default(string), string ide12 = default(string), string ide13 = default(string), string ide14 = default(string), string ide15 = default(string), string ide16 = default(string), string ide17 = default(string), string ide18 = default(string), string ide19 = default(string), string ide20 = default(string), string ide21 = default(string), string ide22 = default(string), string ide23 = default(string), string ide24 = default(string), string ide25 = default(string), string ide26 = default(string), string ide27 = default(string), string ide28 = default(string), string ide29 = default(string), string importWorkingStorage = default(string), string intelTdx = default(string), string ipconfig0 = default(string), string ipconfig1 = default(string), string ipconfig2 = default(string), string ipconfig3 = default(string), string ipconfig4 = default(string), string ipconfig5 = default(string), string ipconfig6 = default(string), string ipconfig7 = default(string), string ipconfig8 = default(string), string ipconfig9 = default(string), string ipconfig10 = default(string), string ipconfig11 = default(string), string ipconfig12 = default(string), string ipconfig13 = default(string), string ipconfig14 = default(string), string ipconfig15 = default(string), string ipconfig16 = default(string), string ipconfig17 = default(string), string ipconfig18 = default(string), string ipconfig19 = default(string), string ipconfig20 = default(string), string ipconfig21 = default(string), string ipconfig22 = default(string), string ipconfig23 = default(string), string ipconfig24 = default(string), string ipconfig25 = default(string), string ipconfig26 = default(string), string ipconfig27 = default(string), string ipconfig28 = default(string), string ipconfig29 = default(string), string ivshmem = default(string), bool keephugepages = default(bool), string keyboard = default(string), bool kvm = default(bool), bool localtime = default(bool), string varLock = default(string), string machine = default(string), string memory = default(string), decimal migrateDowntime = default(decimal), int migrateSpeed = default(int), string name = default(string), string nameserver = default(string), string net0 = default(string), string net1 = default(string), string net2 = default(string), string net3 = default(string), string net4 = default(string), string net5 = default(string), string net6 = default(string), string net7 = default(string), string net8 = default(string), string net9 = default(string), string net10 = default(string), string net11 = default(string), string net12 = default(string), string net13 = default(string), string net14 = default(string), string net15 = default(string), string net16 = default(string), string net17 = default(string), string net18 = default(string), string net19 = default(string), string net20 = default(string), string net21 = default(string), string net22 = default(string), string net23 = default(string), string net24 = default(string), string net25 = default(string), string net26 = default(string), string net27 = default(string), string net28 = default(string), string net29 = default(string), bool numa = default(bool), string numa0 = default(string), string numa1 = default(string), string numa2 = default(string), string numa3 = default(string), string numa4 = default(string), string numa5 = default(string), string numa6 = default(string), string numa7 = default(string), string numa8 = default(string), string numa9 = default(string), string numa10 = default(string), string numa11 = default(string), string numa12 = default(string), string numa13 = default(string), string numa14 = default(string), string numa15 = default(string), string numa16 = default(string), string numa17 = default(string), string numa18 = default(string), string numa19 = default(string), string numa20 = default(string), string numa21 = default(string), string numa22 = default(string), string numa23 = default(string), string numa24 = default(string), string numa25 = default(string), string numa26 = default(string), string numa27 = default(string), string numa28 = default(string), string numa29 = default(string), bool onboot = default(bool), string ostype = default(string), string parallel0 = default(string), string parallel1 = default(string), string parallel2 = default(string), string parallel3 = default(string), string parallel4 = default(string), string parallel5 = default(string), string parallel6 = default(string), string parallel7 = default(string), string parallel8 = default(string), string parallel9 = default(string), string parallel10 = default(string), string parallel11 = default(string), string parallel12 = default(string), string parallel13 = default(string), string parallel14 = default(string), string parallel15 = default(string), string parallel16 = default(string), string parallel17 = default(string), string parallel18 = default(string), string parallel19 = default(string), string parallel20 = default(string), string parallel21 = default(string), string parallel22 = default(string), string parallel23 = default(string), string parallel24 = default(string), string parallel25 = default(string), string parallel26 = default(string), string parallel27 = default(string), string parallel28 = default(string), string parallel29 = default(string), bool protection = default(bool), bool reboot = default(bool), string revert = default(string), string rng0 = default(string), string sata0 = default(string), string sata1 = default(string), string sata2 = default(string), string sata3 = default(string), string sata4 = default(string), string sata5 = default(string), string sata6 = default(string), string sata7 = default(string), string sata8 = default(string), string sata9 = default(string), string sata10 = default(string), string sata11 = default(string), string sata12 = default(string), string sata13 = default(string), string sata14 = default(string), string sata15 = default(string), string sata16 = default(string), string sata17 = default(string), string sata18 = default(string), string sata19 = default(string), string sata20 = default(string), string sata21 = default(string), string sata22 = default(string), string sata23 = default(string), string sata24 = default(string), string sata25 = default(string), string sata26 = default(string), string sata27 = default(string), string sata28 = default(string), string sata29 = default(string), string scsi0 = default(string), string scsi1 = default(string), string scsi2 = default(string), string scsi3 = default(string), string scsi4 = default(string), string scsi5 = default(string), string scsi6 = default(string), string scsi7 = default(string), string scsi8 = default(string), string scsi9 = default(string), string scsi10 = default(string), string scsi11 = default(string), string scsi12 = default(string), string scsi13 = default(string), string scsi14 = default(string), string scsi15 = default(string), string scsi16 = default(string), string scsi17 = default(string), string scsi18 = default(string), string scsi19 = default(string), string scsi20 = default(string), string scsi21 = default(string), string scsi22 = default(string), string scsi23 = default(string), string scsi24 = default(string), string scsi25 = default(string), string scsi26 = default(string), string scsi27 = default(string), string scsi28 = default(string), string scsi29 = default(string), string scsihw = default(string), string searchdomain = default(string), string serial0 = default(string), string serial1 = default(string), string serial2 = default(string), string serial3 = default(string), string serial4 = default(string), string serial5 = default(string), string serial6 = default(string), string serial7 = default(string), string serial8 = default(string), string serial9 = default(string), string serial10 = default(string), string serial11 = default(string), string serial12 = default(string), string serial13 = default(string), string serial14 = default(string), string serial15 = default(string), string serial16 = default(string), string serial17 = default(string), string serial18 = default(string), string serial19 = default(string), string serial20 = default(string), string serial21 = default(string), string serial22 = default(string), string serial23 = default(string), string serial24 = default(string), string serial25 = default(string), string serial26 = default(string), string serial27 = default(string), string serial28 = default(string), string serial29 = default(string), int shares = default(int), bool skiplock = default(bool), string smbios1 = default(string), int smp = default(int), int sockets = default(int), string spiceEnhancements = default(string), string sshkeys = default(string), string startdate = default(string), string startup = default(string), bool tablet = default(bool), string tags = default(string), bool tdf = default(bool), bool template = default(bool), string tpmstate0 = default(string), string unused0 = default(string), string unused1 = default(string), string unused2 = default(string), string unused3 = default(string), string unused4 = default(string), string unused5 = default(string), string unused6 = default(string), string unused7 = default(string), string unused8 = default(string), string unused9 = default(string), string unused10 = default(string), string unused11 = default(string), string unused12 = default(string), string unused13 = default(string), string unused14 = default(string), string unused15 = default(string), string unused16 = default(string), string unused17 = default(string), string unused18 = default(string), string unused19 = default(string), string unused20 = default(string), string unused21 = default(string), string unused22 = default(string), string unused23 = default(string), string unused24 = default(string), string unused25 = default(string), string unused26 = default(string), string unused27 = default(string), string unused28 = default(string), string unused29 = default(string), string usb0 = default(string), string usb1 = default(string), string usb2 = default(string), string usb3 = default(string), string usb4 = default(string), string usb5 = default(string), string usb6 = default(string), string usb7 = default(string), string usb8 = default(string), string usb9 = default(string), string usb10 = default(string), string usb11 = default(string), string usb12 = default(string), string usb13 = default(string), string usb14 = default(string), string usb15 = default(string), string usb16 = default(string), string usb17 = default(string), string usb18 = default(string), string usb19 = default(string), string usb20 = default(string), string usb21 = default(string), string usb22 = default(string), string usb23 = default(string), string usb24 = default(string), string usb25 = default(string), string usb26 = default(string), string usb27 = default(string), string usb28 = default(string), string usb29 = default(string), int vcpus = default(int), string vga = default(string), string virtio0 = default(string), string virtio1 = default(string), string virtio2 = default(string), string virtio3 = default(string), string virtio4 = default(string), string virtio5 = default(string), string virtio6 = default(string), string virtio7 = default(string), string virtio8 = default(string), string virtio9 = default(string), string virtio10 = default(string), string virtio11 = default(string), string virtio12 = default(string), string virtio13 = default(string), string virtio14 = default(string), string virtio15 = default(string), string virtio16 = default(string), string virtio17 = default(string), string virtio18 = default(string), string virtio19 = default(string), string virtio20 = default(string), string virtio21 = default(string), string virtio22 = default(string), string virtio23 = default(string), string virtio24 = default(string), string virtio25 = default(string), string virtio26 = default(string), string virtio27 = default(string), string virtio28 = default(string), string virtio29 = default(string), string virtiofs0 = default(string), string virtiofs1 = default(string), string virtiofs2 = default(string), string virtiofs3 = default(string), string virtiofs4 = default(string), string virtiofs5 = default(string), string virtiofs6 = default(string), string virtiofs7 = default(string), string virtiofs8 = default(string), string virtiofs9 = default(string), string virtiofs10 = default(string), string virtiofs11 = default(string), string virtiofs12 = default(string), string virtiofs13 = default(string), string virtiofs14 = default(string), string virtiofs15 = default(string), string virtiofs16 = default(string), string virtiofs17 = default(string), string virtiofs18 = default(string), string virtiofs19 = default(string), string virtiofs20 = default(string), string virtiofs21 = default(string), string virtiofs22 = default(string), string virtiofs23 = default(string), string virtiofs24 = default(string), string virtiofs25 = default(string), string virtiofs26 = default(string), string virtiofs27 = default(string), string virtiofs28 = default(string), string virtiofs29 = default(string), string vmgenid = default(string), string vmstatestorage = default(string), string watchdog = default(string)) + { + this.Acpi = acpi; + this.Affinity = affinity; + this.Agent = agent; + this.AllowKsm = allowKsm; + this.AmdSev = amdSev; + this.Arch = arch; + this.Args = args; + this.Audio0 = audio0; + this.Autostart = autostart; + this.BackgroundDelay = backgroundDelay; + this.Balloon = balloon; + this.Bios = bios; + this.Boot = boot; + this.Bootdisk = bootdisk; + this.Cdrom = cdrom; + this.Cicustom = cicustom; + this.Cipassword = cipassword; + this.Citype = citype; + this.Ciupgrade = ciupgrade; + this.Ciuser = ciuser; + this.Cores = cores; + this.Cpu = cpu; + this.Cpulimit = cpulimit; + this.Cpuunits = cpuunits; + this.Delete = delete; + this.Description = description; + this.Digest = digest; + this.Efidisk0 = efidisk0; + this.Force = force; + this.Freeze = freeze; + this.Hookscript = hookscript; + this.Hostpci0 = hostpci0; + this.Hostpci1 = hostpci1; + this.Hostpci2 = hostpci2; + this.Hostpci3 = hostpci3; + this.Hostpci4 = hostpci4; + this.Hostpci5 = hostpci5; + this.Hostpci6 = hostpci6; + this.Hostpci7 = hostpci7; + this.Hostpci8 = hostpci8; + this.Hostpci9 = hostpci9; + this.Hostpci10 = hostpci10; + this.Hostpci11 = hostpci11; + this.Hostpci12 = hostpci12; + this.Hostpci13 = hostpci13; + this.Hostpci14 = hostpci14; + this.Hostpci15 = hostpci15; + this.Hostpci16 = hostpci16; + this.Hostpci17 = hostpci17; + this.Hostpci18 = hostpci18; + this.Hostpci19 = hostpci19; + this.Hostpci20 = hostpci20; + this.Hostpci21 = hostpci21; + this.Hostpci22 = hostpci22; + this.Hostpci23 = hostpci23; + this.Hostpci24 = hostpci24; + this.Hostpci25 = hostpci25; + this.Hostpci26 = hostpci26; + this.Hostpci27 = hostpci27; + this.Hostpci28 = hostpci28; + this.Hostpci29 = hostpci29; + this.Hotplug = hotplug; + this.Hugepages = hugepages; + this.Ide0 = ide0; + this.Ide1 = ide1; + this.Ide2 = ide2; + this.Ide3 = ide3; + this.Ide4 = ide4; + this.Ide5 = ide5; + this.Ide6 = ide6; + this.Ide7 = ide7; + this.Ide8 = ide8; + this.Ide9 = ide9; + this.Ide10 = ide10; + this.Ide11 = ide11; + this.Ide12 = ide12; + this.Ide13 = ide13; + this.Ide14 = ide14; + this.Ide15 = ide15; + this.Ide16 = ide16; + this.Ide17 = ide17; + this.Ide18 = ide18; + this.Ide19 = ide19; + this.Ide20 = ide20; + this.Ide21 = ide21; + this.Ide22 = ide22; + this.Ide23 = ide23; + this.Ide24 = ide24; + this.Ide25 = ide25; + this.Ide26 = ide26; + this.Ide27 = ide27; + this.Ide28 = ide28; + this.Ide29 = ide29; + this.ImportWorkingStorage = importWorkingStorage; + this.IntelTdx = intelTdx; + this.Ipconfig0 = ipconfig0; + this.Ipconfig1 = ipconfig1; + this.Ipconfig2 = ipconfig2; + this.Ipconfig3 = ipconfig3; + this.Ipconfig4 = ipconfig4; + this.Ipconfig5 = ipconfig5; + this.Ipconfig6 = ipconfig6; + this.Ipconfig7 = ipconfig7; + this.Ipconfig8 = ipconfig8; + this.Ipconfig9 = ipconfig9; + this.Ipconfig10 = ipconfig10; + this.Ipconfig11 = ipconfig11; + this.Ipconfig12 = ipconfig12; + this.Ipconfig13 = ipconfig13; + this.Ipconfig14 = ipconfig14; + this.Ipconfig15 = ipconfig15; + this.Ipconfig16 = ipconfig16; + this.Ipconfig17 = ipconfig17; + this.Ipconfig18 = ipconfig18; + this.Ipconfig19 = ipconfig19; + this.Ipconfig20 = ipconfig20; + this.Ipconfig21 = ipconfig21; + this.Ipconfig22 = ipconfig22; + this.Ipconfig23 = ipconfig23; + this.Ipconfig24 = ipconfig24; + this.Ipconfig25 = ipconfig25; + this.Ipconfig26 = ipconfig26; + this.Ipconfig27 = ipconfig27; + this.Ipconfig28 = ipconfig28; + this.Ipconfig29 = ipconfig29; + this.Ivshmem = ivshmem; + this.Keephugepages = keephugepages; + this.Keyboard = keyboard; + this.Kvm = kvm; + this.Localtime = localtime; + this.Lock = varLock; + this.Machine = machine; + this.Memory = memory; + this.MigrateDowntime = migrateDowntime; + this.MigrateSpeed = migrateSpeed; + this.Name = name; + this.Nameserver = nameserver; + this.Net0 = net0; + this.Net1 = net1; + this.Net2 = net2; + this.Net3 = net3; + this.Net4 = net4; + this.Net5 = net5; + this.Net6 = net6; + this.Net7 = net7; + this.Net8 = net8; + this.Net9 = net9; + this.Net10 = net10; + this.Net11 = net11; + this.Net12 = net12; + this.Net13 = net13; + this.Net14 = net14; + this.Net15 = net15; + this.Net16 = net16; + this.Net17 = net17; + this.Net18 = net18; + this.Net19 = net19; + this.Net20 = net20; + this.Net21 = net21; + this.Net22 = net22; + this.Net23 = net23; + this.Net24 = net24; + this.Net25 = net25; + this.Net26 = net26; + this.Net27 = net27; + this.Net28 = net28; + this.Net29 = net29; + this.Numa = numa; + this.Numa0 = numa0; + this.Numa1 = numa1; + this.Numa2 = numa2; + this.Numa3 = numa3; + this.Numa4 = numa4; + this.Numa5 = numa5; + this.Numa6 = numa6; + this.Numa7 = numa7; + this.Numa8 = numa8; + this.Numa9 = numa9; + this.Numa10 = numa10; + this.Numa11 = numa11; + this.Numa12 = numa12; + this.Numa13 = numa13; + this.Numa14 = numa14; + this.Numa15 = numa15; + this.Numa16 = numa16; + this.Numa17 = numa17; + this.Numa18 = numa18; + this.Numa19 = numa19; + this.Numa20 = numa20; + this.Numa21 = numa21; + this.Numa22 = numa22; + this.Numa23 = numa23; + this.Numa24 = numa24; + this.Numa25 = numa25; + this.Numa26 = numa26; + this.Numa27 = numa27; + this.Numa28 = numa28; + this.Numa29 = numa29; + this.Onboot = onboot; + this.Ostype = ostype; + this.Parallel0 = parallel0; + this.Parallel1 = parallel1; + this.Parallel2 = parallel2; + this.Parallel3 = parallel3; + this.Parallel4 = parallel4; + this.Parallel5 = parallel5; + this.Parallel6 = parallel6; + this.Parallel7 = parallel7; + this.Parallel8 = parallel8; + this.Parallel9 = parallel9; + this.Parallel10 = parallel10; + this.Parallel11 = parallel11; + this.Parallel12 = parallel12; + this.Parallel13 = parallel13; + this.Parallel14 = parallel14; + this.Parallel15 = parallel15; + this.Parallel16 = parallel16; + this.Parallel17 = parallel17; + this.Parallel18 = parallel18; + this.Parallel19 = parallel19; + this.Parallel20 = parallel20; + this.Parallel21 = parallel21; + this.Parallel22 = parallel22; + this.Parallel23 = parallel23; + this.Parallel24 = parallel24; + this.Parallel25 = parallel25; + this.Parallel26 = parallel26; + this.Parallel27 = parallel27; + this.Parallel28 = parallel28; + this.Parallel29 = parallel29; + this.Protection = protection; + this.Reboot = reboot; + this.Revert = revert; + this.Rng0 = rng0; + this.Sata0 = sata0; + this.Sata1 = sata1; + this.Sata2 = sata2; + this.Sata3 = sata3; + this.Sata4 = sata4; + this.Sata5 = sata5; + this.Sata6 = sata6; + this.Sata7 = sata7; + this.Sata8 = sata8; + this.Sata9 = sata9; + this.Sata10 = sata10; + this.Sata11 = sata11; + this.Sata12 = sata12; + this.Sata13 = sata13; + this.Sata14 = sata14; + this.Sata15 = sata15; + this.Sata16 = sata16; + this.Sata17 = sata17; + this.Sata18 = sata18; + this.Sata19 = sata19; + this.Sata20 = sata20; + this.Sata21 = sata21; + this.Sata22 = sata22; + this.Sata23 = sata23; + this.Sata24 = sata24; + this.Sata25 = sata25; + this.Sata26 = sata26; + this.Sata27 = sata27; + this.Sata28 = sata28; + this.Sata29 = sata29; + this.Scsi0 = scsi0; + this.Scsi1 = scsi1; + this.Scsi2 = scsi2; + this.Scsi3 = scsi3; + this.Scsi4 = scsi4; + this.Scsi5 = scsi5; + this.Scsi6 = scsi6; + this.Scsi7 = scsi7; + this.Scsi8 = scsi8; + this.Scsi9 = scsi9; + this.Scsi10 = scsi10; + this.Scsi11 = scsi11; + this.Scsi12 = scsi12; + this.Scsi13 = scsi13; + this.Scsi14 = scsi14; + this.Scsi15 = scsi15; + this.Scsi16 = scsi16; + this.Scsi17 = scsi17; + this.Scsi18 = scsi18; + this.Scsi19 = scsi19; + this.Scsi20 = scsi20; + this.Scsi21 = scsi21; + this.Scsi22 = scsi22; + this.Scsi23 = scsi23; + this.Scsi24 = scsi24; + this.Scsi25 = scsi25; + this.Scsi26 = scsi26; + this.Scsi27 = scsi27; + this.Scsi28 = scsi28; + this.Scsi29 = scsi29; + this.Scsihw = scsihw; + this.Searchdomain = searchdomain; + this.Serial0 = serial0; + this.Serial1 = serial1; + this.Serial2 = serial2; + this.Serial3 = serial3; + this.Serial4 = serial4; + this.Serial5 = serial5; + this.Serial6 = serial6; + this.Serial7 = serial7; + this.Serial8 = serial8; + this.Serial9 = serial9; + this.Serial10 = serial10; + this.Serial11 = serial11; + this.Serial12 = serial12; + this.Serial13 = serial13; + this.Serial14 = serial14; + this.Serial15 = serial15; + this.Serial16 = serial16; + this.Serial17 = serial17; + this.Serial18 = serial18; + this.Serial19 = serial19; + this.Serial20 = serial20; + this.Serial21 = serial21; + this.Serial22 = serial22; + this.Serial23 = serial23; + this.Serial24 = serial24; + this.Serial25 = serial25; + this.Serial26 = serial26; + this.Serial27 = serial27; + this.Serial28 = serial28; + this.Serial29 = serial29; + this.Shares = shares; + this.Skiplock = skiplock; + this.Smbios1 = smbios1; + this.Smp = smp; + this.Sockets = sockets; + this.SpiceEnhancements = spiceEnhancements; + this.Sshkeys = sshkeys; + this.Startdate = startdate; + this.Startup = startup; + this.Tablet = tablet; + this.Tags = tags; + this.Tdf = tdf; + this.Template = template; + this.Tpmstate0 = tpmstate0; + this.Unused0 = unused0; + this.Unused1 = unused1; + this.Unused2 = unused2; + this.Unused3 = unused3; + this.Unused4 = unused4; + this.Unused5 = unused5; + this.Unused6 = unused6; + this.Unused7 = unused7; + this.Unused8 = unused8; + this.Unused9 = unused9; + this.Unused10 = unused10; + this.Unused11 = unused11; + this.Unused12 = unused12; + this.Unused13 = unused13; + this.Unused14 = unused14; + this.Unused15 = unused15; + this.Unused16 = unused16; + this.Unused17 = unused17; + this.Unused18 = unused18; + this.Unused19 = unused19; + this.Unused20 = unused20; + this.Unused21 = unused21; + this.Unused22 = unused22; + this.Unused23 = unused23; + this.Unused24 = unused24; + this.Unused25 = unused25; + this.Unused26 = unused26; + this.Unused27 = unused27; + this.Unused28 = unused28; + this.Unused29 = unused29; + this.Usb0 = usb0; + this.Usb1 = usb1; + this.Usb2 = usb2; + this.Usb3 = usb3; + this.Usb4 = usb4; + this.Usb5 = usb5; + this.Usb6 = usb6; + this.Usb7 = usb7; + this.Usb8 = usb8; + this.Usb9 = usb9; + this.Usb10 = usb10; + this.Usb11 = usb11; + this.Usb12 = usb12; + this.Usb13 = usb13; + this.Usb14 = usb14; + this.Usb15 = usb15; + this.Usb16 = usb16; + this.Usb17 = usb17; + this.Usb18 = usb18; + this.Usb19 = usb19; + this.Usb20 = usb20; + this.Usb21 = usb21; + this.Usb22 = usb22; + this.Usb23 = usb23; + this.Usb24 = usb24; + this.Usb25 = usb25; + this.Usb26 = usb26; + this.Usb27 = usb27; + this.Usb28 = usb28; + this.Usb29 = usb29; + this.Vcpus = vcpus; + this.Vga = vga; + this.Virtio0 = virtio0; + this.Virtio1 = virtio1; + this.Virtio2 = virtio2; + this.Virtio3 = virtio3; + this.Virtio4 = virtio4; + this.Virtio5 = virtio5; + this.Virtio6 = virtio6; + this.Virtio7 = virtio7; + this.Virtio8 = virtio8; + this.Virtio9 = virtio9; + this.Virtio10 = virtio10; + this.Virtio11 = virtio11; + this.Virtio12 = virtio12; + this.Virtio13 = virtio13; + this.Virtio14 = virtio14; + this.Virtio15 = virtio15; + this.Virtio16 = virtio16; + this.Virtio17 = virtio17; + this.Virtio18 = virtio18; + this.Virtio19 = virtio19; + this.Virtio20 = virtio20; + this.Virtio21 = virtio21; + this.Virtio22 = virtio22; + this.Virtio23 = virtio23; + this.Virtio24 = virtio24; + this.Virtio25 = virtio25; + this.Virtio26 = virtio26; + this.Virtio27 = virtio27; + this.Virtio28 = virtio28; + this.Virtio29 = virtio29; + this.Virtiofs0 = virtiofs0; + this.Virtiofs1 = virtiofs1; + this.Virtiofs2 = virtiofs2; + this.Virtiofs3 = virtiofs3; + this.Virtiofs4 = virtiofs4; + this.Virtiofs5 = virtiofs5; + this.Virtiofs6 = virtiofs6; + this.Virtiofs7 = virtiofs7; + this.Virtiofs8 = virtiofs8; + this.Virtiofs9 = virtiofs9; + this.Virtiofs10 = virtiofs10; + this.Virtiofs11 = virtiofs11; + this.Virtiofs12 = virtiofs12; + this.Virtiofs13 = virtiofs13; + this.Virtiofs14 = virtiofs14; + this.Virtiofs15 = virtiofs15; + this.Virtiofs16 = virtiofs16; + this.Virtiofs17 = virtiofs17; + this.Virtiofs18 = virtiofs18; + this.Virtiofs19 = virtiofs19; + this.Virtiofs20 = virtiofs20; + this.Virtiofs21 = virtiofs21; + this.Virtiofs22 = virtiofs22; + this.Virtiofs23 = virtiofs23; + this.Virtiofs24 = virtiofs24; + this.Virtiofs25 = virtiofs25; + this.Virtiofs26 = virtiofs26; + this.Virtiofs27 = virtiofs27; + this.Virtiofs28 = virtiofs28; + this.Virtiofs29 = virtiofs29; + this.Vmgenid = vmgenid; + this.Vmstatestorage = vmstatestorage; + this.Watchdog = watchdog; + } + + /// + /// Gets or Sets Acpi + /// + [DataMember(Name = "acpi", EmitDefaultValue = true)] + public bool Acpi { get; set; } + + /// + /// Gets or Sets Affinity + /// + [DataMember(Name = "affinity", EmitDefaultValue = false)] + public string Affinity { get; set; } + + /// + /// Gets or Sets Agent + /// + [DataMember(Name = "agent", EmitDefaultValue = false)] + public string Agent { get; set; } + + /// + /// Gets or Sets AllowKsm + /// + [DataMember(Name = "allow-ksm", EmitDefaultValue = true)] + public bool AllowKsm { get; set; } + + /// + /// Gets or Sets AmdSev + /// + [DataMember(Name = "amd-sev", EmitDefaultValue = false)] + public string AmdSev { get; set; } + + /// + /// Gets or Sets Arch + /// + [DataMember(Name = "arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Gets or Sets Args + /// + [DataMember(Name = "args", EmitDefaultValue = false)] + public string Args { get; set; } + + /// + /// Gets or Sets Audio0 + /// + [DataMember(Name = "audio0", EmitDefaultValue = false)] + public string Audio0 { get; set; } + + /// + /// Gets or Sets Autostart + /// + [DataMember(Name = "autostart", EmitDefaultValue = true)] + public bool Autostart { get; set; } + + /// + /// Gets or Sets BackgroundDelay + /// + [DataMember(Name = "background_delay", EmitDefaultValue = false)] + public int BackgroundDelay { get; set; } + + /// + /// Gets or Sets Balloon + /// + [DataMember(Name = "balloon", EmitDefaultValue = false)] + public int Balloon { get; set; } + + /// + /// Gets or Sets Bios + /// + [DataMember(Name = "bios", EmitDefaultValue = false)] + public string Bios { get; set; } + + /// + /// Gets or Sets Boot + /// + [DataMember(Name = "boot", EmitDefaultValue = false)] + public string Boot { get; set; } + + /// + /// Gets or Sets Bootdisk + /// + [DataMember(Name = "bootdisk", EmitDefaultValue = false)] + public string Bootdisk { get; set; } + + /// + /// Gets or Sets Cdrom + /// + [DataMember(Name = "cdrom", EmitDefaultValue = false)] + public string Cdrom { get; set; } + + /// + /// Gets or Sets Cicustom + /// + [DataMember(Name = "cicustom", EmitDefaultValue = false)] + public string Cicustom { get; set; } + + /// + /// Gets or Sets Cipassword + /// + [DataMember(Name = "cipassword", EmitDefaultValue = false)] + public string Cipassword { get; set; } + + /// + /// Gets or Sets Citype + /// + [DataMember(Name = "citype", EmitDefaultValue = false)] + public string Citype { get; set; } + + /// + /// Gets or Sets Ciupgrade + /// + [DataMember(Name = "ciupgrade", EmitDefaultValue = true)] + public bool Ciupgrade { get; set; } + + /// + /// Gets or Sets Ciuser + /// + [DataMember(Name = "ciuser", EmitDefaultValue = false)] + public string Ciuser { get; set; } + + /// + /// Gets or Sets Cores + /// + [DataMember(Name = "cores", EmitDefaultValue = false)] + public int Cores { get; set; } + + /// + /// Gets or Sets Cpu + /// + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public string Cpu { get; set; } + + /// + /// Gets or Sets Cpulimit + /// + [DataMember(Name = "cpulimit", EmitDefaultValue = false)] + public decimal Cpulimit { get; set; } + + /// + /// Gets or Sets Cpuunits + /// + [DataMember(Name = "cpuunits", EmitDefaultValue = false)] + public int Cpuunits { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Efidisk0 + /// + [DataMember(Name = "efidisk0", EmitDefaultValue = false)] + public string Efidisk0 { get; set; } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets Freeze + /// + [DataMember(Name = "freeze", EmitDefaultValue = true)] + public bool Freeze { get; set; } + + /// + /// Gets or Sets Hookscript + /// + [DataMember(Name = "hookscript", EmitDefaultValue = false)] + public string Hookscript { get; set; } + + /// + /// Gets or Sets Hostpci0 + /// + [DataMember(Name = "hostpci0", EmitDefaultValue = false)] + public string Hostpci0 { get; set; } + + /// + /// Gets or Sets Hostpci1 + /// + [DataMember(Name = "hostpci1", EmitDefaultValue = false)] + public string Hostpci1 { get; set; } + + /// + /// Gets or Sets Hostpci2 + /// + [DataMember(Name = "hostpci2", EmitDefaultValue = false)] + public string Hostpci2 { get; set; } + + /// + /// Gets or Sets Hostpci3 + /// + [DataMember(Name = "hostpci3", EmitDefaultValue = false)] + public string Hostpci3 { get; set; } + + /// + /// Gets or Sets Hostpci4 + /// + [DataMember(Name = "hostpci4", EmitDefaultValue = false)] + public string Hostpci4 { get; set; } + + /// + /// Gets or Sets Hostpci5 + /// + [DataMember(Name = "hostpci5", EmitDefaultValue = false)] + public string Hostpci5 { get; set; } + + /// + /// Gets or Sets Hostpci6 + /// + [DataMember(Name = "hostpci6", EmitDefaultValue = false)] + public string Hostpci6 { get; set; } + + /// + /// Gets or Sets Hostpci7 + /// + [DataMember(Name = "hostpci7", EmitDefaultValue = false)] + public string Hostpci7 { get; set; } + + /// + /// Gets or Sets Hostpci8 + /// + [DataMember(Name = "hostpci8", EmitDefaultValue = false)] + public string Hostpci8 { get; set; } + + /// + /// Gets or Sets Hostpci9 + /// + [DataMember(Name = "hostpci9", EmitDefaultValue = false)] + public string Hostpci9 { get; set; } + + /// + /// Gets or Sets Hostpci10 + /// + [DataMember(Name = "hostpci10", EmitDefaultValue = false)] + public string Hostpci10 { get; set; } + + /// + /// Gets or Sets Hostpci11 + /// + [DataMember(Name = "hostpci11", EmitDefaultValue = false)] + public string Hostpci11 { get; set; } + + /// + /// Gets or Sets Hostpci12 + /// + [DataMember(Name = "hostpci12", EmitDefaultValue = false)] + public string Hostpci12 { get; set; } + + /// + /// Gets or Sets Hostpci13 + /// + [DataMember(Name = "hostpci13", EmitDefaultValue = false)] + public string Hostpci13 { get; set; } + + /// + /// Gets or Sets Hostpci14 + /// + [DataMember(Name = "hostpci14", EmitDefaultValue = false)] + public string Hostpci14 { get; set; } + + /// + /// Gets or Sets Hostpci15 + /// + [DataMember(Name = "hostpci15", EmitDefaultValue = false)] + public string Hostpci15 { get; set; } + + /// + /// Gets or Sets Hostpci16 + /// + [DataMember(Name = "hostpci16", EmitDefaultValue = false)] + public string Hostpci16 { get; set; } + + /// + /// Gets or Sets Hostpci17 + /// + [DataMember(Name = "hostpci17", EmitDefaultValue = false)] + public string Hostpci17 { get; set; } + + /// + /// Gets or Sets Hostpci18 + /// + [DataMember(Name = "hostpci18", EmitDefaultValue = false)] + public string Hostpci18 { get; set; } + + /// + /// Gets or Sets Hostpci19 + /// + [DataMember(Name = "hostpci19", EmitDefaultValue = false)] + public string Hostpci19 { get; set; } + + /// + /// Gets or Sets Hostpci20 + /// + [DataMember(Name = "hostpci20", EmitDefaultValue = false)] + public string Hostpci20 { get; set; } + + /// + /// Gets or Sets Hostpci21 + /// + [DataMember(Name = "hostpci21", EmitDefaultValue = false)] + public string Hostpci21 { get; set; } + + /// + /// Gets or Sets Hostpci22 + /// + [DataMember(Name = "hostpci22", EmitDefaultValue = false)] + public string Hostpci22 { get; set; } + + /// + /// Gets or Sets Hostpci23 + /// + [DataMember(Name = "hostpci23", EmitDefaultValue = false)] + public string Hostpci23 { get; set; } + + /// + /// Gets or Sets Hostpci24 + /// + [DataMember(Name = "hostpci24", EmitDefaultValue = false)] + public string Hostpci24 { get; set; } + + /// + /// Gets or Sets Hostpci25 + /// + [DataMember(Name = "hostpci25", EmitDefaultValue = false)] + public string Hostpci25 { get; set; } + + /// + /// Gets or Sets Hostpci26 + /// + [DataMember(Name = "hostpci26", EmitDefaultValue = false)] + public string Hostpci26 { get; set; } + + /// + /// Gets or Sets Hostpci27 + /// + [DataMember(Name = "hostpci27", EmitDefaultValue = false)] + public string Hostpci27 { get; set; } + + /// + /// Gets or Sets Hostpci28 + /// + [DataMember(Name = "hostpci28", EmitDefaultValue = false)] + public string Hostpci28 { get; set; } + + /// + /// Gets or Sets Hostpci29 + /// + [DataMember(Name = "hostpci29", EmitDefaultValue = false)] + public string Hostpci29 { get; set; } + + /// + /// Gets or Sets Hotplug + /// + [DataMember(Name = "hotplug", EmitDefaultValue = false)] + public string Hotplug { get; set; } + + /// + /// Gets or Sets Hugepages + /// + [DataMember(Name = "hugepages", EmitDefaultValue = false)] + public string Hugepages { get; set; } + + /// + /// Gets or Sets Ide0 + /// + [DataMember(Name = "ide0", EmitDefaultValue = false)] + public string Ide0 { get; set; } + + /// + /// Gets or Sets Ide1 + /// + [DataMember(Name = "ide1", EmitDefaultValue = false)] + public string Ide1 { get; set; } + + /// + /// Gets or Sets Ide2 + /// + [DataMember(Name = "ide2", EmitDefaultValue = false)] + public string Ide2 { get; set; } + + /// + /// Gets or Sets Ide3 + /// + [DataMember(Name = "ide3", EmitDefaultValue = false)] + public string Ide3 { get; set; } + + /// + /// Gets or Sets Ide4 + /// + [DataMember(Name = "ide4", EmitDefaultValue = false)] + public string Ide4 { get; set; } + + /// + /// Gets or Sets Ide5 + /// + [DataMember(Name = "ide5", EmitDefaultValue = false)] + public string Ide5 { get; set; } + + /// + /// Gets or Sets Ide6 + /// + [DataMember(Name = "ide6", EmitDefaultValue = false)] + public string Ide6 { get; set; } + + /// + /// Gets or Sets Ide7 + /// + [DataMember(Name = "ide7", EmitDefaultValue = false)] + public string Ide7 { get; set; } + + /// + /// Gets or Sets Ide8 + /// + [DataMember(Name = "ide8", EmitDefaultValue = false)] + public string Ide8 { get; set; } + + /// + /// Gets or Sets Ide9 + /// + [DataMember(Name = "ide9", EmitDefaultValue = false)] + public string Ide9 { get; set; } + + /// + /// Gets or Sets Ide10 + /// + [DataMember(Name = "ide10", EmitDefaultValue = false)] + public string Ide10 { get; set; } + + /// + /// Gets or Sets Ide11 + /// + [DataMember(Name = "ide11", EmitDefaultValue = false)] + public string Ide11 { get; set; } + + /// + /// Gets or Sets Ide12 + /// + [DataMember(Name = "ide12", EmitDefaultValue = false)] + public string Ide12 { get; set; } + + /// + /// Gets or Sets Ide13 + /// + [DataMember(Name = "ide13", EmitDefaultValue = false)] + public string Ide13 { get; set; } + + /// + /// Gets or Sets Ide14 + /// + [DataMember(Name = "ide14", EmitDefaultValue = false)] + public string Ide14 { get; set; } + + /// + /// Gets or Sets Ide15 + /// + [DataMember(Name = "ide15", EmitDefaultValue = false)] + public string Ide15 { get; set; } + + /// + /// Gets or Sets Ide16 + /// + [DataMember(Name = "ide16", EmitDefaultValue = false)] + public string Ide16 { get; set; } + + /// + /// Gets or Sets Ide17 + /// + [DataMember(Name = "ide17", EmitDefaultValue = false)] + public string Ide17 { get; set; } + + /// + /// Gets or Sets Ide18 + /// + [DataMember(Name = "ide18", EmitDefaultValue = false)] + public string Ide18 { get; set; } + + /// + /// Gets or Sets Ide19 + /// + [DataMember(Name = "ide19", EmitDefaultValue = false)] + public string Ide19 { get; set; } + + /// + /// Gets or Sets Ide20 + /// + [DataMember(Name = "ide20", EmitDefaultValue = false)] + public string Ide20 { get; set; } + + /// + /// Gets or Sets Ide21 + /// + [DataMember(Name = "ide21", EmitDefaultValue = false)] + public string Ide21 { get; set; } + + /// + /// Gets or Sets Ide22 + /// + [DataMember(Name = "ide22", EmitDefaultValue = false)] + public string Ide22 { get; set; } + + /// + /// Gets or Sets Ide23 + /// + [DataMember(Name = "ide23", EmitDefaultValue = false)] + public string Ide23 { get; set; } + + /// + /// Gets or Sets Ide24 + /// + [DataMember(Name = "ide24", EmitDefaultValue = false)] + public string Ide24 { get; set; } + + /// + /// Gets or Sets Ide25 + /// + [DataMember(Name = "ide25", EmitDefaultValue = false)] + public string Ide25 { get; set; } + + /// + /// Gets or Sets Ide26 + /// + [DataMember(Name = "ide26", EmitDefaultValue = false)] + public string Ide26 { get; set; } + + /// + /// Gets or Sets Ide27 + /// + [DataMember(Name = "ide27", EmitDefaultValue = false)] + public string Ide27 { get; set; } + + /// + /// Gets or Sets Ide28 + /// + [DataMember(Name = "ide28", EmitDefaultValue = false)] + public string Ide28 { get; set; } + + /// + /// Gets or Sets Ide29 + /// + [DataMember(Name = "ide29", EmitDefaultValue = false)] + public string Ide29 { get; set; } + + /// + /// Gets or Sets ImportWorkingStorage + /// + [DataMember(Name = "import-working-storage", EmitDefaultValue = false)] + public string ImportWorkingStorage { get; set; } + + /// + /// Gets or Sets IntelTdx + /// + [DataMember(Name = "intel-tdx", EmitDefaultValue = false)] + public string IntelTdx { get; set; } + + /// + /// Gets or Sets Ipconfig0 + /// + [DataMember(Name = "ipconfig0", EmitDefaultValue = false)] + public string Ipconfig0 { get; set; } + + /// + /// Gets or Sets Ipconfig1 + /// + [DataMember(Name = "ipconfig1", EmitDefaultValue = false)] + public string Ipconfig1 { get; set; } + + /// + /// Gets or Sets Ipconfig2 + /// + [DataMember(Name = "ipconfig2", EmitDefaultValue = false)] + public string Ipconfig2 { get; set; } + + /// + /// Gets or Sets Ipconfig3 + /// + [DataMember(Name = "ipconfig3", EmitDefaultValue = false)] + public string Ipconfig3 { get; set; } + + /// + /// Gets or Sets Ipconfig4 + /// + [DataMember(Name = "ipconfig4", EmitDefaultValue = false)] + public string Ipconfig4 { get; set; } + + /// + /// Gets or Sets Ipconfig5 + /// + [DataMember(Name = "ipconfig5", EmitDefaultValue = false)] + public string Ipconfig5 { get; set; } + + /// + /// Gets or Sets Ipconfig6 + /// + [DataMember(Name = "ipconfig6", EmitDefaultValue = false)] + public string Ipconfig6 { get; set; } + + /// + /// Gets or Sets Ipconfig7 + /// + [DataMember(Name = "ipconfig7", EmitDefaultValue = false)] + public string Ipconfig7 { get; set; } + + /// + /// Gets or Sets Ipconfig8 + /// + [DataMember(Name = "ipconfig8", EmitDefaultValue = false)] + public string Ipconfig8 { get; set; } + + /// + /// Gets or Sets Ipconfig9 + /// + [DataMember(Name = "ipconfig9", EmitDefaultValue = false)] + public string Ipconfig9 { get; set; } + + /// + /// Gets or Sets Ipconfig10 + /// + [DataMember(Name = "ipconfig10", EmitDefaultValue = false)] + public string Ipconfig10 { get; set; } + + /// + /// Gets or Sets Ipconfig11 + /// + [DataMember(Name = "ipconfig11", EmitDefaultValue = false)] + public string Ipconfig11 { get; set; } + + /// + /// Gets or Sets Ipconfig12 + /// + [DataMember(Name = "ipconfig12", EmitDefaultValue = false)] + public string Ipconfig12 { get; set; } + + /// + /// Gets or Sets Ipconfig13 + /// + [DataMember(Name = "ipconfig13", EmitDefaultValue = false)] + public string Ipconfig13 { get; set; } + + /// + /// Gets or Sets Ipconfig14 + /// + [DataMember(Name = "ipconfig14", EmitDefaultValue = false)] + public string Ipconfig14 { get; set; } + + /// + /// Gets or Sets Ipconfig15 + /// + [DataMember(Name = "ipconfig15", EmitDefaultValue = false)] + public string Ipconfig15 { get; set; } + + /// + /// Gets or Sets Ipconfig16 + /// + [DataMember(Name = "ipconfig16", EmitDefaultValue = false)] + public string Ipconfig16 { get; set; } + + /// + /// Gets or Sets Ipconfig17 + /// + [DataMember(Name = "ipconfig17", EmitDefaultValue = false)] + public string Ipconfig17 { get; set; } + + /// + /// Gets or Sets Ipconfig18 + /// + [DataMember(Name = "ipconfig18", EmitDefaultValue = false)] + public string Ipconfig18 { get; set; } + + /// + /// Gets or Sets Ipconfig19 + /// + [DataMember(Name = "ipconfig19", EmitDefaultValue = false)] + public string Ipconfig19 { get; set; } + + /// + /// Gets or Sets Ipconfig20 + /// + [DataMember(Name = "ipconfig20", EmitDefaultValue = false)] + public string Ipconfig20 { get; set; } + + /// + /// Gets or Sets Ipconfig21 + /// + [DataMember(Name = "ipconfig21", EmitDefaultValue = false)] + public string Ipconfig21 { get; set; } + + /// + /// Gets or Sets Ipconfig22 + /// + [DataMember(Name = "ipconfig22", EmitDefaultValue = false)] + public string Ipconfig22 { get; set; } + + /// + /// Gets or Sets Ipconfig23 + /// + [DataMember(Name = "ipconfig23", EmitDefaultValue = false)] + public string Ipconfig23 { get; set; } + + /// + /// Gets or Sets Ipconfig24 + /// + [DataMember(Name = "ipconfig24", EmitDefaultValue = false)] + public string Ipconfig24 { get; set; } + + /// + /// Gets or Sets Ipconfig25 + /// + [DataMember(Name = "ipconfig25", EmitDefaultValue = false)] + public string Ipconfig25 { get; set; } + + /// + /// Gets or Sets Ipconfig26 + /// + [DataMember(Name = "ipconfig26", EmitDefaultValue = false)] + public string Ipconfig26 { get; set; } + + /// + /// Gets or Sets Ipconfig27 + /// + [DataMember(Name = "ipconfig27", EmitDefaultValue = false)] + public string Ipconfig27 { get; set; } + + /// + /// Gets or Sets Ipconfig28 + /// + [DataMember(Name = "ipconfig28", EmitDefaultValue = false)] + public string Ipconfig28 { get; set; } + + /// + /// Gets or Sets Ipconfig29 + /// + [DataMember(Name = "ipconfig29", EmitDefaultValue = false)] + public string Ipconfig29 { get; set; } + + /// + /// Gets or Sets Ivshmem + /// + [DataMember(Name = "ivshmem", EmitDefaultValue = false)] + public string Ivshmem { get; set; } + + /// + /// Gets or Sets Keephugepages + /// + [DataMember(Name = "keephugepages", EmitDefaultValue = true)] + public bool Keephugepages { get; set; } + + /// + /// Gets or Sets Keyboard + /// + [DataMember(Name = "keyboard", EmitDefaultValue = false)] + public string Keyboard { get; set; } + + /// + /// Gets or Sets Kvm + /// + [DataMember(Name = "kvm", EmitDefaultValue = true)] + public bool Kvm { get; set; } + + /// + /// Gets or Sets Localtime + /// + [DataMember(Name = "localtime", EmitDefaultValue = true)] + public bool Localtime { get; set; } + + /// + /// Gets or Sets Lock + /// + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Gets or Sets Machine + /// + [DataMember(Name = "machine", EmitDefaultValue = false)] + public string Machine { get; set; } + + /// + /// Gets or Sets Memory + /// + [DataMember(Name = "memory", EmitDefaultValue = false)] + public string Memory { get; set; } + + /// + /// Gets or Sets MigrateDowntime + /// + [DataMember(Name = "migrate_downtime", EmitDefaultValue = false)] + public decimal MigrateDowntime { get; set; } + + /// + /// Gets or Sets MigrateSpeed + /// + [DataMember(Name = "migrate_speed", EmitDefaultValue = false)] + public int MigrateSpeed { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Nameserver + /// + [DataMember(Name = "nameserver", EmitDefaultValue = false)] + public string Nameserver { get; set; } + + /// + /// Gets or Sets Net0 + /// + [DataMember(Name = "net0", EmitDefaultValue = false)] + public string Net0 { get; set; } + + /// + /// Gets or Sets Net1 + /// + [DataMember(Name = "net1", EmitDefaultValue = false)] + public string Net1 { get; set; } + + /// + /// Gets or Sets Net2 + /// + [DataMember(Name = "net2", EmitDefaultValue = false)] + public string Net2 { get; set; } + + /// + /// Gets or Sets Net3 + /// + [DataMember(Name = "net3", EmitDefaultValue = false)] + public string Net3 { get; set; } + + /// + /// Gets or Sets Net4 + /// + [DataMember(Name = "net4", EmitDefaultValue = false)] + public string Net4 { get; set; } + + /// + /// Gets or Sets Net5 + /// + [DataMember(Name = "net5", EmitDefaultValue = false)] + public string Net5 { get; set; } + + /// + /// Gets or Sets Net6 + /// + [DataMember(Name = "net6", EmitDefaultValue = false)] + public string Net6 { get; set; } + + /// + /// Gets or Sets Net7 + /// + [DataMember(Name = "net7", EmitDefaultValue = false)] + public string Net7 { get; set; } + + /// + /// Gets or Sets Net8 + /// + [DataMember(Name = "net8", EmitDefaultValue = false)] + public string Net8 { get; set; } + + /// + /// Gets or Sets Net9 + /// + [DataMember(Name = "net9", EmitDefaultValue = false)] + public string Net9 { get; set; } + + /// + /// Gets or Sets Net10 + /// + [DataMember(Name = "net10", EmitDefaultValue = false)] + public string Net10 { get; set; } + + /// + /// Gets or Sets Net11 + /// + [DataMember(Name = "net11", EmitDefaultValue = false)] + public string Net11 { get; set; } + + /// + /// Gets or Sets Net12 + /// + [DataMember(Name = "net12", EmitDefaultValue = false)] + public string Net12 { get; set; } + + /// + /// Gets or Sets Net13 + /// + [DataMember(Name = "net13", EmitDefaultValue = false)] + public string Net13 { get; set; } + + /// + /// Gets or Sets Net14 + /// + [DataMember(Name = "net14", EmitDefaultValue = false)] + public string Net14 { get; set; } + + /// + /// Gets or Sets Net15 + /// + [DataMember(Name = "net15", EmitDefaultValue = false)] + public string Net15 { get; set; } + + /// + /// Gets or Sets Net16 + /// + [DataMember(Name = "net16", EmitDefaultValue = false)] + public string Net16 { get; set; } + + /// + /// Gets or Sets Net17 + /// + [DataMember(Name = "net17", EmitDefaultValue = false)] + public string Net17 { get; set; } + + /// + /// Gets or Sets Net18 + /// + [DataMember(Name = "net18", EmitDefaultValue = false)] + public string Net18 { get; set; } + + /// + /// Gets or Sets Net19 + /// + [DataMember(Name = "net19", EmitDefaultValue = false)] + public string Net19 { get; set; } + + /// + /// Gets or Sets Net20 + /// + [DataMember(Name = "net20", EmitDefaultValue = false)] + public string Net20 { get; set; } + + /// + /// Gets or Sets Net21 + /// + [DataMember(Name = "net21", EmitDefaultValue = false)] + public string Net21 { get; set; } + + /// + /// Gets or Sets Net22 + /// + [DataMember(Name = "net22", EmitDefaultValue = false)] + public string Net22 { get; set; } + + /// + /// Gets or Sets Net23 + /// + [DataMember(Name = "net23", EmitDefaultValue = false)] + public string Net23 { get; set; } + + /// + /// Gets or Sets Net24 + /// + [DataMember(Name = "net24", EmitDefaultValue = false)] + public string Net24 { get; set; } + + /// + /// Gets or Sets Net25 + /// + [DataMember(Name = "net25", EmitDefaultValue = false)] + public string Net25 { get; set; } + + /// + /// Gets or Sets Net26 + /// + [DataMember(Name = "net26", EmitDefaultValue = false)] + public string Net26 { get; set; } + + /// + /// Gets or Sets Net27 + /// + [DataMember(Name = "net27", EmitDefaultValue = false)] + public string Net27 { get; set; } + + /// + /// Gets or Sets Net28 + /// + [DataMember(Name = "net28", EmitDefaultValue = false)] + public string Net28 { get; set; } + + /// + /// Gets or Sets Net29 + /// + [DataMember(Name = "net29", EmitDefaultValue = false)] + public string Net29 { get; set; } + + /// + /// Gets or Sets Numa + /// + [DataMember(Name = "numa", EmitDefaultValue = true)] + public bool Numa { get; set; } + + /// + /// Gets or Sets Numa0 + /// + [DataMember(Name = "numa0", EmitDefaultValue = false)] + public string Numa0 { get; set; } + + /// + /// Gets or Sets Numa1 + /// + [DataMember(Name = "numa1", EmitDefaultValue = false)] + public string Numa1 { get; set; } + + /// + /// Gets or Sets Numa2 + /// + [DataMember(Name = "numa2", EmitDefaultValue = false)] + public string Numa2 { get; set; } + + /// + /// Gets or Sets Numa3 + /// + [DataMember(Name = "numa3", EmitDefaultValue = false)] + public string Numa3 { get; set; } + + /// + /// Gets or Sets Numa4 + /// + [DataMember(Name = "numa4", EmitDefaultValue = false)] + public string Numa4 { get; set; } + + /// + /// Gets or Sets Numa5 + /// + [DataMember(Name = "numa5", EmitDefaultValue = false)] + public string Numa5 { get; set; } + + /// + /// Gets or Sets Numa6 + /// + [DataMember(Name = "numa6", EmitDefaultValue = false)] + public string Numa6 { get; set; } + + /// + /// Gets or Sets Numa7 + /// + [DataMember(Name = "numa7", EmitDefaultValue = false)] + public string Numa7 { get; set; } + + /// + /// Gets or Sets Numa8 + /// + [DataMember(Name = "numa8", EmitDefaultValue = false)] + public string Numa8 { get; set; } + + /// + /// Gets or Sets Numa9 + /// + [DataMember(Name = "numa9", EmitDefaultValue = false)] + public string Numa9 { get; set; } + + /// + /// Gets or Sets Numa10 + /// + [DataMember(Name = "numa10", EmitDefaultValue = false)] + public string Numa10 { get; set; } + + /// + /// Gets or Sets Numa11 + /// + [DataMember(Name = "numa11", EmitDefaultValue = false)] + public string Numa11 { get; set; } + + /// + /// Gets or Sets Numa12 + /// + [DataMember(Name = "numa12", EmitDefaultValue = false)] + public string Numa12 { get; set; } + + /// + /// Gets or Sets Numa13 + /// + [DataMember(Name = "numa13", EmitDefaultValue = false)] + public string Numa13 { get; set; } + + /// + /// Gets or Sets Numa14 + /// + [DataMember(Name = "numa14", EmitDefaultValue = false)] + public string Numa14 { get; set; } + + /// + /// Gets or Sets Numa15 + /// + [DataMember(Name = "numa15", EmitDefaultValue = false)] + public string Numa15 { get; set; } + + /// + /// Gets or Sets Numa16 + /// + [DataMember(Name = "numa16", EmitDefaultValue = false)] + public string Numa16 { get; set; } + + /// + /// Gets or Sets Numa17 + /// + [DataMember(Name = "numa17", EmitDefaultValue = false)] + public string Numa17 { get; set; } + + /// + /// Gets or Sets Numa18 + /// + [DataMember(Name = "numa18", EmitDefaultValue = false)] + public string Numa18 { get; set; } + + /// + /// Gets or Sets Numa19 + /// + [DataMember(Name = "numa19", EmitDefaultValue = false)] + public string Numa19 { get; set; } + + /// + /// Gets or Sets Numa20 + /// + [DataMember(Name = "numa20", EmitDefaultValue = false)] + public string Numa20 { get; set; } + + /// + /// Gets or Sets Numa21 + /// + [DataMember(Name = "numa21", EmitDefaultValue = false)] + public string Numa21 { get; set; } + + /// + /// Gets or Sets Numa22 + /// + [DataMember(Name = "numa22", EmitDefaultValue = false)] + public string Numa22 { get; set; } + + /// + /// Gets or Sets Numa23 + /// + [DataMember(Name = "numa23", EmitDefaultValue = false)] + public string Numa23 { get; set; } + + /// + /// Gets or Sets Numa24 + /// + [DataMember(Name = "numa24", EmitDefaultValue = false)] + public string Numa24 { get; set; } + + /// + /// Gets or Sets Numa25 + /// + [DataMember(Name = "numa25", EmitDefaultValue = false)] + public string Numa25 { get; set; } + + /// + /// Gets or Sets Numa26 + /// + [DataMember(Name = "numa26", EmitDefaultValue = false)] + public string Numa26 { get; set; } + + /// + /// Gets or Sets Numa27 + /// + [DataMember(Name = "numa27", EmitDefaultValue = false)] + public string Numa27 { get; set; } + + /// + /// Gets or Sets Numa28 + /// + [DataMember(Name = "numa28", EmitDefaultValue = false)] + public string Numa28 { get; set; } + + /// + /// Gets or Sets Numa29 + /// + [DataMember(Name = "numa29", EmitDefaultValue = false)] + public string Numa29 { get; set; } + + /// + /// Gets or Sets Onboot + /// + [DataMember(Name = "onboot", EmitDefaultValue = true)] + public bool Onboot { get; set; } + + /// + /// Gets or Sets Ostype + /// + [DataMember(Name = "ostype", EmitDefaultValue = false)] + public string Ostype { get; set; } + + /// + /// Gets or Sets Parallel0 + /// + [DataMember(Name = "parallel0", EmitDefaultValue = false)] + public string Parallel0 { get; set; } + + /// + /// Gets or Sets Parallel1 + /// + [DataMember(Name = "parallel1", EmitDefaultValue = false)] + public string Parallel1 { get; set; } + + /// + /// Gets or Sets Parallel2 + /// + [DataMember(Name = "parallel2", EmitDefaultValue = false)] + public string Parallel2 { get; set; } + + /// + /// Gets or Sets Parallel3 + /// + [DataMember(Name = "parallel3", EmitDefaultValue = false)] + public string Parallel3 { get; set; } + + /// + /// Gets or Sets Parallel4 + /// + [DataMember(Name = "parallel4", EmitDefaultValue = false)] + public string Parallel4 { get; set; } + + /// + /// Gets or Sets Parallel5 + /// + [DataMember(Name = "parallel5", EmitDefaultValue = false)] + public string Parallel5 { get; set; } + + /// + /// Gets or Sets Parallel6 + /// + [DataMember(Name = "parallel6", EmitDefaultValue = false)] + public string Parallel6 { get; set; } + + /// + /// Gets or Sets Parallel7 + /// + [DataMember(Name = "parallel7", EmitDefaultValue = false)] + public string Parallel7 { get; set; } + + /// + /// Gets or Sets Parallel8 + /// + [DataMember(Name = "parallel8", EmitDefaultValue = false)] + public string Parallel8 { get; set; } + + /// + /// Gets or Sets Parallel9 + /// + [DataMember(Name = "parallel9", EmitDefaultValue = false)] + public string Parallel9 { get; set; } + + /// + /// Gets or Sets Parallel10 + /// + [DataMember(Name = "parallel10", EmitDefaultValue = false)] + public string Parallel10 { get; set; } + + /// + /// Gets or Sets Parallel11 + /// + [DataMember(Name = "parallel11", EmitDefaultValue = false)] + public string Parallel11 { get; set; } + + /// + /// Gets or Sets Parallel12 + /// + [DataMember(Name = "parallel12", EmitDefaultValue = false)] + public string Parallel12 { get; set; } + + /// + /// Gets or Sets Parallel13 + /// + [DataMember(Name = "parallel13", EmitDefaultValue = false)] + public string Parallel13 { get; set; } + + /// + /// Gets or Sets Parallel14 + /// + [DataMember(Name = "parallel14", EmitDefaultValue = false)] + public string Parallel14 { get; set; } + + /// + /// Gets or Sets Parallel15 + /// + [DataMember(Name = "parallel15", EmitDefaultValue = false)] + public string Parallel15 { get; set; } + + /// + /// Gets or Sets Parallel16 + /// + [DataMember(Name = "parallel16", EmitDefaultValue = false)] + public string Parallel16 { get; set; } + + /// + /// Gets or Sets Parallel17 + /// + [DataMember(Name = "parallel17", EmitDefaultValue = false)] + public string Parallel17 { get; set; } + + /// + /// Gets or Sets Parallel18 + /// + [DataMember(Name = "parallel18", EmitDefaultValue = false)] + public string Parallel18 { get; set; } + + /// + /// Gets or Sets Parallel19 + /// + [DataMember(Name = "parallel19", EmitDefaultValue = false)] + public string Parallel19 { get; set; } + + /// + /// Gets or Sets Parallel20 + /// + [DataMember(Name = "parallel20", EmitDefaultValue = false)] + public string Parallel20 { get; set; } + + /// + /// Gets or Sets Parallel21 + /// + [DataMember(Name = "parallel21", EmitDefaultValue = false)] + public string Parallel21 { get; set; } + + /// + /// Gets or Sets Parallel22 + /// + [DataMember(Name = "parallel22", EmitDefaultValue = false)] + public string Parallel22 { get; set; } + + /// + /// Gets or Sets Parallel23 + /// + [DataMember(Name = "parallel23", EmitDefaultValue = false)] + public string Parallel23 { get; set; } + + /// + /// Gets or Sets Parallel24 + /// + [DataMember(Name = "parallel24", EmitDefaultValue = false)] + public string Parallel24 { get; set; } + + /// + /// Gets or Sets Parallel25 + /// + [DataMember(Name = "parallel25", EmitDefaultValue = false)] + public string Parallel25 { get; set; } + + /// + /// Gets or Sets Parallel26 + /// + [DataMember(Name = "parallel26", EmitDefaultValue = false)] + public string Parallel26 { get; set; } + + /// + /// Gets or Sets Parallel27 + /// + [DataMember(Name = "parallel27", EmitDefaultValue = false)] + public string Parallel27 { get; set; } + + /// + /// Gets or Sets Parallel28 + /// + [DataMember(Name = "parallel28", EmitDefaultValue = false)] + public string Parallel28 { get; set; } + + /// + /// Gets or Sets Parallel29 + /// + [DataMember(Name = "parallel29", EmitDefaultValue = false)] + public string Parallel29 { get; set; } + + /// + /// Gets or Sets Protection + /// + [DataMember(Name = "protection", EmitDefaultValue = true)] + public bool Protection { get; set; } + + /// + /// Gets or Sets Reboot + /// + [DataMember(Name = "reboot", EmitDefaultValue = true)] + public bool Reboot { get; set; } + + /// + /// Gets or Sets Revert + /// + [DataMember(Name = "revert", EmitDefaultValue = false)] + public string Revert { get; set; } + + /// + /// Gets or Sets Rng0 + /// + [DataMember(Name = "rng0", EmitDefaultValue = false)] + public string Rng0 { get; set; } + + /// + /// Gets or Sets Sata0 + /// + [DataMember(Name = "sata0", EmitDefaultValue = false)] + public string Sata0 { get; set; } + + /// + /// Gets or Sets Sata1 + /// + [DataMember(Name = "sata1", EmitDefaultValue = false)] + public string Sata1 { get; set; } + + /// + /// Gets or Sets Sata2 + /// + [DataMember(Name = "sata2", EmitDefaultValue = false)] + public string Sata2 { get; set; } + + /// + /// Gets or Sets Sata3 + /// + [DataMember(Name = "sata3", EmitDefaultValue = false)] + public string Sata3 { get; set; } + + /// + /// Gets or Sets Sata4 + /// + [DataMember(Name = "sata4", EmitDefaultValue = false)] + public string Sata4 { get; set; } + + /// + /// Gets or Sets Sata5 + /// + [DataMember(Name = "sata5", EmitDefaultValue = false)] + public string Sata5 { get; set; } + + /// + /// Gets or Sets Sata6 + /// + [DataMember(Name = "sata6", EmitDefaultValue = false)] + public string Sata6 { get; set; } + + /// + /// Gets or Sets Sata7 + /// + [DataMember(Name = "sata7", EmitDefaultValue = false)] + public string Sata7 { get; set; } + + /// + /// Gets or Sets Sata8 + /// + [DataMember(Name = "sata8", EmitDefaultValue = false)] + public string Sata8 { get; set; } + + /// + /// Gets or Sets Sata9 + /// + [DataMember(Name = "sata9", EmitDefaultValue = false)] + public string Sata9 { get; set; } + + /// + /// Gets or Sets Sata10 + /// + [DataMember(Name = "sata10", EmitDefaultValue = false)] + public string Sata10 { get; set; } + + /// + /// Gets or Sets Sata11 + /// + [DataMember(Name = "sata11", EmitDefaultValue = false)] + public string Sata11 { get; set; } + + /// + /// Gets or Sets Sata12 + /// + [DataMember(Name = "sata12", EmitDefaultValue = false)] + public string Sata12 { get; set; } + + /// + /// Gets or Sets Sata13 + /// + [DataMember(Name = "sata13", EmitDefaultValue = false)] + public string Sata13 { get; set; } + + /// + /// Gets or Sets Sata14 + /// + [DataMember(Name = "sata14", EmitDefaultValue = false)] + public string Sata14 { get; set; } + + /// + /// Gets or Sets Sata15 + /// + [DataMember(Name = "sata15", EmitDefaultValue = false)] + public string Sata15 { get; set; } + + /// + /// Gets or Sets Sata16 + /// + [DataMember(Name = "sata16", EmitDefaultValue = false)] + public string Sata16 { get; set; } + + /// + /// Gets or Sets Sata17 + /// + [DataMember(Name = "sata17", EmitDefaultValue = false)] + public string Sata17 { get; set; } + + /// + /// Gets or Sets Sata18 + /// + [DataMember(Name = "sata18", EmitDefaultValue = false)] + public string Sata18 { get; set; } + + /// + /// Gets or Sets Sata19 + /// + [DataMember(Name = "sata19", EmitDefaultValue = false)] + public string Sata19 { get; set; } + + /// + /// Gets or Sets Sata20 + /// + [DataMember(Name = "sata20", EmitDefaultValue = false)] + public string Sata20 { get; set; } + + /// + /// Gets or Sets Sata21 + /// + [DataMember(Name = "sata21", EmitDefaultValue = false)] + public string Sata21 { get; set; } + + /// + /// Gets or Sets Sata22 + /// + [DataMember(Name = "sata22", EmitDefaultValue = false)] + public string Sata22 { get; set; } + + /// + /// Gets or Sets Sata23 + /// + [DataMember(Name = "sata23", EmitDefaultValue = false)] + public string Sata23 { get; set; } + + /// + /// Gets or Sets Sata24 + /// + [DataMember(Name = "sata24", EmitDefaultValue = false)] + public string Sata24 { get; set; } + + /// + /// Gets or Sets Sata25 + /// + [DataMember(Name = "sata25", EmitDefaultValue = false)] + public string Sata25 { get; set; } + + /// + /// Gets or Sets Sata26 + /// + [DataMember(Name = "sata26", EmitDefaultValue = false)] + public string Sata26 { get; set; } + + /// + /// Gets or Sets Sata27 + /// + [DataMember(Name = "sata27", EmitDefaultValue = false)] + public string Sata27 { get; set; } + + /// + /// Gets or Sets Sata28 + /// + [DataMember(Name = "sata28", EmitDefaultValue = false)] + public string Sata28 { get; set; } + + /// + /// Gets or Sets Sata29 + /// + [DataMember(Name = "sata29", EmitDefaultValue = false)] + public string Sata29 { get; set; } + + /// + /// Gets or Sets Scsi0 + /// + [DataMember(Name = "scsi0", EmitDefaultValue = false)] + public string Scsi0 { get; set; } + + /// + /// Gets or Sets Scsi1 + /// + [DataMember(Name = "scsi1", EmitDefaultValue = false)] + public string Scsi1 { get; set; } + + /// + /// Gets or Sets Scsi2 + /// + [DataMember(Name = "scsi2", EmitDefaultValue = false)] + public string Scsi2 { get; set; } + + /// + /// Gets or Sets Scsi3 + /// + [DataMember(Name = "scsi3", EmitDefaultValue = false)] + public string Scsi3 { get; set; } + + /// + /// Gets or Sets Scsi4 + /// + [DataMember(Name = "scsi4", EmitDefaultValue = false)] + public string Scsi4 { get; set; } + + /// + /// Gets or Sets Scsi5 + /// + [DataMember(Name = "scsi5", EmitDefaultValue = false)] + public string Scsi5 { get; set; } + + /// + /// Gets or Sets Scsi6 + /// + [DataMember(Name = "scsi6", EmitDefaultValue = false)] + public string Scsi6 { get; set; } + + /// + /// Gets or Sets Scsi7 + /// + [DataMember(Name = "scsi7", EmitDefaultValue = false)] + public string Scsi7 { get; set; } + + /// + /// Gets or Sets Scsi8 + /// + [DataMember(Name = "scsi8", EmitDefaultValue = false)] + public string Scsi8 { get; set; } + + /// + /// Gets or Sets Scsi9 + /// + [DataMember(Name = "scsi9", EmitDefaultValue = false)] + public string Scsi9 { get; set; } + + /// + /// Gets or Sets Scsi10 + /// + [DataMember(Name = "scsi10", EmitDefaultValue = false)] + public string Scsi10 { get; set; } + + /// + /// Gets or Sets Scsi11 + /// + [DataMember(Name = "scsi11", EmitDefaultValue = false)] + public string Scsi11 { get; set; } + + /// + /// Gets or Sets Scsi12 + /// + [DataMember(Name = "scsi12", EmitDefaultValue = false)] + public string Scsi12 { get; set; } + + /// + /// Gets or Sets Scsi13 + /// + [DataMember(Name = "scsi13", EmitDefaultValue = false)] + public string Scsi13 { get; set; } + + /// + /// Gets or Sets Scsi14 + /// + [DataMember(Name = "scsi14", EmitDefaultValue = false)] + public string Scsi14 { get; set; } + + /// + /// Gets or Sets Scsi15 + /// + [DataMember(Name = "scsi15", EmitDefaultValue = false)] + public string Scsi15 { get; set; } + + /// + /// Gets or Sets Scsi16 + /// + [DataMember(Name = "scsi16", EmitDefaultValue = false)] + public string Scsi16 { get; set; } + + /// + /// Gets or Sets Scsi17 + /// + [DataMember(Name = "scsi17", EmitDefaultValue = false)] + public string Scsi17 { get; set; } + + /// + /// Gets or Sets Scsi18 + /// + [DataMember(Name = "scsi18", EmitDefaultValue = false)] + public string Scsi18 { get; set; } + + /// + /// Gets or Sets Scsi19 + /// + [DataMember(Name = "scsi19", EmitDefaultValue = false)] + public string Scsi19 { get; set; } + + /// + /// Gets or Sets Scsi20 + /// + [DataMember(Name = "scsi20", EmitDefaultValue = false)] + public string Scsi20 { get; set; } + + /// + /// Gets or Sets Scsi21 + /// + [DataMember(Name = "scsi21", EmitDefaultValue = false)] + public string Scsi21 { get; set; } + + /// + /// Gets or Sets Scsi22 + /// + [DataMember(Name = "scsi22", EmitDefaultValue = false)] + public string Scsi22 { get; set; } + + /// + /// Gets or Sets Scsi23 + /// + [DataMember(Name = "scsi23", EmitDefaultValue = false)] + public string Scsi23 { get; set; } + + /// + /// Gets or Sets Scsi24 + /// + [DataMember(Name = "scsi24", EmitDefaultValue = false)] + public string Scsi24 { get; set; } + + /// + /// Gets or Sets Scsi25 + /// + [DataMember(Name = "scsi25", EmitDefaultValue = false)] + public string Scsi25 { get; set; } + + /// + /// Gets or Sets Scsi26 + /// + [DataMember(Name = "scsi26", EmitDefaultValue = false)] + public string Scsi26 { get; set; } + + /// + /// Gets or Sets Scsi27 + /// + [DataMember(Name = "scsi27", EmitDefaultValue = false)] + public string Scsi27 { get; set; } + + /// + /// Gets or Sets Scsi28 + /// + [DataMember(Name = "scsi28", EmitDefaultValue = false)] + public string Scsi28 { get; set; } + + /// + /// Gets or Sets Scsi29 + /// + [DataMember(Name = "scsi29", EmitDefaultValue = false)] + public string Scsi29 { get; set; } + + /// + /// Gets or Sets Scsihw + /// + [DataMember(Name = "scsihw", EmitDefaultValue = false)] + public string Scsihw { get; set; } + + /// + /// Gets or Sets Searchdomain + /// + [DataMember(Name = "searchdomain", EmitDefaultValue = false)] + public string Searchdomain { get; set; } + + /// + /// Gets or Sets Serial0 + /// + [DataMember(Name = "serial0", EmitDefaultValue = false)] + public string Serial0 { get; set; } + + /// + /// Gets or Sets Serial1 + /// + [DataMember(Name = "serial1", EmitDefaultValue = false)] + public string Serial1 { get; set; } + + /// + /// Gets or Sets Serial2 + /// + [DataMember(Name = "serial2", EmitDefaultValue = false)] + public string Serial2 { get; set; } + + /// + /// Gets or Sets Serial3 + /// + [DataMember(Name = "serial3", EmitDefaultValue = false)] + public string Serial3 { get; set; } + + /// + /// Gets or Sets Serial4 + /// + [DataMember(Name = "serial4", EmitDefaultValue = false)] + public string Serial4 { get; set; } + + /// + /// Gets or Sets Serial5 + /// + [DataMember(Name = "serial5", EmitDefaultValue = false)] + public string Serial5 { get; set; } + + /// + /// Gets or Sets Serial6 + /// + [DataMember(Name = "serial6", EmitDefaultValue = false)] + public string Serial6 { get; set; } + + /// + /// Gets or Sets Serial7 + /// + [DataMember(Name = "serial7", EmitDefaultValue = false)] + public string Serial7 { get; set; } + + /// + /// Gets or Sets Serial8 + /// + [DataMember(Name = "serial8", EmitDefaultValue = false)] + public string Serial8 { get; set; } + + /// + /// Gets or Sets Serial9 + /// + [DataMember(Name = "serial9", EmitDefaultValue = false)] + public string Serial9 { get; set; } + + /// + /// Gets or Sets Serial10 + /// + [DataMember(Name = "serial10", EmitDefaultValue = false)] + public string Serial10 { get; set; } + + /// + /// Gets or Sets Serial11 + /// + [DataMember(Name = "serial11", EmitDefaultValue = false)] + public string Serial11 { get; set; } + + /// + /// Gets or Sets Serial12 + /// + [DataMember(Name = "serial12", EmitDefaultValue = false)] + public string Serial12 { get; set; } + + /// + /// Gets or Sets Serial13 + /// + [DataMember(Name = "serial13", EmitDefaultValue = false)] + public string Serial13 { get; set; } + + /// + /// Gets or Sets Serial14 + /// + [DataMember(Name = "serial14", EmitDefaultValue = false)] + public string Serial14 { get; set; } + + /// + /// Gets or Sets Serial15 + /// + [DataMember(Name = "serial15", EmitDefaultValue = false)] + public string Serial15 { get; set; } + + /// + /// Gets or Sets Serial16 + /// + [DataMember(Name = "serial16", EmitDefaultValue = false)] + public string Serial16 { get; set; } + + /// + /// Gets or Sets Serial17 + /// + [DataMember(Name = "serial17", EmitDefaultValue = false)] + public string Serial17 { get; set; } + + /// + /// Gets or Sets Serial18 + /// + [DataMember(Name = "serial18", EmitDefaultValue = false)] + public string Serial18 { get; set; } + + /// + /// Gets or Sets Serial19 + /// + [DataMember(Name = "serial19", EmitDefaultValue = false)] + public string Serial19 { get; set; } + + /// + /// Gets or Sets Serial20 + /// + [DataMember(Name = "serial20", EmitDefaultValue = false)] + public string Serial20 { get; set; } + + /// + /// Gets or Sets Serial21 + /// + [DataMember(Name = "serial21", EmitDefaultValue = false)] + public string Serial21 { get; set; } + + /// + /// Gets or Sets Serial22 + /// + [DataMember(Name = "serial22", EmitDefaultValue = false)] + public string Serial22 { get; set; } + + /// + /// Gets or Sets Serial23 + /// + [DataMember(Name = "serial23", EmitDefaultValue = false)] + public string Serial23 { get; set; } + + /// + /// Gets or Sets Serial24 + /// + [DataMember(Name = "serial24", EmitDefaultValue = false)] + public string Serial24 { get; set; } + + /// + /// Gets or Sets Serial25 + /// + [DataMember(Name = "serial25", EmitDefaultValue = false)] + public string Serial25 { get; set; } + + /// + /// Gets or Sets Serial26 + /// + [DataMember(Name = "serial26", EmitDefaultValue = false)] + public string Serial26 { get; set; } + + /// + /// Gets or Sets Serial27 + /// + [DataMember(Name = "serial27", EmitDefaultValue = false)] + public string Serial27 { get; set; } + + /// + /// Gets or Sets Serial28 + /// + [DataMember(Name = "serial28", EmitDefaultValue = false)] + public string Serial28 { get; set; } + + /// + /// Gets or Sets Serial29 + /// + [DataMember(Name = "serial29", EmitDefaultValue = false)] + public string Serial29 { get; set; } + + /// + /// Gets or Sets Shares + /// + [DataMember(Name = "shares", EmitDefaultValue = false)] + public int Shares { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Gets or Sets Smbios1 + /// + [DataMember(Name = "smbios1", EmitDefaultValue = false)] + public string Smbios1 { get; set; } + + /// + /// Gets or Sets Smp + /// + [DataMember(Name = "smp", EmitDefaultValue = false)] + public int Smp { get; set; } + + /// + /// Gets or Sets Sockets + /// + [DataMember(Name = "sockets", EmitDefaultValue = false)] + public int Sockets { get; set; } + + /// + /// Gets or Sets SpiceEnhancements + /// + [DataMember(Name = "spice_enhancements", EmitDefaultValue = false)] + public string SpiceEnhancements { get; set; } + + /// + /// Gets or Sets Sshkeys + /// + [DataMember(Name = "sshkeys", EmitDefaultValue = false)] + public string Sshkeys { get; set; } + + /// + /// Gets or Sets Startdate + /// + [DataMember(Name = "startdate", EmitDefaultValue = false)] + public string Startdate { get; set; } + + /// + /// Gets or Sets Startup + /// + [DataMember(Name = "startup", EmitDefaultValue = false)] + public string Startup { get; set; } + + /// + /// Gets or Sets Tablet + /// + [DataMember(Name = "tablet", EmitDefaultValue = true)] + public bool Tablet { get; set; } + + /// + /// Gets or Sets Tags + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Gets or Sets Tdf + /// + [DataMember(Name = "tdf", EmitDefaultValue = true)] + public bool Tdf { get; set; } + + /// + /// Gets or Sets Template + /// + [DataMember(Name = "template", EmitDefaultValue = true)] + public bool Template { get; set; } + + /// + /// Gets or Sets Tpmstate0 + /// + [DataMember(Name = "tpmstate0", EmitDefaultValue = false)] + public string Tpmstate0 { get; set; } + + /// + /// Gets or Sets Unused0 + /// + [DataMember(Name = "unused0", EmitDefaultValue = false)] + public string Unused0 { get; set; } + + /// + /// Gets or Sets Unused1 + /// + [DataMember(Name = "unused1", EmitDefaultValue = false)] + public string Unused1 { get; set; } + + /// + /// Gets or Sets Unused2 + /// + [DataMember(Name = "unused2", EmitDefaultValue = false)] + public string Unused2 { get; set; } + + /// + /// Gets or Sets Unused3 + /// + [DataMember(Name = "unused3", EmitDefaultValue = false)] + public string Unused3 { get; set; } + + /// + /// Gets or Sets Unused4 + /// + [DataMember(Name = "unused4", EmitDefaultValue = false)] + public string Unused4 { get; set; } + + /// + /// Gets or Sets Unused5 + /// + [DataMember(Name = "unused5", EmitDefaultValue = false)] + public string Unused5 { get; set; } + + /// + /// Gets or Sets Unused6 + /// + [DataMember(Name = "unused6", EmitDefaultValue = false)] + public string Unused6 { get; set; } + + /// + /// Gets or Sets Unused7 + /// + [DataMember(Name = "unused7", EmitDefaultValue = false)] + public string Unused7 { get; set; } + + /// + /// Gets or Sets Unused8 + /// + [DataMember(Name = "unused8", EmitDefaultValue = false)] + public string Unused8 { get; set; } + + /// + /// Gets or Sets Unused9 + /// + [DataMember(Name = "unused9", EmitDefaultValue = false)] + public string Unused9 { get; set; } + + /// + /// Gets or Sets Unused10 + /// + [DataMember(Name = "unused10", EmitDefaultValue = false)] + public string Unused10 { get; set; } + + /// + /// Gets or Sets Unused11 + /// + [DataMember(Name = "unused11", EmitDefaultValue = false)] + public string Unused11 { get; set; } + + /// + /// Gets or Sets Unused12 + /// + [DataMember(Name = "unused12", EmitDefaultValue = false)] + public string Unused12 { get; set; } + + /// + /// Gets or Sets Unused13 + /// + [DataMember(Name = "unused13", EmitDefaultValue = false)] + public string Unused13 { get; set; } + + /// + /// Gets or Sets Unused14 + /// + [DataMember(Name = "unused14", EmitDefaultValue = false)] + public string Unused14 { get; set; } + + /// + /// Gets or Sets Unused15 + /// + [DataMember(Name = "unused15", EmitDefaultValue = false)] + public string Unused15 { get; set; } + + /// + /// Gets or Sets Unused16 + /// + [DataMember(Name = "unused16", EmitDefaultValue = false)] + public string Unused16 { get; set; } + + /// + /// Gets or Sets Unused17 + /// + [DataMember(Name = "unused17", EmitDefaultValue = false)] + public string Unused17 { get; set; } + + /// + /// Gets or Sets Unused18 + /// + [DataMember(Name = "unused18", EmitDefaultValue = false)] + public string Unused18 { get; set; } + + /// + /// Gets or Sets Unused19 + /// + [DataMember(Name = "unused19", EmitDefaultValue = false)] + public string Unused19 { get; set; } + + /// + /// Gets or Sets Unused20 + /// + [DataMember(Name = "unused20", EmitDefaultValue = false)] + public string Unused20 { get; set; } + + /// + /// Gets or Sets Unused21 + /// + [DataMember(Name = "unused21", EmitDefaultValue = false)] + public string Unused21 { get; set; } + + /// + /// Gets or Sets Unused22 + /// + [DataMember(Name = "unused22", EmitDefaultValue = false)] + public string Unused22 { get; set; } + + /// + /// Gets or Sets Unused23 + /// + [DataMember(Name = "unused23", EmitDefaultValue = false)] + public string Unused23 { get; set; } + + /// + /// Gets or Sets Unused24 + /// + [DataMember(Name = "unused24", EmitDefaultValue = false)] + public string Unused24 { get; set; } + + /// + /// Gets or Sets Unused25 + /// + [DataMember(Name = "unused25", EmitDefaultValue = false)] + public string Unused25 { get; set; } + + /// + /// Gets or Sets Unused26 + /// + [DataMember(Name = "unused26", EmitDefaultValue = false)] + public string Unused26 { get; set; } + + /// + /// Gets or Sets Unused27 + /// + [DataMember(Name = "unused27", EmitDefaultValue = false)] + public string Unused27 { get; set; } + + /// + /// Gets or Sets Unused28 + /// + [DataMember(Name = "unused28", EmitDefaultValue = false)] + public string Unused28 { get; set; } + + /// + /// Gets or Sets Unused29 + /// + [DataMember(Name = "unused29", EmitDefaultValue = false)] + public string Unused29 { get; set; } + + /// + /// Gets or Sets Usb0 + /// + [DataMember(Name = "usb0", EmitDefaultValue = false)] + public string Usb0 { get; set; } + + /// + /// Gets or Sets Usb1 + /// + [DataMember(Name = "usb1", EmitDefaultValue = false)] + public string Usb1 { get; set; } + + /// + /// Gets or Sets Usb2 + /// + [DataMember(Name = "usb2", EmitDefaultValue = false)] + public string Usb2 { get; set; } + + /// + /// Gets or Sets Usb3 + /// + [DataMember(Name = "usb3", EmitDefaultValue = false)] + public string Usb3 { get; set; } + + /// + /// Gets or Sets Usb4 + /// + [DataMember(Name = "usb4", EmitDefaultValue = false)] + public string Usb4 { get; set; } + + /// + /// Gets or Sets Usb5 + /// + [DataMember(Name = "usb5", EmitDefaultValue = false)] + public string Usb5 { get; set; } + + /// + /// Gets or Sets Usb6 + /// + [DataMember(Name = "usb6", EmitDefaultValue = false)] + public string Usb6 { get; set; } + + /// + /// Gets or Sets Usb7 + /// + [DataMember(Name = "usb7", EmitDefaultValue = false)] + public string Usb7 { get; set; } + + /// + /// Gets or Sets Usb8 + /// + [DataMember(Name = "usb8", EmitDefaultValue = false)] + public string Usb8 { get; set; } + + /// + /// Gets or Sets Usb9 + /// + [DataMember(Name = "usb9", EmitDefaultValue = false)] + public string Usb9 { get; set; } + + /// + /// Gets or Sets Usb10 + /// + [DataMember(Name = "usb10", EmitDefaultValue = false)] + public string Usb10 { get; set; } + + /// + /// Gets or Sets Usb11 + /// + [DataMember(Name = "usb11", EmitDefaultValue = false)] + public string Usb11 { get; set; } + + /// + /// Gets or Sets Usb12 + /// + [DataMember(Name = "usb12", EmitDefaultValue = false)] + public string Usb12 { get; set; } + + /// + /// Gets or Sets Usb13 + /// + [DataMember(Name = "usb13", EmitDefaultValue = false)] + public string Usb13 { get; set; } + + /// + /// Gets or Sets Usb14 + /// + [DataMember(Name = "usb14", EmitDefaultValue = false)] + public string Usb14 { get; set; } + + /// + /// Gets or Sets Usb15 + /// + [DataMember(Name = "usb15", EmitDefaultValue = false)] + public string Usb15 { get; set; } + + /// + /// Gets or Sets Usb16 + /// + [DataMember(Name = "usb16", EmitDefaultValue = false)] + public string Usb16 { get; set; } + + /// + /// Gets or Sets Usb17 + /// + [DataMember(Name = "usb17", EmitDefaultValue = false)] + public string Usb17 { get; set; } + + /// + /// Gets or Sets Usb18 + /// + [DataMember(Name = "usb18", EmitDefaultValue = false)] + public string Usb18 { get; set; } + + /// + /// Gets or Sets Usb19 + /// + [DataMember(Name = "usb19", EmitDefaultValue = false)] + public string Usb19 { get; set; } + + /// + /// Gets or Sets Usb20 + /// + [DataMember(Name = "usb20", EmitDefaultValue = false)] + public string Usb20 { get; set; } + + /// + /// Gets or Sets Usb21 + /// + [DataMember(Name = "usb21", EmitDefaultValue = false)] + public string Usb21 { get; set; } + + /// + /// Gets or Sets Usb22 + /// + [DataMember(Name = "usb22", EmitDefaultValue = false)] + public string Usb22 { get; set; } + + /// + /// Gets or Sets Usb23 + /// + [DataMember(Name = "usb23", EmitDefaultValue = false)] + public string Usb23 { get; set; } + + /// + /// Gets or Sets Usb24 + /// + [DataMember(Name = "usb24", EmitDefaultValue = false)] + public string Usb24 { get; set; } + + /// + /// Gets or Sets Usb25 + /// + [DataMember(Name = "usb25", EmitDefaultValue = false)] + public string Usb25 { get; set; } + + /// + /// Gets or Sets Usb26 + /// + [DataMember(Name = "usb26", EmitDefaultValue = false)] + public string Usb26 { get; set; } + + /// + /// Gets or Sets Usb27 + /// + [DataMember(Name = "usb27", EmitDefaultValue = false)] + public string Usb27 { get; set; } + + /// + /// Gets or Sets Usb28 + /// + [DataMember(Name = "usb28", EmitDefaultValue = false)] + public string Usb28 { get; set; } + + /// + /// Gets or Sets Usb29 + /// + [DataMember(Name = "usb29", EmitDefaultValue = false)] + public string Usb29 { get; set; } + + /// + /// Gets or Sets Vcpus + /// + [DataMember(Name = "vcpus", EmitDefaultValue = false)] + public int Vcpus { get; set; } + + /// + /// Gets or Sets Vga + /// + [DataMember(Name = "vga", EmitDefaultValue = false)] + public string Vga { get; set; } + + /// + /// Gets or Sets Virtio0 + /// + [DataMember(Name = "virtio0", EmitDefaultValue = false)] + public string Virtio0 { get; set; } + + /// + /// Gets or Sets Virtio1 + /// + [DataMember(Name = "virtio1", EmitDefaultValue = false)] + public string Virtio1 { get; set; } + + /// + /// Gets or Sets Virtio2 + /// + [DataMember(Name = "virtio2", EmitDefaultValue = false)] + public string Virtio2 { get; set; } + + /// + /// Gets or Sets Virtio3 + /// + [DataMember(Name = "virtio3", EmitDefaultValue = false)] + public string Virtio3 { get; set; } + + /// + /// Gets or Sets Virtio4 + /// + [DataMember(Name = "virtio4", EmitDefaultValue = false)] + public string Virtio4 { get; set; } + + /// + /// Gets or Sets Virtio5 + /// + [DataMember(Name = "virtio5", EmitDefaultValue = false)] + public string Virtio5 { get; set; } + + /// + /// Gets or Sets Virtio6 + /// + [DataMember(Name = "virtio6", EmitDefaultValue = false)] + public string Virtio6 { get; set; } + + /// + /// Gets or Sets Virtio7 + /// + [DataMember(Name = "virtio7", EmitDefaultValue = false)] + public string Virtio7 { get; set; } + + /// + /// Gets or Sets Virtio8 + /// + [DataMember(Name = "virtio8", EmitDefaultValue = false)] + public string Virtio8 { get; set; } + + /// + /// Gets or Sets Virtio9 + /// + [DataMember(Name = "virtio9", EmitDefaultValue = false)] + public string Virtio9 { get; set; } + + /// + /// Gets or Sets Virtio10 + /// + [DataMember(Name = "virtio10", EmitDefaultValue = false)] + public string Virtio10 { get; set; } + + /// + /// Gets or Sets Virtio11 + /// + [DataMember(Name = "virtio11", EmitDefaultValue = false)] + public string Virtio11 { get; set; } + + /// + /// Gets or Sets Virtio12 + /// + [DataMember(Name = "virtio12", EmitDefaultValue = false)] + public string Virtio12 { get; set; } + + /// + /// Gets or Sets Virtio13 + /// + [DataMember(Name = "virtio13", EmitDefaultValue = false)] + public string Virtio13 { get; set; } + + /// + /// Gets or Sets Virtio14 + /// + [DataMember(Name = "virtio14", EmitDefaultValue = false)] + public string Virtio14 { get; set; } + + /// + /// Gets or Sets Virtio15 + /// + [DataMember(Name = "virtio15", EmitDefaultValue = false)] + public string Virtio15 { get; set; } + + /// + /// Gets or Sets Virtio16 + /// + [DataMember(Name = "virtio16", EmitDefaultValue = false)] + public string Virtio16 { get; set; } + + /// + /// Gets or Sets Virtio17 + /// + [DataMember(Name = "virtio17", EmitDefaultValue = false)] + public string Virtio17 { get; set; } + + /// + /// Gets or Sets Virtio18 + /// + [DataMember(Name = "virtio18", EmitDefaultValue = false)] + public string Virtio18 { get; set; } + + /// + /// Gets or Sets Virtio19 + /// + [DataMember(Name = "virtio19", EmitDefaultValue = false)] + public string Virtio19 { get; set; } + + /// + /// Gets or Sets Virtio20 + /// + [DataMember(Name = "virtio20", EmitDefaultValue = false)] + public string Virtio20 { get; set; } + + /// + /// Gets or Sets Virtio21 + /// + [DataMember(Name = "virtio21", EmitDefaultValue = false)] + public string Virtio21 { get; set; } + + /// + /// Gets or Sets Virtio22 + /// + [DataMember(Name = "virtio22", EmitDefaultValue = false)] + public string Virtio22 { get; set; } + + /// + /// Gets or Sets Virtio23 + /// + [DataMember(Name = "virtio23", EmitDefaultValue = false)] + public string Virtio23 { get; set; } + + /// + /// Gets or Sets Virtio24 + /// + [DataMember(Name = "virtio24", EmitDefaultValue = false)] + public string Virtio24 { get; set; } + + /// + /// Gets or Sets Virtio25 + /// + [DataMember(Name = "virtio25", EmitDefaultValue = false)] + public string Virtio25 { get; set; } + + /// + /// Gets or Sets Virtio26 + /// + [DataMember(Name = "virtio26", EmitDefaultValue = false)] + public string Virtio26 { get; set; } + + /// + /// Gets or Sets Virtio27 + /// + [DataMember(Name = "virtio27", EmitDefaultValue = false)] + public string Virtio27 { get; set; } + + /// + /// Gets or Sets Virtio28 + /// + [DataMember(Name = "virtio28", EmitDefaultValue = false)] + public string Virtio28 { get; set; } + + /// + /// Gets or Sets Virtio29 + /// + [DataMember(Name = "virtio29", EmitDefaultValue = false)] + public string Virtio29 { get; set; } + + /// + /// Gets or Sets Virtiofs0 + /// + [DataMember(Name = "virtiofs0", EmitDefaultValue = false)] + public string Virtiofs0 { get; set; } + + /// + /// Gets or Sets Virtiofs1 + /// + [DataMember(Name = "virtiofs1", EmitDefaultValue = false)] + public string Virtiofs1 { get; set; } + + /// + /// Gets or Sets Virtiofs2 + /// + [DataMember(Name = "virtiofs2", EmitDefaultValue = false)] + public string Virtiofs2 { get; set; } + + /// + /// Gets or Sets Virtiofs3 + /// + [DataMember(Name = "virtiofs3", EmitDefaultValue = false)] + public string Virtiofs3 { get; set; } + + /// + /// Gets or Sets Virtiofs4 + /// + [DataMember(Name = "virtiofs4", EmitDefaultValue = false)] + public string Virtiofs4 { get; set; } + + /// + /// Gets or Sets Virtiofs5 + /// + [DataMember(Name = "virtiofs5", EmitDefaultValue = false)] + public string Virtiofs5 { get; set; } + + /// + /// Gets or Sets Virtiofs6 + /// + [DataMember(Name = "virtiofs6", EmitDefaultValue = false)] + public string Virtiofs6 { get; set; } + + /// + /// Gets or Sets Virtiofs7 + /// + [DataMember(Name = "virtiofs7", EmitDefaultValue = false)] + public string Virtiofs7 { get; set; } + + /// + /// Gets or Sets Virtiofs8 + /// + [DataMember(Name = "virtiofs8", EmitDefaultValue = false)] + public string Virtiofs8 { get; set; } + + /// + /// Gets or Sets Virtiofs9 + /// + [DataMember(Name = "virtiofs9", EmitDefaultValue = false)] + public string Virtiofs9 { get; set; } + + /// + /// Gets or Sets Virtiofs10 + /// + [DataMember(Name = "virtiofs10", EmitDefaultValue = false)] + public string Virtiofs10 { get; set; } + + /// + /// Gets or Sets Virtiofs11 + /// + [DataMember(Name = "virtiofs11", EmitDefaultValue = false)] + public string Virtiofs11 { get; set; } + + /// + /// Gets or Sets Virtiofs12 + /// + [DataMember(Name = "virtiofs12", EmitDefaultValue = false)] + public string Virtiofs12 { get; set; } + + /// + /// Gets or Sets Virtiofs13 + /// + [DataMember(Name = "virtiofs13", EmitDefaultValue = false)] + public string Virtiofs13 { get; set; } + + /// + /// Gets or Sets Virtiofs14 + /// + [DataMember(Name = "virtiofs14", EmitDefaultValue = false)] + public string Virtiofs14 { get; set; } + + /// + /// Gets or Sets Virtiofs15 + /// + [DataMember(Name = "virtiofs15", EmitDefaultValue = false)] + public string Virtiofs15 { get; set; } + + /// + /// Gets or Sets Virtiofs16 + /// + [DataMember(Name = "virtiofs16", EmitDefaultValue = false)] + public string Virtiofs16 { get; set; } + + /// + /// Gets or Sets Virtiofs17 + /// + [DataMember(Name = "virtiofs17", EmitDefaultValue = false)] + public string Virtiofs17 { get; set; } + + /// + /// Gets or Sets Virtiofs18 + /// + [DataMember(Name = "virtiofs18", EmitDefaultValue = false)] + public string Virtiofs18 { get; set; } + + /// + /// Gets or Sets Virtiofs19 + /// + [DataMember(Name = "virtiofs19", EmitDefaultValue = false)] + public string Virtiofs19 { get; set; } + + /// + /// Gets or Sets Virtiofs20 + /// + [DataMember(Name = "virtiofs20", EmitDefaultValue = false)] + public string Virtiofs20 { get; set; } + + /// + /// Gets or Sets Virtiofs21 + /// + [DataMember(Name = "virtiofs21", EmitDefaultValue = false)] + public string Virtiofs21 { get; set; } + + /// + /// Gets or Sets Virtiofs22 + /// + [DataMember(Name = "virtiofs22", EmitDefaultValue = false)] + public string Virtiofs22 { get; set; } + + /// + /// Gets or Sets Virtiofs23 + /// + [DataMember(Name = "virtiofs23", EmitDefaultValue = false)] + public string Virtiofs23 { get; set; } + + /// + /// Gets or Sets Virtiofs24 + /// + [DataMember(Name = "virtiofs24", EmitDefaultValue = false)] + public string Virtiofs24 { get; set; } + + /// + /// Gets or Sets Virtiofs25 + /// + [DataMember(Name = "virtiofs25", EmitDefaultValue = false)] + public string Virtiofs25 { get; set; } + + /// + /// Gets or Sets Virtiofs26 + /// + [DataMember(Name = "virtiofs26", EmitDefaultValue = false)] + public string Virtiofs26 { get; set; } + + /// + /// Gets or Sets Virtiofs27 + /// + [DataMember(Name = "virtiofs27", EmitDefaultValue = false)] + public string Virtiofs27 { get; set; } + + /// + /// Gets or Sets Virtiofs28 + /// + [DataMember(Name = "virtiofs28", EmitDefaultValue = false)] + public string Virtiofs28 { get; set; } + + /// + /// Gets or Sets Virtiofs29 + /// + [DataMember(Name = "virtiofs29", EmitDefaultValue = false)] + public string Virtiofs29 { get; set; } + + /// + /// Gets or Sets Vmgenid + /// + [DataMember(Name = "vmgenid", EmitDefaultValue = false)] + public string Vmgenid { get; set; } + + /// + /// Gets or Sets Vmstatestorage + /// + [DataMember(Name = "vmstatestorage", EmitDefaultValue = false)] + public string Vmstatestorage { get; set; } + + /// + /// Gets or Sets Watchdog + /// + [DataMember(Name = "watchdog", EmitDefaultValue = false)] + public string Watchdog { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateVMConfigRequest {\n"); + sb.Append(" Acpi: ").Append(Acpi).Append("\n"); + sb.Append(" Affinity: ").Append(Affinity).Append("\n"); + sb.Append(" Agent: ").Append(Agent).Append("\n"); + sb.Append(" AllowKsm: ").Append(AllowKsm).Append("\n"); + sb.Append(" AmdSev: ").Append(AmdSev).Append("\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" Args: ").Append(Args).Append("\n"); + sb.Append(" Audio0: ").Append(Audio0).Append("\n"); + sb.Append(" Autostart: ").Append(Autostart).Append("\n"); + sb.Append(" BackgroundDelay: ").Append(BackgroundDelay).Append("\n"); + sb.Append(" Balloon: ").Append(Balloon).Append("\n"); + sb.Append(" Bios: ").Append(Bios).Append("\n"); + sb.Append(" Boot: ").Append(Boot).Append("\n"); + sb.Append(" Bootdisk: ").Append(Bootdisk).Append("\n"); + sb.Append(" Cdrom: ").Append(Cdrom).Append("\n"); + sb.Append(" Cicustom: ").Append(Cicustom).Append("\n"); + sb.Append(" Cipassword: ").Append(Cipassword).Append("\n"); + sb.Append(" Citype: ").Append(Citype).Append("\n"); + sb.Append(" Ciupgrade: ").Append(Ciupgrade).Append("\n"); + sb.Append(" Ciuser: ").Append(Ciuser).Append("\n"); + sb.Append(" Cores: ").Append(Cores).Append("\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpulimit: ").Append(Cpulimit).Append("\n"); + sb.Append(" Cpuunits: ").Append(Cpuunits).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Efidisk0: ").Append(Efidisk0).Append("\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" Freeze: ").Append(Freeze).Append("\n"); + sb.Append(" Hookscript: ").Append(Hookscript).Append("\n"); + sb.Append(" Hostpci0: ").Append(Hostpci0).Append("\n"); + sb.Append(" Hostpci1: ").Append(Hostpci1).Append("\n"); + sb.Append(" Hostpci2: ").Append(Hostpci2).Append("\n"); + sb.Append(" Hostpci3: ").Append(Hostpci3).Append("\n"); + sb.Append(" Hostpci4: ").Append(Hostpci4).Append("\n"); + sb.Append(" Hostpci5: ").Append(Hostpci5).Append("\n"); + sb.Append(" Hostpci6: ").Append(Hostpci6).Append("\n"); + sb.Append(" Hostpci7: ").Append(Hostpci7).Append("\n"); + sb.Append(" Hostpci8: ").Append(Hostpci8).Append("\n"); + sb.Append(" Hostpci9: ").Append(Hostpci9).Append("\n"); + sb.Append(" Hostpci10: ").Append(Hostpci10).Append("\n"); + sb.Append(" Hostpci11: ").Append(Hostpci11).Append("\n"); + sb.Append(" Hostpci12: ").Append(Hostpci12).Append("\n"); + sb.Append(" Hostpci13: ").Append(Hostpci13).Append("\n"); + sb.Append(" Hostpci14: ").Append(Hostpci14).Append("\n"); + sb.Append(" Hostpci15: ").Append(Hostpci15).Append("\n"); + sb.Append(" Hostpci16: ").Append(Hostpci16).Append("\n"); + sb.Append(" Hostpci17: ").Append(Hostpci17).Append("\n"); + sb.Append(" Hostpci18: ").Append(Hostpci18).Append("\n"); + sb.Append(" Hostpci19: ").Append(Hostpci19).Append("\n"); + sb.Append(" Hostpci20: ").Append(Hostpci20).Append("\n"); + sb.Append(" Hostpci21: ").Append(Hostpci21).Append("\n"); + sb.Append(" Hostpci22: ").Append(Hostpci22).Append("\n"); + sb.Append(" Hostpci23: ").Append(Hostpci23).Append("\n"); + sb.Append(" Hostpci24: ").Append(Hostpci24).Append("\n"); + sb.Append(" Hostpci25: ").Append(Hostpci25).Append("\n"); + sb.Append(" Hostpci26: ").Append(Hostpci26).Append("\n"); + sb.Append(" Hostpci27: ").Append(Hostpci27).Append("\n"); + sb.Append(" Hostpci28: ").Append(Hostpci28).Append("\n"); + sb.Append(" Hostpci29: ").Append(Hostpci29).Append("\n"); + sb.Append(" Hotplug: ").Append(Hotplug).Append("\n"); + sb.Append(" Hugepages: ").Append(Hugepages).Append("\n"); + sb.Append(" Ide0: ").Append(Ide0).Append("\n"); + sb.Append(" Ide1: ").Append(Ide1).Append("\n"); + sb.Append(" Ide2: ").Append(Ide2).Append("\n"); + sb.Append(" Ide3: ").Append(Ide3).Append("\n"); + sb.Append(" Ide4: ").Append(Ide4).Append("\n"); + sb.Append(" Ide5: ").Append(Ide5).Append("\n"); + sb.Append(" Ide6: ").Append(Ide6).Append("\n"); + sb.Append(" Ide7: ").Append(Ide7).Append("\n"); + sb.Append(" Ide8: ").Append(Ide8).Append("\n"); + sb.Append(" Ide9: ").Append(Ide9).Append("\n"); + sb.Append(" Ide10: ").Append(Ide10).Append("\n"); + sb.Append(" Ide11: ").Append(Ide11).Append("\n"); + sb.Append(" Ide12: ").Append(Ide12).Append("\n"); + sb.Append(" Ide13: ").Append(Ide13).Append("\n"); + sb.Append(" Ide14: ").Append(Ide14).Append("\n"); + sb.Append(" Ide15: ").Append(Ide15).Append("\n"); + sb.Append(" Ide16: ").Append(Ide16).Append("\n"); + sb.Append(" Ide17: ").Append(Ide17).Append("\n"); + sb.Append(" Ide18: ").Append(Ide18).Append("\n"); + sb.Append(" Ide19: ").Append(Ide19).Append("\n"); + sb.Append(" Ide20: ").Append(Ide20).Append("\n"); + sb.Append(" Ide21: ").Append(Ide21).Append("\n"); + sb.Append(" Ide22: ").Append(Ide22).Append("\n"); + sb.Append(" Ide23: ").Append(Ide23).Append("\n"); + sb.Append(" Ide24: ").Append(Ide24).Append("\n"); + sb.Append(" Ide25: ").Append(Ide25).Append("\n"); + sb.Append(" Ide26: ").Append(Ide26).Append("\n"); + sb.Append(" Ide27: ").Append(Ide27).Append("\n"); + sb.Append(" Ide28: ").Append(Ide28).Append("\n"); + sb.Append(" Ide29: ").Append(Ide29).Append("\n"); + sb.Append(" ImportWorkingStorage: ").Append(ImportWorkingStorage).Append("\n"); + sb.Append(" IntelTdx: ").Append(IntelTdx).Append("\n"); + sb.Append(" Ipconfig0: ").Append(Ipconfig0).Append("\n"); + sb.Append(" Ipconfig1: ").Append(Ipconfig1).Append("\n"); + sb.Append(" Ipconfig2: ").Append(Ipconfig2).Append("\n"); + sb.Append(" Ipconfig3: ").Append(Ipconfig3).Append("\n"); + sb.Append(" Ipconfig4: ").Append(Ipconfig4).Append("\n"); + sb.Append(" Ipconfig5: ").Append(Ipconfig5).Append("\n"); + sb.Append(" Ipconfig6: ").Append(Ipconfig6).Append("\n"); + sb.Append(" Ipconfig7: ").Append(Ipconfig7).Append("\n"); + sb.Append(" Ipconfig8: ").Append(Ipconfig8).Append("\n"); + sb.Append(" Ipconfig9: ").Append(Ipconfig9).Append("\n"); + sb.Append(" Ipconfig10: ").Append(Ipconfig10).Append("\n"); + sb.Append(" Ipconfig11: ").Append(Ipconfig11).Append("\n"); + sb.Append(" Ipconfig12: ").Append(Ipconfig12).Append("\n"); + sb.Append(" Ipconfig13: ").Append(Ipconfig13).Append("\n"); + sb.Append(" Ipconfig14: ").Append(Ipconfig14).Append("\n"); + sb.Append(" Ipconfig15: ").Append(Ipconfig15).Append("\n"); + sb.Append(" Ipconfig16: ").Append(Ipconfig16).Append("\n"); + sb.Append(" Ipconfig17: ").Append(Ipconfig17).Append("\n"); + sb.Append(" Ipconfig18: ").Append(Ipconfig18).Append("\n"); + sb.Append(" Ipconfig19: ").Append(Ipconfig19).Append("\n"); + sb.Append(" Ipconfig20: ").Append(Ipconfig20).Append("\n"); + sb.Append(" Ipconfig21: ").Append(Ipconfig21).Append("\n"); + sb.Append(" Ipconfig22: ").Append(Ipconfig22).Append("\n"); + sb.Append(" Ipconfig23: ").Append(Ipconfig23).Append("\n"); + sb.Append(" Ipconfig24: ").Append(Ipconfig24).Append("\n"); + sb.Append(" Ipconfig25: ").Append(Ipconfig25).Append("\n"); + sb.Append(" Ipconfig26: ").Append(Ipconfig26).Append("\n"); + sb.Append(" Ipconfig27: ").Append(Ipconfig27).Append("\n"); + sb.Append(" Ipconfig28: ").Append(Ipconfig28).Append("\n"); + sb.Append(" Ipconfig29: ").Append(Ipconfig29).Append("\n"); + sb.Append(" Ivshmem: ").Append(Ivshmem).Append("\n"); + sb.Append(" Keephugepages: ").Append(Keephugepages).Append("\n"); + sb.Append(" Keyboard: ").Append(Keyboard).Append("\n"); + sb.Append(" Kvm: ").Append(Kvm).Append("\n"); + sb.Append(" Localtime: ").Append(Localtime).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Machine: ").Append(Machine).Append("\n"); + sb.Append(" Memory: ").Append(Memory).Append("\n"); + sb.Append(" MigrateDowntime: ").Append(MigrateDowntime).Append("\n"); + sb.Append(" MigrateSpeed: ").Append(MigrateSpeed).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Nameserver: ").Append(Nameserver).Append("\n"); + sb.Append(" Net0: ").Append(Net0).Append("\n"); + sb.Append(" Net1: ").Append(Net1).Append("\n"); + sb.Append(" Net2: ").Append(Net2).Append("\n"); + sb.Append(" Net3: ").Append(Net3).Append("\n"); + sb.Append(" Net4: ").Append(Net4).Append("\n"); + sb.Append(" Net5: ").Append(Net5).Append("\n"); + sb.Append(" Net6: ").Append(Net6).Append("\n"); + sb.Append(" Net7: ").Append(Net7).Append("\n"); + sb.Append(" Net8: ").Append(Net8).Append("\n"); + sb.Append(" Net9: ").Append(Net9).Append("\n"); + sb.Append(" Net10: ").Append(Net10).Append("\n"); + sb.Append(" Net11: ").Append(Net11).Append("\n"); + sb.Append(" Net12: ").Append(Net12).Append("\n"); + sb.Append(" Net13: ").Append(Net13).Append("\n"); + sb.Append(" Net14: ").Append(Net14).Append("\n"); + sb.Append(" Net15: ").Append(Net15).Append("\n"); + sb.Append(" Net16: ").Append(Net16).Append("\n"); + sb.Append(" Net17: ").Append(Net17).Append("\n"); + sb.Append(" Net18: ").Append(Net18).Append("\n"); + sb.Append(" Net19: ").Append(Net19).Append("\n"); + sb.Append(" Net20: ").Append(Net20).Append("\n"); + sb.Append(" Net21: ").Append(Net21).Append("\n"); + sb.Append(" Net22: ").Append(Net22).Append("\n"); + sb.Append(" Net23: ").Append(Net23).Append("\n"); + sb.Append(" Net24: ").Append(Net24).Append("\n"); + sb.Append(" Net25: ").Append(Net25).Append("\n"); + sb.Append(" Net26: ").Append(Net26).Append("\n"); + sb.Append(" Net27: ").Append(Net27).Append("\n"); + sb.Append(" Net28: ").Append(Net28).Append("\n"); + sb.Append(" Net29: ").Append(Net29).Append("\n"); + sb.Append(" Numa: ").Append(Numa).Append("\n"); + sb.Append(" Numa0: ").Append(Numa0).Append("\n"); + sb.Append(" Numa1: ").Append(Numa1).Append("\n"); + sb.Append(" Numa2: ").Append(Numa2).Append("\n"); + sb.Append(" Numa3: ").Append(Numa3).Append("\n"); + sb.Append(" Numa4: ").Append(Numa4).Append("\n"); + sb.Append(" Numa5: ").Append(Numa5).Append("\n"); + sb.Append(" Numa6: ").Append(Numa6).Append("\n"); + sb.Append(" Numa7: ").Append(Numa7).Append("\n"); + sb.Append(" Numa8: ").Append(Numa8).Append("\n"); + sb.Append(" Numa9: ").Append(Numa9).Append("\n"); + sb.Append(" Numa10: ").Append(Numa10).Append("\n"); + sb.Append(" Numa11: ").Append(Numa11).Append("\n"); + sb.Append(" Numa12: ").Append(Numa12).Append("\n"); + sb.Append(" Numa13: ").Append(Numa13).Append("\n"); + sb.Append(" Numa14: ").Append(Numa14).Append("\n"); + sb.Append(" Numa15: ").Append(Numa15).Append("\n"); + sb.Append(" Numa16: ").Append(Numa16).Append("\n"); + sb.Append(" Numa17: ").Append(Numa17).Append("\n"); + sb.Append(" Numa18: ").Append(Numa18).Append("\n"); + sb.Append(" Numa19: ").Append(Numa19).Append("\n"); + sb.Append(" Numa20: ").Append(Numa20).Append("\n"); + sb.Append(" Numa21: ").Append(Numa21).Append("\n"); + sb.Append(" Numa22: ").Append(Numa22).Append("\n"); + sb.Append(" Numa23: ").Append(Numa23).Append("\n"); + sb.Append(" Numa24: ").Append(Numa24).Append("\n"); + sb.Append(" Numa25: ").Append(Numa25).Append("\n"); + sb.Append(" Numa26: ").Append(Numa26).Append("\n"); + sb.Append(" Numa27: ").Append(Numa27).Append("\n"); + sb.Append(" Numa28: ").Append(Numa28).Append("\n"); + sb.Append(" Numa29: ").Append(Numa29).Append("\n"); + sb.Append(" Onboot: ").Append(Onboot).Append("\n"); + sb.Append(" Ostype: ").Append(Ostype).Append("\n"); + sb.Append(" Parallel0: ").Append(Parallel0).Append("\n"); + sb.Append(" Parallel1: ").Append(Parallel1).Append("\n"); + sb.Append(" Parallel2: ").Append(Parallel2).Append("\n"); + sb.Append(" Parallel3: ").Append(Parallel3).Append("\n"); + sb.Append(" Parallel4: ").Append(Parallel4).Append("\n"); + sb.Append(" Parallel5: ").Append(Parallel5).Append("\n"); + sb.Append(" Parallel6: ").Append(Parallel6).Append("\n"); + sb.Append(" Parallel7: ").Append(Parallel7).Append("\n"); + sb.Append(" Parallel8: ").Append(Parallel8).Append("\n"); + sb.Append(" Parallel9: ").Append(Parallel9).Append("\n"); + sb.Append(" Parallel10: ").Append(Parallel10).Append("\n"); + sb.Append(" Parallel11: ").Append(Parallel11).Append("\n"); + sb.Append(" Parallel12: ").Append(Parallel12).Append("\n"); + sb.Append(" Parallel13: ").Append(Parallel13).Append("\n"); + sb.Append(" Parallel14: ").Append(Parallel14).Append("\n"); + sb.Append(" Parallel15: ").Append(Parallel15).Append("\n"); + sb.Append(" Parallel16: ").Append(Parallel16).Append("\n"); + sb.Append(" Parallel17: ").Append(Parallel17).Append("\n"); + sb.Append(" Parallel18: ").Append(Parallel18).Append("\n"); + sb.Append(" Parallel19: ").Append(Parallel19).Append("\n"); + sb.Append(" Parallel20: ").Append(Parallel20).Append("\n"); + sb.Append(" Parallel21: ").Append(Parallel21).Append("\n"); + sb.Append(" Parallel22: ").Append(Parallel22).Append("\n"); + sb.Append(" Parallel23: ").Append(Parallel23).Append("\n"); + sb.Append(" Parallel24: ").Append(Parallel24).Append("\n"); + sb.Append(" Parallel25: ").Append(Parallel25).Append("\n"); + sb.Append(" Parallel26: ").Append(Parallel26).Append("\n"); + sb.Append(" Parallel27: ").Append(Parallel27).Append("\n"); + sb.Append(" Parallel28: ").Append(Parallel28).Append("\n"); + sb.Append(" Parallel29: ").Append(Parallel29).Append("\n"); + sb.Append(" Protection: ").Append(Protection).Append("\n"); + sb.Append(" Reboot: ").Append(Reboot).Append("\n"); + sb.Append(" Revert: ").Append(Revert).Append("\n"); + sb.Append(" Rng0: ").Append(Rng0).Append("\n"); + sb.Append(" Sata0: ").Append(Sata0).Append("\n"); + sb.Append(" Sata1: ").Append(Sata1).Append("\n"); + sb.Append(" Sata2: ").Append(Sata2).Append("\n"); + sb.Append(" Sata3: ").Append(Sata3).Append("\n"); + sb.Append(" Sata4: ").Append(Sata4).Append("\n"); + sb.Append(" Sata5: ").Append(Sata5).Append("\n"); + sb.Append(" Sata6: ").Append(Sata6).Append("\n"); + sb.Append(" Sata7: ").Append(Sata7).Append("\n"); + sb.Append(" Sata8: ").Append(Sata8).Append("\n"); + sb.Append(" Sata9: ").Append(Sata9).Append("\n"); + sb.Append(" Sata10: ").Append(Sata10).Append("\n"); + sb.Append(" Sata11: ").Append(Sata11).Append("\n"); + sb.Append(" Sata12: ").Append(Sata12).Append("\n"); + sb.Append(" Sata13: ").Append(Sata13).Append("\n"); + sb.Append(" Sata14: ").Append(Sata14).Append("\n"); + sb.Append(" Sata15: ").Append(Sata15).Append("\n"); + sb.Append(" Sata16: ").Append(Sata16).Append("\n"); + sb.Append(" Sata17: ").Append(Sata17).Append("\n"); + sb.Append(" Sata18: ").Append(Sata18).Append("\n"); + sb.Append(" Sata19: ").Append(Sata19).Append("\n"); + sb.Append(" Sata20: ").Append(Sata20).Append("\n"); + sb.Append(" Sata21: ").Append(Sata21).Append("\n"); + sb.Append(" Sata22: ").Append(Sata22).Append("\n"); + sb.Append(" Sata23: ").Append(Sata23).Append("\n"); + sb.Append(" Sata24: ").Append(Sata24).Append("\n"); + sb.Append(" Sata25: ").Append(Sata25).Append("\n"); + sb.Append(" Sata26: ").Append(Sata26).Append("\n"); + sb.Append(" Sata27: ").Append(Sata27).Append("\n"); + sb.Append(" Sata28: ").Append(Sata28).Append("\n"); + sb.Append(" Sata29: ").Append(Sata29).Append("\n"); + sb.Append(" Scsi0: ").Append(Scsi0).Append("\n"); + sb.Append(" Scsi1: ").Append(Scsi1).Append("\n"); + sb.Append(" Scsi2: ").Append(Scsi2).Append("\n"); + sb.Append(" Scsi3: ").Append(Scsi3).Append("\n"); + sb.Append(" Scsi4: ").Append(Scsi4).Append("\n"); + sb.Append(" Scsi5: ").Append(Scsi5).Append("\n"); + sb.Append(" Scsi6: ").Append(Scsi6).Append("\n"); + sb.Append(" Scsi7: ").Append(Scsi7).Append("\n"); + sb.Append(" Scsi8: ").Append(Scsi8).Append("\n"); + sb.Append(" Scsi9: ").Append(Scsi9).Append("\n"); + sb.Append(" Scsi10: ").Append(Scsi10).Append("\n"); + sb.Append(" Scsi11: ").Append(Scsi11).Append("\n"); + sb.Append(" Scsi12: ").Append(Scsi12).Append("\n"); + sb.Append(" Scsi13: ").Append(Scsi13).Append("\n"); + sb.Append(" Scsi14: ").Append(Scsi14).Append("\n"); + sb.Append(" Scsi15: ").Append(Scsi15).Append("\n"); + sb.Append(" Scsi16: ").Append(Scsi16).Append("\n"); + sb.Append(" Scsi17: ").Append(Scsi17).Append("\n"); + sb.Append(" Scsi18: ").Append(Scsi18).Append("\n"); + sb.Append(" Scsi19: ").Append(Scsi19).Append("\n"); + sb.Append(" Scsi20: ").Append(Scsi20).Append("\n"); + sb.Append(" Scsi21: ").Append(Scsi21).Append("\n"); + sb.Append(" Scsi22: ").Append(Scsi22).Append("\n"); + sb.Append(" Scsi23: ").Append(Scsi23).Append("\n"); + sb.Append(" Scsi24: ").Append(Scsi24).Append("\n"); + sb.Append(" Scsi25: ").Append(Scsi25).Append("\n"); + sb.Append(" Scsi26: ").Append(Scsi26).Append("\n"); + sb.Append(" Scsi27: ").Append(Scsi27).Append("\n"); + sb.Append(" Scsi28: ").Append(Scsi28).Append("\n"); + sb.Append(" Scsi29: ").Append(Scsi29).Append("\n"); + sb.Append(" Scsihw: ").Append(Scsihw).Append("\n"); + sb.Append(" Searchdomain: ").Append(Searchdomain).Append("\n"); + sb.Append(" Serial0: ").Append(Serial0).Append("\n"); + sb.Append(" Serial1: ").Append(Serial1).Append("\n"); + sb.Append(" Serial2: ").Append(Serial2).Append("\n"); + sb.Append(" Serial3: ").Append(Serial3).Append("\n"); + sb.Append(" Serial4: ").Append(Serial4).Append("\n"); + sb.Append(" Serial5: ").Append(Serial5).Append("\n"); + sb.Append(" Serial6: ").Append(Serial6).Append("\n"); + sb.Append(" Serial7: ").Append(Serial7).Append("\n"); + sb.Append(" Serial8: ").Append(Serial8).Append("\n"); + sb.Append(" Serial9: ").Append(Serial9).Append("\n"); + sb.Append(" Serial10: ").Append(Serial10).Append("\n"); + sb.Append(" Serial11: ").Append(Serial11).Append("\n"); + sb.Append(" Serial12: ").Append(Serial12).Append("\n"); + sb.Append(" Serial13: ").Append(Serial13).Append("\n"); + sb.Append(" Serial14: ").Append(Serial14).Append("\n"); + sb.Append(" Serial15: ").Append(Serial15).Append("\n"); + sb.Append(" Serial16: ").Append(Serial16).Append("\n"); + sb.Append(" Serial17: ").Append(Serial17).Append("\n"); + sb.Append(" Serial18: ").Append(Serial18).Append("\n"); + sb.Append(" Serial19: ").Append(Serial19).Append("\n"); + sb.Append(" Serial20: ").Append(Serial20).Append("\n"); + sb.Append(" Serial21: ").Append(Serial21).Append("\n"); + sb.Append(" Serial22: ").Append(Serial22).Append("\n"); + sb.Append(" Serial23: ").Append(Serial23).Append("\n"); + sb.Append(" Serial24: ").Append(Serial24).Append("\n"); + sb.Append(" Serial25: ").Append(Serial25).Append("\n"); + sb.Append(" Serial26: ").Append(Serial26).Append("\n"); + sb.Append(" Serial27: ").Append(Serial27).Append("\n"); + sb.Append(" Serial28: ").Append(Serial28).Append("\n"); + sb.Append(" Serial29: ").Append(Serial29).Append("\n"); + sb.Append(" Shares: ").Append(Shares).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append(" Smbios1: ").Append(Smbios1).Append("\n"); + sb.Append(" Smp: ").Append(Smp).Append("\n"); + sb.Append(" Sockets: ").Append(Sockets).Append("\n"); + sb.Append(" SpiceEnhancements: ").Append(SpiceEnhancements).Append("\n"); + sb.Append(" Sshkeys: ").Append(Sshkeys).Append("\n"); + sb.Append(" Startdate: ").Append(Startdate).Append("\n"); + sb.Append(" Startup: ").Append(Startup).Append("\n"); + sb.Append(" Tablet: ").Append(Tablet).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Tdf: ").Append(Tdf).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Tpmstate0: ").Append(Tpmstate0).Append("\n"); + sb.Append(" Unused0: ").Append(Unused0).Append("\n"); + sb.Append(" Unused1: ").Append(Unused1).Append("\n"); + sb.Append(" Unused2: ").Append(Unused2).Append("\n"); + sb.Append(" Unused3: ").Append(Unused3).Append("\n"); + sb.Append(" Unused4: ").Append(Unused4).Append("\n"); + sb.Append(" Unused5: ").Append(Unused5).Append("\n"); + sb.Append(" Unused6: ").Append(Unused6).Append("\n"); + sb.Append(" Unused7: ").Append(Unused7).Append("\n"); + sb.Append(" Unused8: ").Append(Unused8).Append("\n"); + sb.Append(" Unused9: ").Append(Unused9).Append("\n"); + sb.Append(" Unused10: ").Append(Unused10).Append("\n"); + sb.Append(" Unused11: ").Append(Unused11).Append("\n"); + sb.Append(" Unused12: ").Append(Unused12).Append("\n"); + sb.Append(" Unused13: ").Append(Unused13).Append("\n"); + sb.Append(" Unused14: ").Append(Unused14).Append("\n"); + sb.Append(" Unused15: ").Append(Unused15).Append("\n"); + sb.Append(" Unused16: ").Append(Unused16).Append("\n"); + sb.Append(" Unused17: ").Append(Unused17).Append("\n"); + sb.Append(" Unused18: ").Append(Unused18).Append("\n"); + sb.Append(" Unused19: ").Append(Unused19).Append("\n"); + sb.Append(" Unused20: ").Append(Unused20).Append("\n"); + sb.Append(" Unused21: ").Append(Unused21).Append("\n"); + sb.Append(" Unused22: ").Append(Unused22).Append("\n"); + sb.Append(" Unused23: ").Append(Unused23).Append("\n"); + sb.Append(" Unused24: ").Append(Unused24).Append("\n"); + sb.Append(" Unused25: ").Append(Unused25).Append("\n"); + sb.Append(" Unused26: ").Append(Unused26).Append("\n"); + sb.Append(" Unused27: ").Append(Unused27).Append("\n"); + sb.Append(" Unused28: ").Append(Unused28).Append("\n"); + sb.Append(" Unused29: ").Append(Unused29).Append("\n"); + sb.Append(" Usb0: ").Append(Usb0).Append("\n"); + sb.Append(" Usb1: ").Append(Usb1).Append("\n"); + sb.Append(" Usb2: ").Append(Usb2).Append("\n"); + sb.Append(" Usb3: ").Append(Usb3).Append("\n"); + sb.Append(" Usb4: ").Append(Usb4).Append("\n"); + sb.Append(" Usb5: ").Append(Usb5).Append("\n"); + sb.Append(" Usb6: ").Append(Usb6).Append("\n"); + sb.Append(" Usb7: ").Append(Usb7).Append("\n"); + sb.Append(" Usb8: ").Append(Usb8).Append("\n"); + sb.Append(" Usb9: ").Append(Usb9).Append("\n"); + sb.Append(" Usb10: ").Append(Usb10).Append("\n"); + sb.Append(" Usb11: ").Append(Usb11).Append("\n"); + sb.Append(" Usb12: ").Append(Usb12).Append("\n"); + sb.Append(" Usb13: ").Append(Usb13).Append("\n"); + sb.Append(" Usb14: ").Append(Usb14).Append("\n"); + sb.Append(" Usb15: ").Append(Usb15).Append("\n"); + sb.Append(" Usb16: ").Append(Usb16).Append("\n"); + sb.Append(" Usb17: ").Append(Usb17).Append("\n"); + sb.Append(" Usb18: ").Append(Usb18).Append("\n"); + sb.Append(" Usb19: ").Append(Usb19).Append("\n"); + sb.Append(" Usb20: ").Append(Usb20).Append("\n"); + sb.Append(" Usb21: ").Append(Usb21).Append("\n"); + sb.Append(" Usb22: ").Append(Usb22).Append("\n"); + sb.Append(" Usb23: ").Append(Usb23).Append("\n"); + sb.Append(" Usb24: ").Append(Usb24).Append("\n"); + sb.Append(" Usb25: ").Append(Usb25).Append("\n"); + sb.Append(" Usb26: ").Append(Usb26).Append("\n"); + sb.Append(" Usb27: ").Append(Usb27).Append("\n"); + sb.Append(" Usb28: ").Append(Usb28).Append("\n"); + sb.Append(" Usb29: ").Append(Usb29).Append("\n"); + sb.Append(" Vcpus: ").Append(Vcpus).Append("\n"); + sb.Append(" Vga: ").Append(Vga).Append("\n"); + sb.Append(" Virtio0: ").Append(Virtio0).Append("\n"); + sb.Append(" Virtio1: ").Append(Virtio1).Append("\n"); + sb.Append(" Virtio2: ").Append(Virtio2).Append("\n"); + sb.Append(" Virtio3: ").Append(Virtio3).Append("\n"); + sb.Append(" Virtio4: ").Append(Virtio4).Append("\n"); + sb.Append(" Virtio5: ").Append(Virtio5).Append("\n"); + sb.Append(" Virtio6: ").Append(Virtio6).Append("\n"); + sb.Append(" Virtio7: ").Append(Virtio7).Append("\n"); + sb.Append(" Virtio8: ").Append(Virtio8).Append("\n"); + sb.Append(" Virtio9: ").Append(Virtio9).Append("\n"); + sb.Append(" Virtio10: ").Append(Virtio10).Append("\n"); + sb.Append(" Virtio11: ").Append(Virtio11).Append("\n"); + sb.Append(" Virtio12: ").Append(Virtio12).Append("\n"); + sb.Append(" Virtio13: ").Append(Virtio13).Append("\n"); + sb.Append(" Virtio14: ").Append(Virtio14).Append("\n"); + sb.Append(" Virtio15: ").Append(Virtio15).Append("\n"); + sb.Append(" Virtio16: ").Append(Virtio16).Append("\n"); + sb.Append(" Virtio17: ").Append(Virtio17).Append("\n"); + sb.Append(" Virtio18: ").Append(Virtio18).Append("\n"); + sb.Append(" Virtio19: ").Append(Virtio19).Append("\n"); + sb.Append(" Virtio20: ").Append(Virtio20).Append("\n"); + sb.Append(" Virtio21: ").Append(Virtio21).Append("\n"); + sb.Append(" Virtio22: ").Append(Virtio22).Append("\n"); + sb.Append(" Virtio23: ").Append(Virtio23).Append("\n"); + sb.Append(" Virtio24: ").Append(Virtio24).Append("\n"); + sb.Append(" Virtio25: ").Append(Virtio25).Append("\n"); + sb.Append(" Virtio26: ").Append(Virtio26).Append("\n"); + sb.Append(" Virtio27: ").Append(Virtio27).Append("\n"); + sb.Append(" Virtio28: ").Append(Virtio28).Append("\n"); + sb.Append(" Virtio29: ").Append(Virtio29).Append("\n"); + sb.Append(" Virtiofs0: ").Append(Virtiofs0).Append("\n"); + sb.Append(" Virtiofs1: ").Append(Virtiofs1).Append("\n"); + sb.Append(" Virtiofs2: ").Append(Virtiofs2).Append("\n"); + sb.Append(" Virtiofs3: ").Append(Virtiofs3).Append("\n"); + sb.Append(" Virtiofs4: ").Append(Virtiofs4).Append("\n"); + sb.Append(" Virtiofs5: ").Append(Virtiofs5).Append("\n"); + sb.Append(" Virtiofs6: ").Append(Virtiofs6).Append("\n"); + sb.Append(" Virtiofs7: ").Append(Virtiofs7).Append("\n"); + sb.Append(" Virtiofs8: ").Append(Virtiofs8).Append("\n"); + sb.Append(" Virtiofs9: ").Append(Virtiofs9).Append("\n"); + sb.Append(" Virtiofs10: ").Append(Virtiofs10).Append("\n"); + sb.Append(" Virtiofs11: ").Append(Virtiofs11).Append("\n"); + sb.Append(" Virtiofs12: ").Append(Virtiofs12).Append("\n"); + sb.Append(" Virtiofs13: ").Append(Virtiofs13).Append("\n"); + sb.Append(" Virtiofs14: ").Append(Virtiofs14).Append("\n"); + sb.Append(" Virtiofs15: ").Append(Virtiofs15).Append("\n"); + sb.Append(" Virtiofs16: ").Append(Virtiofs16).Append("\n"); + sb.Append(" Virtiofs17: ").Append(Virtiofs17).Append("\n"); + sb.Append(" Virtiofs18: ").Append(Virtiofs18).Append("\n"); + sb.Append(" Virtiofs19: ").Append(Virtiofs19).Append("\n"); + sb.Append(" Virtiofs20: ").Append(Virtiofs20).Append("\n"); + sb.Append(" Virtiofs21: ").Append(Virtiofs21).Append("\n"); + sb.Append(" Virtiofs22: ").Append(Virtiofs22).Append("\n"); + sb.Append(" Virtiofs23: ").Append(Virtiofs23).Append("\n"); + sb.Append(" Virtiofs24: ").Append(Virtiofs24).Append("\n"); + sb.Append(" Virtiofs25: ").Append(Virtiofs25).Append("\n"); + sb.Append(" Virtiofs26: ").Append(Virtiofs26).Append("\n"); + sb.Append(" Virtiofs27: ").Append(Virtiofs27).Append("\n"); + sb.Append(" Virtiofs28: ").Append(Virtiofs28).Append("\n"); + sb.Append(" Virtiofs29: ").Append(Virtiofs29).Append("\n"); + sb.Append(" Vmgenid: ").Append(Vmgenid).Append("\n"); + sb.Append(" Vmstatestorage: ").Append(Vmstatestorage).Append("\n"); + sb.Append(" Watchdog: ").Append(Watchdog).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateVMConfigSyncRequest.cs b/src/ProxmoxSharp/Model/UpdateVMConfigSyncRequest.cs new file mode 100644 index 0000000..16d6d3d --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateVMConfigSyncRequest.cs @@ -0,0 +1,4241 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateVMConfigSyncRequest + /// + [DataContract(Name = "UpdateVMConfigSyncRequest")] + public partial class UpdateVMConfigSyncRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// acpi. + /// affinity. + /// agent. + /// allowKsm. + /// amdSev. + /// arch. + /// args. + /// audio0. + /// autostart. + /// balloon. + /// bios. + /// boot. + /// bootdisk. + /// cdrom. + /// cicustom. + /// cipassword. + /// citype. + /// ciupgrade. + /// ciuser. + /// cores. + /// cpu. + /// cpulimit. + /// cpuunits. + /// delete. + /// description. + /// digest. + /// efidisk0. + /// force. + /// freeze. + /// hookscript. + /// hostpci0. + /// hostpci1. + /// hostpci2. + /// hostpci3. + /// hostpci4. + /// hostpci5. + /// hostpci6. + /// hostpci7. + /// hostpci8. + /// hostpci9. + /// hostpci10. + /// hostpci11. + /// hostpci12. + /// hostpci13. + /// hostpci14. + /// hostpci15. + /// hostpci16. + /// hostpci17. + /// hostpci18. + /// hostpci19. + /// hostpci20. + /// hostpci21. + /// hostpci22. + /// hostpci23. + /// hostpci24. + /// hostpci25. + /// hostpci26. + /// hostpci27. + /// hostpci28. + /// hostpci29. + /// hotplug. + /// hugepages. + /// ide0. + /// ide1. + /// ide2. + /// ide3. + /// ide4. + /// ide5. + /// ide6. + /// ide7. + /// ide8. + /// ide9. + /// ide10. + /// ide11. + /// ide12. + /// ide13. + /// ide14. + /// ide15. + /// ide16. + /// ide17. + /// ide18. + /// ide19. + /// ide20. + /// ide21. + /// ide22. + /// ide23. + /// ide24. + /// ide25. + /// ide26. + /// ide27. + /// ide28. + /// ide29. + /// intelTdx. + /// ipconfig0. + /// ipconfig1. + /// ipconfig2. + /// ipconfig3. + /// ipconfig4. + /// ipconfig5. + /// ipconfig6. + /// ipconfig7. + /// ipconfig8. + /// ipconfig9. + /// ipconfig10. + /// ipconfig11. + /// ipconfig12. + /// ipconfig13. + /// ipconfig14. + /// ipconfig15. + /// ipconfig16. + /// ipconfig17. + /// ipconfig18. + /// ipconfig19. + /// ipconfig20. + /// ipconfig21. + /// ipconfig22. + /// ipconfig23. + /// ipconfig24. + /// ipconfig25. + /// ipconfig26. + /// ipconfig27. + /// ipconfig28. + /// ipconfig29. + /// ivshmem. + /// keephugepages. + /// keyboard. + /// kvm. + /// localtime. + /// varLock. + /// machine. + /// memory. + /// migrateDowntime. + /// migrateSpeed. + /// name. + /// nameserver. + /// net0. + /// net1. + /// net2. + /// net3. + /// net4. + /// net5. + /// net6. + /// net7. + /// net8. + /// net9. + /// net10. + /// net11. + /// net12. + /// net13. + /// net14. + /// net15. + /// net16. + /// net17. + /// net18. + /// net19. + /// net20. + /// net21. + /// net22. + /// net23. + /// net24. + /// net25. + /// net26. + /// net27. + /// net28. + /// net29. + /// numa. + /// numa0. + /// numa1. + /// numa2. + /// numa3. + /// numa4. + /// numa5. + /// numa6. + /// numa7. + /// numa8. + /// numa9. + /// numa10. + /// numa11. + /// numa12. + /// numa13. + /// numa14. + /// numa15. + /// numa16. + /// numa17. + /// numa18. + /// numa19. + /// numa20. + /// numa21. + /// numa22. + /// numa23. + /// numa24. + /// numa25. + /// numa26. + /// numa27. + /// numa28. + /// numa29. + /// onboot. + /// ostype. + /// parallel0. + /// parallel1. + /// parallel2. + /// parallel3. + /// parallel4. + /// parallel5. + /// parallel6. + /// parallel7. + /// parallel8. + /// parallel9. + /// parallel10. + /// parallel11. + /// parallel12. + /// parallel13. + /// parallel14. + /// parallel15. + /// parallel16. + /// parallel17. + /// parallel18. + /// parallel19. + /// parallel20. + /// parallel21. + /// parallel22. + /// parallel23. + /// parallel24. + /// parallel25. + /// parallel26. + /// parallel27. + /// parallel28. + /// parallel29. + /// protection. + /// reboot. + /// revert. + /// rng0. + /// sata0. + /// sata1. + /// sata2. + /// sata3. + /// sata4. + /// sata5. + /// sata6. + /// sata7. + /// sata8. + /// sata9. + /// sata10. + /// sata11. + /// sata12. + /// sata13. + /// sata14. + /// sata15. + /// sata16. + /// sata17. + /// sata18. + /// sata19. + /// sata20. + /// sata21. + /// sata22. + /// sata23. + /// sata24. + /// sata25. + /// sata26. + /// sata27. + /// sata28. + /// sata29. + /// scsi0. + /// scsi1. + /// scsi2. + /// scsi3. + /// scsi4. + /// scsi5. + /// scsi6. + /// scsi7. + /// scsi8. + /// scsi9. + /// scsi10. + /// scsi11. + /// scsi12. + /// scsi13. + /// scsi14. + /// scsi15. + /// scsi16. + /// scsi17. + /// scsi18. + /// scsi19. + /// scsi20. + /// scsi21. + /// scsi22. + /// scsi23. + /// scsi24. + /// scsi25. + /// scsi26. + /// scsi27. + /// scsi28. + /// scsi29. + /// scsihw. + /// searchdomain. + /// serial0. + /// serial1. + /// serial2. + /// serial3. + /// serial4. + /// serial5. + /// serial6. + /// serial7. + /// serial8. + /// serial9. + /// serial10. + /// serial11. + /// serial12. + /// serial13. + /// serial14. + /// serial15. + /// serial16. + /// serial17. + /// serial18. + /// serial19. + /// serial20. + /// serial21. + /// serial22. + /// serial23. + /// serial24. + /// serial25. + /// serial26. + /// serial27. + /// serial28. + /// serial29. + /// shares. + /// skiplock. + /// smbios1. + /// smp. + /// sockets. + /// spiceEnhancements. + /// sshkeys. + /// startdate. + /// startup. + /// tablet. + /// tags. + /// tdf. + /// template. + /// tpmstate0. + /// unused0. + /// unused1. + /// unused2. + /// unused3. + /// unused4. + /// unused5. + /// unused6. + /// unused7. + /// unused8. + /// unused9. + /// unused10. + /// unused11. + /// unused12. + /// unused13. + /// unused14. + /// unused15. + /// unused16. + /// unused17. + /// unused18. + /// unused19. + /// unused20. + /// unused21. + /// unused22. + /// unused23. + /// unused24. + /// unused25. + /// unused26. + /// unused27. + /// unused28. + /// unused29. + /// usb0. + /// usb1. + /// usb2. + /// usb3. + /// usb4. + /// usb5. + /// usb6. + /// usb7. + /// usb8. + /// usb9. + /// usb10. + /// usb11. + /// usb12. + /// usb13. + /// usb14. + /// usb15. + /// usb16. + /// usb17. + /// usb18. + /// usb19. + /// usb20. + /// usb21. + /// usb22. + /// usb23. + /// usb24. + /// usb25. + /// usb26. + /// usb27. + /// usb28. + /// usb29. + /// vcpus. + /// vga. + /// virtio0. + /// virtio1. + /// virtio2. + /// virtio3. + /// virtio4. + /// virtio5. + /// virtio6. + /// virtio7. + /// virtio8. + /// virtio9. + /// virtio10. + /// virtio11. + /// virtio12. + /// virtio13. + /// virtio14. + /// virtio15. + /// virtio16. + /// virtio17. + /// virtio18. + /// virtio19. + /// virtio20. + /// virtio21. + /// virtio22. + /// virtio23. + /// virtio24. + /// virtio25. + /// virtio26. + /// virtio27. + /// virtio28. + /// virtio29. + /// virtiofs0. + /// virtiofs1. + /// virtiofs2. + /// virtiofs3. + /// virtiofs4. + /// virtiofs5. + /// virtiofs6. + /// virtiofs7. + /// virtiofs8. + /// virtiofs9. + /// virtiofs10. + /// virtiofs11. + /// virtiofs12. + /// virtiofs13. + /// virtiofs14. + /// virtiofs15. + /// virtiofs16. + /// virtiofs17. + /// virtiofs18. + /// virtiofs19. + /// virtiofs20. + /// virtiofs21. + /// virtiofs22. + /// virtiofs23. + /// virtiofs24. + /// virtiofs25. + /// virtiofs26. + /// virtiofs27. + /// virtiofs28. + /// virtiofs29. + /// vmgenid. + /// vmstatestorage. + /// watchdog. + public UpdateVMConfigSyncRequest(bool acpi = default(bool), string affinity = default(string), string agent = default(string), bool allowKsm = default(bool), string amdSev = default(string), string arch = default(string), string args = default(string), string audio0 = default(string), bool autostart = default(bool), int balloon = default(int), string bios = default(string), string boot = default(string), string bootdisk = default(string), string cdrom = default(string), string cicustom = default(string), string cipassword = default(string), string citype = default(string), bool ciupgrade = default(bool), string ciuser = default(string), int cores = default(int), string cpu = default(string), decimal cpulimit = default(decimal), int cpuunits = default(int), string delete = default(string), string description = default(string), string digest = default(string), string efidisk0 = default(string), bool force = default(bool), bool freeze = default(bool), string hookscript = default(string), string hostpci0 = default(string), string hostpci1 = default(string), string hostpci2 = default(string), string hostpci3 = default(string), string hostpci4 = default(string), string hostpci5 = default(string), string hostpci6 = default(string), string hostpci7 = default(string), string hostpci8 = default(string), string hostpci9 = default(string), string hostpci10 = default(string), string hostpci11 = default(string), string hostpci12 = default(string), string hostpci13 = default(string), string hostpci14 = default(string), string hostpci15 = default(string), string hostpci16 = default(string), string hostpci17 = default(string), string hostpci18 = default(string), string hostpci19 = default(string), string hostpci20 = default(string), string hostpci21 = default(string), string hostpci22 = default(string), string hostpci23 = default(string), string hostpci24 = default(string), string hostpci25 = default(string), string hostpci26 = default(string), string hostpci27 = default(string), string hostpci28 = default(string), string hostpci29 = default(string), string hotplug = default(string), string hugepages = default(string), string ide0 = default(string), string ide1 = default(string), string ide2 = default(string), string ide3 = default(string), string ide4 = default(string), string ide5 = default(string), string ide6 = default(string), string ide7 = default(string), string ide8 = default(string), string ide9 = default(string), string ide10 = default(string), string ide11 = default(string), string ide12 = default(string), string ide13 = default(string), string ide14 = default(string), string ide15 = default(string), string ide16 = default(string), string ide17 = default(string), string ide18 = default(string), string ide19 = default(string), string ide20 = default(string), string ide21 = default(string), string ide22 = default(string), string ide23 = default(string), string ide24 = default(string), string ide25 = default(string), string ide26 = default(string), string ide27 = default(string), string ide28 = default(string), string ide29 = default(string), string intelTdx = default(string), string ipconfig0 = default(string), string ipconfig1 = default(string), string ipconfig2 = default(string), string ipconfig3 = default(string), string ipconfig4 = default(string), string ipconfig5 = default(string), string ipconfig6 = default(string), string ipconfig7 = default(string), string ipconfig8 = default(string), string ipconfig9 = default(string), string ipconfig10 = default(string), string ipconfig11 = default(string), string ipconfig12 = default(string), string ipconfig13 = default(string), string ipconfig14 = default(string), string ipconfig15 = default(string), string ipconfig16 = default(string), string ipconfig17 = default(string), string ipconfig18 = default(string), string ipconfig19 = default(string), string ipconfig20 = default(string), string ipconfig21 = default(string), string ipconfig22 = default(string), string ipconfig23 = default(string), string ipconfig24 = default(string), string ipconfig25 = default(string), string ipconfig26 = default(string), string ipconfig27 = default(string), string ipconfig28 = default(string), string ipconfig29 = default(string), string ivshmem = default(string), bool keephugepages = default(bool), string keyboard = default(string), bool kvm = default(bool), bool localtime = default(bool), string varLock = default(string), string machine = default(string), string memory = default(string), decimal migrateDowntime = default(decimal), int migrateSpeed = default(int), string name = default(string), string nameserver = default(string), string net0 = default(string), string net1 = default(string), string net2 = default(string), string net3 = default(string), string net4 = default(string), string net5 = default(string), string net6 = default(string), string net7 = default(string), string net8 = default(string), string net9 = default(string), string net10 = default(string), string net11 = default(string), string net12 = default(string), string net13 = default(string), string net14 = default(string), string net15 = default(string), string net16 = default(string), string net17 = default(string), string net18 = default(string), string net19 = default(string), string net20 = default(string), string net21 = default(string), string net22 = default(string), string net23 = default(string), string net24 = default(string), string net25 = default(string), string net26 = default(string), string net27 = default(string), string net28 = default(string), string net29 = default(string), bool numa = default(bool), string numa0 = default(string), string numa1 = default(string), string numa2 = default(string), string numa3 = default(string), string numa4 = default(string), string numa5 = default(string), string numa6 = default(string), string numa7 = default(string), string numa8 = default(string), string numa9 = default(string), string numa10 = default(string), string numa11 = default(string), string numa12 = default(string), string numa13 = default(string), string numa14 = default(string), string numa15 = default(string), string numa16 = default(string), string numa17 = default(string), string numa18 = default(string), string numa19 = default(string), string numa20 = default(string), string numa21 = default(string), string numa22 = default(string), string numa23 = default(string), string numa24 = default(string), string numa25 = default(string), string numa26 = default(string), string numa27 = default(string), string numa28 = default(string), string numa29 = default(string), bool onboot = default(bool), string ostype = default(string), string parallel0 = default(string), string parallel1 = default(string), string parallel2 = default(string), string parallel3 = default(string), string parallel4 = default(string), string parallel5 = default(string), string parallel6 = default(string), string parallel7 = default(string), string parallel8 = default(string), string parallel9 = default(string), string parallel10 = default(string), string parallel11 = default(string), string parallel12 = default(string), string parallel13 = default(string), string parallel14 = default(string), string parallel15 = default(string), string parallel16 = default(string), string parallel17 = default(string), string parallel18 = default(string), string parallel19 = default(string), string parallel20 = default(string), string parallel21 = default(string), string parallel22 = default(string), string parallel23 = default(string), string parallel24 = default(string), string parallel25 = default(string), string parallel26 = default(string), string parallel27 = default(string), string parallel28 = default(string), string parallel29 = default(string), bool protection = default(bool), bool reboot = default(bool), string revert = default(string), string rng0 = default(string), string sata0 = default(string), string sata1 = default(string), string sata2 = default(string), string sata3 = default(string), string sata4 = default(string), string sata5 = default(string), string sata6 = default(string), string sata7 = default(string), string sata8 = default(string), string sata9 = default(string), string sata10 = default(string), string sata11 = default(string), string sata12 = default(string), string sata13 = default(string), string sata14 = default(string), string sata15 = default(string), string sata16 = default(string), string sata17 = default(string), string sata18 = default(string), string sata19 = default(string), string sata20 = default(string), string sata21 = default(string), string sata22 = default(string), string sata23 = default(string), string sata24 = default(string), string sata25 = default(string), string sata26 = default(string), string sata27 = default(string), string sata28 = default(string), string sata29 = default(string), string scsi0 = default(string), string scsi1 = default(string), string scsi2 = default(string), string scsi3 = default(string), string scsi4 = default(string), string scsi5 = default(string), string scsi6 = default(string), string scsi7 = default(string), string scsi8 = default(string), string scsi9 = default(string), string scsi10 = default(string), string scsi11 = default(string), string scsi12 = default(string), string scsi13 = default(string), string scsi14 = default(string), string scsi15 = default(string), string scsi16 = default(string), string scsi17 = default(string), string scsi18 = default(string), string scsi19 = default(string), string scsi20 = default(string), string scsi21 = default(string), string scsi22 = default(string), string scsi23 = default(string), string scsi24 = default(string), string scsi25 = default(string), string scsi26 = default(string), string scsi27 = default(string), string scsi28 = default(string), string scsi29 = default(string), string scsihw = default(string), string searchdomain = default(string), string serial0 = default(string), string serial1 = default(string), string serial2 = default(string), string serial3 = default(string), string serial4 = default(string), string serial5 = default(string), string serial6 = default(string), string serial7 = default(string), string serial8 = default(string), string serial9 = default(string), string serial10 = default(string), string serial11 = default(string), string serial12 = default(string), string serial13 = default(string), string serial14 = default(string), string serial15 = default(string), string serial16 = default(string), string serial17 = default(string), string serial18 = default(string), string serial19 = default(string), string serial20 = default(string), string serial21 = default(string), string serial22 = default(string), string serial23 = default(string), string serial24 = default(string), string serial25 = default(string), string serial26 = default(string), string serial27 = default(string), string serial28 = default(string), string serial29 = default(string), int shares = default(int), bool skiplock = default(bool), string smbios1 = default(string), int smp = default(int), int sockets = default(int), string spiceEnhancements = default(string), string sshkeys = default(string), string startdate = default(string), string startup = default(string), bool tablet = default(bool), string tags = default(string), bool tdf = default(bool), bool template = default(bool), string tpmstate0 = default(string), string unused0 = default(string), string unused1 = default(string), string unused2 = default(string), string unused3 = default(string), string unused4 = default(string), string unused5 = default(string), string unused6 = default(string), string unused7 = default(string), string unused8 = default(string), string unused9 = default(string), string unused10 = default(string), string unused11 = default(string), string unused12 = default(string), string unused13 = default(string), string unused14 = default(string), string unused15 = default(string), string unused16 = default(string), string unused17 = default(string), string unused18 = default(string), string unused19 = default(string), string unused20 = default(string), string unused21 = default(string), string unused22 = default(string), string unused23 = default(string), string unused24 = default(string), string unused25 = default(string), string unused26 = default(string), string unused27 = default(string), string unused28 = default(string), string unused29 = default(string), string usb0 = default(string), string usb1 = default(string), string usb2 = default(string), string usb3 = default(string), string usb4 = default(string), string usb5 = default(string), string usb6 = default(string), string usb7 = default(string), string usb8 = default(string), string usb9 = default(string), string usb10 = default(string), string usb11 = default(string), string usb12 = default(string), string usb13 = default(string), string usb14 = default(string), string usb15 = default(string), string usb16 = default(string), string usb17 = default(string), string usb18 = default(string), string usb19 = default(string), string usb20 = default(string), string usb21 = default(string), string usb22 = default(string), string usb23 = default(string), string usb24 = default(string), string usb25 = default(string), string usb26 = default(string), string usb27 = default(string), string usb28 = default(string), string usb29 = default(string), int vcpus = default(int), string vga = default(string), string virtio0 = default(string), string virtio1 = default(string), string virtio2 = default(string), string virtio3 = default(string), string virtio4 = default(string), string virtio5 = default(string), string virtio6 = default(string), string virtio7 = default(string), string virtio8 = default(string), string virtio9 = default(string), string virtio10 = default(string), string virtio11 = default(string), string virtio12 = default(string), string virtio13 = default(string), string virtio14 = default(string), string virtio15 = default(string), string virtio16 = default(string), string virtio17 = default(string), string virtio18 = default(string), string virtio19 = default(string), string virtio20 = default(string), string virtio21 = default(string), string virtio22 = default(string), string virtio23 = default(string), string virtio24 = default(string), string virtio25 = default(string), string virtio26 = default(string), string virtio27 = default(string), string virtio28 = default(string), string virtio29 = default(string), string virtiofs0 = default(string), string virtiofs1 = default(string), string virtiofs2 = default(string), string virtiofs3 = default(string), string virtiofs4 = default(string), string virtiofs5 = default(string), string virtiofs6 = default(string), string virtiofs7 = default(string), string virtiofs8 = default(string), string virtiofs9 = default(string), string virtiofs10 = default(string), string virtiofs11 = default(string), string virtiofs12 = default(string), string virtiofs13 = default(string), string virtiofs14 = default(string), string virtiofs15 = default(string), string virtiofs16 = default(string), string virtiofs17 = default(string), string virtiofs18 = default(string), string virtiofs19 = default(string), string virtiofs20 = default(string), string virtiofs21 = default(string), string virtiofs22 = default(string), string virtiofs23 = default(string), string virtiofs24 = default(string), string virtiofs25 = default(string), string virtiofs26 = default(string), string virtiofs27 = default(string), string virtiofs28 = default(string), string virtiofs29 = default(string), string vmgenid = default(string), string vmstatestorage = default(string), string watchdog = default(string)) + { + this.Acpi = acpi; + this.Affinity = affinity; + this.Agent = agent; + this.AllowKsm = allowKsm; + this.AmdSev = amdSev; + this.Arch = arch; + this.Args = args; + this.Audio0 = audio0; + this.Autostart = autostart; + this.Balloon = balloon; + this.Bios = bios; + this.Boot = boot; + this.Bootdisk = bootdisk; + this.Cdrom = cdrom; + this.Cicustom = cicustom; + this.Cipassword = cipassword; + this.Citype = citype; + this.Ciupgrade = ciupgrade; + this.Ciuser = ciuser; + this.Cores = cores; + this.Cpu = cpu; + this.Cpulimit = cpulimit; + this.Cpuunits = cpuunits; + this.Delete = delete; + this.Description = description; + this.Digest = digest; + this.Efidisk0 = efidisk0; + this.Force = force; + this.Freeze = freeze; + this.Hookscript = hookscript; + this.Hostpci0 = hostpci0; + this.Hostpci1 = hostpci1; + this.Hostpci2 = hostpci2; + this.Hostpci3 = hostpci3; + this.Hostpci4 = hostpci4; + this.Hostpci5 = hostpci5; + this.Hostpci6 = hostpci6; + this.Hostpci7 = hostpci7; + this.Hostpci8 = hostpci8; + this.Hostpci9 = hostpci9; + this.Hostpci10 = hostpci10; + this.Hostpci11 = hostpci11; + this.Hostpci12 = hostpci12; + this.Hostpci13 = hostpci13; + this.Hostpci14 = hostpci14; + this.Hostpci15 = hostpci15; + this.Hostpci16 = hostpci16; + this.Hostpci17 = hostpci17; + this.Hostpci18 = hostpci18; + this.Hostpci19 = hostpci19; + this.Hostpci20 = hostpci20; + this.Hostpci21 = hostpci21; + this.Hostpci22 = hostpci22; + this.Hostpci23 = hostpci23; + this.Hostpci24 = hostpci24; + this.Hostpci25 = hostpci25; + this.Hostpci26 = hostpci26; + this.Hostpci27 = hostpci27; + this.Hostpci28 = hostpci28; + this.Hostpci29 = hostpci29; + this.Hotplug = hotplug; + this.Hugepages = hugepages; + this.Ide0 = ide0; + this.Ide1 = ide1; + this.Ide2 = ide2; + this.Ide3 = ide3; + this.Ide4 = ide4; + this.Ide5 = ide5; + this.Ide6 = ide6; + this.Ide7 = ide7; + this.Ide8 = ide8; + this.Ide9 = ide9; + this.Ide10 = ide10; + this.Ide11 = ide11; + this.Ide12 = ide12; + this.Ide13 = ide13; + this.Ide14 = ide14; + this.Ide15 = ide15; + this.Ide16 = ide16; + this.Ide17 = ide17; + this.Ide18 = ide18; + this.Ide19 = ide19; + this.Ide20 = ide20; + this.Ide21 = ide21; + this.Ide22 = ide22; + this.Ide23 = ide23; + this.Ide24 = ide24; + this.Ide25 = ide25; + this.Ide26 = ide26; + this.Ide27 = ide27; + this.Ide28 = ide28; + this.Ide29 = ide29; + this.IntelTdx = intelTdx; + this.Ipconfig0 = ipconfig0; + this.Ipconfig1 = ipconfig1; + this.Ipconfig2 = ipconfig2; + this.Ipconfig3 = ipconfig3; + this.Ipconfig4 = ipconfig4; + this.Ipconfig5 = ipconfig5; + this.Ipconfig6 = ipconfig6; + this.Ipconfig7 = ipconfig7; + this.Ipconfig8 = ipconfig8; + this.Ipconfig9 = ipconfig9; + this.Ipconfig10 = ipconfig10; + this.Ipconfig11 = ipconfig11; + this.Ipconfig12 = ipconfig12; + this.Ipconfig13 = ipconfig13; + this.Ipconfig14 = ipconfig14; + this.Ipconfig15 = ipconfig15; + this.Ipconfig16 = ipconfig16; + this.Ipconfig17 = ipconfig17; + this.Ipconfig18 = ipconfig18; + this.Ipconfig19 = ipconfig19; + this.Ipconfig20 = ipconfig20; + this.Ipconfig21 = ipconfig21; + this.Ipconfig22 = ipconfig22; + this.Ipconfig23 = ipconfig23; + this.Ipconfig24 = ipconfig24; + this.Ipconfig25 = ipconfig25; + this.Ipconfig26 = ipconfig26; + this.Ipconfig27 = ipconfig27; + this.Ipconfig28 = ipconfig28; + this.Ipconfig29 = ipconfig29; + this.Ivshmem = ivshmem; + this.Keephugepages = keephugepages; + this.Keyboard = keyboard; + this.Kvm = kvm; + this.Localtime = localtime; + this.Lock = varLock; + this.Machine = machine; + this.Memory = memory; + this.MigrateDowntime = migrateDowntime; + this.MigrateSpeed = migrateSpeed; + this.Name = name; + this.Nameserver = nameserver; + this.Net0 = net0; + this.Net1 = net1; + this.Net2 = net2; + this.Net3 = net3; + this.Net4 = net4; + this.Net5 = net5; + this.Net6 = net6; + this.Net7 = net7; + this.Net8 = net8; + this.Net9 = net9; + this.Net10 = net10; + this.Net11 = net11; + this.Net12 = net12; + this.Net13 = net13; + this.Net14 = net14; + this.Net15 = net15; + this.Net16 = net16; + this.Net17 = net17; + this.Net18 = net18; + this.Net19 = net19; + this.Net20 = net20; + this.Net21 = net21; + this.Net22 = net22; + this.Net23 = net23; + this.Net24 = net24; + this.Net25 = net25; + this.Net26 = net26; + this.Net27 = net27; + this.Net28 = net28; + this.Net29 = net29; + this.Numa = numa; + this.Numa0 = numa0; + this.Numa1 = numa1; + this.Numa2 = numa2; + this.Numa3 = numa3; + this.Numa4 = numa4; + this.Numa5 = numa5; + this.Numa6 = numa6; + this.Numa7 = numa7; + this.Numa8 = numa8; + this.Numa9 = numa9; + this.Numa10 = numa10; + this.Numa11 = numa11; + this.Numa12 = numa12; + this.Numa13 = numa13; + this.Numa14 = numa14; + this.Numa15 = numa15; + this.Numa16 = numa16; + this.Numa17 = numa17; + this.Numa18 = numa18; + this.Numa19 = numa19; + this.Numa20 = numa20; + this.Numa21 = numa21; + this.Numa22 = numa22; + this.Numa23 = numa23; + this.Numa24 = numa24; + this.Numa25 = numa25; + this.Numa26 = numa26; + this.Numa27 = numa27; + this.Numa28 = numa28; + this.Numa29 = numa29; + this.Onboot = onboot; + this.Ostype = ostype; + this.Parallel0 = parallel0; + this.Parallel1 = parallel1; + this.Parallel2 = parallel2; + this.Parallel3 = parallel3; + this.Parallel4 = parallel4; + this.Parallel5 = parallel5; + this.Parallel6 = parallel6; + this.Parallel7 = parallel7; + this.Parallel8 = parallel8; + this.Parallel9 = parallel9; + this.Parallel10 = parallel10; + this.Parallel11 = parallel11; + this.Parallel12 = parallel12; + this.Parallel13 = parallel13; + this.Parallel14 = parallel14; + this.Parallel15 = parallel15; + this.Parallel16 = parallel16; + this.Parallel17 = parallel17; + this.Parallel18 = parallel18; + this.Parallel19 = parallel19; + this.Parallel20 = parallel20; + this.Parallel21 = parallel21; + this.Parallel22 = parallel22; + this.Parallel23 = parallel23; + this.Parallel24 = parallel24; + this.Parallel25 = parallel25; + this.Parallel26 = parallel26; + this.Parallel27 = parallel27; + this.Parallel28 = parallel28; + this.Parallel29 = parallel29; + this.Protection = protection; + this.Reboot = reboot; + this.Revert = revert; + this.Rng0 = rng0; + this.Sata0 = sata0; + this.Sata1 = sata1; + this.Sata2 = sata2; + this.Sata3 = sata3; + this.Sata4 = sata4; + this.Sata5 = sata5; + this.Sata6 = sata6; + this.Sata7 = sata7; + this.Sata8 = sata8; + this.Sata9 = sata9; + this.Sata10 = sata10; + this.Sata11 = sata11; + this.Sata12 = sata12; + this.Sata13 = sata13; + this.Sata14 = sata14; + this.Sata15 = sata15; + this.Sata16 = sata16; + this.Sata17 = sata17; + this.Sata18 = sata18; + this.Sata19 = sata19; + this.Sata20 = sata20; + this.Sata21 = sata21; + this.Sata22 = sata22; + this.Sata23 = sata23; + this.Sata24 = sata24; + this.Sata25 = sata25; + this.Sata26 = sata26; + this.Sata27 = sata27; + this.Sata28 = sata28; + this.Sata29 = sata29; + this.Scsi0 = scsi0; + this.Scsi1 = scsi1; + this.Scsi2 = scsi2; + this.Scsi3 = scsi3; + this.Scsi4 = scsi4; + this.Scsi5 = scsi5; + this.Scsi6 = scsi6; + this.Scsi7 = scsi7; + this.Scsi8 = scsi8; + this.Scsi9 = scsi9; + this.Scsi10 = scsi10; + this.Scsi11 = scsi11; + this.Scsi12 = scsi12; + this.Scsi13 = scsi13; + this.Scsi14 = scsi14; + this.Scsi15 = scsi15; + this.Scsi16 = scsi16; + this.Scsi17 = scsi17; + this.Scsi18 = scsi18; + this.Scsi19 = scsi19; + this.Scsi20 = scsi20; + this.Scsi21 = scsi21; + this.Scsi22 = scsi22; + this.Scsi23 = scsi23; + this.Scsi24 = scsi24; + this.Scsi25 = scsi25; + this.Scsi26 = scsi26; + this.Scsi27 = scsi27; + this.Scsi28 = scsi28; + this.Scsi29 = scsi29; + this.Scsihw = scsihw; + this.Searchdomain = searchdomain; + this.Serial0 = serial0; + this.Serial1 = serial1; + this.Serial2 = serial2; + this.Serial3 = serial3; + this.Serial4 = serial4; + this.Serial5 = serial5; + this.Serial6 = serial6; + this.Serial7 = serial7; + this.Serial8 = serial8; + this.Serial9 = serial9; + this.Serial10 = serial10; + this.Serial11 = serial11; + this.Serial12 = serial12; + this.Serial13 = serial13; + this.Serial14 = serial14; + this.Serial15 = serial15; + this.Serial16 = serial16; + this.Serial17 = serial17; + this.Serial18 = serial18; + this.Serial19 = serial19; + this.Serial20 = serial20; + this.Serial21 = serial21; + this.Serial22 = serial22; + this.Serial23 = serial23; + this.Serial24 = serial24; + this.Serial25 = serial25; + this.Serial26 = serial26; + this.Serial27 = serial27; + this.Serial28 = serial28; + this.Serial29 = serial29; + this.Shares = shares; + this.Skiplock = skiplock; + this.Smbios1 = smbios1; + this.Smp = smp; + this.Sockets = sockets; + this.SpiceEnhancements = spiceEnhancements; + this.Sshkeys = sshkeys; + this.Startdate = startdate; + this.Startup = startup; + this.Tablet = tablet; + this.Tags = tags; + this.Tdf = tdf; + this.Template = template; + this.Tpmstate0 = tpmstate0; + this.Unused0 = unused0; + this.Unused1 = unused1; + this.Unused2 = unused2; + this.Unused3 = unused3; + this.Unused4 = unused4; + this.Unused5 = unused5; + this.Unused6 = unused6; + this.Unused7 = unused7; + this.Unused8 = unused8; + this.Unused9 = unused9; + this.Unused10 = unused10; + this.Unused11 = unused11; + this.Unused12 = unused12; + this.Unused13 = unused13; + this.Unused14 = unused14; + this.Unused15 = unused15; + this.Unused16 = unused16; + this.Unused17 = unused17; + this.Unused18 = unused18; + this.Unused19 = unused19; + this.Unused20 = unused20; + this.Unused21 = unused21; + this.Unused22 = unused22; + this.Unused23 = unused23; + this.Unused24 = unused24; + this.Unused25 = unused25; + this.Unused26 = unused26; + this.Unused27 = unused27; + this.Unused28 = unused28; + this.Unused29 = unused29; + this.Usb0 = usb0; + this.Usb1 = usb1; + this.Usb2 = usb2; + this.Usb3 = usb3; + this.Usb4 = usb4; + this.Usb5 = usb5; + this.Usb6 = usb6; + this.Usb7 = usb7; + this.Usb8 = usb8; + this.Usb9 = usb9; + this.Usb10 = usb10; + this.Usb11 = usb11; + this.Usb12 = usb12; + this.Usb13 = usb13; + this.Usb14 = usb14; + this.Usb15 = usb15; + this.Usb16 = usb16; + this.Usb17 = usb17; + this.Usb18 = usb18; + this.Usb19 = usb19; + this.Usb20 = usb20; + this.Usb21 = usb21; + this.Usb22 = usb22; + this.Usb23 = usb23; + this.Usb24 = usb24; + this.Usb25 = usb25; + this.Usb26 = usb26; + this.Usb27 = usb27; + this.Usb28 = usb28; + this.Usb29 = usb29; + this.Vcpus = vcpus; + this.Vga = vga; + this.Virtio0 = virtio0; + this.Virtio1 = virtio1; + this.Virtio2 = virtio2; + this.Virtio3 = virtio3; + this.Virtio4 = virtio4; + this.Virtio5 = virtio5; + this.Virtio6 = virtio6; + this.Virtio7 = virtio7; + this.Virtio8 = virtio8; + this.Virtio9 = virtio9; + this.Virtio10 = virtio10; + this.Virtio11 = virtio11; + this.Virtio12 = virtio12; + this.Virtio13 = virtio13; + this.Virtio14 = virtio14; + this.Virtio15 = virtio15; + this.Virtio16 = virtio16; + this.Virtio17 = virtio17; + this.Virtio18 = virtio18; + this.Virtio19 = virtio19; + this.Virtio20 = virtio20; + this.Virtio21 = virtio21; + this.Virtio22 = virtio22; + this.Virtio23 = virtio23; + this.Virtio24 = virtio24; + this.Virtio25 = virtio25; + this.Virtio26 = virtio26; + this.Virtio27 = virtio27; + this.Virtio28 = virtio28; + this.Virtio29 = virtio29; + this.Virtiofs0 = virtiofs0; + this.Virtiofs1 = virtiofs1; + this.Virtiofs2 = virtiofs2; + this.Virtiofs3 = virtiofs3; + this.Virtiofs4 = virtiofs4; + this.Virtiofs5 = virtiofs5; + this.Virtiofs6 = virtiofs6; + this.Virtiofs7 = virtiofs7; + this.Virtiofs8 = virtiofs8; + this.Virtiofs9 = virtiofs9; + this.Virtiofs10 = virtiofs10; + this.Virtiofs11 = virtiofs11; + this.Virtiofs12 = virtiofs12; + this.Virtiofs13 = virtiofs13; + this.Virtiofs14 = virtiofs14; + this.Virtiofs15 = virtiofs15; + this.Virtiofs16 = virtiofs16; + this.Virtiofs17 = virtiofs17; + this.Virtiofs18 = virtiofs18; + this.Virtiofs19 = virtiofs19; + this.Virtiofs20 = virtiofs20; + this.Virtiofs21 = virtiofs21; + this.Virtiofs22 = virtiofs22; + this.Virtiofs23 = virtiofs23; + this.Virtiofs24 = virtiofs24; + this.Virtiofs25 = virtiofs25; + this.Virtiofs26 = virtiofs26; + this.Virtiofs27 = virtiofs27; + this.Virtiofs28 = virtiofs28; + this.Virtiofs29 = virtiofs29; + this.Vmgenid = vmgenid; + this.Vmstatestorage = vmstatestorage; + this.Watchdog = watchdog; + } + + /// + /// Gets or Sets Acpi + /// + [DataMember(Name = "acpi", EmitDefaultValue = true)] + public bool Acpi { get; set; } + + /// + /// Gets or Sets Affinity + /// + [DataMember(Name = "affinity", EmitDefaultValue = false)] + public string Affinity { get; set; } + + /// + /// Gets or Sets Agent + /// + [DataMember(Name = "agent", EmitDefaultValue = false)] + public string Agent { get; set; } + + /// + /// Gets or Sets AllowKsm + /// + [DataMember(Name = "allow-ksm", EmitDefaultValue = true)] + public bool AllowKsm { get; set; } + + /// + /// Gets or Sets AmdSev + /// + [DataMember(Name = "amd-sev", EmitDefaultValue = false)] + public string AmdSev { get; set; } + + /// + /// Gets or Sets Arch + /// + [DataMember(Name = "arch", EmitDefaultValue = false)] + public string Arch { get; set; } + + /// + /// Gets or Sets Args + /// + [DataMember(Name = "args", EmitDefaultValue = false)] + public string Args { get; set; } + + /// + /// Gets or Sets Audio0 + /// + [DataMember(Name = "audio0", EmitDefaultValue = false)] + public string Audio0 { get; set; } + + /// + /// Gets or Sets Autostart + /// + [DataMember(Name = "autostart", EmitDefaultValue = true)] + public bool Autostart { get; set; } + + /// + /// Gets or Sets Balloon + /// + [DataMember(Name = "balloon", EmitDefaultValue = false)] + public int Balloon { get; set; } + + /// + /// Gets or Sets Bios + /// + [DataMember(Name = "bios", EmitDefaultValue = false)] + public string Bios { get; set; } + + /// + /// Gets or Sets Boot + /// + [DataMember(Name = "boot", EmitDefaultValue = false)] + public string Boot { get; set; } + + /// + /// Gets or Sets Bootdisk + /// + [DataMember(Name = "bootdisk", EmitDefaultValue = false)] + public string Bootdisk { get; set; } + + /// + /// Gets or Sets Cdrom + /// + [DataMember(Name = "cdrom", EmitDefaultValue = false)] + public string Cdrom { get; set; } + + /// + /// Gets or Sets Cicustom + /// + [DataMember(Name = "cicustom", EmitDefaultValue = false)] + public string Cicustom { get; set; } + + /// + /// Gets or Sets Cipassword + /// + [DataMember(Name = "cipassword", EmitDefaultValue = false)] + public string Cipassword { get; set; } + + /// + /// Gets or Sets Citype + /// + [DataMember(Name = "citype", EmitDefaultValue = false)] + public string Citype { get; set; } + + /// + /// Gets or Sets Ciupgrade + /// + [DataMember(Name = "ciupgrade", EmitDefaultValue = true)] + public bool Ciupgrade { get; set; } + + /// + /// Gets or Sets Ciuser + /// + [DataMember(Name = "ciuser", EmitDefaultValue = false)] + public string Ciuser { get; set; } + + /// + /// Gets or Sets Cores + /// + [DataMember(Name = "cores", EmitDefaultValue = false)] + public int Cores { get; set; } + + /// + /// Gets or Sets Cpu + /// + [DataMember(Name = "cpu", EmitDefaultValue = false)] + public string Cpu { get; set; } + + /// + /// Gets or Sets Cpulimit + /// + [DataMember(Name = "cpulimit", EmitDefaultValue = false)] + public decimal Cpulimit { get; set; } + + /// + /// Gets or Sets Cpuunits + /// + [DataMember(Name = "cpuunits", EmitDefaultValue = false)] + public int Cpuunits { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Efidisk0 + /// + [DataMember(Name = "efidisk0", EmitDefaultValue = false)] + public string Efidisk0 { get; set; } + + /// + /// Gets or Sets Force + /// + [DataMember(Name = "force", EmitDefaultValue = true)] + public bool Force { get; set; } + + /// + /// Gets or Sets Freeze + /// + [DataMember(Name = "freeze", EmitDefaultValue = true)] + public bool Freeze { get; set; } + + /// + /// Gets or Sets Hookscript + /// + [DataMember(Name = "hookscript", EmitDefaultValue = false)] + public string Hookscript { get; set; } + + /// + /// Gets or Sets Hostpci0 + /// + [DataMember(Name = "hostpci0", EmitDefaultValue = false)] + public string Hostpci0 { get; set; } + + /// + /// Gets or Sets Hostpci1 + /// + [DataMember(Name = "hostpci1", EmitDefaultValue = false)] + public string Hostpci1 { get; set; } + + /// + /// Gets or Sets Hostpci2 + /// + [DataMember(Name = "hostpci2", EmitDefaultValue = false)] + public string Hostpci2 { get; set; } + + /// + /// Gets or Sets Hostpci3 + /// + [DataMember(Name = "hostpci3", EmitDefaultValue = false)] + public string Hostpci3 { get; set; } + + /// + /// Gets or Sets Hostpci4 + /// + [DataMember(Name = "hostpci4", EmitDefaultValue = false)] + public string Hostpci4 { get; set; } + + /// + /// Gets or Sets Hostpci5 + /// + [DataMember(Name = "hostpci5", EmitDefaultValue = false)] + public string Hostpci5 { get; set; } + + /// + /// Gets or Sets Hostpci6 + /// + [DataMember(Name = "hostpci6", EmitDefaultValue = false)] + public string Hostpci6 { get; set; } + + /// + /// Gets or Sets Hostpci7 + /// + [DataMember(Name = "hostpci7", EmitDefaultValue = false)] + public string Hostpci7 { get; set; } + + /// + /// Gets or Sets Hostpci8 + /// + [DataMember(Name = "hostpci8", EmitDefaultValue = false)] + public string Hostpci8 { get; set; } + + /// + /// Gets or Sets Hostpci9 + /// + [DataMember(Name = "hostpci9", EmitDefaultValue = false)] + public string Hostpci9 { get; set; } + + /// + /// Gets or Sets Hostpci10 + /// + [DataMember(Name = "hostpci10", EmitDefaultValue = false)] + public string Hostpci10 { get; set; } + + /// + /// Gets or Sets Hostpci11 + /// + [DataMember(Name = "hostpci11", EmitDefaultValue = false)] + public string Hostpci11 { get; set; } + + /// + /// Gets or Sets Hostpci12 + /// + [DataMember(Name = "hostpci12", EmitDefaultValue = false)] + public string Hostpci12 { get; set; } + + /// + /// Gets or Sets Hostpci13 + /// + [DataMember(Name = "hostpci13", EmitDefaultValue = false)] + public string Hostpci13 { get; set; } + + /// + /// Gets or Sets Hostpci14 + /// + [DataMember(Name = "hostpci14", EmitDefaultValue = false)] + public string Hostpci14 { get; set; } + + /// + /// Gets or Sets Hostpci15 + /// + [DataMember(Name = "hostpci15", EmitDefaultValue = false)] + public string Hostpci15 { get; set; } + + /// + /// Gets or Sets Hostpci16 + /// + [DataMember(Name = "hostpci16", EmitDefaultValue = false)] + public string Hostpci16 { get; set; } + + /// + /// Gets or Sets Hostpci17 + /// + [DataMember(Name = "hostpci17", EmitDefaultValue = false)] + public string Hostpci17 { get; set; } + + /// + /// Gets or Sets Hostpci18 + /// + [DataMember(Name = "hostpci18", EmitDefaultValue = false)] + public string Hostpci18 { get; set; } + + /// + /// Gets or Sets Hostpci19 + /// + [DataMember(Name = "hostpci19", EmitDefaultValue = false)] + public string Hostpci19 { get; set; } + + /// + /// Gets or Sets Hostpci20 + /// + [DataMember(Name = "hostpci20", EmitDefaultValue = false)] + public string Hostpci20 { get; set; } + + /// + /// Gets or Sets Hostpci21 + /// + [DataMember(Name = "hostpci21", EmitDefaultValue = false)] + public string Hostpci21 { get; set; } + + /// + /// Gets or Sets Hostpci22 + /// + [DataMember(Name = "hostpci22", EmitDefaultValue = false)] + public string Hostpci22 { get; set; } + + /// + /// Gets or Sets Hostpci23 + /// + [DataMember(Name = "hostpci23", EmitDefaultValue = false)] + public string Hostpci23 { get; set; } + + /// + /// Gets or Sets Hostpci24 + /// + [DataMember(Name = "hostpci24", EmitDefaultValue = false)] + public string Hostpci24 { get; set; } + + /// + /// Gets or Sets Hostpci25 + /// + [DataMember(Name = "hostpci25", EmitDefaultValue = false)] + public string Hostpci25 { get; set; } + + /// + /// Gets or Sets Hostpci26 + /// + [DataMember(Name = "hostpci26", EmitDefaultValue = false)] + public string Hostpci26 { get; set; } + + /// + /// Gets or Sets Hostpci27 + /// + [DataMember(Name = "hostpci27", EmitDefaultValue = false)] + public string Hostpci27 { get; set; } + + /// + /// Gets or Sets Hostpci28 + /// + [DataMember(Name = "hostpci28", EmitDefaultValue = false)] + public string Hostpci28 { get; set; } + + /// + /// Gets or Sets Hostpci29 + /// + [DataMember(Name = "hostpci29", EmitDefaultValue = false)] + public string Hostpci29 { get; set; } + + /// + /// Gets or Sets Hotplug + /// + [DataMember(Name = "hotplug", EmitDefaultValue = false)] + public string Hotplug { get; set; } + + /// + /// Gets or Sets Hugepages + /// + [DataMember(Name = "hugepages", EmitDefaultValue = false)] + public string Hugepages { get; set; } + + /// + /// Gets or Sets Ide0 + /// + [DataMember(Name = "ide0", EmitDefaultValue = false)] + public string Ide0 { get; set; } + + /// + /// Gets or Sets Ide1 + /// + [DataMember(Name = "ide1", EmitDefaultValue = false)] + public string Ide1 { get; set; } + + /// + /// Gets or Sets Ide2 + /// + [DataMember(Name = "ide2", EmitDefaultValue = false)] + public string Ide2 { get; set; } + + /// + /// Gets or Sets Ide3 + /// + [DataMember(Name = "ide3", EmitDefaultValue = false)] + public string Ide3 { get; set; } + + /// + /// Gets or Sets Ide4 + /// + [DataMember(Name = "ide4", EmitDefaultValue = false)] + public string Ide4 { get; set; } + + /// + /// Gets or Sets Ide5 + /// + [DataMember(Name = "ide5", EmitDefaultValue = false)] + public string Ide5 { get; set; } + + /// + /// Gets or Sets Ide6 + /// + [DataMember(Name = "ide6", EmitDefaultValue = false)] + public string Ide6 { get; set; } + + /// + /// Gets or Sets Ide7 + /// + [DataMember(Name = "ide7", EmitDefaultValue = false)] + public string Ide7 { get; set; } + + /// + /// Gets or Sets Ide8 + /// + [DataMember(Name = "ide8", EmitDefaultValue = false)] + public string Ide8 { get; set; } + + /// + /// Gets or Sets Ide9 + /// + [DataMember(Name = "ide9", EmitDefaultValue = false)] + public string Ide9 { get; set; } + + /// + /// Gets or Sets Ide10 + /// + [DataMember(Name = "ide10", EmitDefaultValue = false)] + public string Ide10 { get; set; } + + /// + /// Gets or Sets Ide11 + /// + [DataMember(Name = "ide11", EmitDefaultValue = false)] + public string Ide11 { get; set; } + + /// + /// Gets or Sets Ide12 + /// + [DataMember(Name = "ide12", EmitDefaultValue = false)] + public string Ide12 { get; set; } + + /// + /// Gets or Sets Ide13 + /// + [DataMember(Name = "ide13", EmitDefaultValue = false)] + public string Ide13 { get; set; } + + /// + /// Gets or Sets Ide14 + /// + [DataMember(Name = "ide14", EmitDefaultValue = false)] + public string Ide14 { get; set; } + + /// + /// Gets or Sets Ide15 + /// + [DataMember(Name = "ide15", EmitDefaultValue = false)] + public string Ide15 { get; set; } + + /// + /// Gets or Sets Ide16 + /// + [DataMember(Name = "ide16", EmitDefaultValue = false)] + public string Ide16 { get; set; } + + /// + /// Gets or Sets Ide17 + /// + [DataMember(Name = "ide17", EmitDefaultValue = false)] + public string Ide17 { get; set; } + + /// + /// Gets or Sets Ide18 + /// + [DataMember(Name = "ide18", EmitDefaultValue = false)] + public string Ide18 { get; set; } + + /// + /// Gets or Sets Ide19 + /// + [DataMember(Name = "ide19", EmitDefaultValue = false)] + public string Ide19 { get; set; } + + /// + /// Gets or Sets Ide20 + /// + [DataMember(Name = "ide20", EmitDefaultValue = false)] + public string Ide20 { get; set; } + + /// + /// Gets or Sets Ide21 + /// + [DataMember(Name = "ide21", EmitDefaultValue = false)] + public string Ide21 { get; set; } + + /// + /// Gets or Sets Ide22 + /// + [DataMember(Name = "ide22", EmitDefaultValue = false)] + public string Ide22 { get; set; } + + /// + /// Gets or Sets Ide23 + /// + [DataMember(Name = "ide23", EmitDefaultValue = false)] + public string Ide23 { get; set; } + + /// + /// Gets or Sets Ide24 + /// + [DataMember(Name = "ide24", EmitDefaultValue = false)] + public string Ide24 { get; set; } + + /// + /// Gets or Sets Ide25 + /// + [DataMember(Name = "ide25", EmitDefaultValue = false)] + public string Ide25 { get; set; } + + /// + /// Gets or Sets Ide26 + /// + [DataMember(Name = "ide26", EmitDefaultValue = false)] + public string Ide26 { get; set; } + + /// + /// Gets or Sets Ide27 + /// + [DataMember(Name = "ide27", EmitDefaultValue = false)] + public string Ide27 { get; set; } + + /// + /// Gets or Sets Ide28 + /// + [DataMember(Name = "ide28", EmitDefaultValue = false)] + public string Ide28 { get; set; } + + /// + /// Gets or Sets Ide29 + /// + [DataMember(Name = "ide29", EmitDefaultValue = false)] + public string Ide29 { get; set; } + + /// + /// Gets or Sets IntelTdx + /// + [DataMember(Name = "intel-tdx", EmitDefaultValue = false)] + public string IntelTdx { get; set; } + + /// + /// Gets or Sets Ipconfig0 + /// + [DataMember(Name = "ipconfig0", EmitDefaultValue = false)] + public string Ipconfig0 { get; set; } + + /// + /// Gets or Sets Ipconfig1 + /// + [DataMember(Name = "ipconfig1", EmitDefaultValue = false)] + public string Ipconfig1 { get; set; } + + /// + /// Gets or Sets Ipconfig2 + /// + [DataMember(Name = "ipconfig2", EmitDefaultValue = false)] + public string Ipconfig2 { get; set; } + + /// + /// Gets or Sets Ipconfig3 + /// + [DataMember(Name = "ipconfig3", EmitDefaultValue = false)] + public string Ipconfig3 { get; set; } + + /// + /// Gets or Sets Ipconfig4 + /// + [DataMember(Name = "ipconfig4", EmitDefaultValue = false)] + public string Ipconfig4 { get; set; } + + /// + /// Gets or Sets Ipconfig5 + /// + [DataMember(Name = "ipconfig5", EmitDefaultValue = false)] + public string Ipconfig5 { get; set; } + + /// + /// Gets or Sets Ipconfig6 + /// + [DataMember(Name = "ipconfig6", EmitDefaultValue = false)] + public string Ipconfig6 { get; set; } + + /// + /// Gets or Sets Ipconfig7 + /// + [DataMember(Name = "ipconfig7", EmitDefaultValue = false)] + public string Ipconfig7 { get; set; } + + /// + /// Gets or Sets Ipconfig8 + /// + [DataMember(Name = "ipconfig8", EmitDefaultValue = false)] + public string Ipconfig8 { get; set; } + + /// + /// Gets or Sets Ipconfig9 + /// + [DataMember(Name = "ipconfig9", EmitDefaultValue = false)] + public string Ipconfig9 { get; set; } + + /// + /// Gets or Sets Ipconfig10 + /// + [DataMember(Name = "ipconfig10", EmitDefaultValue = false)] + public string Ipconfig10 { get; set; } + + /// + /// Gets or Sets Ipconfig11 + /// + [DataMember(Name = "ipconfig11", EmitDefaultValue = false)] + public string Ipconfig11 { get; set; } + + /// + /// Gets or Sets Ipconfig12 + /// + [DataMember(Name = "ipconfig12", EmitDefaultValue = false)] + public string Ipconfig12 { get; set; } + + /// + /// Gets or Sets Ipconfig13 + /// + [DataMember(Name = "ipconfig13", EmitDefaultValue = false)] + public string Ipconfig13 { get; set; } + + /// + /// Gets or Sets Ipconfig14 + /// + [DataMember(Name = "ipconfig14", EmitDefaultValue = false)] + public string Ipconfig14 { get; set; } + + /// + /// Gets or Sets Ipconfig15 + /// + [DataMember(Name = "ipconfig15", EmitDefaultValue = false)] + public string Ipconfig15 { get; set; } + + /// + /// Gets or Sets Ipconfig16 + /// + [DataMember(Name = "ipconfig16", EmitDefaultValue = false)] + public string Ipconfig16 { get; set; } + + /// + /// Gets or Sets Ipconfig17 + /// + [DataMember(Name = "ipconfig17", EmitDefaultValue = false)] + public string Ipconfig17 { get; set; } + + /// + /// Gets or Sets Ipconfig18 + /// + [DataMember(Name = "ipconfig18", EmitDefaultValue = false)] + public string Ipconfig18 { get; set; } + + /// + /// Gets or Sets Ipconfig19 + /// + [DataMember(Name = "ipconfig19", EmitDefaultValue = false)] + public string Ipconfig19 { get; set; } + + /// + /// Gets or Sets Ipconfig20 + /// + [DataMember(Name = "ipconfig20", EmitDefaultValue = false)] + public string Ipconfig20 { get; set; } + + /// + /// Gets or Sets Ipconfig21 + /// + [DataMember(Name = "ipconfig21", EmitDefaultValue = false)] + public string Ipconfig21 { get; set; } + + /// + /// Gets or Sets Ipconfig22 + /// + [DataMember(Name = "ipconfig22", EmitDefaultValue = false)] + public string Ipconfig22 { get; set; } + + /// + /// Gets or Sets Ipconfig23 + /// + [DataMember(Name = "ipconfig23", EmitDefaultValue = false)] + public string Ipconfig23 { get; set; } + + /// + /// Gets or Sets Ipconfig24 + /// + [DataMember(Name = "ipconfig24", EmitDefaultValue = false)] + public string Ipconfig24 { get; set; } + + /// + /// Gets or Sets Ipconfig25 + /// + [DataMember(Name = "ipconfig25", EmitDefaultValue = false)] + public string Ipconfig25 { get; set; } + + /// + /// Gets or Sets Ipconfig26 + /// + [DataMember(Name = "ipconfig26", EmitDefaultValue = false)] + public string Ipconfig26 { get; set; } + + /// + /// Gets or Sets Ipconfig27 + /// + [DataMember(Name = "ipconfig27", EmitDefaultValue = false)] + public string Ipconfig27 { get; set; } + + /// + /// Gets or Sets Ipconfig28 + /// + [DataMember(Name = "ipconfig28", EmitDefaultValue = false)] + public string Ipconfig28 { get; set; } + + /// + /// Gets or Sets Ipconfig29 + /// + [DataMember(Name = "ipconfig29", EmitDefaultValue = false)] + public string Ipconfig29 { get; set; } + + /// + /// Gets or Sets Ivshmem + /// + [DataMember(Name = "ivshmem", EmitDefaultValue = false)] + public string Ivshmem { get; set; } + + /// + /// Gets or Sets Keephugepages + /// + [DataMember(Name = "keephugepages", EmitDefaultValue = true)] + public bool Keephugepages { get; set; } + + /// + /// Gets or Sets Keyboard + /// + [DataMember(Name = "keyboard", EmitDefaultValue = false)] + public string Keyboard { get; set; } + + /// + /// Gets or Sets Kvm + /// + [DataMember(Name = "kvm", EmitDefaultValue = true)] + public bool Kvm { get; set; } + + /// + /// Gets or Sets Localtime + /// + [DataMember(Name = "localtime", EmitDefaultValue = true)] + public bool Localtime { get; set; } + + /// + /// Gets or Sets Lock + /// + [DataMember(Name = "lock", EmitDefaultValue = false)] + public string Lock { get; set; } + + /// + /// Gets or Sets Machine + /// + [DataMember(Name = "machine", EmitDefaultValue = false)] + public string Machine { get; set; } + + /// + /// Gets or Sets Memory + /// + [DataMember(Name = "memory", EmitDefaultValue = false)] + public string Memory { get; set; } + + /// + /// Gets or Sets MigrateDowntime + /// + [DataMember(Name = "migrate_downtime", EmitDefaultValue = false)] + public decimal MigrateDowntime { get; set; } + + /// + /// Gets or Sets MigrateSpeed + /// + [DataMember(Name = "migrate_speed", EmitDefaultValue = false)] + public int MigrateSpeed { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Nameserver + /// + [DataMember(Name = "nameserver", EmitDefaultValue = false)] + public string Nameserver { get; set; } + + /// + /// Gets or Sets Net0 + /// + [DataMember(Name = "net0", EmitDefaultValue = false)] + public string Net0 { get; set; } + + /// + /// Gets or Sets Net1 + /// + [DataMember(Name = "net1", EmitDefaultValue = false)] + public string Net1 { get; set; } + + /// + /// Gets or Sets Net2 + /// + [DataMember(Name = "net2", EmitDefaultValue = false)] + public string Net2 { get; set; } + + /// + /// Gets or Sets Net3 + /// + [DataMember(Name = "net3", EmitDefaultValue = false)] + public string Net3 { get; set; } + + /// + /// Gets or Sets Net4 + /// + [DataMember(Name = "net4", EmitDefaultValue = false)] + public string Net4 { get; set; } + + /// + /// Gets or Sets Net5 + /// + [DataMember(Name = "net5", EmitDefaultValue = false)] + public string Net5 { get; set; } + + /// + /// Gets or Sets Net6 + /// + [DataMember(Name = "net6", EmitDefaultValue = false)] + public string Net6 { get; set; } + + /// + /// Gets or Sets Net7 + /// + [DataMember(Name = "net7", EmitDefaultValue = false)] + public string Net7 { get; set; } + + /// + /// Gets or Sets Net8 + /// + [DataMember(Name = "net8", EmitDefaultValue = false)] + public string Net8 { get; set; } + + /// + /// Gets or Sets Net9 + /// + [DataMember(Name = "net9", EmitDefaultValue = false)] + public string Net9 { get; set; } + + /// + /// Gets or Sets Net10 + /// + [DataMember(Name = "net10", EmitDefaultValue = false)] + public string Net10 { get; set; } + + /// + /// Gets or Sets Net11 + /// + [DataMember(Name = "net11", EmitDefaultValue = false)] + public string Net11 { get; set; } + + /// + /// Gets or Sets Net12 + /// + [DataMember(Name = "net12", EmitDefaultValue = false)] + public string Net12 { get; set; } + + /// + /// Gets or Sets Net13 + /// + [DataMember(Name = "net13", EmitDefaultValue = false)] + public string Net13 { get; set; } + + /// + /// Gets or Sets Net14 + /// + [DataMember(Name = "net14", EmitDefaultValue = false)] + public string Net14 { get; set; } + + /// + /// Gets or Sets Net15 + /// + [DataMember(Name = "net15", EmitDefaultValue = false)] + public string Net15 { get; set; } + + /// + /// Gets or Sets Net16 + /// + [DataMember(Name = "net16", EmitDefaultValue = false)] + public string Net16 { get; set; } + + /// + /// Gets or Sets Net17 + /// + [DataMember(Name = "net17", EmitDefaultValue = false)] + public string Net17 { get; set; } + + /// + /// Gets or Sets Net18 + /// + [DataMember(Name = "net18", EmitDefaultValue = false)] + public string Net18 { get; set; } + + /// + /// Gets or Sets Net19 + /// + [DataMember(Name = "net19", EmitDefaultValue = false)] + public string Net19 { get; set; } + + /// + /// Gets or Sets Net20 + /// + [DataMember(Name = "net20", EmitDefaultValue = false)] + public string Net20 { get; set; } + + /// + /// Gets or Sets Net21 + /// + [DataMember(Name = "net21", EmitDefaultValue = false)] + public string Net21 { get; set; } + + /// + /// Gets or Sets Net22 + /// + [DataMember(Name = "net22", EmitDefaultValue = false)] + public string Net22 { get; set; } + + /// + /// Gets or Sets Net23 + /// + [DataMember(Name = "net23", EmitDefaultValue = false)] + public string Net23 { get; set; } + + /// + /// Gets or Sets Net24 + /// + [DataMember(Name = "net24", EmitDefaultValue = false)] + public string Net24 { get; set; } + + /// + /// Gets or Sets Net25 + /// + [DataMember(Name = "net25", EmitDefaultValue = false)] + public string Net25 { get; set; } + + /// + /// Gets or Sets Net26 + /// + [DataMember(Name = "net26", EmitDefaultValue = false)] + public string Net26 { get; set; } + + /// + /// Gets or Sets Net27 + /// + [DataMember(Name = "net27", EmitDefaultValue = false)] + public string Net27 { get; set; } + + /// + /// Gets or Sets Net28 + /// + [DataMember(Name = "net28", EmitDefaultValue = false)] + public string Net28 { get; set; } + + /// + /// Gets or Sets Net29 + /// + [DataMember(Name = "net29", EmitDefaultValue = false)] + public string Net29 { get; set; } + + /// + /// Gets or Sets Numa + /// + [DataMember(Name = "numa", EmitDefaultValue = true)] + public bool Numa { get; set; } + + /// + /// Gets or Sets Numa0 + /// + [DataMember(Name = "numa0", EmitDefaultValue = false)] + public string Numa0 { get; set; } + + /// + /// Gets or Sets Numa1 + /// + [DataMember(Name = "numa1", EmitDefaultValue = false)] + public string Numa1 { get; set; } + + /// + /// Gets or Sets Numa2 + /// + [DataMember(Name = "numa2", EmitDefaultValue = false)] + public string Numa2 { get; set; } + + /// + /// Gets or Sets Numa3 + /// + [DataMember(Name = "numa3", EmitDefaultValue = false)] + public string Numa3 { get; set; } + + /// + /// Gets or Sets Numa4 + /// + [DataMember(Name = "numa4", EmitDefaultValue = false)] + public string Numa4 { get; set; } + + /// + /// Gets or Sets Numa5 + /// + [DataMember(Name = "numa5", EmitDefaultValue = false)] + public string Numa5 { get; set; } + + /// + /// Gets or Sets Numa6 + /// + [DataMember(Name = "numa6", EmitDefaultValue = false)] + public string Numa6 { get; set; } + + /// + /// Gets or Sets Numa7 + /// + [DataMember(Name = "numa7", EmitDefaultValue = false)] + public string Numa7 { get; set; } + + /// + /// Gets or Sets Numa8 + /// + [DataMember(Name = "numa8", EmitDefaultValue = false)] + public string Numa8 { get; set; } + + /// + /// Gets or Sets Numa9 + /// + [DataMember(Name = "numa9", EmitDefaultValue = false)] + public string Numa9 { get; set; } + + /// + /// Gets or Sets Numa10 + /// + [DataMember(Name = "numa10", EmitDefaultValue = false)] + public string Numa10 { get; set; } + + /// + /// Gets or Sets Numa11 + /// + [DataMember(Name = "numa11", EmitDefaultValue = false)] + public string Numa11 { get; set; } + + /// + /// Gets or Sets Numa12 + /// + [DataMember(Name = "numa12", EmitDefaultValue = false)] + public string Numa12 { get; set; } + + /// + /// Gets or Sets Numa13 + /// + [DataMember(Name = "numa13", EmitDefaultValue = false)] + public string Numa13 { get; set; } + + /// + /// Gets or Sets Numa14 + /// + [DataMember(Name = "numa14", EmitDefaultValue = false)] + public string Numa14 { get; set; } + + /// + /// Gets or Sets Numa15 + /// + [DataMember(Name = "numa15", EmitDefaultValue = false)] + public string Numa15 { get; set; } + + /// + /// Gets or Sets Numa16 + /// + [DataMember(Name = "numa16", EmitDefaultValue = false)] + public string Numa16 { get; set; } + + /// + /// Gets or Sets Numa17 + /// + [DataMember(Name = "numa17", EmitDefaultValue = false)] + public string Numa17 { get; set; } + + /// + /// Gets or Sets Numa18 + /// + [DataMember(Name = "numa18", EmitDefaultValue = false)] + public string Numa18 { get; set; } + + /// + /// Gets or Sets Numa19 + /// + [DataMember(Name = "numa19", EmitDefaultValue = false)] + public string Numa19 { get; set; } + + /// + /// Gets or Sets Numa20 + /// + [DataMember(Name = "numa20", EmitDefaultValue = false)] + public string Numa20 { get; set; } + + /// + /// Gets or Sets Numa21 + /// + [DataMember(Name = "numa21", EmitDefaultValue = false)] + public string Numa21 { get; set; } + + /// + /// Gets or Sets Numa22 + /// + [DataMember(Name = "numa22", EmitDefaultValue = false)] + public string Numa22 { get; set; } + + /// + /// Gets or Sets Numa23 + /// + [DataMember(Name = "numa23", EmitDefaultValue = false)] + public string Numa23 { get; set; } + + /// + /// Gets or Sets Numa24 + /// + [DataMember(Name = "numa24", EmitDefaultValue = false)] + public string Numa24 { get; set; } + + /// + /// Gets or Sets Numa25 + /// + [DataMember(Name = "numa25", EmitDefaultValue = false)] + public string Numa25 { get; set; } + + /// + /// Gets or Sets Numa26 + /// + [DataMember(Name = "numa26", EmitDefaultValue = false)] + public string Numa26 { get; set; } + + /// + /// Gets or Sets Numa27 + /// + [DataMember(Name = "numa27", EmitDefaultValue = false)] + public string Numa27 { get; set; } + + /// + /// Gets or Sets Numa28 + /// + [DataMember(Name = "numa28", EmitDefaultValue = false)] + public string Numa28 { get; set; } + + /// + /// Gets or Sets Numa29 + /// + [DataMember(Name = "numa29", EmitDefaultValue = false)] + public string Numa29 { get; set; } + + /// + /// Gets or Sets Onboot + /// + [DataMember(Name = "onboot", EmitDefaultValue = true)] + public bool Onboot { get; set; } + + /// + /// Gets or Sets Ostype + /// + [DataMember(Name = "ostype", EmitDefaultValue = false)] + public string Ostype { get; set; } + + /// + /// Gets or Sets Parallel0 + /// + [DataMember(Name = "parallel0", EmitDefaultValue = false)] + public string Parallel0 { get; set; } + + /// + /// Gets or Sets Parallel1 + /// + [DataMember(Name = "parallel1", EmitDefaultValue = false)] + public string Parallel1 { get; set; } + + /// + /// Gets or Sets Parallel2 + /// + [DataMember(Name = "parallel2", EmitDefaultValue = false)] + public string Parallel2 { get; set; } + + /// + /// Gets or Sets Parallel3 + /// + [DataMember(Name = "parallel3", EmitDefaultValue = false)] + public string Parallel3 { get; set; } + + /// + /// Gets or Sets Parallel4 + /// + [DataMember(Name = "parallel4", EmitDefaultValue = false)] + public string Parallel4 { get; set; } + + /// + /// Gets or Sets Parallel5 + /// + [DataMember(Name = "parallel5", EmitDefaultValue = false)] + public string Parallel5 { get; set; } + + /// + /// Gets or Sets Parallel6 + /// + [DataMember(Name = "parallel6", EmitDefaultValue = false)] + public string Parallel6 { get; set; } + + /// + /// Gets or Sets Parallel7 + /// + [DataMember(Name = "parallel7", EmitDefaultValue = false)] + public string Parallel7 { get; set; } + + /// + /// Gets or Sets Parallel8 + /// + [DataMember(Name = "parallel8", EmitDefaultValue = false)] + public string Parallel8 { get; set; } + + /// + /// Gets or Sets Parallel9 + /// + [DataMember(Name = "parallel9", EmitDefaultValue = false)] + public string Parallel9 { get; set; } + + /// + /// Gets or Sets Parallel10 + /// + [DataMember(Name = "parallel10", EmitDefaultValue = false)] + public string Parallel10 { get; set; } + + /// + /// Gets or Sets Parallel11 + /// + [DataMember(Name = "parallel11", EmitDefaultValue = false)] + public string Parallel11 { get; set; } + + /// + /// Gets or Sets Parallel12 + /// + [DataMember(Name = "parallel12", EmitDefaultValue = false)] + public string Parallel12 { get; set; } + + /// + /// Gets or Sets Parallel13 + /// + [DataMember(Name = "parallel13", EmitDefaultValue = false)] + public string Parallel13 { get; set; } + + /// + /// Gets or Sets Parallel14 + /// + [DataMember(Name = "parallel14", EmitDefaultValue = false)] + public string Parallel14 { get; set; } + + /// + /// Gets or Sets Parallel15 + /// + [DataMember(Name = "parallel15", EmitDefaultValue = false)] + public string Parallel15 { get; set; } + + /// + /// Gets or Sets Parallel16 + /// + [DataMember(Name = "parallel16", EmitDefaultValue = false)] + public string Parallel16 { get; set; } + + /// + /// Gets or Sets Parallel17 + /// + [DataMember(Name = "parallel17", EmitDefaultValue = false)] + public string Parallel17 { get; set; } + + /// + /// Gets or Sets Parallel18 + /// + [DataMember(Name = "parallel18", EmitDefaultValue = false)] + public string Parallel18 { get; set; } + + /// + /// Gets or Sets Parallel19 + /// + [DataMember(Name = "parallel19", EmitDefaultValue = false)] + public string Parallel19 { get; set; } + + /// + /// Gets or Sets Parallel20 + /// + [DataMember(Name = "parallel20", EmitDefaultValue = false)] + public string Parallel20 { get; set; } + + /// + /// Gets or Sets Parallel21 + /// + [DataMember(Name = "parallel21", EmitDefaultValue = false)] + public string Parallel21 { get; set; } + + /// + /// Gets or Sets Parallel22 + /// + [DataMember(Name = "parallel22", EmitDefaultValue = false)] + public string Parallel22 { get; set; } + + /// + /// Gets or Sets Parallel23 + /// + [DataMember(Name = "parallel23", EmitDefaultValue = false)] + public string Parallel23 { get; set; } + + /// + /// Gets or Sets Parallel24 + /// + [DataMember(Name = "parallel24", EmitDefaultValue = false)] + public string Parallel24 { get; set; } + + /// + /// Gets or Sets Parallel25 + /// + [DataMember(Name = "parallel25", EmitDefaultValue = false)] + public string Parallel25 { get; set; } + + /// + /// Gets or Sets Parallel26 + /// + [DataMember(Name = "parallel26", EmitDefaultValue = false)] + public string Parallel26 { get; set; } + + /// + /// Gets or Sets Parallel27 + /// + [DataMember(Name = "parallel27", EmitDefaultValue = false)] + public string Parallel27 { get; set; } + + /// + /// Gets or Sets Parallel28 + /// + [DataMember(Name = "parallel28", EmitDefaultValue = false)] + public string Parallel28 { get; set; } + + /// + /// Gets or Sets Parallel29 + /// + [DataMember(Name = "parallel29", EmitDefaultValue = false)] + public string Parallel29 { get; set; } + + /// + /// Gets or Sets Protection + /// + [DataMember(Name = "protection", EmitDefaultValue = true)] + public bool Protection { get; set; } + + /// + /// Gets or Sets Reboot + /// + [DataMember(Name = "reboot", EmitDefaultValue = true)] + public bool Reboot { get; set; } + + /// + /// Gets or Sets Revert + /// + [DataMember(Name = "revert", EmitDefaultValue = false)] + public string Revert { get; set; } + + /// + /// Gets or Sets Rng0 + /// + [DataMember(Name = "rng0", EmitDefaultValue = false)] + public string Rng0 { get; set; } + + /// + /// Gets or Sets Sata0 + /// + [DataMember(Name = "sata0", EmitDefaultValue = false)] + public string Sata0 { get; set; } + + /// + /// Gets or Sets Sata1 + /// + [DataMember(Name = "sata1", EmitDefaultValue = false)] + public string Sata1 { get; set; } + + /// + /// Gets or Sets Sata2 + /// + [DataMember(Name = "sata2", EmitDefaultValue = false)] + public string Sata2 { get; set; } + + /// + /// Gets or Sets Sata3 + /// + [DataMember(Name = "sata3", EmitDefaultValue = false)] + public string Sata3 { get; set; } + + /// + /// Gets or Sets Sata4 + /// + [DataMember(Name = "sata4", EmitDefaultValue = false)] + public string Sata4 { get; set; } + + /// + /// Gets or Sets Sata5 + /// + [DataMember(Name = "sata5", EmitDefaultValue = false)] + public string Sata5 { get; set; } + + /// + /// Gets or Sets Sata6 + /// + [DataMember(Name = "sata6", EmitDefaultValue = false)] + public string Sata6 { get; set; } + + /// + /// Gets or Sets Sata7 + /// + [DataMember(Name = "sata7", EmitDefaultValue = false)] + public string Sata7 { get; set; } + + /// + /// Gets or Sets Sata8 + /// + [DataMember(Name = "sata8", EmitDefaultValue = false)] + public string Sata8 { get; set; } + + /// + /// Gets or Sets Sata9 + /// + [DataMember(Name = "sata9", EmitDefaultValue = false)] + public string Sata9 { get; set; } + + /// + /// Gets or Sets Sata10 + /// + [DataMember(Name = "sata10", EmitDefaultValue = false)] + public string Sata10 { get; set; } + + /// + /// Gets or Sets Sata11 + /// + [DataMember(Name = "sata11", EmitDefaultValue = false)] + public string Sata11 { get; set; } + + /// + /// Gets or Sets Sata12 + /// + [DataMember(Name = "sata12", EmitDefaultValue = false)] + public string Sata12 { get; set; } + + /// + /// Gets or Sets Sata13 + /// + [DataMember(Name = "sata13", EmitDefaultValue = false)] + public string Sata13 { get; set; } + + /// + /// Gets or Sets Sata14 + /// + [DataMember(Name = "sata14", EmitDefaultValue = false)] + public string Sata14 { get; set; } + + /// + /// Gets or Sets Sata15 + /// + [DataMember(Name = "sata15", EmitDefaultValue = false)] + public string Sata15 { get; set; } + + /// + /// Gets or Sets Sata16 + /// + [DataMember(Name = "sata16", EmitDefaultValue = false)] + public string Sata16 { get; set; } + + /// + /// Gets or Sets Sata17 + /// + [DataMember(Name = "sata17", EmitDefaultValue = false)] + public string Sata17 { get; set; } + + /// + /// Gets or Sets Sata18 + /// + [DataMember(Name = "sata18", EmitDefaultValue = false)] + public string Sata18 { get; set; } + + /// + /// Gets or Sets Sata19 + /// + [DataMember(Name = "sata19", EmitDefaultValue = false)] + public string Sata19 { get; set; } + + /// + /// Gets or Sets Sata20 + /// + [DataMember(Name = "sata20", EmitDefaultValue = false)] + public string Sata20 { get; set; } + + /// + /// Gets or Sets Sata21 + /// + [DataMember(Name = "sata21", EmitDefaultValue = false)] + public string Sata21 { get; set; } + + /// + /// Gets or Sets Sata22 + /// + [DataMember(Name = "sata22", EmitDefaultValue = false)] + public string Sata22 { get; set; } + + /// + /// Gets or Sets Sata23 + /// + [DataMember(Name = "sata23", EmitDefaultValue = false)] + public string Sata23 { get; set; } + + /// + /// Gets or Sets Sata24 + /// + [DataMember(Name = "sata24", EmitDefaultValue = false)] + public string Sata24 { get; set; } + + /// + /// Gets or Sets Sata25 + /// + [DataMember(Name = "sata25", EmitDefaultValue = false)] + public string Sata25 { get; set; } + + /// + /// Gets or Sets Sata26 + /// + [DataMember(Name = "sata26", EmitDefaultValue = false)] + public string Sata26 { get; set; } + + /// + /// Gets or Sets Sata27 + /// + [DataMember(Name = "sata27", EmitDefaultValue = false)] + public string Sata27 { get; set; } + + /// + /// Gets or Sets Sata28 + /// + [DataMember(Name = "sata28", EmitDefaultValue = false)] + public string Sata28 { get; set; } + + /// + /// Gets or Sets Sata29 + /// + [DataMember(Name = "sata29", EmitDefaultValue = false)] + public string Sata29 { get; set; } + + /// + /// Gets or Sets Scsi0 + /// + [DataMember(Name = "scsi0", EmitDefaultValue = false)] + public string Scsi0 { get; set; } + + /// + /// Gets or Sets Scsi1 + /// + [DataMember(Name = "scsi1", EmitDefaultValue = false)] + public string Scsi1 { get; set; } + + /// + /// Gets or Sets Scsi2 + /// + [DataMember(Name = "scsi2", EmitDefaultValue = false)] + public string Scsi2 { get; set; } + + /// + /// Gets or Sets Scsi3 + /// + [DataMember(Name = "scsi3", EmitDefaultValue = false)] + public string Scsi3 { get; set; } + + /// + /// Gets or Sets Scsi4 + /// + [DataMember(Name = "scsi4", EmitDefaultValue = false)] + public string Scsi4 { get; set; } + + /// + /// Gets or Sets Scsi5 + /// + [DataMember(Name = "scsi5", EmitDefaultValue = false)] + public string Scsi5 { get; set; } + + /// + /// Gets or Sets Scsi6 + /// + [DataMember(Name = "scsi6", EmitDefaultValue = false)] + public string Scsi6 { get; set; } + + /// + /// Gets or Sets Scsi7 + /// + [DataMember(Name = "scsi7", EmitDefaultValue = false)] + public string Scsi7 { get; set; } + + /// + /// Gets or Sets Scsi8 + /// + [DataMember(Name = "scsi8", EmitDefaultValue = false)] + public string Scsi8 { get; set; } + + /// + /// Gets or Sets Scsi9 + /// + [DataMember(Name = "scsi9", EmitDefaultValue = false)] + public string Scsi9 { get; set; } + + /// + /// Gets or Sets Scsi10 + /// + [DataMember(Name = "scsi10", EmitDefaultValue = false)] + public string Scsi10 { get; set; } + + /// + /// Gets or Sets Scsi11 + /// + [DataMember(Name = "scsi11", EmitDefaultValue = false)] + public string Scsi11 { get; set; } + + /// + /// Gets or Sets Scsi12 + /// + [DataMember(Name = "scsi12", EmitDefaultValue = false)] + public string Scsi12 { get; set; } + + /// + /// Gets or Sets Scsi13 + /// + [DataMember(Name = "scsi13", EmitDefaultValue = false)] + public string Scsi13 { get; set; } + + /// + /// Gets or Sets Scsi14 + /// + [DataMember(Name = "scsi14", EmitDefaultValue = false)] + public string Scsi14 { get; set; } + + /// + /// Gets or Sets Scsi15 + /// + [DataMember(Name = "scsi15", EmitDefaultValue = false)] + public string Scsi15 { get; set; } + + /// + /// Gets or Sets Scsi16 + /// + [DataMember(Name = "scsi16", EmitDefaultValue = false)] + public string Scsi16 { get; set; } + + /// + /// Gets or Sets Scsi17 + /// + [DataMember(Name = "scsi17", EmitDefaultValue = false)] + public string Scsi17 { get; set; } + + /// + /// Gets or Sets Scsi18 + /// + [DataMember(Name = "scsi18", EmitDefaultValue = false)] + public string Scsi18 { get; set; } + + /// + /// Gets or Sets Scsi19 + /// + [DataMember(Name = "scsi19", EmitDefaultValue = false)] + public string Scsi19 { get; set; } + + /// + /// Gets or Sets Scsi20 + /// + [DataMember(Name = "scsi20", EmitDefaultValue = false)] + public string Scsi20 { get; set; } + + /// + /// Gets or Sets Scsi21 + /// + [DataMember(Name = "scsi21", EmitDefaultValue = false)] + public string Scsi21 { get; set; } + + /// + /// Gets or Sets Scsi22 + /// + [DataMember(Name = "scsi22", EmitDefaultValue = false)] + public string Scsi22 { get; set; } + + /// + /// Gets or Sets Scsi23 + /// + [DataMember(Name = "scsi23", EmitDefaultValue = false)] + public string Scsi23 { get; set; } + + /// + /// Gets or Sets Scsi24 + /// + [DataMember(Name = "scsi24", EmitDefaultValue = false)] + public string Scsi24 { get; set; } + + /// + /// Gets or Sets Scsi25 + /// + [DataMember(Name = "scsi25", EmitDefaultValue = false)] + public string Scsi25 { get; set; } + + /// + /// Gets or Sets Scsi26 + /// + [DataMember(Name = "scsi26", EmitDefaultValue = false)] + public string Scsi26 { get; set; } + + /// + /// Gets or Sets Scsi27 + /// + [DataMember(Name = "scsi27", EmitDefaultValue = false)] + public string Scsi27 { get; set; } + + /// + /// Gets or Sets Scsi28 + /// + [DataMember(Name = "scsi28", EmitDefaultValue = false)] + public string Scsi28 { get; set; } + + /// + /// Gets or Sets Scsi29 + /// + [DataMember(Name = "scsi29", EmitDefaultValue = false)] + public string Scsi29 { get; set; } + + /// + /// Gets or Sets Scsihw + /// + [DataMember(Name = "scsihw", EmitDefaultValue = false)] + public string Scsihw { get; set; } + + /// + /// Gets or Sets Searchdomain + /// + [DataMember(Name = "searchdomain", EmitDefaultValue = false)] + public string Searchdomain { get; set; } + + /// + /// Gets or Sets Serial0 + /// + [DataMember(Name = "serial0", EmitDefaultValue = false)] + public string Serial0 { get; set; } + + /// + /// Gets or Sets Serial1 + /// + [DataMember(Name = "serial1", EmitDefaultValue = false)] + public string Serial1 { get; set; } + + /// + /// Gets or Sets Serial2 + /// + [DataMember(Name = "serial2", EmitDefaultValue = false)] + public string Serial2 { get; set; } + + /// + /// Gets or Sets Serial3 + /// + [DataMember(Name = "serial3", EmitDefaultValue = false)] + public string Serial3 { get; set; } + + /// + /// Gets or Sets Serial4 + /// + [DataMember(Name = "serial4", EmitDefaultValue = false)] + public string Serial4 { get; set; } + + /// + /// Gets or Sets Serial5 + /// + [DataMember(Name = "serial5", EmitDefaultValue = false)] + public string Serial5 { get; set; } + + /// + /// Gets or Sets Serial6 + /// + [DataMember(Name = "serial6", EmitDefaultValue = false)] + public string Serial6 { get; set; } + + /// + /// Gets or Sets Serial7 + /// + [DataMember(Name = "serial7", EmitDefaultValue = false)] + public string Serial7 { get; set; } + + /// + /// Gets or Sets Serial8 + /// + [DataMember(Name = "serial8", EmitDefaultValue = false)] + public string Serial8 { get; set; } + + /// + /// Gets or Sets Serial9 + /// + [DataMember(Name = "serial9", EmitDefaultValue = false)] + public string Serial9 { get; set; } + + /// + /// Gets or Sets Serial10 + /// + [DataMember(Name = "serial10", EmitDefaultValue = false)] + public string Serial10 { get; set; } + + /// + /// Gets or Sets Serial11 + /// + [DataMember(Name = "serial11", EmitDefaultValue = false)] + public string Serial11 { get; set; } + + /// + /// Gets or Sets Serial12 + /// + [DataMember(Name = "serial12", EmitDefaultValue = false)] + public string Serial12 { get; set; } + + /// + /// Gets or Sets Serial13 + /// + [DataMember(Name = "serial13", EmitDefaultValue = false)] + public string Serial13 { get; set; } + + /// + /// Gets or Sets Serial14 + /// + [DataMember(Name = "serial14", EmitDefaultValue = false)] + public string Serial14 { get; set; } + + /// + /// Gets or Sets Serial15 + /// + [DataMember(Name = "serial15", EmitDefaultValue = false)] + public string Serial15 { get; set; } + + /// + /// Gets or Sets Serial16 + /// + [DataMember(Name = "serial16", EmitDefaultValue = false)] + public string Serial16 { get; set; } + + /// + /// Gets or Sets Serial17 + /// + [DataMember(Name = "serial17", EmitDefaultValue = false)] + public string Serial17 { get; set; } + + /// + /// Gets or Sets Serial18 + /// + [DataMember(Name = "serial18", EmitDefaultValue = false)] + public string Serial18 { get; set; } + + /// + /// Gets or Sets Serial19 + /// + [DataMember(Name = "serial19", EmitDefaultValue = false)] + public string Serial19 { get; set; } + + /// + /// Gets or Sets Serial20 + /// + [DataMember(Name = "serial20", EmitDefaultValue = false)] + public string Serial20 { get; set; } + + /// + /// Gets or Sets Serial21 + /// + [DataMember(Name = "serial21", EmitDefaultValue = false)] + public string Serial21 { get; set; } + + /// + /// Gets or Sets Serial22 + /// + [DataMember(Name = "serial22", EmitDefaultValue = false)] + public string Serial22 { get; set; } + + /// + /// Gets or Sets Serial23 + /// + [DataMember(Name = "serial23", EmitDefaultValue = false)] + public string Serial23 { get; set; } + + /// + /// Gets or Sets Serial24 + /// + [DataMember(Name = "serial24", EmitDefaultValue = false)] + public string Serial24 { get; set; } + + /// + /// Gets or Sets Serial25 + /// + [DataMember(Name = "serial25", EmitDefaultValue = false)] + public string Serial25 { get; set; } + + /// + /// Gets or Sets Serial26 + /// + [DataMember(Name = "serial26", EmitDefaultValue = false)] + public string Serial26 { get; set; } + + /// + /// Gets or Sets Serial27 + /// + [DataMember(Name = "serial27", EmitDefaultValue = false)] + public string Serial27 { get; set; } + + /// + /// Gets or Sets Serial28 + /// + [DataMember(Name = "serial28", EmitDefaultValue = false)] + public string Serial28 { get; set; } + + /// + /// Gets or Sets Serial29 + /// + [DataMember(Name = "serial29", EmitDefaultValue = false)] + public string Serial29 { get; set; } + + /// + /// Gets or Sets Shares + /// + [DataMember(Name = "shares", EmitDefaultValue = false)] + public int Shares { get; set; } + + /// + /// Gets or Sets Skiplock + /// + [DataMember(Name = "skiplock", EmitDefaultValue = true)] + public bool Skiplock { get; set; } + + /// + /// Gets or Sets Smbios1 + /// + [DataMember(Name = "smbios1", EmitDefaultValue = false)] + public string Smbios1 { get; set; } + + /// + /// Gets or Sets Smp + /// + [DataMember(Name = "smp", EmitDefaultValue = false)] + public int Smp { get; set; } + + /// + /// Gets or Sets Sockets + /// + [DataMember(Name = "sockets", EmitDefaultValue = false)] + public int Sockets { get; set; } + + /// + /// Gets or Sets SpiceEnhancements + /// + [DataMember(Name = "spice_enhancements", EmitDefaultValue = false)] + public string SpiceEnhancements { get; set; } + + /// + /// Gets or Sets Sshkeys + /// + [DataMember(Name = "sshkeys", EmitDefaultValue = false)] + public string Sshkeys { get; set; } + + /// + /// Gets or Sets Startdate + /// + [DataMember(Name = "startdate", EmitDefaultValue = false)] + public string Startdate { get; set; } + + /// + /// Gets or Sets Startup + /// + [DataMember(Name = "startup", EmitDefaultValue = false)] + public string Startup { get; set; } + + /// + /// Gets or Sets Tablet + /// + [DataMember(Name = "tablet", EmitDefaultValue = true)] + public bool Tablet { get; set; } + + /// + /// Gets or Sets Tags + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string Tags { get; set; } + + /// + /// Gets or Sets Tdf + /// + [DataMember(Name = "tdf", EmitDefaultValue = true)] + public bool Tdf { get; set; } + + /// + /// Gets or Sets Template + /// + [DataMember(Name = "template", EmitDefaultValue = true)] + public bool Template { get; set; } + + /// + /// Gets or Sets Tpmstate0 + /// + [DataMember(Name = "tpmstate0", EmitDefaultValue = false)] + public string Tpmstate0 { get; set; } + + /// + /// Gets or Sets Unused0 + /// + [DataMember(Name = "unused0", EmitDefaultValue = false)] + public string Unused0 { get; set; } + + /// + /// Gets or Sets Unused1 + /// + [DataMember(Name = "unused1", EmitDefaultValue = false)] + public string Unused1 { get; set; } + + /// + /// Gets or Sets Unused2 + /// + [DataMember(Name = "unused2", EmitDefaultValue = false)] + public string Unused2 { get; set; } + + /// + /// Gets or Sets Unused3 + /// + [DataMember(Name = "unused3", EmitDefaultValue = false)] + public string Unused3 { get; set; } + + /// + /// Gets or Sets Unused4 + /// + [DataMember(Name = "unused4", EmitDefaultValue = false)] + public string Unused4 { get; set; } + + /// + /// Gets or Sets Unused5 + /// + [DataMember(Name = "unused5", EmitDefaultValue = false)] + public string Unused5 { get; set; } + + /// + /// Gets or Sets Unused6 + /// + [DataMember(Name = "unused6", EmitDefaultValue = false)] + public string Unused6 { get; set; } + + /// + /// Gets or Sets Unused7 + /// + [DataMember(Name = "unused7", EmitDefaultValue = false)] + public string Unused7 { get; set; } + + /// + /// Gets or Sets Unused8 + /// + [DataMember(Name = "unused8", EmitDefaultValue = false)] + public string Unused8 { get; set; } + + /// + /// Gets or Sets Unused9 + /// + [DataMember(Name = "unused9", EmitDefaultValue = false)] + public string Unused9 { get; set; } + + /// + /// Gets or Sets Unused10 + /// + [DataMember(Name = "unused10", EmitDefaultValue = false)] + public string Unused10 { get; set; } + + /// + /// Gets or Sets Unused11 + /// + [DataMember(Name = "unused11", EmitDefaultValue = false)] + public string Unused11 { get; set; } + + /// + /// Gets or Sets Unused12 + /// + [DataMember(Name = "unused12", EmitDefaultValue = false)] + public string Unused12 { get; set; } + + /// + /// Gets or Sets Unused13 + /// + [DataMember(Name = "unused13", EmitDefaultValue = false)] + public string Unused13 { get; set; } + + /// + /// Gets or Sets Unused14 + /// + [DataMember(Name = "unused14", EmitDefaultValue = false)] + public string Unused14 { get; set; } + + /// + /// Gets or Sets Unused15 + /// + [DataMember(Name = "unused15", EmitDefaultValue = false)] + public string Unused15 { get; set; } + + /// + /// Gets or Sets Unused16 + /// + [DataMember(Name = "unused16", EmitDefaultValue = false)] + public string Unused16 { get; set; } + + /// + /// Gets or Sets Unused17 + /// + [DataMember(Name = "unused17", EmitDefaultValue = false)] + public string Unused17 { get; set; } + + /// + /// Gets or Sets Unused18 + /// + [DataMember(Name = "unused18", EmitDefaultValue = false)] + public string Unused18 { get; set; } + + /// + /// Gets or Sets Unused19 + /// + [DataMember(Name = "unused19", EmitDefaultValue = false)] + public string Unused19 { get; set; } + + /// + /// Gets or Sets Unused20 + /// + [DataMember(Name = "unused20", EmitDefaultValue = false)] + public string Unused20 { get; set; } + + /// + /// Gets or Sets Unused21 + /// + [DataMember(Name = "unused21", EmitDefaultValue = false)] + public string Unused21 { get; set; } + + /// + /// Gets or Sets Unused22 + /// + [DataMember(Name = "unused22", EmitDefaultValue = false)] + public string Unused22 { get; set; } + + /// + /// Gets or Sets Unused23 + /// + [DataMember(Name = "unused23", EmitDefaultValue = false)] + public string Unused23 { get; set; } + + /// + /// Gets or Sets Unused24 + /// + [DataMember(Name = "unused24", EmitDefaultValue = false)] + public string Unused24 { get; set; } + + /// + /// Gets or Sets Unused25 + /// + [DataMember(Name = "unused25", EmitDefaultValue = false)] + public string Unused25 { get; set; } + + /// + /// Gets or Sets Unused26 + /// + [DataMember(Name = "unused26", EmitDefaultValue = false)] + public string Unused26 { get; set; } + + /// + /// Gets or Sets Unused27 + /// + [DataMember(Name = "unused27", EmitDefaultValue = false)] + public string Unused27 { get; set; } + + /// + /// Gets or Sets Unused28 + /// + [DataMember(Name = "unused28", EmitDefaultValue = false)] + public string Unused28 { get; set; } + + /// + /// Gets or Sets Unused29 + /// + [DataMember(Name = "unused29", EmitDefaultValue = false)] + public string Unused29 { get; set; } + + /// + /// Gets or Sets Usb0 + /// + [DataMember(Name = "usb0", EmitDefaultValue = false)] + public string Usb0 { get; set; } + + /// + /// Gets or Sets Usb1 + /// + [DataMember(Name = "usb1", EmitDefaultValue = false)] + public string Usb1 { get; set; } + + /// + /// Gets or Sets Usb2 + /// + [DataMember(Name = "usb2", EmitDefaultValue = false)] + public string Usb2 { get; set; } + + /// + /// Gets or Sets Usb3 + /// + [DataMember(Name = "usb3", EmitDefaultValue = false)] + public string Usb3 { get; set; } + + /// + /// Gets or Sets Usb4 + /// + [DataMember(Name = "usb4", EmitDefaultValue = false)] + public string Usb4 { get; set; } + + /// + /// Gets or Sets Usb5 + /// + [DataMember(Name = "usb5", EmitDefaultValue = false)] + public string Usb5 { get; set; } + + /// + /// Gets or Sets Usb6 + /// + [DataMember(Name = "usb6", EmitDefaultValue = false)] + public string Usb6 { get; set; } + + /// + /// Gets or Sets Usb7 + /// + [DataMember(Name = "usb7", EmitDefaultValue = false)] + public string Usb7 { get; set; } + + /// + /// Gets or Sets Usb8 + /// + [DataMember(Name = "usb8", EmitDefaultValue = false)] + public string Usb8 { get; set; } + + /// + /// Gets or Sets Usb9 + /// + [DataMember(Name = "usb9", EmitDefaultValue = false)] + public string Usb9 { get; set; } + + /// + /// Gets or Sets Usb10 + /// + [DataMember(Name = "usb10", EmitDefaultValue = false)] + public string Usb10 { get; set; } + + /// + /// Gets or Sets Usb11 + /// + [DataMember(Name = "usb11", EmitDefaultValue = false)] + public string Usb11 { get; set; } + + /// + /// Gets or Sets Usb12 + /// + [DataMember(Name = "usb12", EmitDefaultValue = false)] + public string Usb12 { get; set; } + + /// + /// Gets or Sets Usb13 + /// + [DataMember(Name = "usb13", EmitDefaultValue = false)] + public string Usb13 { get; set; } + + /// + /// Gets or Sets Usb14 + /// + [DataMember(Name = "usb14", EmitDefaultValue = false)] + public string Usb14 { get; set; } + + /// + /// Gets or Sets Usb15 + /// + [DataMember(Name = "usb15", EmitDefaultValue = false)] + public string Usb15 { get; set; } + + /// + /// Gets or Sets Usb16 + /// + [DataMember(Name = "usb16", EmitDefaultValue = false)] + public string Usb16 { get; set; } + + /// + /// Gets or Sets Usb17 + /// + [DataMember(Name = "usb17", EmitDefaultValue = false)] + public string Usb17 { get; set; } + + /// + /// Gets or Sets Usb18 + /// + [DataMember(Name = "usb18", EmitDefaultValue = false)] + public string Usb18 { get; set; } + + /// + /// Gets or Sets Usb19 + /// + [DataMember(Name = "usb19", EmitDefaultValue = false)] + public string Usb19 { get; set; } + + /// + /// Gets or Sets Usb20 + /// + [DataMember(Name = "usb20", EmitDefaultValue = false)] + public string Usb20 { get; set; } + + /// + /// Gets or Sets Usb21 + /// + [DataMember(Name = "usb21", EmitDefaultValue = false)] + public string Usb21 { get; set; } + + /// + /// Gets or Sets Usb22 + /// + [DataMember(Name = "usb22", EmitDefaultValue = false)] + public string Usb22 { get; set; } + + /// + /// Gets or Sets Usb23 + /// + [DataMember(Name = "usb23", EmitDefaultValue = false)] + public string Usb23 { get; set; } + + /// + /// Gets or Sets Usb24 + /// + [DataMember(Name = "usb24", EmitDefaultValue = false)] + public string Usb24 { get; set; } + + /// + /// Gets or Sets Usb25 + /// + [DataMember(Name = "usb25", EmitDefaultValue = false)] + public string Usb25 { get; set; } + + /// + /// Gets or Sets Usb26 + /// + [DataMember(Name = "usb26", EmitDefaultValue = false)] + public string Usb26 { get; set; } + + /// + /// Gets or Sets Usb27 + /// + [DataMember(Name = "usb27", EmitDefaultValue = false)] + public string Usb27 { get; set; } + + /// + /// Gets or Sets Usb28 + /// + [DataMember(Name = "usb28", EmitDefaultValue = false)] + public string Usb28 { get; set; } + + /// + /// Gets or Sets Usb29 + /// + [DataMember(Name = "usb29", EmitDefaultValue = false)] + public string Usb29 { get; set; } + + /// + /// Gets or Sets Vcpus + /// + [DataMember(Name = "vcpus", EmitDefaultValue = false)] + public int Vcpus { get; set; } + + /// + /// Gets or Sets Vga + /// + [DataMember(Name = "vga", EmitDefaultValue = false)] + public string Vga { get; set; } + + /// + /// Gets or Sets Virtio0 + /// + [DataMember(Name = "virtio0", EmitDefaultValue = false)] + public string Virtio0 { get; set; } + + /// + /// Gets or Sets Virtio1 + /// + [DataMember(Name = "virtio1", EmitDefaultValue = false)] + public string Virtio1 { get; set; } + + /// + /// Gets or Sets Virtio2 + /// + [DataMember(Name = "virtio2", EmitDefaultValue = false)] + public string Virtio2 { get; set; } + + /// + /// Gets or Sets Virtio3 + /// + [DataMember(Name = "virtio3", EmitDefaultValue = false)] + public string Virtio3 { get; set; } + + /// + /// Gets or Sets Virtio4 + /// + [DataMember(Name = "virtio4", EmitDefaultValue = false)] + public string Virtio4 { get; set; } + + /// + /// Gets or Sets Virtio5 + /// + [DataMember(Name = "virtio5", EmitDefaultValue = false)] + public string Virtio5 { get; set; } + + /// + /// Gets or Sets Virtio6 + /// + [DataMember(Name = "virtio6", EmitDefaultValue = false)] + public string Virtio6 { get; set; } + + /// + /// Gets or Sets Virtio7 + /// + [DataMember(Name = "virtio7", EmitDefaultValue = false)] + public string Virtio7 { get; set; } + + /// + /// Gets or Sets Virtio8 + /// + [DataMember(Name = "virtio8", EmitDefaultValue = false)] + public string Virtio8 { get; set; } + + /// + /// Gets or Sets Virtio9 + /// + [DataMember(Name = "virtio9", EmitDefaultValue = false)] + public string Virtio9 { get; set; } + + /// + /// Gets or Sets Virtio10 + /// + [DataMember(Name = "virtio10", EmitDefaultValue = false)] + public string Virtio10 { get; set; } + + /// + /// Gets or Sets Virtio11 + /// + [DataMember(Name = "virtio11", EmitDefaultValue = false)] + public string Virtio11 { get; set; } + + /// + /// Gets or Sets Virtio12 + /// + [DataMember(Name = "virtio12", EmitDefaultValue = false)] + public string Virtio12 { get; set; } + + /// + /// Gets or Sets Virtio13 + /// + [DataMember(Name = "virtio13", EmitDefaultValue = false)] + public string Virtio13 { get; set; } + + /// + /// Gets or Sets Virtio14 + /// + [DataMember(Name = "virtio14", EmitDefaultValue = false)] + public string Virtio14 { get; set; } + + /// + /// Gets or Sets Virtio15 + /// + [DataMember(Name = "virtio15", EmitDefaultValue = false)] + public string Virtio15 { get; set; } + + /// + /// Gets or Sets Virtio16 + /// + [DataMember(Name = "virtio16", EmitDefaultValue = false)] + public string Virtio16 { get; set; } + + /// + /// Gets or Sets Virtio17 + /// + [DataMember(Name = "virtio17", EmitDefaultValue = false)] + public string Virtio17 { get; set; } + + /// + /// Gets or Sets Virtio18 + /// + [DataMember(Name = "virtio18", EmitDefaultValue = false)] + public string Virtio18 { get; set; } + + /// + /// Gets or Sets Virtio19 + /// + [DataMember(Name = "virtio19", EmitDefaultValue = false)] + public string Virtio19 { get; set; } + + /// + /// Gets or Sets Virtio20 + /// + [DataMember(Name = "virtio20", EmitDefaultValue = false)] + public string Virtio20 { get; set; } + + /// + /// Gets or Sets Virtio21 + /// + [DataMember(Name = "virtio21", EmitDefaultValue = false)] + public string Virtio21 { get; set; } + + /// + /// Gets or Sets Virtio22 + /// + [DataMember(Name = "virtio22", EmitDefaultValue = false)] + public string Virtio22 { get; set; } + + /// + /// Gets or Sets Virtio23 + /// + [DataMember(Name = "virtio23", EmitDefaultValue = false)] + public string Virtio23 { get; set; } + + /// + /// Gets or Sets Virtio24 + /// + [DataMember(Name = "virtio24", EmitDefaultValue = false)] + public string Virtio24 { get; set; } + + /// + /// Gets or Sets Virtio25 + /// + [DataMember(Name = "virtio25", EmitDefaultValue = false)] + public string Virtio25 { get; set; } + + /// + /// Gets or Sets Virtio26 + /// + [DataMember(Name = "virtio26", EmitDefaultValue = false)] + public string Virtio26 { get; set; } + + /// + /// Gets or Sets Virtio27 + /// + [DataMember(Name = "virtio27", EmitDefaultValue = false)] + public string Virtio27 { get; set; } + + /// + /// Gets or Sets Virtio28 + /// + [DataMember(Name = "virtio28", EmitDefaultValue = false)] + public string Virtio28 { get; set; } + + /// + /// Gets or Sets Virtio29 + /// + [DataMember(Name = "virtio29", EmitDefaultValue = false)] + public string Virtio29 { get; set; } + + /// + /// Gets or Sets Virtiofs0 + /// + [DataMember(Name = "virtiofs0", EmitDefaultValue = false)] + public string Virtiofs0 { get; set; } + + /// + /// Gets or Sets Virtiofs1 + /// + [DataMember(Name = "virtiofs1", EmitDefaultValue = false)] + public string Virtiofs1 { get; set; } + + /// + /// Gets or Sets Virtiofs2 + /// + [DataMember(Name = "virtiofs2", EmitDefaultValue = false)] + public string Virtiofs2 { get; set; } + + /// + /// Gets or Sets Virtiofs3 + /// + [DataMember(Name = "virtiofs3", EmitDefaultValue = false)] + public string Virtiofs3 { get; set; } + + /// + /// Gets or Sets Virtiofs4 + /// + [DataMember(Name = "virtiofs4", EmitDefaultValue = false)] + public string Virtiofs4 { get; set; } + + /// + /// Gets or Sets Virtiofs5 + /// + [DataMember(Name = "virtiofs5", EmitDefaultValue = false)] + public string Virtiofs5 { get; set; } + + /// + /// Gets or Sets Virtiofs6 + /// + [DataMember(Name = "virtiofs6", EmitDefaultValue = false)] + public string Virtiofs6 { get; set; } + + /// + /// Gets or Sets Virtiofs7 + /// + [DataMember(Name = "virtiofs7", EmitDefaultValue = false)] + public string Virtiofs7 { get; set; } + + /// + /// Gets or Sets Virtiofs8 + /// + [DataMember(Name = "virtiofs8", EmitDefaultValue = false)] + public string Virtiofs8 { get; set; } + + /// + /// Gets or Sets Virtiofs9 + /// + [DataMember(Name = "virtiofs9", EmitDefaultValue = false)] + public string Virtiofs9 { get; set; } + + /// + /// Gets or Sets Virtiofs10 + /// + [DataMember(Name = "virtiofs10", EmitDefaultValue = false)] + public string Virtiofs10 { get; set; } + + /// + /// Gets or Sets Virtiofs11 + /// + [DataMember(Name = "virtiofs11", EmitDefaultValue = false)] + public string Virtiofs11 { get; set; } + + /// + /// Gets or Sets Virtiofs12 + /// + [DataMember(Name = "virtiofs12", EmitDefaultValue = false)] + public string Virtiofs12 { get; set; } + + /// + /// Gets or Sets Virtiofs13 + /// + [DataMember(Name = "virtiofs13", EmitDefaultValue = false)] + public string Virtiofs13 { get; set; } + + /// + /// Gets or Sets Virtiofs14 + /// + [DataMember(Name = "virtiofs14", EmitDefaultValue = false)] + public string Virtiofs14 { get; set; } + + /// + /// Gets or Sets Virtiofs15 + /// + [DataMember(Name = "virtiofs15", EmitDefaultValue = false)] + public string Virtiofs15 { get; set; } + + /// + /// Gets or Sets Virtiofs16 + /// + [DataMember(Name = "virtiofs16", EmitDefaultValue = false)] + public string Virtiofs16 { get; set; } + + /// + /// Gets or Sets Virtiofs17 + /// + [DataMember(Name = "virtiofs17", EmitDefaultValue = false)] + public string Virtiofs17 { get; set; } + + /// + /// Gets or Sets Virtiofs18 + /// + [DataMember(Name = "virtiofs18", EmitDefaultValue = false)] + public string Virtiofs18 { get; set; } + + /// + /// Gets or Sets Virtiofs19 + /// + [DataMember(Name = "virtiofs19", EmitDefaultValue = false)] + public string Virtiofs19 { get; set; } + + /// + /// Gets or Sets Virtiofs20 + /// + [DataMember(Name = "virtiofs20", EmitDefaultValue = false)] + public string Virtiofs20 { get; set; } + + /// + /// Gets or Sets Virtiofs21 + /// + [DataMember(Name = "virtiofs21", EmitDefaultValue = false)] + public string Virtiofs21 { get; set; } + + /// + /// Gets or Sets Virtiofs22 + /// + [DataMember(Name = "virtiofs22", EmitDefaultValue = false)] + public string Virtiofs22 { get; set; } + + /// + /// Gets or Sets Virtiofs23 + /// + [DataMember(Name = "virtiofs23", EmitDefaultValue = false)] + public string Virtiofs23 { get; set; } + + /// + /// Gets or Sets Virtiofs24 + /// + [DataMember(Name = "virtiofs24", EmitDefaultValue = false)] + public string Virtiofs24 { get; set; } + + /// + /// Gets or Sets Virtiofs25 + /// + [DataMember(Name = "virtiofs25", EmitDefaultValue = false)] + public string Virtiofs25 { get; set; } + + /// + /// Gets or Sets Virtiofs26 + /// + [DataMember(Name = "virtiofs26", EmitDefaultValue = false)] + public string Virtiofs26 { get; set; } + + /// + /// Gets or Sets Virtiofs27 + /// + [DataMember(Name = "virtiofs27", EmitDefaultValue = false)] + public string Virtiofs27 { get; set; } + + /// + /// Gets or Sets Virtiofs28 + /// + [DataMember(Name = "virtiofs28", EmitDefaultValue = false)] + public string Virtiofs28 { get; set; } + + /// + /// Gets or Sets Virtiofs29 + /// + [DataMember(Name = "virtiofs29", EmitDefaultValue = false)] + public string Virtiofs29 { get; set; } + + /// + /// Gets or Sets Vmgenid + /// + [DataMember(Name = "vmgenid", EmitDefaultValue = false)] + public string Vmgenid { get; set; } + + /// + /// Gets or Sets Vmstatestorage + /// + [DataMember(Name = "vmstatestorage", EmitDefaultValue = false)] + public string Vmstatestorage { get; set; } + + /// + /// Gets or Sets Watchdog + /// + [DataMember(Name = "watchdog", EmitDefaultValue = false)] + public string Watchdog { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateVMConfigSyncRequest {\n"); + sb.Append(" Acpi: ").Append(Acpi).Append("\n"); + sb.Append(" Affinity: ").Append(Affinity).Append("\n"); + sb.Append(" Agent: ").Append(Agent).Append("\n"); + sb.Append(" AllowKsm: ").Append(AllowKsm).Append("\n"); + sb.Append(" AmdSev: ").Append(AmdSev).Append("\n"); + sb.Append(" Arch: ").Append(Arch).Append("\n"); + sb.Append(" Args: ").Append(Args).Append("\n"); + sb.Append(" Audio0: ").Append(Audio0).Append("\n"); + sb.Append(" Autostart: ").Append(Autostart).Append("\n"); + sb.Append(" Balloon: ").Append(Balloon).Append("\n"); + sb.Append(" Bios: ").Append(Bios).Append("\n"); + sb.Append(" Boot: ").Append(Boot).Append("\n"); + sb.Append(" Bootdisk: ").Append(Bootdisk).Append("\n"); + sb.Append(" Cdrom: ").Append(Cdrom).Append("\n"); + sb.Append(" Cicustom: ").Append(Cicustom).Append("\n"); + sb.Append(" Cipassword: ").Append(Cipassword).Append("\n"); + sb.Append(" Citype: ").Append(Citype).Append("\n"); + sb.Append(" Ciupgrade: ").Append(Ciupgrade).Append("\n"); + sb.Append(" Ciuser: ").Append(Ciuser).Append("\n"); + sb.Append(" Cores: ").Append(Cores).Append("\n"); + sb.Append(" Cpu: ").Append(Cpu).Append("\n"); + sb.Append(" Cpulimit: ").Append(Cpulimit).Append("\n"); + sb.Append(" Cpuunits: ").Append(Cpuunits).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Efidisk0: ").Append(Efidisk0).Append("\n"); + sb.Append(" Force: ").Append(Force).Append("\n"); + sb.Append(" Freeze: ").Append(Freeze).Append("\n"); + sb.Append(" Hookscript: ").Append(Hookscript).Append("\n"); + sb.Append(" Hostpci0: ").Append(Hostpci0).Append("\n"); + sb.Append(" Hostpci1: ").Append(Hostpci1).Append("\n"); + sb.Append(" Hostpci2: ").Append(Hostpci2).Append("\n"); + sb.Append(" Hostpci3: ").Append(Hostpci3).Append("\n"); + sb.Append(" Hostpci4: ").Append(Hostpci4).Append("\n"); + sb.Append(" Hostpci5: ").Append(Hostpci5).Append("\n"); + sb.Append(" Hostpci6: ").Append(Hostpci6).Append("\n"); + sb.Append(" Hostpci7: ").Append(Hostpci7).Append("\n"); + sb.Append(" Hostpci8: ").Append(Hostpci8).Append("\n"); + sb.Append(" Hostpci9: ").Append(Hostpci9).Append("\n"); + sb.Append(" Hostpci10: ").Append(Hostpci10).Append("\n"); + sb.Append(" Hostpci11: ").Append(Hostpci11).Append("\n"); + sb.Append(" Hostpci12: ").Append(Hostpci12).Append("\n"); + sb.Append(" Hostpci13: ").Append(Hostpci13).Append("\n"); + sb.Append(" Hostpci14: ").Append(Hostpci14).Append("\n"); + sb.Append(" Hostpci15: ").Append(Hostpci15).Append("\n"); + sb.Append(" Hostpci16: ").Append(Hostpci16).Append("\n"); + sb.Append(" Hostpci17: ").Append(Hostpci17).Append("\n"); + sb.Append(" Hostpci18: ").Append(Hostpci18).Append("\n"); + sb.Append(" Hostpci19: ").Append(Hostpci19).Append("\n"); + sb.Append(" Hostpci20: ").Append(Hostpci20).Append("\n"); + sb.Append(" Hostpci21: ").Append(Hostpci21).Append("\n"); + sb.Append(" Hostpci22: ").Append(Hostpci22).Append("\n"); + sb.Append(" Hostpci23: ").Append(Hostpci23).Append("\n"); + sb.Append(" Hostpci24: ").Append(Hostpci24).Append("\n"); + sb.Append(" Hostpci25: ").Append(Hostpci25).Append("\n"); + sb.Append(" Hostpci26: ").Append(Hostpci26).Append("\n"); + sb.Append(" Hostpci27: ").Append(Hostpci27).Append("\n"); + sb.Append(" Hostpci28: ").Append(Hostpci28).Append("\n"); + sb.Append(" Hostpci29: ").Append(Hostpci29).Append("\n"); + sb.Append(" Hotplug: ").Append(Hotplug).Append("\n"); + sb.Append(" Hugepages: ").Append(Hugepages).Append("\n"); + sb.Append(" Ide0: ").Append(Ide0).Append("\n"); + sb.Append(" Ide1: ").Append(Ide1).Append("\n"); + sb.Append(" Ide2: ").Append(Ide2).Append("\n"); + sb.Append(" Ide3: ").Append(Ide3).Append("\n"); + sb.Append(" Ide4: ").Append(Ide4).Append("\n"); + sb.Append(" Ide5: ").Append(Ide5).Append("\n"); + sb.Append(" Ide6: ").Append(Ide6).Append("\n"); + sb.Append(" Ide7: ").Append(Ide7).Append("\n"); + sb.Append(" Ide8: ").Append(Ide8).Append("\n"); + sb.Append(" Ide9: ").Append(Ide9).Append("\n"); + sb.Append(" Ide10: ").Append(Ide10).Append("\n"); + sb.Append(" Ide11: ").Append(Ide11).Append("\n"); + sb.Append(" Ide12: ").Append(Ide12).Append("\n"); + sb.Append(" Ide13: ").Append(Ide13).Append("\n"); + sb.Append(" Ide14: ").Append(Ide14).Append("\n"); + sb.Append(" Ide15: ").Append(Ide15).Append("\n"); + sb.Append(" Ide16: ").Append(Ide16).Append("\n"); + sb.Append(" Ide17: ").Append(Ide17).Append("\n"); + sb.Append(" Ide18: ").Append(Ide18).Append("\n"); + sb.Append(" Ide19: ").Append(Ide19).Append("\n"); + sb.Append(" Ide20: ").Append(Ide20).Append("\n"); + sb.Append(" Ide21: ").Append(Ide21).Append("\n"); + sb.Append(" Ide22: ").Append(Ide22).Append("\n"); + sb.Append(" Ide23: ").Append(Ide23).Append("\n"); + sb.Append(" Ide24: ").Append(Ide24).Append("\n"); + sb.Append(" Ide25: ").Append(Ide25).Append("\n"); + sb.Append(" Ide26: ").Append(Ide26).Append("\n"); + sb.Append(" Ide27: ").Append(Ide27).Append("\n"); + sb.Append(" Ide28: ").Append(Ide28).Append("\n"); + sb.Append(" Ide29: ").Append(Ide29).Append("\n"); + sb.Append(" IntelTdx: ").Append(IntelTdx).Append("\n"); + sb.Append(" Ipconfig0: ").Append(Ipconfig0).Append("\n"); + sb.Append(" Ipconfig1: ").Append(Ipconfig1).Append("\n"); + sb.Append(" Ipconfig2: ").Append(Ipconfig2).Append("\n"); + sb.Append(" Ipconfig3: ").Append(Ipconfig3).Append("\n"); + sb.Append(" Ipconfig4: ").Append(Ipconfig4).Append("\n"); + sb.Append(" Ipconfig5: ").Append(Ipconfig5).Append("\n"); + sb.Append(" Ipconfig6: ").Append(Ipconfig6).Append("\n"); + sb.Append(" Ipconfig7: ").Append(Ipconfig7).Append("\n"); + sb.Append(" Ipconfig8: ").Append(Ipconfig8).Append("\n"); + sb.Append(" Ipconfig9: ").Append(Ipconfig9).Append("\n"); + sb.Append(" Ipconfig10: ").Append(Ipconfig10).Append("\n"); + sb.Append(" Ipconfig11: ").Append(Ipconfig11).Append("\n"); + sb.Append(" Ipconfig12: ").Append(Ipconfig12).Append("\n"); + sb.Append(" Ipconfig13: ").Append(Ipconfig13).Append("\n"); + sb.Append(" Ipconfig14: ").Append(Ipconfig14).Append("\n"); + sb.Append(" Ipconfig15: ").Append(Ipconfig15).Append("\n"); + sb.Append(" Ipconfig16: ").Append(Ipconfig16).Append("\n"); + sb.Append(" Ipconfig17: ").Append(Ipconfig17).Append("\n"); + sb.Append(" Ipconfig18: ").Append(Ipconfig18).Append("\n"); + sb.Append(" Ipconfig19: ").Append(Ipconfig19).Append("\n"); + sb.Append(" Ipconfig20: ").Append(Ipconfig20).Append("\n"); + sb.Append(" Ipconfig21: ").Append(Ipconfig21).Append("\n"); + sb.Append(" Ipconfig22: ").Append(Ipconfig22).Append("\n"); + sb.Append(" Ipconfig23: ").Append(Ipconfig23).Append("\n"); + sb.Append(" Ipconfig24: ").Append(Ipconfig24).Append("\n"); + sb.Append(" Ipconfig25: ").Append(Ipconfig25).Append("\n"); + sb.Append(" Ipconfig26: ").Append(Ipconfig26).Append("\n"); + sb.Append(" Ipconfig27: ").Append(Ipconfig27).Append("\n"); + sb.Append(" Ipconfig28: ").Append(Ipconfig28).Append("\n"); + sb.Append(" Ipconfig29: ").Append(Ipconfig29).Append("\n"); + sb.Append(" Ivshmem: ").Append(Ivshmem).Append("\n"); + sb.Append(" Keephugepages: ").Append(Keephugepages).Append("\n"); + sb.Append(" Keyboard: ").Append(Keyboard).Append("\n"); + sb.Append(" Kvm: ").Append(Kvm).Append("\n"); + sb.Append(" Localtime: ").Append(Localtime).Append("\n"); + sb.Append(" Lock: ").Append(Lock).Append("\n"); + sb.Append(" Machine: ").Append(Machine).Append("\n"); + sb.Append(" Memory: ").Append(Memory).Append("\n"); + sb.Append(" MigrateDowntime: ").Append(MigrateDowntime).Append("\n"); + sb.Append(" MigrateSpeed: ").Append(MigrateSpeed).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Nameserver: ").Append(Nameserver).Append("\n"); + sb.Append(" Net0: ").Append(Net0).Append("\n"); + sb.Append(" Net1: ").Append(Net1).Append("\n"); + sb.Append(" Net2: ").Append(Net2).Append("\n"); + sb.Append(" Net3: ").Append(Net3).Append("\n"); + sb.Append(" Net4: ").Append(Net4).Append("\n"); + sb.Append(" Net5: ").Append(Net5).Append("\n"); + sb.Append(" Net6: ").Append(Net6).Append("\n"); + sb.Append(" Net7: ").Append(Net7).Append("\n"); + sb.Append(" Net8: ").Append(Net8).Append("\n"); + sb.Append(" Net9: ").Append(Net9).Append("\n"); + sb.Append(" Net10: ").Append(Net10).Append("\n"); + sb.Append(" Net11: ").Append(Net11).Append("\n"); + sb.Append(" Net12: ").Append(Net12).Append("\n"); + sb.Append(" Net13: ").Append(Net13).Append("\n"); + sb.Append(" Net14: ").Append(Net14).Append("\n"); + sb.Append(" Net15: ").Append(Net15).Append("\n"); + sb.Append(" Net16: ").Append(Net16).Append("\n"); + sb.Append(" Net17: ").Append(Net17).Append("\n"); + sb.Append(" Net18: ").Append(Net18).Append("\n"); + sb.Append(" Net19: ").Append(Net19).Append("\n"); + sb.Append(" Net20: ").Append(Net20).Append("\n"); + sb.Append(" Net21: ").Append(Net21).Append("\n"); + sb.Append(" Net22: ").Append(Net22).Append("\n"); + sb.Append(" Net23: ").Append(Net23).Append("\n"); + sb.Append(" Net24: ").Append(Net24).Append("\n"); + sb.Append(" Net25: ").Append(Net25).Append("\n"); + sb.Append(" Net26: ").Append(Net26).Append("\n"); + sb.Append(" Net27: ").Append(Net27).Append("\n"); + sb.Append(" Net28: ").Append(Net28).Append("\n"); + sb.Append(" Net29: ").Append(Net29).Append("\n"); + sb.Append(" Numa: ").Append(Numa).Append("\n"); + sb.Append(" Numa0: ").Append(Numa0).Append("\n"); + sb.Append(" Numa1: ").Append(Numa1).Append("\n"); + sb.Append(" Numa2: ").Append(Numa2).Append("\n"); + sb.Append(" Numa3: ").Append(Numa3).Append("\n"); + sb.Append(" Numa4: ").Append(Numa4).Append("\n"); + sb.Append(" Numa5: ").Append(Numa5).Append("\n"); + sb.Append(" Numa6: ").Append(Numa6).Append("\n"); + sb.Append(" Numa7: ").Append(Numa7).Append("\n"); + sb.Append(" Numa8: ").Append(Numa8).Append("\n"); + sb.Append(" Numa9: ").Append(Numa9).Append("\n"); + sb.Append(" Numa10: ").Append(Numa10).Append("\n"); + sb.Append(" Numa11: ").Append(Numa11).Append("\n"); + sb.Append(" Numa12: ").Append(Numa12).Append("\n"); + sb.Append(" Numa13: ").Append(Numa13).Append("\n"); + sb.Append(" Numa14: ").Append(Numa14).Append("\n"); + sb.Append(" Numa15: ").Append(Numa15).Append("\n"); + sb.Append(" Numa16: ").Append(Numa16).Append("\n"); + sb.Append(" Numa17: ").Append(Numa17).Append("\n"); + sb.Append(" Numa18: ").Append(Numa18).Append("\n"); + sb.Append(" Numa19: ").Append(Numa19).Append("\n"); + sb.Append(" Numa20: ").Append(Numa20).Append("\n"); + sb.Append(" Numa21: ").Append(Numa21).Append("\n"); + sb.Append(" Numa22: ").Append(Numa22).Append("\n"); + sb.Append(" Numa23: ").Append(Numa23).Append("\n"); + sb.Append(" Numa24: ").Append(Numa24).Append("\n"); + sb.Append(" Numa25: ").Append(Numa25).Append("\n"); + sb.Append(" Numa26: ").Append(Numa26).Append("\n"); + sb.Append(" Numa27: ").Append(Numa27).Append("\n"); + sb.Append(" Numa28: ").Append(Numa28).Append("\n"); + sb.Append(" Numa29: ").Append(Numa29).Append("\n"); + sb.Append(" Onboot: ").Append(Onboot).Append("\n"); + sb.Append(" Ostype: ").Append(Ostype).Append("\n"); + sb.Append(" Parallel0: ").Append(Parallel0).Append("\n"); + sb.Append(" Parallel1: ").Append(Parallel1).Append("\n"); + sb.Append(" Parallel2: ").Append(Parallel2).Append("\n"); + sb.Append(" Parallel3: ").Append(Parallel3).Append("\n"); + sb.Append(" Parallel4: ").Append(Parallel4).Append("\n"); + sb.Append(" Parallel5: ").Append(Parallel5).Append("\n"); + sb.Append(" Parallel6: ").Append(Parallel6).Append("\n"); + sb.Append(" Parallel7: ").Append(Parallel7).Append("\n"); + sb.Append(" Parallel8: ").Append(Parallel8).Append("\n"); + sb.Append(" Parallel9: ").Append(Parallel9).Append("\n"); + sb.Append(" Parallel10: ").Append(Parallel10).Append("\n"); + sb.Append(" Parallel11: ").Append(Parallel11).Append("\n"); + sb.Append(" Parallel12: ").Append(Parallel12).Append("\n"); + sb.Append(" Parallel13: ").Append(Parallel13).Append("\n"); + sb.Append(" Parallel14: ").Append(Parallel14).Append("\n"); + sb.Append(" Parallel15: ").Append(Parallel15).Append("\n"); + sb.Append(" Parallel16: ").Append(Parallel16).Append("\n"); + sb.Append(" Parallel17: ").Append(Parallel17).Append("\n"); + sb.Append(" Parallel18: ").Append(Parallel18).Append("\n"); + sb.Append(" Parallel19: ").Append(Parallel19).Append("\n"); + sb.Append(" Parallel20: ").Append(Parallel20).Append("\n"); + sb.Append(" Parallel21: ").Append(Parallel21).Append("\n"); + sb.Append(" Parallel22: ").Append(Parallel22).Append("\n"); + sb.Append(" Parallel23: ").Append(Parallel23).Append("\n"); + sb.Append(" Parallel24: ").Append(Parallel24).Append("\n"); + sb.Append(" Parallel25: ").Append(Parallel25).Append("\n"); + sb.Append(" Parallel26: ").Append(Parallel26).Append("\n"); + sb.Append(" Parallel27: ").Append(Parallel27).Append("\n"); + sb.Append(" Parallel28: ").Append(Parallel28).Append("\n"); + sb.Append(" Parallel29: ").Append(Parallel29).Append("\n"); + sb.Append(" Protection: ").Append(Protection).Append("\n"); + sb.Append(" Reboot: ").Append(Reboot).Append("\n"); + sb.Append(" Revert: ").Append(Revert).Append("\n"); + sb.Append(" Rng0: ").Append(Rng0).Append("\n"); + sb.Append(" Sata0: ").Append(Sata0).Append("\n"); + sb.Append(" Sata1: ").Append(Sata1).Append("\n"); + sb.Append(" Sata2: ").Append(Sata2).Append("\n"); + sb.Append(" Sata3: ").Append(Sata3).Append("\n"); + sb.Append(" Sata4: ").Append(Sata4).Append("\n"); + sb.Append(" Sata5: ").Append(Sata5).Append("\n"); + sb.Append(" Sata6: ").Append(Sata6).Append("\n"); + sb.Append(" Sata7: ").Append(Sata7).Append("\n"); + sb.Append(" Sata8: ").Append(Sata8).Append("\n"); + sb.Append(" Sata9: ").Append(Sata9).Append("\n"); + sb.Append(" Sata10: ").Append(Sata10).Append("\n"); + sb.Append(" Sata11: ").Append(Sata11).Append("\n"); + sb.Append(" Sata12: ").Append(Sata12).Append("\n"); + sb.Append(" Sata13: ").Append(Sata13).Append("\n"); + sb.Append(" Sata14: ").Append(Sata14).Append("\n"); + sb.Append(" Sata15: ").Append(Sata15).Append("\n"); + sb.Append(" Sata16: ").Append(Sata16).Append("\n"); + sb.Append(" Sata17: ").Append(Sata17).Append("\n"); + sb.Append(" Sata18: ").Append(Sata18).Append("\n"); + sb.Append(" Sata19: ").Append(Sata19).Append("\n"); + sb.Append(" Sata20: ").Append(Sata20).Append("\n"); + sb.Append(" Sata21: ").Append(Sata21).Append("\n"); + sb.Append(" Sata22: ").Append(Sata22).Append("\n"); + sb.Append(" Sata23: ").Append(Sata23).Append("\n"); + sb.Append(" Sata24: ").Append(Sata24).Append("\n"); + sb.Append(" Sata25: ").Append(Sata25).Append("\n"); + sb.Append(" Sata26: ").Append(Sata26).Append("\n"); + sb.Append(" Sata27: ").Append(Sata27).Append("\n"); + sb.Append(" Sata28: ").Append(Sata28).Append("\n"); + sb.Append(" Sata29: ").Append(Sata29).Append("\n"); + sb.Append(" Scsi0: ").Append(Scsi0).Append("\n"); + sb.Append(" Scsi1: ").Append(Scsi1).Append("\n"); + sb.Append(" Scsi2: ").Append(Scsi2).Append("\n"); + sb.Append(" Scsi3: ").Append(Scsi3).Append("\n"); + sb.Append(" Scsi4: ").Append(Scsi4).Append("\n"); + sb.Append(" Scsi5: ").Append(Scsi5).Append("\n"); + sb.Append(" Scsi6: ").Append(Scsi6).Append("\n"); + sb.Append(" Scsi7: ").Append(Scsi7).Append("\n"); + sb.Append(" Scsi8: ").Append(Scsi8).Append("\n"); + sb.Append(" Scsi9: ").Append(Scsi9).Append("\n"); + sb.Append(" Scsi10: ").Append(Scsi10).Append("\n"); + sb.Append(" Scsi11: ").Append(Scsi11).Append("\n"); + sb.Append(" Scsi12: ").Append(Scsi12).Append("\n"); + sb.Append(" Scsi13: ").Append(Scsi13).Append("\n"); + sb.Append(" Scsi14: ").Append(Scsi14).Append("\n"); + sb.Append(" Scsi15: ").Append(Scsi15).Append("\n"); + sb.Append(" Scsi16: ").Append(Scsi16).Append("\n"); + sb.Append(" Scsi17: ").Append(Scsi17).Append("\n"); + sb.Append(" Scsi18: ").Append(Scsi18).Append("\n"); + sb.Append(" Scsi19: ").Append(Scsi19).Append("\n"); + sb.Append(" Scsi20: ").Append(Scsi20).Append("\n"); + sb.Append(" Scsi21: ").Append(Scsi21).Append("\n"); + sb.Append(" Scsi22: ").Append(Scsi22).Append("\n"); + sb.Append(" Scsi23: ").Append(Scsi23).Append("\n"); + sb.Append(" Scsi24: ").Append(Scsi24).Append("\n"); + sb.Append(" Scsi25: ").Append(Scsi25).Append("\n"); + sb.Append(" Scsi26: ").Append(Scsi26).Append("\n"); + sb.Append(" Scsi27: ").Append(Scsi27).Append("\n"); + sb.Append(" Scsi28: ").Append(Scsi28).Append("\n"); + sb.Append(" Scsi29: ").Append(Scsi29).Append("\n"); + sb.Append(" Scsihw: ").Append(Scsihw).Append("\n"); + sb.Append(" Searchdomain: ").Append(Searchdomain).Append("\n"); + sb.Append(" Serial0: ").Append(Serial0).Append("\n"); + sb.Append(" Serial1: ").Append(Serial1).Append("\n"); + sb.Append(" Serial2: ").Append(Serial2).Append("\n"); + sb.Append(" Serial3: ").Append(Serial3).Append("\n"); + sb.Append(" Serial4: ").Append(Serial4).Append("\n"); + sb.Append(" Serial5: ").Append(Serial5).Append("\n"); + sb.Append(" Serial6: ").Append(Serial6).Append("\n"); + sb.Append(" Serial7: ").Append(Serial7).Append("\n"); + sb.Append(" Serial8: ").Append(Serial8).Append("\n"); + sb.Append(" Serial9: ").Append(Serial9).Append("\n"); + sb.Append(" Serial10: ").Append(Serial10).Append("\n"); + sb.Append(" Serial11: ").Append(Serial11).Append("\n"); + sb.Append(" Serial12: ").Append(Serial12).Append("\n"); + sb.Append(" Serial13: ").Append(Serial13).Append("\n"); + sb.Append(" Serial14: ").Append(Serial14).Append("\n"); + sb.Append(" Serial15: ").Append(Serial15).Append("\n"); + sb.Append(" Serial16: ").Append(Serial16).Append("\n"); + sb.Append(" Serial17: ").Append(Serial17).Append("\n"); + sb.Append(" Serial18: ").Append(Serial18).Append("\n"); + sb.Append(" Serial19: ").Append(Serial19).Append("\n"); + sb.Append(" Serial20: ").Append(Serial20).Append("\n"); + sb.Append(" Serial21: ").Append(Serial21).Append("\n"); + sb.Append(" Serial22: ").Append(Serial22).Append("\n"); + sb.Append(" Serial23: ").Append(Serial23).Append("\n"); + sb.Append(" Serial24: ").Append(Serial24).Append("\n"); + sb.Append(" Serial25: ").Append(Serial25).Append("\n"); + sb.Append(" Serial26: ").Append(Serial26).Append("\n"); + sb.Append(" Serial27: ").Append(Serial27).Append("\n"); + sb.Append(" Serial28: ").Append(Serial28).Append("\n"); + sb.Append(" Serial29: ").Append(Serial29).Append("\n"); + sb.Append(" Shares: ").Append(Shares).Append("\n"); + sb.Append(" Skiplock: ").Append(Skiplock).Append("\n"); + sb.Append(" Smbios1: ").Append(Smbios1).Append("\n"); + sb.Append(" Smp: ").Append(Smp).Append("\n"); + sb.Append(" Sockets: ").Append(Sockets).Append("\n"); + sb.Append(" SpiceEnhancements: ").Append(SpiceEnhancements).Append("\n"); + sb.Append(" Sshkeys: ").Append(Sshkeys).Append("\n"); + sb.Append(" Startdate: ").Append(Startdate).Append("\n"); + sb.Append(" Startup: ").Append(Startup).Append("\n"); + sb.Append(" Tablet: ").Append(Tablet).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Tdf: ").Append(Tdf).Append("\n"); + sb.Append(" Template: ").Append(Template).Append("\n"); + sb.Append(" Tpmstate0: ").Append(Tpmstate0).Append("\n"); + sb.Append(" Unused0: ").Append(Unused0).Append("\n"); + sb.Append(" Unused1: ").Append(Unused1).Append("\n"); + sb.Append(" Unused2: ").Append(Unused2).Append("\n"); + sb.Append(" Unused3: ").Append(Unused3).Append("\n"); + sb.Append(" Unused4: ").Append(Unused4).Append("\n"); + sb.Append(" Unused5: ").Append(Unused5).Append("\n"); + sb.Append(" Unused6: ").Append(Unused6).Append("\n"); + sb.Append(" Unused7: ").Append(Unused7).Append("\n"); + sb.Append(" Unused8: ").Append(Unused8).Append("\n"); + sb.Append(" Unused9: ").Append(Unused9).Append("\n"); + sb.Append(" Unused10: ").Append(Unused10).Append("\n"); + sb.Append(" Unused11: ").Append(Unused11).Append("\n"); + sb.Append(" Unused12: ").Append(Unused12).Append("\n"); + sb.Append(" Unused13: ").Append(Unused13).Append("\n"); + sb.Append(" Unused14: ").Append(Unused14).Append("\n"); + sb.Append(" Unused15: ").Append(Unused15).Append("\n"); + sb.Append(" Unused16: ").Append(Unused16).Append("\n"); + sb.Append(" Unused17: ").Append(Unused17).Append("\n"); + sb.Append(" Unused18: ").Append(Unused18).Append("\n"); + sb.Append(" Unused19: ").Append(Unused19).Append("\n"); + sb.Append(" Unused20: ").Append(Unused20).Append("\n"); + sb.Append(" Unused21: ").Append(Unused21).Append("\n"); + sb.Append(" Unused22: ").Append(Unused22).Append("\n"); + sb.Append(" Unused23: ").Append(Unused23).Append("\n"); + sb.Append(" Unused24: ").Append(Unused24).Append("\n"); + sb.Append(" Unused25: ").Append(Unused25).Append("\n"); + sb.Append(" Unused26: ").Append(Unused26).Append("\n"); + sb.Append(" Unused27: ").Append(Unused27).Append("\n"); + sb.Append(" Unused28: ").Append(Unused28).Append("\n"); + sb.Append(" Unused29: ").Append(Unused29).Append("\n"); + sb.Append(" Usb0: ").Append(Usb0).Append("\n"); + sb.Append(" Usb1: ").Append(Usb1).Append("\n"); + sb.Append(" Usb2: ").Append(Usb2).Append("\n"); + sb.Append(" Usb3: ").Append(Usb3).Append("\n"); + sb.Append(" Usb4: ").Append(Usb4).Append("\n"); + sb.Append(" Usb5: ").Append(Usb5).Append("\n"); + sb.Append(" Usb6: ").Append(Usb6).Append("\n"); + sb.Append(" Usb7: ").Append(Usb7).Append("\n"); + sb.Append(" Usb8: ").Append(Usb8).Append("\n"); + sb.Append(" Usb9: ").Append(Usb9).Append("\n"); + sb.Append(" Usb10: ").Append(Usb10).Append("\n"); + sb.Append(" Usb11: ").Append(Usb11).Append("\n"); + sb.Append(" Usb12: ").Append(Usb12).Append("\n"); + sb.Append(" Usb13: ").Append(Usb13).Append("\n"); + sb.Append(" Usb14: ").Append(Usb14).Append("\n"); + sb.Append(" Usb15: ").Append(Usb15).Append("\n"); + sb.Append(" Usb16: ").Append(Usb16).Append("\n"); + sb.Append(" Usb17: ").Append(Usb17).Append("\n"); + sb.Append(" Usb18: ").Append(Usb18).Append("\n"); + sb.Append(" Usb19: ").Append(Usb19).Append("\n"); + sb.Append(" Usb20: ").Append(Usb20).Append("\n"); + sb.Append(" Usb21: ").Append(Usb21).Append("\n"); + sb.Append(" Usb22: ").Append(Usb22).Append("\n"); + sb.Append(" Usb23: ").Append(Usb23).Append("\n"); + sb.Append(" Usb24: ").Append(Usb24).Append("\n"); + sb.Append(" Usb25: ").Append(Usb25).Append("\n"); + sb.Append(" Usb26: ").Append(Usb26).Append("\n"); + sb.Append(" Usb27: ").Append(Usb27).Append("\n"); + sb.Append(" Usb28: ").Append(Usb28).Append("\n"); + sb.Append(" Usb29: ").Append(Usb29).Append("\n"); + sb.Append(" Vcpus: ").Append(Vcpus).Append("\n"); + sb.Append(" Vga: ").Append(Vga).Append("\n"); + sb.Append(" Virtio0: ").Append(Virtio0).Append("\n"); + sb.Append(" Virtio1: ").Append(Virtio1).Append("\n"); + sb.Append(" Virtio2: ").Append(Virtio2).Append("\n"); + sb.Append(" Virtio3: ").Append(Virtio3).Append("\n"); + sb.Append(" Virtio4: ").Append(Virtio4).Append("\n"); + sb.Append(" Virtio5: ").Append(Virtio5).Append("\n"); + sb.Append(" Virtio6: ").Append(Virtio6).Append("\n"); + sb.Append(" Virtio7: ").Append(Virtio7).Append("\n"); + sb.Append(" Virtio8: ").Append(Virtio8).Append("\n"); + sb.Append(" Virtio9: ").Append(Virtio9).Append("\n"); + sb.Append(" Virtio10: ").Append(Virtio10).Append("\n"); + sb.Append(" Virtio11: ").Append(Virtio11).Append("\n"); + sb.Append(" Virtio12: ").Append(Virtio12).Append("\n"); + sb.Append(" Virtio13: ").Append(Virtio13).Append("\n"); + sb.Append(" Virtio14: ").Append(Virtio14).Append("\n"); + sb.Append(" Virtio15: ").Append(Virtio15).Append("\n"); + sb.Append(" Virtio16: ").Append(Virtio16).Append("\n"); + sb.Append(" Virtio17: ").Append(Virtio17).Append("\n"); + sb.Append(" Virtio18: ").Append(Virtio18).Append("\n"); + sb.Append(" Virtio19: ").Append(Virtio19).Append("\n"); + sb.Append(" Virtio20: ").Append(Virtio20).Append("\n"); + sb.Append(" Virtio21: ").Append(Virtio21).Append("\n"); + sb.Append(" Virtio22: ").Append(Virtio22).Append("\n"); + sb.Append(" Virtio23: ").Append(Virtio23).Append("\n"); + sb.Append(" Virtio24: ").Append(Virtio24).Append("\n"); + sb.Append(" Virtio25: ").Append(Virtio25).Append("\n"); + sb.Append(" Virtio26: ").Append(Virtio26).Append("\n"); + sb.Append(" Virtio27: ").Append(Virtio27).Append("\n"); + sb.Append(" Virtio28: ").Append(Virtio28).Append("\n"); + sb.Append(" Virtio29: ").Append(Virtio29).Append("\n"); + sb.Append(" Virtiofs0: ").Append(Virtiofs0).Append("\n"); + sb.Append(" Virtiofs1: ").Append(Virtiofs1).Append("\n"); + sb.Append(" Virtiofs2: ").Append(Virtiofs2).Append("\n"); + sb.Append(" Virtiofs3: ").Append(Virtiofs3).Append("\n"); + sb.Append(" Virtiofs4: ").Append(Virtiofs4).Append("\n"); + sb.Append(" Virtiofs5: ").Append(Virtiofs5).Append("\n"); + sb.Append(" Virtiofs6: ").Append(Virtiofs6).Append("\n"); + sb.Append(" Virtiofs7: ").Append(Virtiofs7).Append("\n"); + sb.Append(" Virtiofs8: ").Append(Virtiofs8).Append("\n"); + sb.Append(" Virtiofs9: ").Append(Virtiofs9).Append("\n"); + sb.Append(" Virtiofs10: ").Append(Virtiofs10).Append("\n"); + sb.Append(" Virtiofs11: ").Append(Virtiofs11).Append("\n"); + sb.Append(" Virtiofs12: ").Append(Virtiofs12).Append("\n"); + sb.Append(" Virtiofs13: ").Append(Virtiofs13).Append("\n"); + sb.Append(" Virtiofs14: ").Append(Virtiofs14).Append("\n"); + sb.Append(" Virtiofs15: ").Append(Virtiofs15).Append("\n"); + sb.Append(" Virtiofs16: ").Append(Virtiofs16).Append("\n"); + sb.Append(" Virtiofs17: ").Append(Virtiofs17).Append("\n"); + sb.Append(" Virtiofs18: ").Append(Virtiofs18).Append("\n"); + sb.Append(" Virtiofs19: ").Append(Virtiofs19).Append("\n"); + sb.Append(" Virtiofs20: ").Append(Virtiofs20).Append("\n"); + sb.Append(" Virtiofs21: ").Append(Virtiofs21).Append("\n"); + sb.Append(" Virtiofs22: ").Append(Virtiofs22).Append("\n"); + sb.Append(" Virtiofs23: ").Append(Virtiofs23).Append("\n"); + sb.Append(" Virtiofs24: ").Append(Virtiofs24).Append("\n"); + sb.Append(" Virtiofs25: ").Append(Virtiofs25).Append("\n"); + sb.Append(" Virtiofs26: ").Append(Virtiofs26).Append("\n"); + sb.Append(" Virtiofs27: ").Append(Virtiofs27).Append("\n"); + sb.Append(" Virtiofs28: ").Append(Virtiofs28).Append("\n"); + sb.Append(" Virtiofs29: ").Append(Virtiofs29).Append("\n"); + sb.Append(" Vmgenid: ").Append(Vmgenid).Append("\n"); + sb.Append(" Vmstatestorage: ").Append(Vmstatestorage).Append("\n"); + sb.Append(" Watchdog: ").Append(Watchdog).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateVMFirewallIPSetIPRequest.cs b/src/ProxmoxSharp/Model/UpdateVMFirewallIPSetIPRequest.cs new file mode 100644 index 0000000..c237ecb --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateVMFirewallIPSetIPRequest.cs @@ -0,0 +1,101 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateVMFirewallIPSetIPRequest + /// + [DataContract(Name = "UpdateVMFirewallIPSetIPRequest")] + public partial class UpdateVMFirewallIPSetIPRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// comment. + /// digest. + /// nomatch. + public UpdateVMFirewallIPSetIPRequest(string comment = default(string), string digest = default(string), bool nomatch = default(bool)) + { + this.Comment = comment; + this.Digest = digest; + this.Nomatch = nomatch; + } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Nomatch + /// + [DataMember(Name = "nomatch", EmitDefaultValue = true)] + public bool Nomatch { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateVMFirewallIPSetIPRequest {\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Nomatch: ").Append(Nomatch).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateVMFirewallOptionsRequest.cs b/src/ProxmoxSharp/Model/UpdateVMFirewallOptionsRequest.cs new file mode 100644 index 0000000..6d0b76c --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateVMFirewallOptionsRequest.cs @@ -0,0 +1,182 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateVMFirewallOptionsRequest + /// + [DataContract(Name = "UpdateVMFirewallOptionsRequest")] + public partial class UpdateVMFirewallOptionsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// delete. + /// dhcp. + /// digest. + /// enable. + /// ipfilter. + /// logLevelIn. + /// logLevelOut. + /// macfilter. + /// ndp. + /// policyIn. + /// policyOut. + /// radv. + public UpdateVMFirewallOptionsRequest(string delete = default(string), bool dhcp = default(bool), string digest = default(string), bool enable = default(bool), bool ipfilter = default(bool), string logLevelIn = default(string), string logLevelOut = default(string), bool macfilter = default(bool), bool ndp = default(bool), string policyIn = default(string), string policyOut = default(string), bool radv = default(bool)) + { + this.Delete = delete; + this.Dhcp = dhcp; + this.Digest = digest; + this.Enable = enable; + this.Ipfilter = ipfilter; + this.LogLevelIn = logLevelIn; + this.LogLevelOut = logLevelOut; + this.Macfilter = macfilter; + this.Ndp = ndp; + this.PolicyIn = policyIn; + this.PolicyOut = policyOut; + this.Radv = radv; + } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dhcp + /// + [DataMember(Name = "dhcp", EmitDefaultValue = true)] + public bool Dhcp { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = true)] + public bool Enable { get; set; } + + /// + /// Gets or Sets Ipfilter + /// + [DataMember(Name = "ipfilter", EmitDefaultValue = true)] + public bool Ipfilter { get; set; } + + /// + /// Gets or Sets LogLevelIn + /// + [DataMember(Name = "log_level_in", EmitDefaultValue = false)] + public string LogLevelIn { get; set; } + + /// + /// Gets or Sets LogLevelOut + /// + [DataMember(Name = "log_level_out", EmitDefaultValue = false)] + public string LogLevelOut { get; set; } + + /// + /// Gets or Sets Macfilter + /// + [DataMember(Name = "macfilter", EmitDefaultValue = true)] + public bool Macfilter { get; set; } + + /// + /// Gets or Sets Ndp + /// + [DataMember(Name = "ndp", EmitDefaultValue = true)] + public bool Ndp { get; set; } + + /// + /// Gets or Sets PolicyIn + /// + [DataMember(Name = "policy_in", EmitDefaultValue = false)] + public string PolicyIn { get; set; } + + /// + /// Gets or Sets PolicyOut + /// + [DataMember(Name = "policy_out", EmitDefaultValue = false)] + public string PolicyOut { get; set; } + + /// + /// Gets or Sets Radv + /// + [DataMember(Name = "radv", EmitDefaultValue = true)] + public bool Radv { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateVMFirewallOptionsRequest {\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dhcp: ").Append(Dhcp).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" Ipfilter: ").Append(Ipfilter).Append("\n"); + sb.Append(" LogLevelIn: ").Append(LogLevelIn).Append("\n"); + sb.Append(" LogLevelOut: ").Append(LogLevelOut).Append("\n"); + sb.Append(" Macfilter: ").Append(Macfilter).Append("\n"); + sb.Append(" Ndp: ").Append(Ndp).Append("\n"); + sb.Append(" PolicyIn: ").Append(PolicyIn).Append("\n"); + sb.Append(" PolicyOut: ").Append(PolicyOut).Append("\n"); + sb.Append(" Radv: ").Append(Radv).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateVMFirewallRuleRequest.cs b/src/ProxmoxSharp/Model/UpdateVMFirewallRuleRequest.cs new file mode 100644 index 0000000..8cd33e7 --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateVMFirewallRuleRequest.cs @@ -0,0 +1,218 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateVMFirewallRuleRequest + /// + [DataContract(Name = "UpdateVMFirewallRuleRequest")] + public partial class UpdateVMFirewallRuleRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// action. + /// comment. + /// delete. + /// dest. + /// digest. + /// dport. + /// enable. + /// icmpType. + /// iface. + /// log. + /// macro. + /// moveto. + /// proto. + /// source. + /// sport. + /// type. + public UpdateVMFirewallRuleRequest(string action = default(string), string comment = default(string), string delete = default(string), string dest = default(string), string digest = default(string), string dport = default(string), int enable = default(int), string icmpType = default(string), string iface = default(string), string log = default(string), string macro = default(string), int moveto = default(int), string proto = default(string), string source = default(string), string sport = default(string), string type = default(string)) + { + this.Action = action; + this.Comment = comment; + this.Delete = delete; + this.Dest = dest; + this.Digest = digest; + this.Dport = dport; + this.Enable = enable; + this.IcmpType = icmpType; + this.Iface = iface; + this.Log = log; + this.Macro = macro; + this.Moveto = moveto; + this.Proto = proto; + this.Source = source; + this.Sport = sport; + this.Type = type; + } + + /// + /// Gets or Sets Action + /// + [DataMember(Name = "action", EmitDefaultValue = false)] + public string Action { get; set; } + + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public string Comment { get; set; } + + /// + /// Gets or Sets Delete + /// + [DataMember(Name = "delete", EmitDefaultValue = false)] + public string Delete { get; set; } + + /// + /// Gets or Sets Dest + /// + [DataMember(Name = "dest", EmitDefaultValue = false)] + public string Dest { get; set; } + + /// + /// Gets or Sets Digest + /// + [DataMember(Name = "digest", EmitDefaultValue = false)] + public string Digest { get; set; } + + /// + /// Gets or Sets Dport + /// + [DataMember(Name = "dport", EmitDefaultValue = false)] + public string Dport { get; set; } + + /// + /// Gets or Sets Enable + /// + [DataMember(Name = "enable", EmitDefaultValue = false)] + public int Enable { get; set; } + + /// + /// Gets or Sets IcmpType + /// + [DataMember(Name = "icmp-type", EmitDefaultValue = false)] + public string IcmpType { get; set; } + + /// + /// Gets or Sets Iface + /// + [DataMember(Name = "iface", EmitDefaultValue = false)] + public string Iface { get; set; } + + /// + /// Gets or Sets Log + /// + [DataMember(Name = "log", EmitDefaultValue = false)] + public string Log { get; set; } + + /// + /// Gets or Sets Macro + /// + [DataMember(Name = "macro", EmitDefaultValue = false)] + public string Macro { get; set; } + + /// + /// Gets or Sets Moveto + /// + [DataMember(Name = "moveto", EmitDefaultValue = false)] + public int Moveto { get; set; } + + /// + /// Gets or Sets Proto + /// + [DataMember(Name = "proto", EmitDefaultValue = false)] + public string Proto { get; set; } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public string Source { get; set; } + + /// + /// Gets or Sets Sport + /// + [DataMember(Name = "sport", EmitDefaultValue = false)] + public string Sport { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateVMFirewallRuleRequest {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); + sb.Append(" Delete: ").Append(Delete).Append("\n"); + sb.Append(" Dest: ").Append(Dest).Append("\n"); + sb.Append(" Digest: ").Append(Digest).Append("\n"); + sb.Append(" Dport: ").Append(Dport).Append("\n"); + sb.Append(" Enable: ").Append(Enable).Append("\n"); + sb.Append(" IcmpType: ").Append(IcmpType).Append("\n"); + sb.Append(" Iface: ").Append(Iface).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" Macro: ").Append(Macro).Append("\n"); + sb.Append(" Moveto: ").Append(Moveto).Append("\n"); + sb.Append(" Proto: ").Append(Proto).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Sport: ").Append(Sport).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Model/UpdateVMSnapshotConfigRequest.cs b/src/ProxmoxSharp/Model/UpdateVMSnapshotConfigRequest.cs new file mode 100644 index 0000000..a186e6f --- /dev/null +++ b/src/ProxmoxSharp/Model/UpdateVMSnapshotConfigRequest.cs @@ -0,0 +1,83 @@ +/* + * ProxMox VE API + * + * ProxMox VE API + * + * The version of the OpenAPI document: 2.0 + * Contact: support@lumaserv.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter; + +namespace ProxmoxSharp.Model +{ + /// + /// UpdateVMSnapshotConfigRequest + /// + [DataContract(Name = "UpdateVMSnapshotConfigRequest")] + public partial class UpdateVMSnapshotConfigRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// description. + public UpdateVMSnapshotConfigRequest(string description = default(string)) + { + this.Description = description; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateVMSnapshotConfigRequest {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/ProxmoxSharp/Models/ProxmoxBalloonInfo.cs b/src/ProxmoxSharp/Models/ProxmoxBalloonInfo.cs deleted file mode 100644 index 7660ccb..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxBalloonInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxBalloonInfo - { - [JsonProperty("major_page_faults")] - public long MajorPageFaults { get; set; } - - [JsonProperty("total_mem")] - public long TotalMem { get; set; } - - [JsonProperty("mem_swapped_out")] - public long MemSwappedOut { get; set; } - - [JsonProperty("minor_page_faults")] - public long MinorPageFaults { get; set; } - - [JsonProperty("mem_swapped_in")] - public long MemSwappedIn { get; set; } - - [JsonProperty("max_mem")] - public long MaxMem { get; set; } - - [JsonProperty("last_update")] - public long LastUpdate { get; set; } - - [JsonProperty("actual")] - public long Actual { get; set; } - - [JsonProperty("free_mem")] - public long FreeMem { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxBlockStats.cs b/src/ProxmoxSharp/Models/ProxmoxBlockStats.cs deleted file mode 100644 index 1fbebe0..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxBlockStats.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxBlockStats - { - [JsonProperty("rd_operations")] - public long RdOperations { get; set; } - - [JsonProperty("wr_total_time_ns")] - public long WrTotalTimeNs { get; set; } - - [JsonProperty("wr_highest_offset")] - public long WrHighestOffset { get; set; } - - [JsonProperty("flush_operations")] - public long FlushOperations { get; set; } - - [JsonProperty("failed_zone_append_operations")] - public long FailedZoneAppendOperations { get; set; } - - [JsonProperty("invalid_wr_operations")] - public long InvalidWrOperations { get; set; } - - [JsonProperty("invalid_rd_operations")] - public long InvalidRdOperations { get; set; } - - [JsonProperty("rd_bytes")] - public long RdBytes { get; set; } - - [JsonProperty("invalid_zone_append_operations")] - public long InvalidZoneAppendOperations { get; set; } - - [JsonProperty("account_invalid")] - public bool AccountInvalid { get; set; } - - [JsonProperty("failed_rd_operations")] - public long FailedRdOperations { get; set; } - - [JsonProperty("timed_stats")] - public List TimedStats { get; set; } - - [JsonProperty("zone_append_operations")] - public long ZoneAppendOperations { get; set; } - - [JsonProperty("failed_flush_operations")] - public long FailedFlushOperations { get; set; } - - [JsonProperty("zone_append_merged")] - public long ZoneAppendMerged { get; set; } - - [JsonProperty("flush_total_time_ns")] - public long FlushTotalTimeNs { get; set; } - - [JsonProperty("invalid_unmap_operations")] - public long InvalidUnmapOperations { get; set; } - - [JsonProperty("invalid_flush_operations")] - public long InvalidFlushOperations { get; set; } - - [JsonProperty("rd_merged")] - public long RdMerged { get; set; } - - [JsonProperty("unmap_bytes")] - public long UnmapBytes { get; set; } - - [JsonProperty("unmap_operations")] - public long UnmapOperations { get; set; } - - [JsonProperty("zone_append_bytes")] - public long ZoneAppendBytes { get; set; } - - [JsonProperty("wr_operations")] - public long WrOperations { get; set; } - - [JsonProperty("rd_total_time_ns")] - public long RdTotalTimeNs { get; set; } - - [JsonProperty("wr_bytes")] - public long WrBytes { get; set; } - - [JsonProperty("zone_append_total_time_ns")] - public long ZoneAppendTotalTimeNs { get; set; } - - [JsonProperty("account_failed")] - public bool AccountFailed { get; set; } - - [JsonProperty("failed_unmap_operations")] - public long FailedUnmapOperations { get; set; } - - [JsonProperty("unmap_merged")] - public long UnmapMerged { get; set; } - - [JsonProperty("unmap_total_time_ns")] - public long UnmapTotalTimeNs { get; set; } - - [JsonProperty("wr_merged")] - public long WrMerged { get; set; } - - [JsonProperty("idle_time_ns")] - public long? IdleTimeNs { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxBootInfo.cs b/src/ProxmoxSharp/Models/ProxmoxBootInfo.cs deleted file mode 100644 index bc97da0..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxBootInfo.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxBootInfo - { - [JsonProperty("secureboot")] - public int SecureBoot { get; set; } - - [JsonProperty("mode")] - public string Mode { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxContainer.cs b/src/ProxmoxSharp/Models/ProxmoxContainer.cs deleted file mode 100644 index 16823e2..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxContainer.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxContainer - { - [JsonProperty("vmid")] - public int VmId { get; set; } - - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("status")] - public string Status { get; set; } - - [JsonProperty("uptime")] - public long Uptime { get; set; } - - [JsonProperty("cpu")] - public double Cpu { get; set; } - - [JsonProperty("cpus")] - public int CpuCount { get; set; } - - [JsonProperty("mem")] - public long MemoryUsed { get; set; } - - [JsonProperty("maxmem")] - public long MemoryTotal { get; set; } - - [JsonProperty("swap")] - public long SwapUsed { get; set; } - - [JsonProperty("maxswap")] - public long SwapTotal { get; set; } - - [JsonProperty("disk")] - public long DiskUsed { get; set; } - - [JsonProperty("maxdisk")] - public long DiskTotal { get; set; } - - [JsonProperty("diskread")] - public long DiskRead { get; set; } - - [JsonProperty("diskwrite")] - public long DiskWrite { get; set; } - - [JsonProperty("netin")] - public long NetworkIn { get; set; } - - [JsonProperty("netout")] - public long NetworkOut { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxCpuInfo.cs b/src/ProxmoxSharp/Models/ProxmoxCpuInfo.cs deleted file mode 100644 index adbe60d..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxCpuInfo.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxCpuInfo - { - [JsonProperty("cores")] - public int Cores { get; set; } - - [JsonProperty("mhz")] - public string MHz { get; set; } - - [JsonProperty("cpus")] - public int Cpus { get; set; } - - [JsonProperty("sockets")] - public int Sockets { get; set; } - - [JsonProperty("model")] - public string Model { get; set; } - - [JsonProperty("flags")] - public string Flags { get; set; } - - [JsonProperty("user_hz")] - public int UserHz { get; set; } - - [JsonProperty("hvm")] - public string Hvm { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxHighAvailability.cs b/src/ProxmoxSharp/Models/ProxmoxHighAvailability.cs deleted file mode 100644 index 6f26969..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxHighAvailability.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxHighAvailability - { - [JsonProperty("managed")] - public int Managed { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxKernelInfo.cs b/src/ProxmoxSharp/Models/ProxmoxKernelInfo.cs deleted file mode 100644 index e21d83b..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxKernelInfo.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxKernelInfo - { - [JsonProperty("version")] - public string Version { get; set; } - - [JsonProperty("sysname")] - public string SysName { get; set; } - - [JsonProperty("release")] - public string Release { get; set; } - - [JsonProperty("machine")] - public string Machine { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxKsmInfo.cs b/src/ProxmoxSharp/Models/ProxmoxKsmInfo.cs deleted file mode 100644 index b018302..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxKsmInfo.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxKsmInfo - { - [JsonProperty("shared")] - public long Shared { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxMemoryStats.cs b/src/ProxmoxSharp/Models/ProxmoxMemoryStats.cs deleted file mode 100644 index a20f89e..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxMemoryStats.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxMemoryStats - { - [JsonProperty("total")] - public long Total { get; set; } - - [JsonProperty("used")] - public long Used { get; set; } - - [JsonProperty("free")] - public long Free { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxNicStats.cs b/src/ProxmoxSharp/Models/ProxmoxNicStats.cs deleted file mode 100644 index e195a7a..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxNicStats.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxNicStats - { - [JsonProperty("netin")] - public long NetIn { get; set; } - - [JsonProperty("netout")] - public long NetOut { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxNode.cs b/src/ProxmoxSharp/Models/ProxmoxNode.cs deleted file mode 100644 index f233a8a..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxNode.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxNode - { - [JsonProperty("id")] - public string Id { get; set; } - - [JsonProperty("node")] - public string Name { get; set; } - - [JsonProperty("uptime")] - public long Uptime { get; set; } - - [JsonProperty("ssl_fingerprint")] - public string SslFingerprint { get; set; } - - [JsonProperty("status")] - public string Status { get; set; } - - [JsonProperty("cpu")] - public double Cpu { get; set; } - - [JsonProperty("maxcpu")] - public int MaxCpu { get; set; } - - [JsonProperty("disk")] - public long Disk { get; set; } - - [JsonProperty("maxmem")] - public long MaxMemory { get; set; } - - [JsonProperty("mem")] - public long Memory { get; set; } - - [JsonProperty("maxdisk")] - public long MaxDisk { get; set; } - - [JsonProperty("level")] - public string Level { get; set; } - - [JsonProperty("type")] - public string Type { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxNodeStatus.cs b/src/ProxmoxSharp/Models/ProxmoxNodeStatus.cs deleted file mode 100644 index 4020f4e..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxNodeStatus.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxNodeStatus - { - [JsonProperty("boot-info")] - public ProxmoxBootInfo BootInfo { get; set; } - - [JsonProperty("swap")] - public ProxmoxMemoryStats Swap { get; set; } - - [JsonProperty("rootfs")] - public ProxmoxStorageStats RootFs { get; set; } - - [JsonProperty("pveversion")] - public string PveVersion { get; set; } - - [JsonProperty("cpuinfo")] - public ProxmoxCpuInfo CpuInfo { get; set; } - - [JsonProperty("memory")] - public ProxmoxMemoryStats Memory { get; set; } - - [JsonProperty("ksm")] - public ProxmoxKsmInfo Ksm { get; set; } - - [JsonProperty("idle")] - public double Idle { get; set; } - - [JsonProperty("cpu")] - public double Cpu { get; set; } - - [JsonProperty("loadavg")] - public string[] LoadAverage { get; set; } - - [JsonProperty("current-kernel")] - public ProxmoxKernelInfo CurrentKernel { get; set; } - - [JsonProperty("kversion")] - public string KernelVersion { get; set; } - - [JsonProperty("wait")] - public double Wait { get; set; } - - [JsonProperty("uptime")] - public long Uptime { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxStorageStats.cs b/src/ProxmoxSharp/Models/ProxmoxStorageStats.cs deleted file mode 100644 index 99b8ebc..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxStorageStats.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxStorageStats - { - [JsonProperty("total")] - public long Total { get; set; } - - [JsonProperty("avail")] - public long Available { get; set; } - - [JsonProperty("used")] - public long Used { get; set; } - - [JsonProperty("free")] - public long Free { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxSupportInfo.cs b/src/ProxmoxSharp/Models/ProxmoxSupportInfo.cs deleted file mode 100644 index e0f7e55..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxSupportInfo.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxSupportInfo - { - [JsonProperty("backup-max-workers")] - public bool BackupMaxWorkers { get; set; } - - [JsonProperty("pbs-library-version")] - public string PbsLibraryVersion { get; set; } - - [JsonProperty("pbs-masterkey")] - public bool PbsMasterkey { get; set; } - - [JsonProperty("backup-fleecing")] - public bool BackupFleecing { get; set; } - - [JsonProperty("query-bitmap-info")] - public bool QueryBitmapInfo { get; set; } - - [JsonProperty("pbs-dirty-bitmap")] - public bool PbsDirtyBitmap { get; set; } - - [JsonProperty("pbs-dirty-bitmap-savevm")] - public bool PbsDirtyBitmapSaveVm { get; set; } - - [JsonProperty("pbs-dirty-bitmap-migration")] - public bool PbsDirtyBitmapMigration { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxVirtualMachine.cs b/src/ProxmoxSharp/Models/ProxmoxVirtualMachine.cs deleted file mode 100644 index 1709cbb..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxVirtualMachine.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxVirtualMachine - { - [JsonProperty("vmid")] - public int VmId { get; set; } - - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("status")] - public string Status { get; set; } - - [JsonProperty("uptime")] - public long Uptime { get; set; } - - [JsonProperty("cpu")] - public double Cpu { get; set; } - - [JsonProperty("cpus")] - public int CpuCount { get; set; } - - [JsonProperty("mem")] - public long MemoryUsed { get; set; } - - [JsonProperty("maxmem")] - public long MemoryTotal { get; set; } - - [JsonProperty("disk")] - public long DiskUsed { get; set; } - - [JsonProperty("maxdisk")] - public long DiskTotal { get; set; } - - [JsonProperty("diskread")] - public long DiskRead { get; set; } - - [JsonProperty("diskwrite")] - public long DiskWrite { get; set; } - - [JsonProperty("netin")] - public long NetworkIn { get; set; } - - [JsonProperty("netout")] - public long NetworkOut { get; set; } - - [JsonProperty("pid")] - public int Pid { get; set; } - } -} diff --git a/src/ProxmoxSharp/Models/ProxmoxVirtualMachineStatus.cs b/src/ProxmoxSharp/Models/ProxmoxVirtualMachineStatus.cs deleted file mode 100644 index 6ebd580..0000000 --- a/src/ProxmoxSharp/Models/ProxmoxVirtualMachineStatus.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace ProxmoxSharp.Models -{ - public class ProxmoxVirtualMachineStatus - { - [JsonProperty("vmid")] - public int VmId { get; set; } - - [JsonProperty("name")] - public string Name { get; set; } - - [JsonProperty("nics")] - public Dictionary Nics { get; set; } - - [JsonProperty("blockstat")] - public Dictionary BlockStat { get; set; } - - [JsonProperty("maxdisk")] - public long MaxDisk { get; set; } - - [JsonProperty("cpu")] - public double Cpu { get; set; } - - [JsonProperty("mem")] - public long Mem { get; set; } - - [JsonProperty("netin")] - public long NetIn { get; set; } - - [JsonProperty("pid")] - public int Pid { get; set; } - - [JsonProperty("qmpstatus")] - public string QmpStatus { get; set; } - - [JsonProperty("uptime")] - public long Uptime { get; set; } - - [JsonProperty("agent")] - public int Agent { get; set; } - - [JsonProperty("running-qemu")] - public string RunningQemu { get; set; } - - [JsonProperty("proxmox-support")] - public ProxmoxSupportInfo ProxmoxSupport { get; set; } - - [JsonProperty("maxmem")] - public long MaxMem { get; set; } - - [JsonProperty("disk")] - public double Disk { get; set; } - - [JsonProperty("ballooninfo")] - public ProxmoxBalloonInfo BalloonInfo { get; set; } - - [JsonProperty("netout")] - public long NetOut { get; set; } - - [JsonProperty("freemem")] - public long FreeMem { get; set; } - - [JsonProperty("diskread")] - public long DiskRead { get; set; } - - [JsonProperty("status")] - public string Status { get; set; } - - [JsonProperty("diskwrite")] - public long DiskWrite { get; set; } - - [JsonProperty("running-machine")] - public string RunningMachine { get; set; } - - [JsonProperty("balloon")] - public long Balloon { get; set; } - - [JsonProperty("ha")] - public ProxmoxHighAvailability Ha { get; set; } - - [JsonProperty("cpus")] - public int Cpus { get; set; } - } -} diff --git a/src/ProxmoxSharp/ProxmoxApi.cs b/src/ProxmoxSharp/ProxmoxApi.cs new file mode 100644 index 0000000..4b8f2fa --- /dev/null +++ b/src/ProxmoxSharp/ProxmoxApi.cs @@ -0,0 +1,104 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +using ProxmoxSharp.Api; +using ProxmoxSharp.Client; +using System; +using System.Net; +using System.Runtime.InteropServices; + +namespace ProxmoxSharp +{ + /// + /// Proxmox API + /// + /// + /// Use this class to interact with the Proxmox API. + /// + public sealed class ProxmoxApi : ProxmoxGeneratedApi + { + /// + /// Create a instance. + /// + public ProxmoxApi(string baseUrl, string tokenId, string tokenSecret) : base(CreateConfiguration(baseUrl, tokenId, tokenSecret)) + { + } + + /// + /// Try to create a from environment variables. + /// + /// + /// This will only work if the environment variables are set. + /// + /// instance or null if environment variables not set + /// + /// // Environment variable PROXMOX_API_KEY must be set + /// var api = ProxmoxApi.FromEnv(); + /// + public static ProxmoxApi? FromEnv() + { + var baseUrl = Environment.GetEnvironmentVariable("PROXMOX_URL"); + var tokenId = Environment.GetEnvironmentVariable("PROXMOX_TOKEN_ID"); + var tokenSecret = Environment.GetEnvironmentVariable("PROXMOX_TOKEN_SECRET"); + + if (!string.IsNullOrEmpty(baseUrl) && !string.IsNullOrEmpty(tokenId) && !string.IsNullOrEmpty(tokenSecret)) + { + return new ProxmoxApi(baseUrl, tokenId, tokenSecret); + } + + return null; + } + + /// + /// Gets the version of the Proxmox API client. + /// + public static string GetVersion() + { + var version = typeof(ProxmoxApi).Assembly.GetName().Version; + return $"{version?.Major}.{version?.Minor}.{version?.Build}"; + } + + /// + /// Gets the user agent string for the Proxmox API client. + /// + public static string GetUserAgent() + { + var version = GetVersion(); + var frameworkDescription = RuntimeInformation.FrameworkDescription.Trim(); + var runtimeIdentifier = RuntimeInformation.RuntimeIdentifier.Trim(); + return $"Proxmox/{version} ({frameworkDescription}; {runtimeIdentifier})"; + } + + /// + /// Checks if debug mode is enabled. + /// + /// True if debug mode is enabled, otherwise false + public static bool DebugEnabled() + { +#if DEBUG + return true; +#else + return false; +#endif + } + + /// + /// Creates a configuration for the Proxmox API client. + /// + private static Configuration CreateConfiguration(string baseUrl, string tokenId, string tokenSecret) + { + var config = new Configuration + { + BasePath = baseUrl.TrimEnd('/') + "/api2/json/", + UserAgent = WebUtility.UrlEncode(GetUserAgent()), + }; + + if (!string.IsNullOrEmpty(tokenId) && !string.IsNullOrEmpty(tokenSecret)) + { + config.DefaultHeaders["Authorization"] = $"PVEAPIToken={tokenId}={tokenSecret}"; + } + + return config; + } + } +} diff --git a/src/ProxmoxSharp/ProxmoxApiSingleton.cs b/src/ProxmoxSharp/ProxmoxApiSingleton.cs new file mode 100644 index 0000000..c8099fd --- /dev/null +++ b/src/ProxmoxSharp/ProxmoxApiSingleton.cs @@ -0,0 +1,33 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +namespace ProxmoxSharp +{ + /// + /// Tribufu API + /// + /// + /// Helper class to get a singleton instance of the . + /// + public static class ProxmoxApiSingleton + { + private static ProxmoxApi? _instance = null; + + /// + /// Get the singleton instance of . + /// + public static ProxmoxApi GetInstance() + { + //_instance ??= ProxmoxApi.FromEnvOrDefault(); + return _instance; + } + + /// + /// Reset the singleton instance of . + /// + public static void ResetInstance() + { + _instance = null; + } + } +} diff --git a/src/ProxmoxSharp/ProxmoxClient.cs b/src/ProxmoxSharp/ProxmoxClient.cs deleted file mode 100644 index c5ff043..0000000 --- a/src/ProxmoxSharp/ProxmoxClient.cs +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) Tribufu. All Rights Reserved. -// SPDX-License-Identifier: MIT - -using Newtonsoft.Json.Linq; -using ProxmoxSharp.Interfaces; -using ProxmoxSharp.Models; -using RestSharp; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - -namespace ProxmoxSharp -{ - public class ProxmoxClient : IProxmoxClient - { - private readonly RestClient _client; - - private string _ticket; - - private string _csrfToken; - - public ProxmoxClient(string baseUrl, string tokenId, string secret) - { - var options = new RestClientOptions(baseUrl.TrimEnd('/') + "/api2/json/") - { - RemoteCertificateValidationCallback = (sender, cert, chain, sslPolicyErrors) => true - }; - - _client = new RestClient(options); - - if (!string.IsNullOrEmpty(tokenId) && !string.IsNullOrEmpty(secret)) - { - _client.AddDefaultHeader("Authorization", $"PVEAPIToken={tokenId}={secret}"); - } - } - - public async Task LoginAsync(string username, string password) - { - var request = new RestRequest("access/ticket", Method.Post); - request.AddParameter("username", username); - request.AddParameter("password", password); - - var response = await _client.ExecuteAsync(request); - if (response.IsSuccessful) - { - var json = JObject.Parse(response.Content); - var data = json["data"]; - _ticket = data["ticket"].ToString(); - _csrfToken = data["CSRFPreventionToken"].ToString(); - - _client.AddDefaultHeader("Cookie", $"PVEAuthCookie={_ticket}"); - _client.AddDefaultHeader("CSRFPreventionToken", _csrfToken); - } - - return response.IsSuccessful; - } - - public async Task> ListNodesAsync() - { - var request = new RestRequest($"nodes", Method.Get); - - var response = await _client.ExecuteAsync(request); - if (!response.IsSuccessful) - { - throw new Exception($"Failed to list nodes: {response.StatusCode}"); - } - - var json = JObject.Parse(response.Content); - return json["data"].ToObject>(); - } - - public async Task GetNodeStatusAsync(string node) - { - var request = new RestRequest($"nodes/{node}/status", Method.Get); - - var response = await _client.ExecuteAsync(request); - if (!response.IsSuccessful) - { - throw new Exception($"Failed to get node {node}: {response.StatusCode}"); - } - - var json = JObject.Parse(response.Content); - return json["data"].ToObject(); - } - - public async Task CreateVirtualMachineAsync(string node, int vmid, string name, int memoryMb, int cores, string storage, string iso, string netConfig = "virtio,bridge=vmbr0") - { - var request = new RestRequest($"nodes/{node}/qemu", Method.Post); - request.AddParameter("vmid", vmid); - request.AddParameter("name", name); - request.AddParameter("memory", memoryMb); - request.AddParameter("cores", cores); - request.AddParameter("ide2", iso + ",media=cdrom"); - request.AddParameter("scsihw", "virtio-scsi-pci"); - request.AddParameter("scsi0", $"{storage}:32"); - request.AddParameter("net0", netConfig); - - var response = await _client.ExecuteAsync(request); - return response.IsSuccessful; - } - - public async Task> ListVirtualMachinesAsync(string node) - { - var request = new RestRequest($"nodes/{node}/qemu", Method.Get); - - var response = await _client.ExecuteAsync(request); - if (!response.IsSuccessful) - { - throw new Exception($"Failed to list VMs: {response.StatusCode}"); - } - - var json = JObject.Parse(response.Content); - return json["data"].ToObject>(); - } - - public async Task GetVirtualMachineStatusAsync(string node, int vmid) - { - var request = new RestRequest($"nodes/{node}/qemu/{vmid}/status/current", Method.Get); - - var response = await _client.ExecuteAsync(request); - if (!response.IsSuccessful) - { - throw new Exception($"Failed to start VM {vmid}: {response.StatusCode}"); - } - - var json = JObject.Parse(response.Content); - return json["data"].ToObject(); - } - - public async Task StartVirtualMachineAsync(string node, int vmid) - { - var request = new RestRequest($"nodes/{node}/qemu/{vmid}/status/start", Method.Post); - var response = await _client.ExecuteAsync(request); - return response.IsSuccessful; - } - - public async Task RebootVirtualMachineAsync(string node, int vmid) - { - var request = new RestRequest($"nodes/{node}/qemu/{vmid}/status/reboot", Method.Post); - var response = await _client.ExecuteAsync(request); - return response.IsSuccessful; - } - - public async Task ResetVirtualMachineAsync(string node, int vmid) - { - var request = new RestRequest($"nodes/{node}/qemu/{vmid}/status/reset", Method.Post); - var response = await _client.ExecuteAsync(request); - return response.IsSuccessful; - } - - public async Task SuspendVirtualMachineAsync(string node, int vmid) - { - var request = new RestRequest($"nodes/{node}/qemu/{vmid}/status/suspend", Method.Post); - var response = await _client.ExecuteAsync(request); - return response.IsSuccessful; - } - - public async Task ResumeVirtualMachineAsync(string node, int vmid) - { - var request = new RestRequest($"nodes/{node}/qemu/{vmid}/status/resume", Method.Post); - var response = await _client.ExecuteAsync(request); - return response.IsSuccessful; - } - - public async Task ShutdownVirtualMachineAsync(string node, int vmid) - { - var request = new RestRequest($"nodes/{node}/qemu/{vmid}/status/shutdown", Method.Post); - var response = await _client.ExecuteAsync(request); - return response.IsSuccessful; - } - - public async Task StopVirtualMachineAsync(string node, int vmid) - { - var request = new RestRequest($"nodes/{node}/qemu/{vmid}/status/stop", Method.Post); - var response = await _client.ExecuteAsync(request); - return response.IsSuccessful; - } - - public async Task> ListContainersAsync(string node) - { - var request = new RestRequest($"nodes/{node}/lxc", Method.Get); - - var response = await _client.ExecuteAsync(request); - if (!response.IsSuccessful) - { - throw new Exception($"Failed to list LXC containers: {response.StatusCode}"); - } - - var json = JObject.Parse(response.Content); - return json["data"].ToObject>(); - } - } -} diff --git a/src/ProxmoxSharp/ProxmoxSharp.csproj b/src/ProxmoxSharp/ProxmoxSharp.csproj index 817a4ec..a9496d2 100644 --- a/src/ProxmoxSharp/ProxmoxSharp.csproj +++ b/src/ProxmoxSharp/ProxmoxSharp.csproj @@ -5,15 +5,22 @@ README.md + Properties + true true + false + annotations Library - netstandard2.0;net471;net6.0 + net6.0 - + + + + diff --git a/src/ProxmoxSharp/README.md b/src/ProxmoxSharp/README.md deleted file mode 100644 index fe84005..0000000 --- a/src/ProxmoxSharp/README.md +++ /dev/null @@ -1 +0,0 @@ -../../README.md \ No newline at end of file diff --git a/tests/nodes.http b/tests/nodes.http new file mode 100644 index 0000000..12f49a3 --- /dev/null +++ b/tests/nodes.http @@ -0,0 +1,13 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT + +@url = {{$dotenv PROXMOX_URL}} +@token_id = {{$dotenv PROXMOX_TOKEN_ID}} +@token_secret = {{$dotenv PROXMOX_TOKEN_SECRET}} + +### + +GET {{url}}/api2/json/nodes +Authorization: PVEAPIToken={{token_id}}={{token_secret}} + +### diff --git a/vendor/openapi-generator/LICENSE b/vendor/openapi-generator/LICENSE new file mode 100644 index 0000000..310853b --- /dev/null +++ b/vendor/openapi-generator/LICENSE @@ -0,0 +1,202 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech) + Copyright 2018 SmartBear Software + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/openapi-generator/openapi-generator-cli.jar b/vendor/openapi-generator/openapi-generator-cli.jar new file mode 100644 index 0000000..f373b7a Binary files /dev/null and b/vendor/openapi-generator/openapi-generator-cli.jar differ diff --git a/vendor/spec.v2.yaml b/vendor/spec.v2.yaml new file mode 100644 index 0000000..dcc5ecf --- /dev/null +++ b/vendor/spec.v2.yaml @@ -0,0 +1,40548 @@ +openapi: 3.0.0 +info: + title: ProxMox VE API + version: "2.0" + description: ProxMox VE API + contact: + name: LUMASERV Support Team + email: support@lumaserv.com +servers: + - description: local + url: "https://cluster.local:8006/api2/json" +tags: + - name: cluster + - name: nodes + - name: storage + - name: access + - name: pools + - name: version +paths: + /cluster: + get: + operationId: getCluster + summary: getCluster + description: Cluster index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterResponse" + /cluster/replication: + get: + operationId: getClusterReplication + summary: getClusterReplication + description: List replication jobs. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterReplicationResponse" + post: + operationId: createClusterReplication + summary: createClusterReplication + description: Create a new replication job + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterReplicationResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterReplicationRequest" + "/cluster/replication/{id}": + delete: + operationId: deleteClusterReplicationSingle + summary: deleteClusterReplicationSingle + description: Mark replication job for removal. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterReplicationSingleResponse" + get: + operationId: getClusterReplicationSingle + summary: getClusterReplicationSingle + description: Read replication job configuration. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterReplicationSingleResponse" + put: + operationId: updateClusterReplicationSingle + summary: updateClusterReplicationSingle + description: Update replication job configuration. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterReplicationSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterReplicationSingleRequest" + /cluster/metrics: + get: + operationId: getClusterMetrics + summary: getClusterMetrics + description: Metrics index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterMetricsResponse" + /cluster/metrics/server: + get: + operationId: getClusterMetricsServer + summary: getClusterMetricsServer + description: List configured metric servers. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterMetricsServerResponse" + "/cluster/metrics/server/{id}": + delete: + operationId: deleteClusterMetricsServerSingle + summary: deleteClusterMetricsServerSingle + description: Remove Metric server. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterMetricsServerSingleResponse" + get: + operationId: getClusterMetricsServerSingle + summary: getClusterMetricsServerSingle + description: Read metric server configuration. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterMetricsServerSingleResponse" + post: + operationId: createClusterMetricsServerSingle + summary: createClusterMetricsServerSingle + description: Create a new external metric server config + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateClusterMetricsServerSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterMetricsServerSingleRequest" + put: + operationId: updateClusterMetricsServerSingle + summary: updateClusterMetricsServerSingle + description: Update metric server configuration. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterMetricsServerSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterMetricsServerSingleRequest" + /cluster/metrics/export: + get: + operationId: getClusterMetricsExport + summary: getClusterMetricsExport + description: Retrieve metrics of the cluster. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterMetricsExportResponse" + /cluster/notifications: + get: + operationId: getClusterNotifications + summary: getClusterNotifications + description: Index for notification-related API endpoints. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterNotificationsResponse" + /cluster/notifications/matcher-fields: + get: + operationId: getClusterNotificationsMatcherfields + summary: getClusterNotificationsMatcherfields + description: Returns known notification metadata fields + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterNotificationsMatcherfieldsResponse" + /cluster/notifications/matcher-field-values: + get: + operationId: getClusterNotificationsMatcherfieldvalues + summary: getClusterNotificationsMatcherfieldvalues + description: Returns known notification metadata fields and their known values + tags: + - cluster + parameters: [] + responses: + "200": + $ref: >- + #/components/responses/GetClusterNotificationsMatcherfieldvaluesResponse + /cluster/notifications/endpoints: + get: + operationId: getClusterNotificationsEndpoints + summary: getClusterNotificationsEndpoints + description: Index for all available endpoint types. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterNotificationsEndpointsResponse" + /cluster/notifications/endpoints/sendmail: + get: + operationId: getClusterNotificationsEndpointsSendmail + summary: getClusterNotificationsEndpointsSendmail + description: Returns a list of all sendmail endpoints + tags: + - cluster + parameters: [] + responses: + "200": + $ref: >- + #/components/responses/GetClusterNotificationsEndpointsSendmailResponse + post: + operationId: createClusterNotificationsEndpointsSendmail + summary: createClusterNotificationsEndpointsSendmail + description: Create a new sendmail endpoint + tags: + - cluster + parameters: [] + responses: + "200": + $ref: >- + #/components/responses/CreateClusterNotificationsEndpointsSendmailResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateClusterNotificationsEndpointsSendmailRequest + "/cluster/notifications/endpoints/sendmail/{name}": + delete: + operationId: deleteClusterNotificationsEndpointsSendmailSingle + summary: deleteClusterNotificationsEndpointsSendmailSingle + description: Remove sendmail endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteClusterNotificationsEndpointsSendmailSingleResponse + get: + operationId: getClusterNotificationsEndpointsSendmailSingle + summary: getClusterNotificationsEndpointsSendmailSingle + description: Return a specific sendmail endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetClusterNotificationsEndpointsSendmailSingleResponse + put: + operationId: updateClusterNotificationsEndpointsSendmailSingle + summary: updateClusterNotificationsEndpointsSendmailSingle + description: Update existing sendmail endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterNotificationsEndpointsSendmailSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterNotificationsEndpointsSendmailSingleRequest + /cluster/notifications/endpoints/gotify: + get: + operationId: getClusterNotificationsEndpointsGotify + summary: getClusterNotificationsEndpointsGotify + description: Returns a list of all gotify endpoints + tags: + - cluster + parameters: [] + responses: + "200": + $ref: >- + #/components/responses/GetClusterNotificationsEndpointsGotifyResponse + post: + operationId: createClusterNotificationsEndpointsGotify + summary: createClusterNotificationsEndpointsGotify + description: Create a new gotify endpoint + tags: + - cluster + parameters: [] + responses: + "200": + $ref: >- + #/components/responses/CreateClusterNotificationsEndpointsGotifyResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateClusterNotificationsEndpointsGotifyRequest + "/cluster/notifications/endpoints/gotify/{name}": + delete: + operationId: deleteClusterNotificationsEndpointsGotifySingle + summary: deleteClusterNotificationsEndpointsGotifySingle + description: Remove gotify endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteClusterNotificationsEndpointsGotifySingleResponse + get: + operationId: getClusterNotificationsEndpointsGotifySingle + summary: getClusterNotificationsEndpointsGotifySingle + description: Return a specific gotify endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetClusterNotificationsEndpointsGotifySingleResponse + put: + operationId: updateClusterNotificationsEndpointsGotifySingle + summary: updateClusterNotificationsEndpointsGotifySingle + description: Update existing gotify endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterNotificationsEndpointsGotifySingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterNotificationsEndpointsGotifySingleRequest + /cluster/notifications/endpoints/smtp: + get: + operationId: getClusterNotificationsEndpointsSmtp + summary: getClusterNotificationsEndpointsSmtp + description: Returns a list of all smtp endpoints + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterNotificationsEndpointsSmtpResponse" + post: + operationId: createClusterNotificationsEndpointsSmtp + summary: createClusterNotificationsEndpointsSmtp + description: Create a new smtp endpoint + tags: + - cluster + parameters: [] + responses: + "200": + $ref: >- + #/components/responses/CreateClusterNotificationsEndpointsSmtpResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateClusterNotificationsEndpointsSmtpRequest + "/cluster/notifications/endpoints/smtp/{name}": + delete: + operationId: deleteClusterNotificationsEndpointsSmtpSingle + summary: deleteClusterNotificationsEndpointsSmtpSingle + description: Remove smtp endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteClusterNotificationsEndpointsSmtpSingleResponse + get: + operationId: getClusterNotificationsEndpointsSmtpSingle + summary: getClusterNotificationsEndpointsSmtpSingle + description: Return a specific smtp endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetClusterNotificationsEndpointsSmtpSingleResponse + put: + operationId: updateClusterNotificationsEndpointsSmtpSingle + summary: updateClusterNotificationsEndpointsSmtpSingle + description: Update existing smtp endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterNotificationsEndpointsSmtpSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterNotificationsEndpointsSmtpSingleRequest + /cluster/notifications/endpoints/webhook: + get: + operationId: getClusterNotificationsEndpointsWebhook + summary: getClusterNotificationsEndpointsWebhook + description: Returns a list of all webhook endpoints + tags: + - cluster + parameters: [] + responses: + "200": + $ref: >- + #/components/responses/GetClusterNotificationsEndpointsWebhookResponse + post: + operationId: createClusterNotificationsEndpointsWebhook + summary: createClusterNotificationsEndpointsWebhook + description: Create a new webhook endpoint + tags: + - cluster + parameters: [] + responses: + "200": + $ref: >- + #/components/responses/CreateClusterNotificationsEndpointsWebhookResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateClusterNotificationsEndpointsWebhookRequest + "/cluster/notifications/endpoints/webhook/{name}": + delete: + operationId: deleteClusterNotificationsEndpointsWebhookSingle + summary: deleteClusterNotificationsEndpointsWebhookSingle + description: Remove webhook endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteClusterNotificationsEndpointsWebhookSingleResponse + get: + operationId: getClusterNotificationsEndpointsWebhookSingle + summary: getClusterNotificationsEndpointsWebhookSingle + description: Return a specific webhook endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetClusterNotificationsEndpointsWebhookSingleResponse + put: + operationId: updateClusterNotificationsEndpointsWebhookSingle + summary: updateClusterNotificationsEndpointsWebhookSingle + description: Update existing webhook endpoint + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterNotificationsEndpointsWebhookSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterNotificationsEndpointsWebhookSingleRequest + /cluster/notifications/targets: + get: + operationId: getClusterNotificationsTargets + summary: getClusterNotificationsTargets + description: Returns a list of all entities that can be used as notification targets. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterNotificationsTargetsResponse" + "/cluster/notifications/targets/{name}/test": + post: + operationId: createClusterNotificationsTargetsSingleTest + summary: createClusterNotificationsTargetsSingleTest + description: Send a test notification to a provided target. + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateClusterNotificationsTargetsSingleTestResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateClusterNotificationsTargetsSingleTestRequest + /cluster/notifications/matchers: + get: + operationId: getClusterNotificationsMatchers + summary: getClusterNotificationsMatchers + description: Returns a list of all matchers + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterNotificationsMatchersResponse" + post: + operationId: createClusterNotificationsMatchers + summary: createClusterNotificationsMatchers + description: Create a new matcher + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterNotificationsMatchersResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterNotificationsMatchersRequest" + "/cluster/notifications/matchers/{name}": + delete: + operationId: deleteClusterNotificationsMatchersSingle + summary: deleteClusterNotificationsMatchersSingle + description: Remove matcher + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteClusterNotificationsMatchersSingleResponse + get: + operationId: getClusterNotificationsMatchersSingle + summary: getClusterNotificationsMatchersSingle + description: Return a specific matcher + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterNotificationsMatchersSingleResponse" + put: + operationId: updateClusterNotificationsMatchersSingle + summary: updateClusterNotificationsMatchersSingle + description: Update existing matcher + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterNotificationsMatchersSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterNotificationsMatchersSingleRequest + /cluster/config: + get: + operationId: getClusterConfig + summary: getClusterConfig + description: Directory index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterConfigResponse" + post: + operationId: createClusterConfig + summary: createClusterConfig + description: >- + Generate new cluster configuration. If no links given, default to local + IP address as link0. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterConfigResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterConfigRequest" + /cluster/config/apiversion: + get: + operationId: getClusterConfigApiversion + summary: getClusterConfigApiversion + description: Return the version of the cluster join API available on this node. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterConfigApiversionResponse" + /cluster/config/nodes: + get: + operationId: getClusterConfigNodes + summary: getClusterConfigNodes + description: Corosync node list. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterConfigNodesResponse" + "/cluster/config/nodes/{node}": + delete: + operationId: deleteClusterConfigNodesSingle + summary: deleteClusterConfigNodesSingle + description: Removes a node from the cluster configuration. + tags: + - cluster + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterConfigNodesSingleResponse" + post: + operationId: createClusterConfigNodesSingle + summary: createClusterConfigNodesSingle + description: Adds a node to the cluster configuration. This call is for internal use. + tags: + - cluster + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateClusterConfigNodesSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterConfigNodesSingleRequest" + /cluster/config/join: + get: + operationId: getClusterConfigJoin + summary: getClusterConfigJoin + description: Get information needed to join this cluster over the connected node. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterConfigJoinResponse" + post: + operationId: createClusterConfigJoin + summary: createClusterConfigJoin + description: >- + Joins this node into an existing cluster. If no links are given, default + to IP resolved by node's hostname on single link (fallback fails for + clusters with multiple links). + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterConfigJoinResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterConfigJoinRequest" + /cluster/config/totem: + get: + operationId: getClusterConfigTotem + summary: getClusterConfigTotem + description: Get corosync totem protocol settings. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterConfigTotemResponse" + /cluster/config/qdevice: + get: + operationId: getClusterConfigQdevice + summary: getClusterConfigQdevice + description: Get QDevice status + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterConfigQdeviceResponse" + /cluster/firewall: + get: + operationId: getClusterFirewall + summary: getClusterFirewall + description: Directory index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallResponse" + /cluster/firewall/groups: + get: + operationId: getClusterFirewallGroups + summary: getClusterFirewallGroups + description: List security groups. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallGroupsResponse" + post: + operationId: createClusterFirewallGroup + summary: createClusterFirewallGroup + description: Create new security group. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterFirewallGroupResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterFirewallGroupRequest" + "/cluster/firewall/groups/{group}": + delete: + operationId: deleteClusterFirewallGroup + summary: deleteClusterFirewallGroup + description: Delete security group. + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterFirewallGroupResponse" + get: + operationId: getClusterFirewallGroupRules + summary: getClusterFirewallGroupRules + description: List rules. + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallGroupRulesResponse" + post: + operationId: addClusterFirewallGroupRule + summary: addClusterFirewallGroupRule + description: Create new rule. + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + responses: + "200": + $ref: "#/components/responses/AddClusterFirewallGroupRuleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AddClusterFirewallGroupRuleRequest" + "/cluster/firewall/groups/{group}/{pos}": + delete: + operationId: removeClusterFirewallGroupRule + summary: removeClusterFirewallGroupRule + description: Delete rule. + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/RemoveClusterFirewallGroupRuleResponse" + get: + operationId: getClusterFirewallGroupRule + summary: getClusterFirewallGroupRule + description: Get single rule data. + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallGroupRuleResponse" + put: + operationId: updateClusterFirewallGroupRule + summary: updateClusterFirewallGroupRule + description: Modify rule data. + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateClusterFirewallGroupRuleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterFirewallGroupRuleRequest" + /cluster/firewall/rules: + get: + operationId: getClusterFirewallRules + summary: getClusterFirewallRules + description: List rules. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallRulesResponse" + post: + operationId: addClusterFirewallRule + summary: addClusterFirewallRule + description: Create new rule. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/AddClusterFirewallRuleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AddClusterFirewallRuleRequest" + "/cluster/firewall/rules/{pos}": + delete: + operationId: removeClusterFirewallRule + summary: removeClusterFirewallRule + description: Delete rule. + tags: + - cluster + parameters: + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/RemoveClusterFirewallRuleResponse" + get: + operationId: getClusterFirewallRule + summary: getClusterFirewallRule + description: Get single rule data. + tags: + - cluster + parameters: + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallRuleResponse" + put: + operationId: updateClusterFirewallRule + summary: updateClusterFirewallRule + description: Modify rule data. + tags: + - cluster + parameters: + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateClusterFirewallRuleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterFirewallRuleRequest" + /cluster/firewall/ipset: + get: + operationId: getClusterFirewallIPSets + summary: getClusterFirewallIPSets + description: List IPSets + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallIPSetsResponse" + post: + operationId: createClusterFirewallIPSet + summary: createClusterFirewallIPSet + description: Create new IPSet + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterFirewallIPSetResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterFirewallIPSetRequest" + "/cluster/firewall/ipset/{name}": + delete: + operationId: deleteClusterFirewallIPSet + summary: deleteClusterFirewallIPSet + description: Delete IPSet + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterFirewallIPSetResponse" + get: + operationId: getClusterFirewallIPSet + summary: getClusterFirewallIPSet + description: List IPSet content + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallIPSetResponse" + post: + operationId: addClusterFirewallIPSetIP + summary: addClusterFirewallIPSetIP + description: Add IP or Network to IPSet. + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/AddClusterFirewallIPSetIPResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AddClusterFirewallIPSetIPRequest" + "/cluster/firewall/ipset/{name}/{cidr}": + delete: + operationId: removeClusterFirewallIPSetIP + summary: removeClusterFirewallIPSetIP + description: Remove IP or Network from IPSet. + tags: + - cluster + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/RemoveClusterFirewallIPSetIPResponse" + get: + operationId: getClusterFirewallIPSetIP + summary: getClusterFirewallIPSetIP + description: Read IP or Network settings from IPSet. + tags: + - cluster + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallIPSetIPResponse" + put: + operationId: updateClusterFirewallIPSetIP + summary: updateClusterFirewallIPSetIP + description: Update IP or Network settings + tags: + - cluster + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterFirewallIPSetIPResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterFirewallIPSetIPRequest" + /cluster/firewall/aliases: + get: + operationId: getClusterFirewallAliases + summary: getClusterFirewallAliases + description: List aliases + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallAliasesResponse" + post: + operationId: createClusterFirewallAliases + summary: createClusterFirewallAliases + description: Create IP or Network Alias. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterFirewallAliasesResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterFirewallAliasesRequest" + "/cluster/firewall/aliases/{name}": + delete: + operationId: deleteClusterFirewallAliasesSingle + summary: deleteClusterFirewallAliasesSingle + description: Remove IP or Network alias. + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterFirewallAliasesSingleResponse" + get: + operationId: getClusterFirewallAliasesSingle + summary: getClusterFirewallAliasesSingle + description: Read alias. + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallAliasesSingleResponse" + put: + operationId: updateClusterFirewallAliasesSingle + summary: updateClusterFirewallAliasesSingle + description: Update IP or Network alias. + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterFirewallAliasesSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterFirewallAliasesSingleRequest" + /cluster/firewall/options: + get: + operationId: getClusterFirewallOptions + summary: getClusterFirewallOptions + description: Get Firewall options. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallOptionsResponse" + put: + operationId: updateClusterFirewallOptions + summary: updateClusterFirewallOptions + description: Set Firewall options. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/UpdateClusterFirewallOptionsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterFirewallOptionsRequest" + /cluster/firewall/macros: + get: + operationId: getClusterFirewallMacros + summary: getClusterFirewallMacros + description: List available macros + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallMacrosResponse" + /cluster/firewall/refs: + get: + operationId: getClusterFirewallRefs + summary: getClusterFirewallRefs + description: >- + Lists possible IPSet/Alias reference which are allowed in source/dest + properties. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterFirewallRefsResponse" + /cluster/backup: + get: + operationId: getClusterBackup + summary: getClusterBackup + description: List vzdump backup schedule. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterBackupResponse" + post: + operationId: createClusterBackup + summary: createClusterBackup + description: Create new vzdump backup job. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterBackupResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterBackupRequest" + "/cluster/backup/{id}": + delete: + operationId: deleteClusterBackupSingle + summary: deleteClusterBackupSingle + description: Delete vzdump backup job definition. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterBackupSingleResponse" + get: + operationId: getClusterBackupSingle + summary: getClusterBackupSingle + description: Read vzdump backup job definition. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterBackupSingleResponse" + put: + operationId: updateClusterBackupSingle + summary: updateClusterBackupSingle + description: Update vzdump backup job definition. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterBackupSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterBackupSingleRequest" + "/cluster/backup/{id}/included_volumes": + get: + operationId: getClusterBackupSingleIncludedvolumes + summary: getClusterBackupSingleIncludedvolumes + description: >- + Returns included guests and the backup status of their disks. Optimized + to be used in ExtJS tree views. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterBackupSingleIncludedvolumesResponse" + /cluster/backup-info: + get: + operationId: getClusterBackupinfo + summary: getClusterBackupinfo + description: Index for backup info related endpoints + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterBackupinfoResponse" + /cluster/backup-info/not-backed-up: + get: + operationId: getClusterBackupinfoNotbackedup + summary: getClusterBackupinfoNotbackedup + description: Shows all guests which are not covered by any backup job. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterBackupinfoNotbackedupResponse" + /cluster/ha: + get: + operationId: getClusterHa + summary: getClusterHa + description: Directory index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterHaResponse" + /cluster/ha/resources: + get: + operationId: getClusterHaResources + summary: getClusterHaResources + description: List HA resources. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterHaResourcesResponse" + post: + operationId: createClusterHaResources + summary: createClusterHaResources + description: Create a new HA resource. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterHaResourcesResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterHaResourcesRequest" + "/cluster/ha/resources/{sid}": + delete: + operationId: deleteClusterHaResourcesSingle + summary: deleteClusterHaResourcesSingle + description: Delete resource configuration. + tags: + - cluster + parameters: + - name: sid + in: path + required: true + description: sid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterHaResourcesSingleResponse" + get: + operationId: getClusterHaResourcesSingle + summary: getClusterHaResourcesSingle + description: Read resource configuration. + tags: + - cluster + parameters: + - name: sid + in: path + required: true + description: sid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterHaResourcesSingleResponse" + put: + operationId: updateClusterHaResourcesSingle + summary: updateClusterHaResourcesSingle + description: Update resource configuration. + tags: + - cluster + parameters: + - name: sid + in: path + required: true + description: sid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterHaResourcesSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterHaResourcesSingleRequest" + "/cluster/ha/resources/{sid}/migrate": + post: + operationId: createClusterHaResourcesSingleMigrate + summary: createClusterHaResourcesSingleMigrate + description: Request resource migration (online) to another node. + tags: + - cluster + parameters: + - name: sid + in: path + required: true + description: sid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateClusterHaResourcesSingleMigrateResponse" + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateClusterHaResourcesSingleMigrateRequest + "/cluster/ha/resources/{sid}/relocate": + post: + operationId: createClusterHaResourcesSingleRelocate + summary: createClusterHaResourcesSingleRelocate + description: >- + Request resource relocatzion to another node. This stops the service on + the old node, and restarts it on the target node. + tags: + - cluster + parameters: + - name: sid + in: path + required: true + description: sid + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateClusterHaResourcesSingleRelocateResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateClusterHaResourcesSingleRelocateRequest + /cluster/ha/groups: + get: + operationId: getClusterHaGroups + summary: getClusterHaGroups + description: Get HA groups. (deprecated in favor of HA rules) + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterHaGroupsResponse" + post: + operationId: createClusterHaGroups + summary: createClusterHaGroups + description: Create a new HA group. (deprecated in favor of HA rules) + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterHaGroupsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterHaGroupsRequest" + "/cluster/ha/groups/{group}": + delete: + operationId: deleteClusterHaGroupsSingle + summary: deleteClusterHaGroupsSingle + description: Delete ha group configuration. (deprecated in favor of HA rules) + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterHaGroupsSingleResponse" + get: + operationId: getClusterHaGroupsSingle + summary: getClusterHaGroupsSingle + description: Read ha group configuration. (deprecated in favor of HA rules) + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterHaGroupsSingleResponse" + put: + operationId: updateClusterHaGroupsSingle + summary: updateClusterHaGroupsSingle + description: Update ha group configuration. (deprecated in favor of HA rules) + tags: + - cluster + parameters: + - name: group + in: path + required: true + description: group + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterHaGroupsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterHaGroupsSingleRequest" + /cluster/ha/rules: + get: + operationId: getClusterHaRules + summary: getClusterHaRules + description: Get HA rules. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterHaRulesResponse" + post: + operationId: createClusterHaRules + summary: createClusterHaRules + description: Create HA rule. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterHaRulesResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterHaRulesRequest" + "/cluster/ha/rules/{rule}": + delete: + operationId: deleteClusterHaRulesSingle + summary: deleteClusterHaRulesSingle + description: Delete HA rule. + tags: + - cluster + parameters: + - name: rule + in: path + required: true + description: rule + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterHaRulesSingleResponse" + get: + operationId: getClusterHaRulesSingle + summary: getClusterHaRulesSingle + description: Read HA rule. + tags: + - cluster + parameters: + - name: rule + in: path + required: true + description: rule + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterHaRulesSingleResponse" + put: + operationId: updateClusterHaRulesSingle + summary: updateClusterHaRulesSingle + description: Update HA rule. + tags: + - cluster + parameters: + - name: rule + in: path + required: true + description: rule + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterHaRulesSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterHaRulesSingleRequest" + /cluster/ha/status: + get: + operationId: getClusterHaStatus + summary: getClusterHaStatus + description: Directory index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterHaStatusResponse" + /cluster/ha/status/current: + get: + operationId: getClusterHaStatusCurrent + summary: getClusterHaStatusCurrent + description: Get HA manger status. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterHaStatusCurrentResponse" + /cluster/ha/status/manager_status: + get: + operationId: getClusterHaStatusManagerstatus + summary: getClusterHaStatusManagerstatus + description: "Get full HA manger status, including LRM status." + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterHaStatusManagerstatusResponse" + /cluster/acme: + get: + operationId: getClusterAcme + summary: getClusterAcme + description: ACMEAccount index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterAcmeResponse" + /cluster/acme/plugins: + get: + operationId: getClusterAcmePlugins + summary: getClusterAcmePlugins + description: ACME plugin index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterAcmePluginsResponse" + post: + operationId: createClusterAcmePlugins + summary: createClusterAcmePlugins + description: Add ACME plugin configuration. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterAcmePluginsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterAcmePluginsRequest" + "/cluster/acme/plugins/{id}": + delete: + operationId: deleteClusterAcmePluginsSingle + summary: deleteClusterAcmePluginsSingle + description: Delete ACME plugin configuration. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterAcmePluginsSingleResponse" + get: + operationId: getClusterAcmePluginsSingle + summary: getClusterAcmePluginsSingle + description: Get ACME plugin configuration. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterAcmePluginsSingleResponse" + put: + operationId: updateClusterAcmePluginsSingle + summary: updateClusterAcmePluginsSingle + description: Update ACME plugin configuration. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterAcmePluginsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterAcmePluginsSingleRequest" + /cluster/acme/account: + get: + operationId: getClusterAcmeAccount + summary: getClusterAcmeAccount + description: ACMEAccount index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterAcmeAccountResponse" + post: + operationId: createClusterAcmeAccount + summary: createClusterAcmeAccount + description: Register a new ACME account with CA. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterAcmeAccountResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterAcmeAccountRequest" + "/cluster/acme/account/{name}": + delete: + operationId: deleteClusterAcmeAccountSingle + summary: deleteClusterAcmeAccountSingle + description: Deactivate existing ACME account at CA. + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterAcmeAccountSingleResponse" + get: + operationId: getClusterAcmeAccountSingle + summary: getClusterAcmeAccountSingle + description: Return existing ACME account information. + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterAcmeAccountSingleResponse" + put: + operationId: updateClusterAcmeAccountSingle + summary: updateClusterAcmeAccountSingle + description: >- + Update existing ACME account information with CA. Note: not specifying + any new account information triggers a refresh. + tags: + - cluster + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterAcmeAccountSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterAcmeAccountSingleRequest" + /cluster/acme/tos: + get: + operationId: getClusterAcmeTos + summary: getClusterAcmeTos + description: >- + Retrieve ACME TermsOfService URL from CA. Deprecated, please use + /cluster/acme/meta. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterAcmeTosResponse" + /cluster/acme/meta: + get: + operationId: getClusterAcmeMeta + summary: getClusterAcmeMeta + description: Retrieve ACME Directory Meta Information + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterAcmeMetaResponse" + /cluster/acme/directories: + get: + operationId: getClusterAcmeDirectories + summary: getClusterAcmeDirectories + description: Get named known ACME directory endpoints. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterAcmeDirectoriesResponse" + /cluster/acme/challenge-schema: + get: + operationId: getClusterAcmeChallengeschema + summary: getClusterAcmeChallengeschema + description: Get schema of ACME challenge types. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterAcmeChallengeschemaResponse" + /cluster/ceph: + get: + operationId: getClusterCeph + summary: getClusterCeph + description: Cluster ceph index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterCephResponse" + /cluster/ceph/metadata: + get: + operationId: getClusterCephMetadata + summary: getClusterCephMetadata + description: Get ceph metadata. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterCephMetadataResponse" + /cluster/ceph/status: + get: + operationId: getClusterCephStatus + summary: getClusterCephStatus + description: Get ceph status. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterCephStatusResponse" + /cluster/ceph/flags: + get: + operationId: getClusterCephFlags + summary: getClusterCephFlags + description: get the status of all ceph flags + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterCephFlagsResponse" + put: + operationId: updateClusterCephFlags + summary: updateClusterCephFlags + description: Set/Unset multiple ceph flags at once. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/UpdateClusterCephFlagsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterCephFlagsRequest" + "/cluster/ceph/flags/{flag}": + get: + operationId: getClusterCephFlagsSingle + summary: getClusterCephFlagsSingle + description: Get the status of a specific ceph flag. + tags: + - cluster + parameters: + - name: flag + in: path + required: true + description: flag + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterCephFlagsSingleResponse" + put: + operationId: updateClusterCephFlagsSingle + summary: updateClusterCephFlagsSingle + description: Set or clear (unset) a specific ceph flag + tags: + - cluster + parameters: + - name: flag + in: path + required: true + description: flag + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterCephFlagsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterCephFlagsSingleRequest" + /cluster/jobs: + get: + operationId: getClusterJobs + summary: getClusterJobs + description: Index for jobs related endpoints. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterJobsResponse" + /cluster/jobs/realm-sync: + get: + operationId: getClusterJobsRealmsync + summary: getClusterJobsRealmsync + description: List configured realm-sync-jobs. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterJobsRealmsyncResponse" + "/cluster/jobs/realm-sync/{id}": + delete: + operationId: deleteClusterJobsRealmsyncSingle + summary: deleteClusterJobsRealmsyncSingle + description: Delete realm-sync job definition. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterJobsRealmsyncSingleResponse" + get: + operationId: getClusterJobsRealmsyncSingle + summary: getClusterJobsRealmsyncSingle + description: Read realm-sync job definition. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterJobsRealmsyncSingleResponse" + post: + operationId: createClusterJobsRealmsyncSingle + summary: createClusterJobsRealmsyncSingle + description: Create new realm-sync job. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateClusterJobsRealmsyncSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterJobsRealmsyncSingleRequest" + put: + operationId: updateClusterJobsRealmsyncSingle + summary: updateClusterJobsRealmsyncSingle + description: Update realm-sync job definition. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterJobsRealmsyncSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterJobsRealmsyncSingleRequest" + /cluster/jobs/schedule-analyze: + get: + operationId: getClusterJobsScheduleanalyze + summary: getClusterJobsScheduleanalyze + description: Returns a list of future schedule runtimes. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterJobsScheduleanalyzeResponse" + /cluster/mapping: + get: + operationId: getClusterMapping + summary: getClusterMapping + description: List resource types. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterMappingResponse" + /cluster/mapping/dir: + get: + operationId: getClusterMappingDir + summary: getClusterMappingDir + description: List directory mapping + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterMappingDirResponse" + post: + operationId: createClusterMappingDir + summary: createClusterMappingDir + description: Create a new directory mapping. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterMappingDirResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterMappingDirRequest" + "/cluster/mapping/dir/{id}": + delete: + operationId: deleteClusterMappingDirSingle + summary: deleteClusterMappingDirSingle + description: Remove directory mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterMappingDirSingleResponse" + get: + operationId: getClusterMappingDirSingle + summary: getClusterMappingDirSingle + description: Get directory mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterMappingDirSingleResponse" + put: + operationId: updateClusterMappingDirSingle + summary: updateClusterMappingDirSingle + description: Update a directory mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterMappingDirSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterMappingDirSingleRequest" + /cluster/mapping/pci: + get: + operationId: getClusterMappingPci + summary: getClusterMappingPci + description: List PCI Hardware Mapping + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterMappingPciResponse" + post: + operationId: createClusterMappingPci + summary: createClusterMappingPci + description: Create a new hardware mapping. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterMappingPciResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterMappingPciRequest" + "/cluster/mapping/pci/{id}": + delete: + operationId: deleteClusterMappingPciSingle + summary: deleteClusterMappingPciSingle + description: Remove Hardware Mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterMappingPciSingleResponse" + get: + operationId: getClusterMappingPciSingle + summary: getClusterMappingPciSingle + description: Get PCI Mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterMappingPciSingleResponse" + put: + operationId: updateClusterMappingPciSingle + summary: updateClusterMappingPciSingle + description: Update a hardware mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterMappingPciSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterMappingPciSingleRequest" + /cluster/mapping/usb: + get: + operationId: getClusterMappingUsb + summary: getClusterMappingUsb + description: List USB Hardware Mappings + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterMappingUsbResponse" + post: + operationId: createClusterMappingUsb + summary: createClusterMappingUsb + description: Create a new hardware mapping. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterMappingUsbResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterMappingUsbRequest" + "/cluster/mapping/usb/{id}": + delete: + operationId: deleteClusterMappingUsbSingle + summary: deleteClusterMappingUsbSingle + description: Remove Hardware Mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterMappingUsbSingleResponse" + get: + operationId: getClusterMappingUsbSingle + summary: getClusterMappingUsbSingle + description: Get USB Mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterMappingUsbSingleResponse" + put: + operationId: updateClusterMappingUsbSingle + summary: updateClusterMappingUsbSingle + description: Update a hardware mapping. + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterMappingUsbSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterMappingUsbSingleRequest" + /cluster/bulk-action: + get: + operationId: getClusterBulkaction + summary: getClusterBulkaction + description: List resource types. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterBulkactionResponse" + /cluster/bulk-action/guest: + get: + operationId: getClusterBulkactionGuest + summary: getClusterBulkactionGuest + description: Bulk action index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterBulkactionGuestResponse" + /cluster/bulk-action/guest/start: + post: + operationId: createClusterBulkactionGuestStart + summary: createClusterBulkactionGuestStart + description: Bulk start or resume all guests on the cluster. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterBulkactionGuestStartResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterBulkactionGuestStartRequest" + /cluster/bulk-action/guest/shutdown: + post: + operationId: createClusterBulkactionGuestShutdown + summary: createClusterBulkactionGuestShutdown + description: Bulk shutdown all guests on the cluster. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterBulkactionGuestShutdownResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterBulkactionGuestShutdownRequest" + /cluster/bulk-action/guest/suspend: + post: + operationId: createClusterBulkactionGuestSuspend + summary: createClusterBulkactionGuestSuspend + description: Bulk suspend all guests on the cluster. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterBulkactionGuestSuspendResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterBulkactionGuestSuspendRequest" + /cluster/bulk-action/guest/migrate: + post: + operationId: createClusterBulkactionGuestMigrate + summary: createClusterBulkactionGuestMigrate + description: Bulk migrate all guests on the cluster. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterBulkactionGuestMigrateResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterBulkactionGuestMigrateRequest" + /cluster/sdn: + get: + operationId: getClusterSDN + summary: getClusterSDN + description: Directory index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSDNResponse" + put: + operationId: updateClusterSDN + summary: updateClusterSDN + description: Apply sdn controller changes && reload. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/UpdateClusterSDNResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterSDNRequest" + /cluster/sdn/vnets: + get: + operationId: getClusterSDNVnets + summary: getClusterSDNVnets + description: SDN vnets index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSDNVnetsResponse" + post: + operationId: createClusterSDNVnet + summary: createClusterSDNVnet + description: Create a new sdn vnet object. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterSDNVnetResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSDNVnetRequest" + "/cluster/sdn/vnets/{vnet}": + delete: + operationId: deleteClusterSDNVnet + summary: deleteClusterSDNVnet + description: Delete sdn vnet object configuration. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterSDNVnetResponse" + get: + operationId: getClusterSDNVnet + summary: getClusterSDNVnet + description: Read sdn vnet configuration. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSDNVnetResponse" + put: + operationId: updateClusterSDNVnet + summary: updateClusterSDNVnet + description: Update sdn vnet object configuration. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterSDNVnetResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterSDNVnetRequest" + "/cluster/sdn/vnets/{vnet}/firewall": + get: + operationId: getClusterSdnVnetsSingleFirewall + summary: getClusterSdnVnetsSingleFirewall + description: Directory index. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnVnetsSingleFirewallResponse" + "/cluster/sdn/vnets/{vnet}/firewall/rules": + get: + operationId: getClusterSdnVnetsSingleFirewallRules + summary: getClusterSdnVnetsSingleFirewallRules + description: List rules. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnVnetsSingleFirewallRulesResponse" + post: + operationId: createClusterSdnVnetsSingleFirewallRules + summary: createClusterSdnVnetsSingleFirewallRules + description: Create new rule. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateClusterSdnVnetsSingleFirewallRulesResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateClusterSdnVnetsSingleFirewallRulesRequest + "/cluster/sdn/vnets/{vnet}/firewall/rules/{pos}": + delete: + operationId: deleteClusterSdnVnetsSingleFirewallRulesSingle + summary: deleteClusterSdnVnetsSingleFirewallRulesSingle + description: Delete rule. + tags: + - cluster + parameters: + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteClusterSdnVnetsSingleFirewallRulesSingleResponse + get: + operationId: getClusterSdnVnetsSingleFirewallRulesSingle + summary: getClusterSdnVnetsSingleFirewallRulesSingle + description: Get single rule data. + tags: + - cluster + parameters: + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetClusterSdnVnetsSingleFirewallRulesSingleResponse + put: + operationId: updateClusterSdnVnetsSingleFirewallRulesSingle + summary: updateClusterSdnVnetsSingleFirewallRulesSingle + description: Modify rule data. + tags: + - cluster + parameters: + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterSdnVnetsSingleFirewallRulesSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest + "/cluster/sdn/vnets/{vnet}/firewall/options": + get: + operationId: getClusterSdnVnetsSingleFirewallOptions + summary: getClusterSdnVnetsSingleFirewallOptions + description: Get vnet firewall options. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetClusterSdnVnetsSingleFirewallOptionsResponse + put: + operationId: updateClusterSdnVnetsSingleFirewallOptions + summary: updateClusterSdnVnetsSingleFirewallOptions + description: Set Firewall options. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterSdnVnetsSingleFirewallOptionsResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterSdnVnetsSingleFirewallOptionsRequest + "/cluster/sdn/vnets/{vnet}/subnets": + get: + operationId: getClusterSdnVnetsSingleSubnets + summary: getClusterSdnVnetsSingleSubnets + description: SDN subnets index. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnVnetsSingleSubnetsResponse" + post: + operationId: createClusterSdnVnetsSingleSubnets + summary: createClusterSdnVnetsSingleSubnets + description: Create a new sdn subnet object. + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateClusterSdnVnetsSingleSubnetsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSdnVnetsSingleSubnetsRequest" + "/cluster/sdn/vnets/{vnet}/subnets/{subnet}": + delete: + operationId: deleteClusterSdnVnetsSingleSubnetsSingle + summary: deleteClusterSdnVnetsSingleSubnetsSingle + description: Delete sdn subnet object configuration. + tags: + - cluster + parameters: + - name: subnet + in: path + required: true + description: subnet + schema: + type: string + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteClusterSdnVnetsSingleSubnetsSingleResponse + get: + operationId: getClusterSdnVnetsSingleSubnetsSingle + summary: getClusterSdnVnetsSingleSubnetsSingle + description: Read sdn subnet configuration. + tags: + - cluster + parameters: + - name: subnet + in: path + required: true + description: subnet + schema: + type: string + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnVnetsSingleSubnetsSingleResponse" + put: + operationId: updateClusterSdnVnetsSingleSubnetsSingle + summary: updateClusterSdnVnetsSingleSubnetsSingle + description: Update sdn subnet object configuration. + tags: + - cluster + parameters: + - name: subnet + in: path + required: true + description: subnet + schema: + type: string + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterSdnVnetsSingleSubnetsSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterSdnVnetsSingleSubnetsSingleRequest + "/cluster/sdn/vnets/{vnet}/ips": + delete: + operationId: deleteClusterSdnVnetsSingleIps + summary: deleteClusterSdnVnetsSingleIps + description: Delete IP Mappings in a VNet + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterSdnVnetsSingleIpsResponse" + post: + operationId: createClusterSdnVnetsSingleIps + summary: createClusterSdnVnetsSingleIps + description: Create IP Mapping in a VNet + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateClusterSdnVnetsSingleIpsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSdnVnetsSingleIpsRequest" + put: + operationId: updateClusterSdnVnetsSingleIps + summary: updateClusterSdnVnetsSingleIps + description: Update IP Mapping in a VNet + tags: + - cluster + parameters: + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterSdnVnetsSingleIpsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterSdnVnetsSingleIpsRequest" + /cluster/sdn/zones: + get: + operationId: getClusterSDNZones + summary: getClusterSDNZones + description: SDN zones index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSDNZonesResponse" + post: + operationId: createClusterSDNZone + summary: createClusterSDNZone + description: Create a new sdn zone object. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterSDNZoneResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSDNZoneRequest" + "/cluster/sdn/zones/{zone}": + delete: + operationId: deleteClusterSDNZone + summary: deleteClusterSDNZone + description: Delete sdn zone object configuration. + tags: + - cluster + parameters: + - name: zone + in: path + required: true + description: zone + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterSDNZoneResponse" + get: + operationId: getClusterSDNZone + summary: getClusterSDNZone + description: Read sdn zone configuration. + tags: + - cluster + parameters: + - name: zone + in: path + required: true + description: zone + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSDNZoneResponse" + put: + operationId: updateClusterSDNZone + summary: updateClusterSDNZone + description: Update sdn zone object configuration. + tags: + - cluster + parameters: + - name: zone + in: path + required: true + description: zone + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterSDNZoneResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterSDNZoneRequest" + /cluster/sdn/controllers: + get: + operationId: getClusterSDNControllers + summary: getClusterSDNControllers + description: SDN controllers index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSDNControllersResponse" + post: + operationId: createClusterSDNController + summary: createClusterSDNController + description: Create a new sdn controller object. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterSDNControllerResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSDNControllerRequest" + "/cluster/sdn/controllers/{controller}": + delete: + operationId: deleteClusterSDNController + summary: deleteClusterSDNController + description: Delete sdn controller object configuration. + tags: + - cluster + parameters: + - name: controller + in: path + required: true + description: controller + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterSDNControllerResponse" + get: + operationId: getClusterSDNController + summary: getClusterSDNController + description: Read sdn controller configuration. + tags: + - cluster + parameters: + - name: controller + in: path + required: true + description: controller + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSDNControllerResponse" + put: + operationId: updateClusterSDNController + summary: updateClusterSDNController + description: Update sdn controller object configuration. + tags: + - cluster + parameters: + - name: controller + in: path + required: true + description: controller + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterSDNControllerResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterSDNControllerRequest" + /cluster/sdn/ipams: + get: + operationId: getClusterSdnIpams + summary: getClusterSdnIpams + description: SDN ipams index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSdnIpamsResponse" + post: + operationId: createClusterSdnIpams + summary: createClusterSdnIpams + description: Create a new sdn ipam object. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterSdnIpamsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSdnIpamsRequest" + "/cluster/sdn/ipams/{ipam}": + delete: + operationId: deleteClusterSdnIpamsSingle + summary: deleteClusterSdnIpamsSingle + description: Delete sdn ipam object configuration. + tags: + - cluster + parameters: + - name: ipam + in: path + required: true + description: ipam + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterSdnIpamsSingleResponse" + get: + operationId: getClusterSdnIpamsSingle + summary: getClusterSdnIpamsSingle + description: Read sdn ipam configuration. + tags: + - cluster + parameters: + - name: ipam + in: path + required: true + description: ipam + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnIpamsSingleResponse" + put: + operationId: updateClusterSdnIpamsSingle + summary: updateClusterSdnIpamsSingle + description: Update sdn ipam object configuration. + tags: + - cluster + parameters: + - name: ipam + in: path + required: true + description: ipam + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterSdnIpamsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterSdnIpamsSingleRequest" + "/cluster/sdn/ipams/{ipam}/status": + get: + operationId: getClusterSdnIpamsSingleStatus + summary: getClusterSdnIpamsSingleStatus + description: List PVE IPAM Entries + tags: + - cluster + parameters: + - name: ipam + in: path + required: true + description: ipam + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnIpamsSingleStatusResponse" + /cluster/sdn/dns: + get: + operationId: getClusterSdnDns + summary: getClusterSdnDns + description: SDN dns index. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSdnDnsResponse" + post: + operationId: createClusterSdnDns + summary: createClusterSdnDns + description: Create a new sdn dns object. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterSdnDnsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSdnDnsRequest" + "/cluster/sdn/dns/{dns}": + delete: + operationId: deleteClusterSdnDnsSingle + summary: deleteClusterSdnDnsSingle + description: Delete sdn dns object configuration. + tags: + - cluster + parameters: + - name: dns + in: path + required: true + description: dns + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterSdnDnsSingleResponse" + get: + operationId: getClusterSdnDnsSingle + summary: getClusterSdnDnsSingle + description: Read sdn dns configuration. + tags: + - cluster + parameters: + - name: dns + in: path + required: true + description: dns + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnDnsSingleResponse" + put: + operationId: updateClusterSdnDnsSingle + summary: updateClusterSdnDnsSingle + description: Update sdn dns object configuration. + tags: + - cluster + parameters: + - name: dns + in: path + required: true + description: dns + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterSdnDnsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterSdnDnsSingleRequest" + /cluster/sdn/fabrics: + get: + operationId: getClusterSdnFabrics + summary: getClusterSdnFabrics + description: SDN Fabrics Index + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSdnFabricsResponse" + /cluster/sdn/fabrics/fabric: + get: + operationId: getClusterSdnFabricsFabric + summary: getClusterSdnFabricsFabric + description: SDN Fabrics Index + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSdnFabricsFabricResponse" + post: + operationId: createClusterSdnFabricsFabric + summary: createClusterSdnFabricsFabric + description: Add a fabric + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterSdnFabricsFabricResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSdnFabricsFabricRequest" + "/cluster/sdn/fabrics/fabric/{id}": + delete: + operationId: deleteClusterSdnFabricsFabricSingle + summary: deleteClusterSdnFabricsFabricSingle + description: Add a fabric + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteClusterSdnFabricsFabricSingleResponse" + get: + operationId: getClusterSdnFabricsFabricSingle + summary: getClusterSdnFabricsFabricSingle + description: Update a fabric + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnFabricsFabricSingleResponse" + put: + operationId: updateClusterSdnFabricsFabricSingle + summary: updateClusterSdnFabricsFabricSingle + description: Update a fabric + tags: + - cluster + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateClusterSdnFabricsFabricSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterSdnFabricsFabricSingleRequest" + /cluster/sdn/fabrics/node: + get: + operationId: getClusterSdnFabricsNode + summary: getClusterSdnFabricsNode + description: SDN Fabrics Index + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSdnFabricsNodeResponse" + "/cluster/sdn/fabrics/node/{fabric_id}": + get: + operationId: getClusterSdnFabricsNodeSingle + summary: getClusterSdnFabricsNodeSingle + description: SDN Fabrics Index + tags: + - cluster + parameters: + - name: fabric_id + in: path + required: true + description: fabric_id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnFabricsNodeSingleResponse" + post: + operationId: createClusterSdnFabricsNodeSingle + summary: createClusterSdnFabricsNodeSingle + description: Add a node + tags: + - cluster + parameters: + - name: fabric_id + in: path + required: true + description: fabric_id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateClusterSdnFabricsNodeSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSdnFabricsNodeSingleRequest" + "/cluster/sdn/fabrics/node/{fabric_id}/{node_id}": + delete: + operationId: deleteClusterSdnFabricsNodeSingleSingle + summary: deleteClusterSdnFabricsNodeSingleSingle + description: Add a node + tags: + - cluster + parameters: + - name: fabric_id + in: path + required: true + description: fabric_id + schema: + type: string + - name: node_id + in: path + required: true + description: node_id + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteClusterSdnFabricsNodeSingleSingleResponse + get: + operationId: getClusterSdnFabricsNodeSingleSingle + summary: getClusterSdnFabricsNodeSingleSingle + description: Get a node + tags: + - cluster + parameters: + - name: fabric_id + in: path + required: true + description: fabric_id + schema: + type: string + - name: node_id + in: path + required: true + description: node_id + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetClusterSdnFabricsNodeSingleSingleResponse" + put: + operationId: updateClusterSdnFabricsNodeSingleSingle + summary: updateClusterSdnFabricsNodeSingleSingle + description: Update a node + tags: + - cluster + parameters: + - name: fabric_id + in: path + required: true + description: fabric_id + schema: + type: string + - name: node_id + in: path + required: true + description: node_id + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateClusterSdnFabricsNodeSingleSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateClusterSdnFabricsNodeSingleSingleRequest + /cluster/sdn/fabrics/all: + get: + operationId: getClusterSdnFabricsAll + summary: getClusterSdnFabricsAll + description: SDN Fabrics Index + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterSdnFabricsAllResponse" + /cluster/sdn/lock: + delete: + operationId: deleteClusterSdnLock + summary: deleteClusterSdnLock + description: Release global lock for SDN configuration + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/DeleteClusterSdnLockResponse" + post: + operationId: createClusterSdnLock + summary: createClusterSdnLock + description: Acquire global lock for SDN configuration + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterSdnLockResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSdnLockRequest" + /cluster/sdn/rollback: + post: + operationId: createClusterSdnRollback + summary: createClusterSdnRollback + description: Rollback pending changes to SDN configuration + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateClusterSdnRollbackResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateClusterSdnRollbackRequest" + /cluster/log: + get: + operationId: getClusterLog + summary: getClusterLog + description: Read cluster log + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterLogResponse" + /cluster/resources: + get: + operationId: getClusterResources + summary: getClusterResources + description: Resources index (cluster wide). + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterResourcesResponse" + /cluster/tasks: + get: + operationId: getClusterTasks + summary: getClusterTasks + description: List recent tasks (cluster wide). + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterTasksResponse" + /cluster/options: + get: + operationId: getClusterOptions + summary: getClusterOptions + description: >- + Get datacenter options. Without 'Sys.Audit' on '/' not all options are + returned. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterOptionsResponse" + put: + operationId: updateClusterOptions + summary: updateClusterOptions + description: Set datacenter options. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/UpdateClusterOptionsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateClusterOptionsRequest" + /cluster/status: + get: + operationId: getClusterStatus + summary: getClusterStatus + description: Get cluster status information. + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterStatusResponse" + /cluster/nextid: + get: + operationId: getClusterNextid + summary: getClusterNextid + description: >- + Get next free VMID. Pass a VMID to assert that its free (at time of + check). + tags: + - cluster + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetClusterNextidResponse" + /nodes: + get: + operationId: getNodes + summary: getNodes + description: Cluster node index. + tags: + - nodes + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetNodesResponse" + "/nodes/{node}": + get: + operationId: getNode + summary: getNode + description: Node index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeResponse" + "/nodes/{node}/qemu": + get: + operationId: getVMs + summary: getVMs + description: Virtual machine index (per node). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetVMsResponse" + post: + operationId: createVM + summary: createVM + description: Create or restore a virtual machine. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateVMRequest" + "/nodes/{node}/qemu/{vmid}": + delete: + operationId: deleteVM + summary: deleteVM + description: >- + Destroy the VM and all used/owned volumes. Removes any VM specific + permissions and firewall rules + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/DeleteVMResponse" + get: + operationId: getVM + summary: getVM + description: Directory index + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMResponse" + "/nodes/{node}/qemu/{vmid}/firewall": + get: + operationId: getVMFirewall + summary: getVMFirewall + description: Directory index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMFirewallResponse" + "/nodes/{node}/qemu/{vmid}/firewall/rules": + get: + operationId: getVMFirewallRules + summary: getVMFirewallRules + description: List rules. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMFirewallRulesResponse" + post: + operationId: createVMFirewallRule + summary: createVMFirewallRule + description: Create new rule. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateVMFirewallRuleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateVMFirewallRuleRequest" + "/nodes/{node}/qemu/{vmid}/firewall/rules/{pos}": + delete: + operationId: deleteVMFirewallRule + summary: deleteVMFirewallRule + description: Delete rule. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/DeleteVMFirewallRuleResponse" + get: + operationId: getVMFirewallRule + summary: getVMFirewallRule + description: Get single rule data. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMFirewallRuleResponse" + put: + operationId: updateVMFirewallRule + summary: updateVMFirewallRule + description: Modify rule data. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateVMFirewallRuleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateVMFirewallRuleRequest" + "/nodes/{node}/qemu/{vmid}/firewall/aliases": + get: + operationId: getNodesSingleQemuSingleFirewallAliases + summary: getNodesSingleQemuSingleFirewallAliases + description: List aliases + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleFirewallAliasesResponse + post: + operationId: createNodesSingleQemuSingleFirewallAliases + summary: createNodesSingleQemuSingleFirewallAliases + description: Create IP or Network Alias. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleFirewallAliasesResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleFirewallAliasesRequest + "/nodes/{node}/qemu/{vmid}/firewall/aliases/{name}": + delete: + operationId: deleteNodesSingleQemuSingleFirewallAliasesSingle + summary: deleteNodesSingleQemuSingleFirewallAliasesSingle + description: Remove IP or Network alias. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleQemuSingleFirewallAliasesSingleResponse + get: + operationId: getNodesSingleQemuSingleFirewallAliasesSingle + summary: getNodesSingleQemuSingleFirewallAliasesSingle + description: Read alias. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleFirewallAliasesSingleResponse + put: + operationId: updateNodesSingleQemuSingleFirewallAliasesSingle + summary: updateNodesSingleQemuSingleFirewallAliasesSingle + description: Update IP or Network alias. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/UpdateNodesSingleQemuSingleFirewallAliasesSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest + "/nodes/{node}/qemu/{vmid}/firewall/ipset": + get: + operationId: getVMFirewallIPSets + summary: getVMFirewallIPSets + description: List IPSets + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMFirewallIPSetsResponse" + post: + operationId: createVMFirewallIPSet + summary: createVMFirewallIPSet + description: Create new IPSet + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateVMFirewallIPSetResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateVMFirewallIPSetRequest" + "/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}": + delete: + operationId: deleteVMFirewallIPSet + summary: deleteVMFirewallIPSet + description: Delete IPSet + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/DeleteVMFirewallIPSetResponse" + get: + operationId: getVMFirewallIPSet + summary: getVMFirewallIPSet + description: List IPSet content + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMFirewallIPSetResponse" + post: + operationId: addVMFirewallIPSetIP + summary: addVMFirewallIPSetIP + description: Add IP or Network to IPSet. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/AddVMFirewallIPSetIPResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/AddVMFirewallIPSetIPRequest" + "/nodes/{node}/qemu/{vmid}/firewall/ipset/{name}/{cidr}": + delete: + operationId: removeVMFirewallIPSetIP + summary: removeVMFirewallIPSetIP + description: Remove IP or Network from IPSet. + tags: + - nodes + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/RemoveVMFirewallIPSetIPResponse" + get: + operationId: getVMFirewallIPSetIP + summary: getVMFirewallIPSetIP + description: Read IP or Network settings from IPSet. + tags: + - nodes + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMFirewallIPSetIPResponse" + put: + operationId: updateVMFirewallIPSetIP + summary: updateVMFirewallIPSetIP + description: Update IP or Network settings + tags: + - nodes + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateVMFirewallIPSetIPResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateVMFirewallIPSetIPRequest" + "/nodes/{node}/qemu/{vmid}/firewall/options": + get: + operationId: getVMFirewallOptions + summary: getVMFirewallOptions + description: Get VM firewall options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMFirewallOptionsResponse" + put: + operationId: updateVMFirewallOptions + summary: updateVMFirewallOptions + description: Set Firewall options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateVMFirewallOptionsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateVMFirewallOptionsRequest" + "/nodes/{node}/qemu/{vmid}/firewall/log": + get: + operationId: getNodesSingleQemuSingleFirewallLog + summary: getNodesSingleQemuSingleFirewallLog + description: Read firewall log + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleFirewallLogResponse" + "/nodes/{node}/qemu/{vmid}/firewall/refs": + get: + operationId: getNodesSingleQemuSingleFirewallRefs + summary: getNodesSingleQemuSingleFirewallRefs + description: >- + Lists possible IPSet/Alias reference which are allowed in source/dest + properties. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleFirewallRefsResponse" + "/nodes/{node}/qemu/{vmid}/agent": + get: + operationId: getNodesSingleQemuSingleAgent + summary: getNodesSingleQemuSingleAgent + description: QEMU Guest Agent command index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleAgentResponse" + post: + operationId: createNodesSingleQemuSingleAgent + summary: createNodesSingleQemuSingleAgent + description: Execute QEMU Guest Agent commands. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleAgentResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleAgentRequest" + "/nodes/{node}/qemu/{vmid}/agent/fsfreeze-freeze": + post: + operationId: createNodesSingleQemuSingleAgentFsfreezefreeze + summary: createNodesSingleQemuSingleAgentFsfreezefreeze + description: Execute fsfreeze-freeze. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentFsfreezefreezeResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentFsfreezefreezeRequest + "/nodes/{node}/qemu/{vmid}/agent/fsfreeze-status": + post: + operationId: createNodesSingleQemuSingleAgentFsfreezestatus + summary: createNodesSingleQemuSingleAgentFsfreezestatus + description: Execute fsfreeze-status. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentFsfreezestatusResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentFsfreezestatusRequest + "/nodes/{node}/qemu/{vmid}/agent/fsfreeze-thaw": + post: + operationId: createNodesSingleQemuSingleAgentFsfreezethaw + summary: createNodesSingleQemuSingleAgentFsfreezethaw + description: Execute fsfreeze-thaw. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentFsfreezethawResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentFsfreezethawRequest + "/nodes/{node}/qemu/{vmid}/agent/fstrim": + post: + operationId: createNodesSingleQemuSingleAgentFstrim + summary: createNodesSingleQemuSingleAgentFstrim + description: Execute fstrim. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentFstrimResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentFstrimRequest + "/nodes/{node}/qemu/{vmid}/agent/get-fsinfo": + get: + operationId: getNodesSingleQemuSingleAgentGetfsinfo + summary: getNodesSingleQemuSingleAgentGetfsinfo + description: Execute get-fsinfo. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleAgentGetfsinfoResponse + "/nodes/{node}/qemu/{vmid}/agent/get-host-name": + get: + operationId: getNodesSingleQemuSingleAgentGethostname + summary: getNodesSingleQemuSingleAgentGethostname + description: Execute get-host-name. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleAgentGethostnameResponse + "/nodes/{node}/qemu/{vmid}/agent/get-memory-block-info": + get: + operationId: getNodesSingleQemuSingleAgentGetmemoryblockinfo + summary: getNodesSingleQemuSingleAgentGetmemoryblockinfo + description: Execute get-memory-block-info. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleAgentGetmemoryblockinfoResponse + "/nodes/{node}/qemu/{vmid}/agent/get-memory-blocks": + get: + operationId: getNodesSingleQemuSingleAgentGetmemoryblocks + summary: getNodesSingleQemuSingleAgentGetmemoryblocks + description: Execute get-memory-blocks. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleAgentGetmemoryblocksResponse + "/nodes/{node}/qemu/{vmid}/agent/get-osinfo": + get: + operationId: getNodesSingleQemuSingleAgentGetosinfo + summary: getNodesSingleQemuSingleAgentGetosinfo + description: Execute get-osinfo. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleAgentGetosinfoResponse + "/nodes/{node}/qemu/{vmid}/agent/get-time": + get: + operationId: getNodesSingleQemuSingleAgentGettime + summary: getNodesSingleQemuSingleAgentGettime + description: Execute get-time. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleAgentGettimeResponse" + "/nodes/{node}/qemu/{vmid}/agent/get-timezone": + get: + operationId: getNodesSingleQemuSingleAgentGettimezone + summary: getNodesSingleQemuSingleAgentGettimezone + description: Execute get-timezone. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleAgentGettimezoneResponse + "/nodes/{node}/qemu/{vmid}/agent/get-users": + get: + operationId: getNodesSingleQemuSingleAgentGetusers + summary: getNodesSingleQemuSingleAgentGetusers + description: Execute get-users. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleAgentGetusersResponse" + "/nodes/{node}/qemu/{vmid}/agent/get-vcpus": + get: + operationId: getNodesSingleQemuSingleAgentGetvcpus + summary: getNodesSingleQemuSingleAgentGetvcpus + description: Execute get-vcpus. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleAgentGetvcpusResponse" + "/nodes/{node}/qemu/{vmid}/agent/info": + get: + operationId: getNodesSingleQemuSingleAgentInfo + summary: getNodesSingleQemuSingleAgentInfo + description: Execute info. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleAgentInfoResponse" + "/nodes/{node}/qemu/{vmid}/agent/network-get-interfaces": + get: + operationId: getNodesSingleQemuSingleAgentNetworkgetinterfaces + summary: getNodesSingleQemuSingleAgentNetworkgetinterfaces + description: Execute network-get-interfaces. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleAgentNetworkgetinterfacesResponse + "/nodes/{node}/qemu/{vmid}/agent/ping": + post: + operationId: createNodesSingleQemuSingleAgentPing + summary: createNodesSingleQemuSingleAgentPing + description: Execute ping. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleAgentPingResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleAgentPingRequest" + "/nodes/{node}/qemu/{vmid}/agent/shutdown": + post: + operationId: createNodesSingleQemuSingleAgentShutdown + summary: createNodesSingleQemuSingleAgentShutdown + description: Execute shutdown. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentShutdownResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentShutdownRequest + "/nodes/{node}/qemu/{vmid}/agent/suspend-disk": + post: + operationId: createNodesSingleQemuSingleAgentSuspenddisk + summary: createNodesSingleQemuSingleAgentSuspenddisk + description: Execute suspend-disk. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentSuspenddiskResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentSuspenddiskRequest + "/nodes/{node}/qemu/{vmid}/agent/suspend-hybrid": + post: + operationId: createNodesSingleQemuSingleAgentSuspendhybrid + summary: createNodesSingleQemuSingleAgentSuspendhybrid + description: Execute suspend-hybrid. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentSuspendhybridResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentSuspendhybridRequest + "/nodes/{node}/qemu/{vmid}/agent/suspend-ram": + post: + operationId: createNodesSingleQemuSingleAgentSuspendram + summary: createNodesSingleQemuSingleAgentSuspendram + description: Execute suspend-ram. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentSuspendramResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentSuspendramRequest + "/nodes/{node}/qemu/{vmid}/agent/set-user-password": + post: + operationId: createNodesSingleQemuSingleAgentSetuserpassword + summary: createNodesSingleQemuSingleAgentSetuserpassword + description: Sets the password for the given user to the given password + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentSetuserpasswordResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentSetuserpasswordRequest + "/nodes/{node}/qemu/{vmid}/agent/exec": + post: + operationId: createNodesSingleQemuSingleAgentExec + summary: createNodesSingleQemuSingleAgentExec + description: >- + Executes the given command in the vm via the guest-agent and returns an + object with the pid. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleAgentExecResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleAgentExecRequest" + "/nodes/{node}/qemu/{vmid}/agent/exec-status": + get: + operationId: getNodesSingleQemuSingleAgentExecstatus + summary: getNodesSingleQemuSingleAgentExecstatus + description: Gets the status of the given pid started by the guest-agent + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleAgentExecstatusResponse + "/nodes/{node}/qemu/{vmid}/agent/file-read": + get: + operationId: getNodesSingleQemuSingleAgentFileread + summary: getNodesSingleQemuSingleAgentFileread + description: Reads the given file via guest agent. Is limited to 16777216 bytes. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleAgentFilereadResponse" + "/nodes/{node}/qemu/{vmid}/agent/file-write": + post: + operationId: createNodesSingleQemuSingleAgentFilewrite + summary: createNodesSingleQemuSingleAgentFilewrite + description: Writes the given file via guest agent. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleAgentFilewriteResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleAgentFilewriteRequest + "/nodes/{node}/qemu/{vmid}/rrd": + get: + operationId: getVMRRD + summary: getVMRRD + description: Read VM RRD statistics (returns PNG) + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMRRDResponse" + "/nodes/{node}/qemu/{vmid}/rrddata": + get: + operationId: getVMRRDData + summary: getVMRRDData + description: Read VM RRD statistics + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMRRDDataResponse" + "/nodes/{node}/qemu/{vmid}/config": + get: + operationId: getVMConfig + summary: getVMConfig + description: >- + Get the virtual machine configuration with pending configuration changes + applied. Set the 'current' parameter to get the current configuration + instead. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMConfigResponse" + post: + operationId: updateVMConfig + summary: updateVMConfig + description: Set virtual machine options (asynchronous API). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateVMConfigResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateVMConfigRequest" + put: + operationId: updateVMConfigSync + summary: updateVMConfigSync + description: >- + Set virtual machine options (synchronous API) - You should consider + using the POST method instead for any actions involving hotplug or + storage allocation. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateVMConfigSyncResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateVMConfigSyncRequest" + "/nodes/{node}/qemu/{vmid}/pending": + get: + operationId: getVMConfigPending + summary: getVMConfigPending + description: >- + Get the virtual machine configuration with both current and pending + values. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMConfigPendingResponse" + "/nodes/{node}/qemu/{vmid}/cloudinit": + get: + operationId: getNodesSingleQemuSingleCloudinit + summary: getNodesSingleQemuSingleCloudinit + description: Get the cloudinit configuration with both current and pending values. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleCloudinitResponse" + put: + operationId: updateNodesSingleQemuSingleCloudinit + summary: updateNodesSingleQemuSingleCloudinit + description: Regenerate and change cloudinit config drive. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleQemuSingleCloudinitResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleQemuSingleCloudinitRequest" + "/nodes/{node}/qemu/{vmid}/cloudinit/dump": + get: + operationId: getNodesSingleQemuSingleCloudinitDump + summary: getNodesSingleQemuSingleCloudinitDump + description: Get automatically generated cloudinit config. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleCloudinitDumpResponse" + "/nodes/{node}/qemu/{vmid}/unlink": + put: + operationId: unlinkVMDiskImages + summary: unlinkVMDiskImages + description: Unlink/delete disk images. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UnlinkVMDiskImagesResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UnlinkVMDiskImagesRequest" + "/nodes/{node}/qemu/{vmid}/vncproxy": + post: + operationId: createNodesSingleQemuSingleVncproxy + summary: createNodesSingleQemuSingleVncproxy + description: Creates a TCP VNC proxy connections. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleVncproxyResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleVncproxyRequest" + "/nodes/{node}/qemu/{vmid}/termproxy": + post: + operationId: createNodesSingleQemuSingleTermproxy + summary: createNodesSingleQemuSingleTermproxy + description: Creates a TCP proxy connections. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleTermproxyResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleTermproxyRequest" + "/nodes/{node}/qemu/{vmid}/vncwebsocket": + get: + operationId: getNodesSingleQemuSingleVncwebsocket + summary: getNodesSingleQemuSingleVncwebsocket + description: Opens a websocket for VNC traffic. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleVncwebsocketResponse" + "/nodes/{node}/qemu/{vmid}/spiceproxy": + post: + operationId: createNodesSingleQemuSingleSpiceproxy + summary: createNodesSingleQemuSingleSpiceproxy + description: Returns a SPICE configuration to connect to the VM. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleSpiceproxyResponse" + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleSpiceproxyRequest + "/nodes/{node}/qemu/{vmid}/status": + get: + operationId: getVMStatus + summary: getVMStatus + description: Directory index + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMStatusResponse" + "/nodes/{node}/qemu/{vmid}/status/current": + get: + operationId: getCurrentVMStatus + summary: getCurrentVMStatus + description: Get virtual machine status. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetCurrentVMStatusResponse" + "/nodes/{node}/qemu/{vmid}/status/start": + post: + operationId: startVM + summary: startVM + description: Start virtual machine. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/StartVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StartVMRequest" + "/nodes/{node}/qemu/{vmid}/status/stop": + post: + operationId: stopVM + summary: stopVM + description: >- + Stop virtual machine. The qemu process will exit immediately. This is + akin to pulling the power plug of a running computer and may damage the + VM data. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/StopVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/StopVMRequest" + "/nodes/{node}/qemu/{vmid}/status/reset": + post: + operationId: resetVM + summary: resetVM + description: Reset virtual machine. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/ResetVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ResetVMRequest" + "/nodes/{node}/qemu/{vmid}/status/shutdown": + post: + operationId: shutdownVM + summary: shutdownVM + description: >- + Shutdown virtual machine. This is similar to pressing the power button + on a physical machine. This will send an ACPI event for the guest OS, + which should then proceed to a clean shutdown. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/ShutdownVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ShutdownVMRequest" + "/nodes/{node}/qemu/{vmid}/status/reboot": + post: + operationId: rebootVM + summary: rebootVM + description: >- + Reboot the VM by shutting it down, and starting it again. Applies + pending changes. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/RebootVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RebootVMRequest" + "/nodes/{node}/qemu/{vmid}/status/suspend": + post: + operationId: suspendVM + summary: suspendVM + description: Suspend virtual machine. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/SuspendVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/SuspendVMRequest" + "/nodes/{node}/qemu/{vmid}/status/resume": + post: + operationId: resumeVM + summary: resumeVM + description: Resume virtual machine. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/ResumeVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ResumeVMRequest" + "/nodes/{node}/qemu/{vmid}/sendkey": + put: + operationId: updateNodesSingleQemuSingleSendkey + summary: updateNodesSingleQemuSingleSendkey + description: Send key event to virtual machine. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleQemuSingleSendkeyResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleQemuSingleSendkeyRequest" + "/nodes/{node}/qemu/{vmid}/feature": + get: + operationId: getNodesSingleQemuSingleFeature + summary: getNodesSingleQemuSingleFeature + description: Check if feature for virtual machine is available. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQemuSingleFeatureResponse" + "/nodes/{node}/qemu/{vmid}/clone": + post: + operationId: cloneVM + summary: cloneVM + description: Create a copy of virtual machine/template. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CloneVMResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CloneVMRequest" + "/nodes/{node}/qemu/{vmid}/move_disk": + post: + operationId: createNodesSingleQemuSingleMovedisk + summary: createNodesSingleQemuSingleMovedisk + description: Move volume to different storage or to a different VM. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleMovediskResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleMovediskRequest" + "/nodes/{node}/qemu/{vmid}/migrate": + get: + operationId: migrateVM + summary: migrateVM + description: Get preconditions for migration. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/MigrateVMResponse" + post: + operationId: createNodesSingleQemuSingleMigrate + summary: createNodesSingleQemuSingleMigrate + description: Migrate virtual machine. Creates a new migration task. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleMigrateResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleMigrateRequest" + "/nodes/{node}/qemu/{vmid}/remote_migrate": + post: + operationId: createNodesSingleQemuSingleRemotemigrate + summary: createNodesSingleQemuSingleRemotemigrate + description: >- + Migrate virtual machine to a remote cluster. Creates a new migration + task. EXPERIMENTAL feature! + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleRemotemigrateResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleRemotemigrateRequest + "/nodes/{node}/qemu/{vmid}/monitor": + post: + operationId: createNodesSingleQemuSingleMonitor + summary: createNodesSingleQemuSingleMonitor + description: Execute QEMU monitor commands. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleMonitorResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleMonitorRequest" + "/nodes/{node}/qemu/{vmid}/resize": + put: + operationId: resizeVMDisk + summary: resizeVMDisk + description: Extend volume size. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/ResizeVMDiskResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ResizeVMDiskRequest" + "/nodes/{node}/qemu/{vmid}/snapshot": + get: + operationId: getVMSnapshots + summary: getVMSnapshots + description: List all snapshots. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMSnapshotsResponse" + post: + operationId: createVMSnapshot + summary: createVMSnapshot + description: Snapshot a VM. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateVMSnapshotResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateVMSnapshotRequest" + "/nodes/{node}/qemu/{vmid}/snapshot/{snapname}": + delete: + operationId: deleteVMSnapshot + summary: deleteVMSnapshot + description: Delete a VM snapshot. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/DeleteVMSnapshotResponse" + get: + operationId: getVMSnapshot + summary: getVMSnapshot + description: getVMSnapshot + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMSnapshotResponse" + "/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/config": + get: + operationId: getVMSnapshotConfig + summary: getVMSnapshotConfig + description: Get snapshot configuration + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetVMSnapshotConfigResponse" + put: + operationId: updateVMSnapshotConfig + summary: updateVMSnapshotConfig + description: Update snapshot metadata. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateVMSnapshotConfigResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateVMSnapshotConfigRequest" + "/nodes/{node}/qemu/{vmid}/snapshot/{snapname}/rollback": + post: + operationId: rollbackVMSnapshot + summary: rollbackVMSnapshot + description: Rollback VM state to specified snapshot. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/RollbackVMSnapshotResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RollbackVMSnapshotRequest" + "/nodes/{node}/qemu/{vmid}/template": + post: + operationId: createNodesSingleQemuSingleTemplate + summary: createNodesSingleQemuSingleTemplate + description: Create a Template. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleTemplateResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleTemplateRequest" + "/nodes/{node}/qemu/{vmid}/mtunnel": + post: + operationId: createNodesSingleQemuSingleMtunnel + summary: createNodesSingleQemuSingleMtunnel + description: Migration tunnel endpoint - only for internal use by VM migration. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleQemuSingleMtunnelResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleQemuSingleMtunnelRequest" + "/nodes/{node}/qemu/{vmid}/mtunnelwebsocket": + get: + operationId: getNodesSingleQemuSingleMtunnelwebsocket + summary: getNodesSingleQemuSingleMtunnelwebsocket + description: >- + Migration tunnel endpoint for websocket upgrade - only for internal use + by VM migration. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleQemuSingleMtunnelwebsocketResponse + "/nodes/{node}/qemu/{vmid}/dbus-vmstate": + post: + operationId: createNodesSingleQemuSingleDbusvmstate + summary: createNodesSingleQemuSingleDbusvmstate + description: Control the dbus-vmstate helper for a given running VM. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleQemuSingleDbusvmstateResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleQemuSingleDbusvmstateRequest + "/nodes/{node}/lxc": + get: + operationId: getNodesSingleLxc + summary: getNodesSingleLxc + description: LXC container index (per node). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcResponse" + post: + operationId: createNodesSingleLxc + summary: createNodesSingleLxc + description: Create or restore a container. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcRequest" + "/nodes/{node}/lxc/{vmid}": + delete: + operationId: deleteNodesSingleLxcSingle + summary: deleteNodesSingleLxcSingle + description: Destroy the container (also delete all uses files). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleLxcSingleResponse" + get: + operationId: getNodesSingleLxcSingle + summary: getNodesSingleLxcSingle + description: Directory index + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleResponse" + "/nodes/{node}/lxc/{vmid}/config": + get: + operationId: getNodesSingleLxcSingleConfig + summary: getNodesSingleLxcSingleConfig + description: Get container configuration. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleConfigResponse" + put: + operationId: updateNodesSingleLxcSingleConfig + summary: updateNodesSingleLxcSingleConfig + description: Set container options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleLxcSingleConfigResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleLxcSingleConfigRequest" + "/nodes/{node}/lxc/{vmid}/status": + get: + operationId: getNodesSingleLxcSingleStatus + summary: getNodesSingleLxcSingleStatus + description: Directory index + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleStatusResponse" + "/nodes/{node}/lxc/{vmid}/status/current": + get: + operationId: getNodesSingleLxcSingleStatusCurrent + summary: getNodesSingleLxcSingleStatusCurrent + description: Get virtual machine status. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleStatusCurrentResponse" + "/nodes/{node}/lxc/{vmid}/status/start": + post: + operationId: createNodesSingleLxcSingleStatusStart + summary: createNodesSingleLxcSingleStatusStart + description: Start the container. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleStatusStartResponse" + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleStatusStartRequest + "/nodes/{node}/lxc/{vmid}/status/stop": + post: + operationId: createNodesSingleLxcSingleStatusStop + summary: createNodesSingleLxcSingleStatusStop + description: >- + Stop the container. This will abruptly stop all processes running in the + container. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleStatusStopResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleStatusStopRequest" + "/nodes/{node}/lxc/{vmid}/status/shutdown": + post: + operationId: createNodesSingleLxcSingleStatusShutdown + summary: createNodesSingleLxcSingleStatusShutdown + description: >- + Shutdown the container. This will trigger a clean shutdown of the + container, see lxc-stop(1) for details. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleStatusShutdownResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleStatusShutdownRequest + "/nodes/{node}/lxc/{vmid}/status/suspend": + post: + operationId: createNodesSingleLxcSingleStatusSuspend + summary: createNodesSingleLxcSingleStatusSuspend + description: Suspend the container. This is experimental. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleStatusSuspendResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleStatusSuspendRequest + "/nodes/{node}/lxc/{vmid}/status/resume": + post: + operationId: createNodesSingleLxcSingleStatusResume + summary: createNodesSingleLxcSingleStatusResume + description: Resume the container. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleStatusResumeResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleStatusResumeRequest + "/nodes/{node}/lxc/{vmid}/status/reboot": + post: + operationId: createNodesSingleLxcSingleStatusReboot + summary: createNodesSingleLxcSingleStatusReboot + description: >- + Reboot the container by shutting it down, and starting it again. Applies + pending changes. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleStatusRebootResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleStatusRebootRequest + "/nodes/{node}/lxc/{vmid}/snapshot": + get: + operationId: getNodesSingleLxcSingleSnapshot + summary: getNodesSingleLxcSingleSnapshot + description: List all snapshots. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleSnapshotResponse" + post: + operationId: createNodesSingleLxcSingleSnapshot + summary: createNodesSingleLxcSingleSnapshot + description: Snapshot a container. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleSnapshotResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleSnapshotRequest" + "/nodes/{node}/lxc/{vmid}/snapshot/{snapname}": + delete: + operationId: deleteNodesSingleLxcSingleSnapshotSingle + summary: deleteNodesSingleLxcSingleSnapshotSingle + description: Delete a LXC snapshot. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleLxcSingleSnapshotSingleResponse + get: + operationId: getNodesSingleLxcSingleSnapshotSingle + summary: getNodesSingleLxcSingleSnapshotSingle + description: getNodesSingleLxcSingleSnapshotSingle + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleSnapshotSingleResponse" + "/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/rollback": + post: + operationId: createNodesSingleLxcSingleSnapshotSingleRollback + summary: createNodesSingleLxcSingleSnapshotSingleRollback + description: Rollback LXC state to specified snapshot. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleSnapshotSingleRollbackResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest + "/nodes/{node}/lxc/{vmid}/snapshot/{snapname}/config": + get: + operationId: getNodesSingleLxcSingleSnapshotSingleConfig + summary: getNodesSingleLxcSingleSnapshotSingleConfig + description: Get snapshot configuration + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleLxcSingleSnapshotSingleConfigResponse + put: + operationId: updateNodesSingleLxcSingleSnapshotSingleConfig + summary: updateNodesSingleLxcSingleSnapshotSingleConfig + description: Update snapshot metadata. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: snapname + in: path + required: true + description: snapname + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/UpdateNodesSingleLxcSingleSnapshotSingleConfigResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest + "/nodes/{node}/lxc/{vmid}/firewall": + get: + operationId: getNodesSingleLxcSingleFirewall + summary: getNodesSingleLxcSingleFirewall + description: Directory index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleFirewallResponse" + "/nodes/{node}/lxc/{vmid}/firewall/rules": + get: + operationId: getNodesSingleLxcSingleFirewallRules + summary: getNodesSingleLxcSingleFirewallRules + description: List rules. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleFirewallRulesResponse" + post: + operationId: createNodesSingleLxcSingleFirewallRules + summary: createNodesSingleLxcSingleFirewallRules + description: Create new rule. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleFirewallRulesResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleFirewallRulesRequest + "/nodes/{node}/lxc/{vmid}/firewall/rules/{pos}": + delete: + operationId: deleteNodesSingleLxcSingleFirewallRulesSingle + summary: deleteNodesSingleLxcSingleFirewallRulesSingle + description: Delete rule. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleLxcSingleFirewallRulesSingleResponse + get: + operationId: getNodesSingleLxcSingleFirewallRulesSingle + summary: getNodesSingleLxcSingleFirewallRulesSingle + description: Get single rule data. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleLxcSingleFirewallRulesSingleResponse + put: + operationId: updateNodesSingleLxcSingleFirewallRulesSingle + summary: updateNodesSingleLxcSingleFirewallRulesSingle + description: Modify rule data. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/UpdateNodesSingleLxcSingleFirewallRulesSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateNodesSingleLxcSingleFirewallRulesSingleRequest + "/nodes/{node}/lxc/{vmid}/firewall/aliases": + get: + operationId: getNodesSingleLxcSingleFirewallAliases + summary: getNodesSingleLxcSingleFirewallAliases + description: List aliases + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleLxcSingleFirewallAliasesResponse + post: + operationId: createNodesSingleLxcSingleFirewallAliases + summary: createNodesSingleLxcSingleFirewallAliases + description: Create IP or Network Alias. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleFirewallAliasesResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleFirewallAliasesRequest + "/nodes/{node}/lxc/{vmid}/firewall/aliases/{name}": + delete: + operationId: deleteNodesSingleLxcSingleFirewallAliasesSingle + summary: deleteNodesSingleLxcSingleFirewallAliasesSingle + description: Remove IP or Network alias. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleLxcSingleFirewallAliasesSingleResponse + get: + operationId: getNodesSingleLxcSingleFirewallAliasesSingle + summary: getNodesSingleLxcSingleFirewallAliasesSingle + description: Read alias. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleLxcSingleFirewallAliasesSingleResponse + put: + operationId: updateNodesSingleLxcSingleFirewallAliasesSingle + summary: updateNodesSingleLxcSingleFirewallAliasesSingle + description: Update IP or Network alias. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/UpdateNodesSingleLxcSingleFirewallAliasesSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest + "/nodes/{node}/lxc/{vmid}/firewall/ipset": + get: + operationId: getNodesSingleLxcSingleFirewallIpset + summary: getNodesSingleLxcSingleFirewallIpset + description: List IPSets + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleFirewallIpsetResponse" + post: + operationId: createNodesSingleLxcSingleFirewallIpset + summary: createNodesSingleLxcSingleFirewallIpset + description: Create new IPSet + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleFirewallIpsetResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleFirewallIpsetRequest + "/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}": + delete: + operationId: deleteNodesSingleLxcSingleFirewallIpsetSingle + summary: deleteNodesSingleLxcSingleFirewallIpsetSingle + description: Delete IPSet + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleLxcSingleFirewallIpsetSingleResponse + get: + operationId: getNodesSingleLxcSingleFirewallIpsetSingle + summary: getNodesSingleLxcSingleFirewallIpsetSingle + description: List IPSet content + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleLxcSingleFirewallIpsetSingleResponse + post: + operationId: createNodesSingleLxcSingleFirewallIpsetSingle + summary: createNodesSingleLxcSingleFirewallIpsetSingle + description: Add IP or Network to IPSet. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleFirewallIpsetSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleFirewallIpsetSingleRequest + "/nodes/{node}/lxc/{vmid}/firewall/ipset/{name}/{cidr}": + delete: + operationId: deleteNodesSingleLxcSingleFirewallIpsetSingleSingle + summary: deleteNodesSingleLxcSingleFirewallIpsetSingleSingle + description: Remove IP or Network from IPSet. + tags: + - nodes + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleResponse + get: + operationId: getNodesSingleLxcSingleFirewallIpsetSingleSingle + summary: getNodesSingleLxcSingleFirewallIpsetSingleSingle + description: Read IP or Network settings from IPSet. + tags: + - nodes + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleLxcSingleFirewallIpsetSingleSingleResponse + put: + operationId: updateNodesSingleLxcSingleFirewallIpsetSingleSingle + summary: updateNodesSingleLxcSingleFirewallIpsetSingleSingle + description: Update IP or Network settings + tags: + - nodes + parameters: + - name: cidr + in: path + required: true + description: cidr + schema: + type: string + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest + "/nodes/{node}/lxc/{vmid}/firewall/options": + get: + operationId: getNodesSingleLxcSingleFirewallOptions + summary: getNodesSingleLxcSingleFirewallOptions + description: Get VM firewall options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleLxcSingleFirewallOptionsResponse + put: + operationId: updateNodesSingleLxcSingleFirewallOptions + summary: updateNodesSingleLxcSingleFirewallOptions + description: Set Firewall options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/UpdateNodesSingleLxcSingleFirewallOptionsResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateNodesSingleLxcSingleFirewallOptionsRequest + "/nodes/{node}/lxc/{vmid}/firewall/log": + get: + operationId: getNodesSingleLxcSingleFirewallLog + summary: getNodesSingleLxcSingleFirewallLog + description: Read firewall log + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleFirewallLogResponse" + "/nodes/{node}/lxc/{vmid}/firewall/refs": + get: + operationId: getNodesSingleLxcSingleFirewallRefs + summary: getNodesSingleLxcSingleFirewallRefs + description: >- + Lists possible IPSet/Alias reference which are allowed in source/dest + properties. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleFirewallRefsResponse" + "/nodes/{node}/lxc/{vmid}/rrd": + get: + operationId: getNodesSingleLxcSingleRrd + summary: getNodesSingleLxcSingleRrd + description: Read VM RRD statistics (returns PNG) + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleRrdResponse" + "/nodes/{node}/lxc/{vmid}/rrddata": + get: + operationId: getNodesSingleLxcSingleRrddata + summary: getNodesSingleLxcSingleRrddata + description: Read VM RRD statistics + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleRrddataResponse" + "/nodes/{node}/lxc/{vmid}/vncproxy": + post: + operationId: createNodesSingleLxcSingleVncproxy + summary: createNodesSingleLxcSingleVncproxy + description: Creates a TCP VNC proxy connections. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleVncproxyResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleVncproxyRequest" + "/nodes/{node}/lxc/{vmid}/termproxy": + post: + operationId: createNodesSingleLxcSingleTermproxy + summary: createNodesSingleLxcSingleTermproxy + description: Creates a TCP proxy connection. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleTermproxyResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleTermproxyRequest" + "/nodes/{node}/lxc/{vmid}/vncwebsocket": + get: + operationId: getNodesSingleLxcSingleVncwebsocket + summary: getNodesSingleLxcSingleVncwebsocket + description: Opens a websocket for VNC traffic. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleVncwebsocketResponse" + "/nodes/{node}/lxc/{vmid}/spiceproxy": + post: + operationId: createNodesSingleLxcSingleSpiceproxy + summary: createNodesSingleLxcSingleSpiceproxy + description: Returns a SPICE configuration to connect to the CT. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleSpiceproxyResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleSpiceproxyRequest" + "/nodes/{node}/lxc/{vmid}/remote_migrate": + post: + operationId: createNodesSingleLxcSingleRemotemigrate + summary: createNodesSingleLxcSingleRemotemigrate + description: >- + Migrate the container to another cluster. Creates a new migration task. + EXPERIMENTAL feature! + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleLxcSingleRemotemigrateResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleLxcSingleRemotemigrateRequest + "/nodes/{node}/lxc/{vmid}/migrate": + get: + operationId: getNodesSingleLxcSingleMigrate + summary: getNodesSingleLxcSingleMigrate + description: Get preconditions for migration. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleMigrateResponse" + post: + operationId: createNodesSingleLxcSingleMigrate + summary: createNodesSingleLxcSingleMigrate + description: Migrate the container to another node. Creates a new migration task. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleMigrateResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleMigrateRequest" + "/nodes/{node}/lxc/{vmid}/feature": + get: + operationId: getNodesSingleLxcSingleFeature + summary: getNodesSingleLxcSingleFeature + description: Check if feature for virtual machine is available. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleFeatureResponse" + "/nodes/{node}/lxc/{vmid}/template": + post: + operationId: createNodesSingleLxcSingleTemplate + summary: createNodesSingleLxcSingleTemplate + description: Create a Template. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleTemplateResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleTemplateRequest" + "/nodes/{node}/lxc/{vmid}/clone": + post: + operationId: createNodesSingleLxcSingleClone + summary: createNodesSingleLxcSingleClone + description: Create a container clone/copy + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleCloneResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleCloneRequest" + "/nodes/{node}/lxc/{vmid}/resize": + put: + operationId: updateNodesSingleLxcSingleResize + summary: updateNodesSingleLxcSingleResize + description: Resize a container mount point. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleLxcSingleResizeResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleLxcSingleResizeRequest" + "/nodes/{node}/lxc/{vmid}/move_volume": + post: + operationId: createNodesSingleLxcSingleMovevolume + summary: createNodesSingleLxcSingleMovevolume + description: >- + Move a rootfs-/mp-volume to a different storage or to a different + container. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleMovevolumeResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleMovevolumeRequest" + "/nodes/{node}/lxc/{vmid}/pending": + get: + operationId: getNodesSingleLxcSinglePending + summary: getNodesSingleLxcSinglePending + description: "Get container configuration, including pending changes." + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSinglePendingResponse" + "/nodes/{node}/lxc/{vmid}/interfaces": + get: + operationId: getNodesSingleLxcSingleInterfaces + summary: getNodesSingleLxcSingleInterfaces + description: Get IP addresses of the specified container interface. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleLxcSingleInterfacesResponse" + "/nodes/{node}/lxc/{vmid}/mtunnel": + post: + operationId: createNodesSingleLxcSingleMtunnel + summary: createNodesSingleLxcSingleMtunnel + description: Migration tunnel endpoint - only for internal use by CT migration. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleLxcSingleMtunnelResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleLxcSingleMtunnelRequest" + "/nodes/{node}/lxc/{vmid}/mtunnelwebsocket": + get: + operationId: getNodesSingleLxcSingleMtunnelwebsocket + summary: getNodesSingleLxcSingleMtunnelwebsocket + description: >- + Migration tunnel endpoint for websocket upgrade - only for internal use + by VM migration. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vmid + in: path + required: true + description: vmid + schema: + type: integer + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleLxcSingleMtunnelwebsocketResponse + "/nodes/{node}/ceph": + get: + operationId: getNodesSingleCeph + summary: getNodesSingleCeph + description: Directory index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephResponse" + "/nodes/{node}/ceph/cfg": + get: + operationId: getNodesSingleCephCfg + summary: getNodesSingleCephCfg + description: Directory index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephCfgResponse" + "/nodes/{node}/ceph/cfg/raw": + get: + operationId: getNodesSingleCephCfgRaw + summary: getNodesSingleCephCfgRaw + description: Get the Ceph configuration file. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephCfgRawResponse" + "/nodes/{node}/ceph/cfg/db": + get: + operationId: getNodesSingleCephCfgDb + summary: getNodesSingleCephCfgDb + description: Get the Ceph configuration database. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephCfgDbResponse" + "/nodes/{node}/ceph/cfg/value": + get: + operationId: getNodesSingleCephCfgValue + summary: getNodesSingleCephCfgValue + description: Get configured values from either the config file or config DB. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephCfgValueResponse" + "/nodes/{node}/ceph/osd": + get: + operationId: getNodesSingleCephOsd + summary: getNodesSingleCephOsd + description: Get Ceph osd list/tree. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephOsdResponse" + post: + operationId: createNodesSingleCephOsd + summary: createNodesSingleCephOsd + description: Create OSD + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephOsdResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephOsdRequest" + "/nodes/{node}/ceph/osd/{osdid}": + delete: + operationId: deleteNodesSingleCephOsdSingle + summary: deleteNodesSingleCephOsdSingle + description: Destroy OSD + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: osdid + in: path + required: true + description: osdid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleCephOsdSingleResponse" + get: + operationId: getNodesSingleCephOsdSingle + summary: getNodesSingleCephOsdSingle + description: OSD index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: osdid + in: path + required: true + description: osdid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephOsdSingleResponse" + "/nodes/{node}/ceph/osd/{osdid}/metadata": + get: + operationId: getNodesSingleCephOsdSingleMetadata + summary: getNodesSingleCephOsdSingleMetadata + description: Get OSD details + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: osdid + in: path + required: true + description: osdid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephOsdSingleMetadataResponse" + "/nodes/{node}/ceph/osd/{osdid}/lv-info": + get: + operationId: getNodesSingleCephOsdSingleLvinfo + summary: getNodesSingleCephOsdSingleLvinfo + description: Get OSD volume details + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: osdid + in: path + required: true + description: osdid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephOsdSingleLvinfoResponse" + "/nodes/{node}/ceph/osd/{osdid}/in": + post: + operationId: createNodesSingleCephOsdSingleIn + summary: createNodesSingleCephOsdSingleIn + description: ceph osd in + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: osdid + in: path + required: true + description: osdid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephOsdSingleInResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephOsdSingleInRequest" + "/nodes/{node}/ceph/osd/{osdid}/out": + post: + operationId: createNodesSingleCephOsdSingleOut + summary: createNodesSingleCephOsdSingleOut + description: ceph osd out + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: osdid + in: path + required: true + description: osdid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephOsdSingleOutResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephOsdSingleOutRequest" + "/nodes/{node}/ceph/osd/{osdid}/scrub": + post: + operationId: createNodesSingleCephOsdSingleScrub + summary: createNodesSingleCephOsdSingleScrub + description: Instruct the OSD to scrub. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: osdid + in: path + required: true + description: osdid + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephOsdSingleScrubResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephOsdSingleScrubRequest" + "/nodes/{node}/ceph/mds": + get: + operationId: getNodesSingleCephMds + summary: getNodesSingleCephMds + description: MDS directory index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephMdsResponse" + "/nodes/{node}/ceph/mds/{name}": + delete: + operationId: deleteNodesSingleCephMdsSingle + summary: deleteNodesSingleCephMdsSingle + description: Destroy Ceph Metadata Server + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleCephMdsSingleResponse" + post: + operationId: createNodesSingleCephMdsSingle + summary: createNodesSingleCephMdsSingle + description: Create Ceph Metadata Server (MDS) + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephMdsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephMdsSingleRequest" + "/nodes/{node}/ceph/mgr": + get: + operationId: getNodesSingleCephMgr + summary: getNodesSingleCephMgr + description: MGR directory index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephMgrResponse" + "/nodes/{node}/ceph/mgr/{id}": + delete: + operationId: deleteNodesSingleCephMgrSingle + summary: deleteNodesSingleCephMgrSingle + description: Destroy Ceph Manager. + tags: + - nodes + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleCephMgrSingleResponse" + post: + operationId: createNodesSingleCephMgrSingle + summary: createNodesSingleCephMgrSingle + description: Create Ceph Manager + tags: + - nodes + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephMgrSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephMgrSingleRequest" + "/nodes/{node}/ceph/mon": + get: + operationId: getNodesSingleCephMon + summary: getNodesSingleCephMon + description: Get Ceph monitor list. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephMonResponse" + "/nodes/{node}/ceph/mon/{monid}": + delete: + operationId: deleteNodesSingleCephMonSingle + summary: deleteNodesSingleCephMonSingle + description: Destroy Ceph Monitor and Manager. + tags: + - nodes + parameters: + - name: monid + in: path + required: true + description: monid + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleCephMonSingleResponse" + post: + operationId: createNodesSingleCephMonSingle + summary: createNodesSingleCephMonSingle + description: Create Ceph Monitor and Manager + tags: + - nodes + parameters: + - name: monid + in: path + required: true + description: monid + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephMonSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephMonSingleRequest" + "/nodes/{node}/ceph/fs": + get: + operationId: getNodesSingleCephFs + summary: getNodesSingleCephFs + description: Directory index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephFsResponse" + "/nodes/{node}/ceph/fs/{name}": + post: + operationId: createNodesSingleCephFsSingle + summary: createNodesSingleCephFsSingle + description: Create a Ceph filesystem + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephFsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephFsSingleRequest" + "/nodes/{node}/ceph/pool": + get: + operationId: getNodesSingleCephPool + summary: getNodesSingleCephPool + description: >- + List all pools and their settings (which are settable by the POST/PUT + endpoints). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephPoolResponse" + post: + operationId: createNodesSingleCephPool + summary: createNodesSingleCephPool + description: Create Ceph pool + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephPoolResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephPoolRequest" + "/nodes/{node}/ceph/pool/{name}": + delete: + operationId: deleteNodesSingleCephPoolSingle + summary: deleteNodesSingleCephPoolSingle + description: Destroy pool + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleCephPoolSingleResponse" + get: + operationId: getNodesSingleCephPoolSingle + summary: getNodesSingleCephPoolSingle + description: Pool index. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephPoolSingleResponse" + put: + operationId: updateNodesSingleCephPoolSingle + summary: updateNodesSingleCephPoolSingle + description: Change POOL settings + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleCephPoolSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleCephPoolSingleRequest" + "/nodes/{node}/ceph/pool/{name}/status": + get: + operationId: getNodesSingleCephPoolSingleStatus + summary: getNodesSingleCephPoolSingleStatus + description: Show the current pool status. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephPoolSingleStatusResponse" + "/nodes/{node}/ceph/init": + post: + operationId: createNodesSingleCephInit + summary: createNodesSingleCephInit + description: Create initial ceph default configuration and setup symlinks. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephInitResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephInitRequest" + "/nodes/{node}/ceph/stop": + post: + operationId: createNodesSingleCephStop + summary: createNodesSingleCephStop + description: Stop ceph services. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephStopResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephStopRequest" + "/nodes/{node}/ceph/start": + post: + operationId: createNodesSingleCephStart + summary: createNodesSingleCephStart + description: Start ceph services. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephStartResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephStartRequest" + "/nodes/{node}/ceph/restart": + post: + operationId: createNodesSingleCephRestart + summary: createNodesSingleCephRestart + description: Restart ceph services. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCephRestartResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCephRestartRequest" + "/nodes/{node}/ceph/status": + get: + operationId: getNodesSingleCephStatus + summary: getNodesSingleCephStatus + description: Get ceph status. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephStatusResponse" + "/nodes/{node}/ceph/crush": + get: + operationId: getNodesSingleCephCrush + summary: getNodesSingleCephCrush + description: Get OSD crush map + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephCrushResponse" + "/nodes/{node}/ceph/log": + get: + operationId: getNodesSingleCephLog + summary: getNodesSingleCephLog + description: Read ceph log + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephLogResponse" + "/nodes/{node}/ceph/rules": + get: + operationId: getNodesSingleCephRules + summary: getNodesSingleCephRules + description: List ceph rules. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephRulesResponse" + "/nodes/{node}/ceph/cmd-safety": + get: + operationId: getNodesSingleCephCmdsafety + summary: getNodesSingleCephCmdsafety + description: Heuristical check if it is safe to perform an action. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCephCmdsafetyResponse" + "/nodes/{node}/vzdump": + post: + operationId: createNodesSingleVzdump + summary: createNodesSingleVzdump + description: Create backup. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleVzdumpResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleVzdumpRequest" + "/nodes/{node}/vzdump/defaults": + get: + operationId: getNodesSingleVzdumpDefaults + summary: getNodesSingleVzdumpDefaults + description: Get the currently configured vzdump defaults. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleVzdumpDefaultsResponse" + "/nodes/{node}/vzdump/extractconfig": + get: + operationId: getNodesSingleVzdumpExtractconfig + summary: getNodesSingleVzdumpExtractconfig + description: Extract configuration from vzdump backup archive. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleVzdumpExtractconfigResponse" + "/nodes/{node}/services": + get: + operationId: getNodesSingleServices + summary: getNodesSingleServices + description: Service list. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleServicesResponse" + "/nodes/{node}/services/{service}": + get: + operationId: getNodesSingleServicesSingle + summary: getNodesSingleServicesSingle + description: Directory index + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: service + in: path + required: true + description: service + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleServicesSingleResponse" + "/nodes/{node}/services/{service}/state": + get: + operationId: getNodesSingleServicesSingleState + summary: getNodesSingleServicesSingleState + description: Read service properties + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: service + in: path + required: true + description: service + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleServicesSingleStateResponse" + "/nodes/{node}/services/{service}/start": + post: + operationId: createNodesSingleServicesSingleStart + summary: createNodesSingleServicesSingleStart + description: Start service. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: service + in: path + required: true + description: service + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleServicesSingleStartResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleServicesSingleStartRequest" + "/nodes/{node}/services/{service}/stop": + post: + operationId: createNodesSingleServicesSingleStop + summary: createNodesSingleServicesSingleStop + description: Stop service. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: service + in: path + required: true + description: service + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleServicesSingleStopResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleServicesSingleStopRequest" + "/nodes/{node}/services/{service}/restart": + post: + operationId: createNodesSingleServicesSingleRestart + summary: createNodesSingleServicesSingleRestart + description: Hard restart service. Use reload if you want to reduce interruptions. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: service + in: path + required: true + description: service + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleServicesSingleRestartResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleServicesSingleRestartRequest + "/nodes/{node}/services/{service}/reload": + post: + operationId: createNodesSingleServicesSingleReload + summary: createNodesSingleServicesSingleReload + description: Reload service. Falls back to restart if service cannot be reloaded. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: service + in: path + required: true + description: service + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleServicesSingleReloadResponse" + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleServicesSingleReloadRequest + "/nodes/{node}/subscription": + delete: + operationId: deleteNodesSingleSubscription + summary: deleteNodesSingleSubscription + description: Delete subscription key of this node. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleSubscriptionResponse" + get: + operationId: getNodesSingleSubscription + summary: getNodesSingleSubscription + description: Read subscription info. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleSubscriptionResponse" + post: + operationId: createNodesSingleSubscription + summary: createNodesSingleSubscription + description: Update subscription info. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleSubscriptionResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleSubscriptionRequest" + put: + operationId: updateNodesSingleSubscription + summary: updateNodesSingleSubscription + description: Set subscription key. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleSubscriptionResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleSubscriptionRequest" + "/nodes/{node}/network": + delete: + operationId: deleteNodesSingleNetwork + summary: deleteNodesSingleNetwork + description: Revert network configuration changes. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleNetworkResponse" + get: + operationId: getNodesSingleNetwork + summary: getNodesSingleNetwork + description: List available networks + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleNetworkResponse" + post: + operationId: createNodesSingleNetwork + summary: createNodesSingleNetwork + description: Create network device configuration + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleNetworkResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleNetworkRequest" + put: + operationId: updateNodesSingleNetwork + summary: updateNodesSingleNetwork + description: Reload network configuration + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleNetworkResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleNetworkRequest" + "/nodes/{node}/network/{iface}": + delete: + operationId: deleteNodesSingleNetworkSingle + summary: deleteNodesSingleNetworkSingle + description: Delete network device configuration + tags: + - nodes + parameters: + - name: iface + in: path + required: true + description: iface + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleNetworkSingleResponse" + get: + operationId: getNodesSingleNetworkSingle + summary: getNodesSingleNetworkSingle + description: Read network device configuration + tags: + - nodes + parameters: + - name: iface + in: path + required: true + description: iface + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleNetworkSingleResponse" + put: + operationId: updateNodesSingleNetworkSingle + summary: updateNodesSingleNetworkSingle + description: Update network device configuration + tags: + - nodes + parameters: + - name: iface + in: path + required: true + description: iface + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleNetworkSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleNetworkSingleRequest" + "/nodes/{node}/tasks": + get: + operationId: getNodeTasks + summary: getNodeTasks + description: Read task list for one node (finished tasks). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeTasksResponse" + "/nodes/{node}/tasks/{upid}": + delete: + operationId: stopNodeTask + summary: stopNodeTask + description: Stop a task. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: upid + in: path + required: true + description: upid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/StopNodeTaskResponse" + get: + operationId: getNodeTask + summary: getNodeTask + description: getNodeTask + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: upid + in: path + required: true + description: upid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeTaskResponse" + "/nodes/{node}/tasks/{upid}/log": + get: + operationId: getNodeTaskLog + summary: getNodeTaskLog + description: Read task log. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: upid + in: path + required: true + description: upid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeTaskLogResponse" + "/nodes/{node}/tasks/{upid}/status": + get: + operationId: getNodeTaskStatus + summary: getNodeTaskStatus + description: Read task status. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: upid + in: path + required: true + description: upid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeTaskStatusResponse" + "/nodes/{node}/scan": + get: + operationId: getNodesSingleScan + summary: getNodesSingleScan + description: Index of available scan methods + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleScanResponse" + "/nodes/{node}/scan/nfs": + get: + operationId: getNodesSingleScanNfs + summary: getNodesSingleScanNfs + description: Scan remote NFS server. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleScanNfsResponse" + "/nodes/{node}/scan/cifs": + get: + operationId: getNodesSingleScanCifs + summary: getNodesSingleScanCifs + description: Scan remote CIFS server. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleScanCifsResponse" + "/nodes/{node}/scan/pbs": + get: + operationId: getNodesSingleScanPbs + summary: getNodesSingleScanPbs + description: Scan remote Proxmox Backup Server. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleScanPbsResponse" + "/nodes/{node}/scan/iscsi": + get: + operationId: getNodesSingleScanIscsi + summary: getNodesSingleScanIscsi + description: Scan remote iSCSI server. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleScanIscsiResponse" + "/nodes/{node}/scan/lvm": + get: + operationId: getNodesSingleScanLvm + summary: getNodesSingleScanLvm + description: List local LVM volume groups. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleScanLvmResponse" + "/nodes/{node}/scan/lvmthin": + get: + operationId: getNodesSingleScanLvmthin + summary: getNodesSingleScanLvmthin + description: List local LVM Thin Pools. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleScanLvmthinResponse" + "/nodes/{node}/scan/zfs": + get: + operationId: getNodesSingleScanZfs + summary: getNodesSingleScanZfs + description: Scan zfs pool list on local node. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleScanZfsResponse" + "/nodes/{node}/hardware": + get: + operationId: getNodesSingleHardware + summary: getNodesSingleHardware + description: Index of hardware types + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleHardwareResponse" + "/nodes/{node}/hardware/pci": + get: + operationId: getNodesSingleHardwarePci + summary: getNodesSingleHardwarePci + description: List local PCI devices. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleHardwarePciResponse" + "/nodes/{node}/hardware/pci/{pci-id-or-mapping}": + get: + operationId: getNodesSingleHardwarePciSingle + summary: getNodesSingleHardwarePciSingle + description: Index of available pci methods + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pci-id-or-mapping + in: path + required: true + description: pci-id-or-mapping + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleHardwarePciSingleResponse" + "/nodes/{node}/hardware/pci/{pci-id-or-mapping}/mdev": + get: + operationId: getNodesSingleHardwarePciSingleMdev + summary: getNodesSingleHardwarePciSingleMdev + description: List mediated device types for given PCI device. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pci-id-or-mapping + in: path + required: true + description: pci-id-or-mapping + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleHardwarePciSingleMdevResponse" + "/nodes/{node}/hardware/usb": + get: + operationId: getNodesSingleHardwareUsb + summary: getNodesSingleHardwareUsb + description: List local USB devices. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleHardwareUsbResponse" + "/nodes/{node}/capabilities": + get: + operationId: getNodesSingleCapabilities + summary: getNodesSingleCapabilities + description: Node capabilities index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCapabilitiesResponse" + "/nodes/{node}/capabilities/qemu": + get: + operationId: getNodesSingleCapabilitiesQemu + summary: getNodesSingleCapabilitiesQemu + description: QEMU capabilities index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCapabilitiesQemuResponse" + "/nodes/{node}/capabilities/qemu/cpu": + get: + operationId: getNodesSingleCapabilitiesQemuCpu + summary: getNodesSingleCapabilitiesQemuCpu + description: List all custom and default CPU models. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCapabilitiesQemuCpuResponse" + "/nodes/{node}/capabilities/qemu/cpu-flags": + get: + operationId: getNodesSingleCapabilitiesQemuCpuflags + summary: getNodesSingleCapabilitiesQemuCpuflags + description: List of available VM-specific CPU flags. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleCapabilitiesQemuCpuflagsResponse + "/nodes/{node}/capabilities/qemu/machines": + get: + operationId: getNodesSingleCapabilitiesQemuMachines + summary: getNodesSingleCapabilitiesQemuMachines + description: Get available QEMU/KVM machine types. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleCapabilitiesQemuMachinesResponse + "/nodes/{node}/capabilities/qemu/migration": + get: + operationId: getNodesSingleCapabilitiesQemuMigration + summary: getNodesSingleCapabilitiesQemuMigration + description: >- + Get node-specific QEMU migration capabilities of the node. Requires the + 'Sys.Audit' permission on '/nodes/'. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleCapabilitiesQemuMigrationResponse + "/nodes/{node}/storage": + get: + operationId: getNodesSingleStorage + summary: getNodesSingleStorage + description: Get status for all datastores. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleStorageResponse" + "/nodes/{node}/storage/{storage}": + get: + operationId: getNodesSingleStorageSingle + summary: getNodesSingleStorageSingle + description: getNodesSingleStorageSingle + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleStorageSingleResponse" + "/nodes/{node}/storage/{storage}/prunebackups": + delete: + operationId: deleteNodesSingleStorageSinglePrunebackups + summary: deleteNodesSingleStorageSinglePrunebackups + description: >- + Prune backups. Only those using the standard naming scheme are + considered. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleStorageSinglePrunebackupsResponse + get: + operationId: getNodesSingleStorageSinglePrunebackups + summary: getNodesSingleStorageSinglePrunebackups + description: >- + Get prune information for backups. NOTE: this is only a preview and + might not be what a subsequent prune call does if backups are + removed/added in the meantime. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleStorageSinglePrunebackupsResponse + "/nodes/{node}/storage/{storage}/content": + get: + operationId: getNodesSingleStorageSingleContent + summary: getNodesSingleStorageSingleContent + description: List storage content. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleStorageSingleContentResponse" + post: + operationId: createNodesSingleStorageSingleContent + summary: createNodesSingleStorageSingleContent + description: Allocate disk images. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleStorageSingleContentResponse" + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleStorageSingleContentRequest + "/nodes/{node}/storage/{storage}/content/{volume}": + delete: + operationId: deleteNodesSingleStorageSingleContentSingle + summary: deleteNodesSingleStorageSingleContentSingle + description: Delete volume + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + - name: volume + in: path + required: true + description: volume + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleStorageSingleContentSingleResponse + get: + operationId: getNodesSingleStorageSingleContentSingle + summary: getNodesSingleStorageSingleContentSingle + description: Get volume attributes + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + - name: volume + in: path + required: true + description: volume + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleStorageSingleContentSingleResponse + post: + operationId: createNodesSingleStorageSingleContentSingle + summary: createNodesSingleStorageSingleContentSingle + description: Copy a volume. This is experimental code - do not use. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + - name: volume + in: path + required: true + description: volume + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleStorageSingleContentSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleStorageSingleContentSingleRequest + put: + operationId: updateNodesSingleStorageSingleContentSingle + summary: updateNodesSingleStorageSingleContentSingle + description: Update volume attributes + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + - name: volume + in: path + required: true + description: volume + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateNodesSingleStorageSingleContentSingleResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateNodesSingleStorageSingleContentSingleRequest + "/nodes/{node}/storage/{storage}/file-restore/list": + get: + operationId: getNodesSingleStorageSingleFilerestoreList + summary: getNodesSingleStorageSingleFilerestoreList + description: List files and directories for single file restore under the given path. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleStorageSingleFilerestoreListResponse + "/nodes/{node}/storage/{storage}/file-restore/download": + get: + operationId: getNodesSingleStorageSingleFilerestoreDownload + summary: getNodesSingleStorageSingleFilerestoreDownload + description: Extract a file or directory (as zip archive) from a PBS backup. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleStorageSingleFilerestoreDownloadResponse + "/nodes/{node}/storage/{storage}/status": + get: + operationId: getNodesSingleStorageSingleStatus + summary: getNodesSingleStorageSingleStatus + description: Read storage status. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleStorageSingleStatusResponse" + "/nodes/{node}/storage/{storage}/rrd": + get: + operationId: getNodesSingleStorageSingleRrd + summary: getNodesSingleStorageSingleRrd + description: Read storage RRD statistics (returns PNG). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleStorageSingleRrdResponse" + "/nodes/{node}/storage/{storage}/rrddata": + get: + operationId: getNodesSingleStorageSingleRrddata + summary: getNodesSingleStorageSingleRrddata + description: Read storage RRD statistics. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleStorageSingleRrddataResponse" + "/nodes/{node}/storage/{storage}/upload": + post: + operationId: createNodesSingleStorageSingleUpload + summary: createNodesSingleStorageSingleUpload + description: "Upload templates, ISO images, OVAs and VM images." + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleStorageSingleUploadResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleStorageSingleUploadRequest" + "/nodes/{node}/storage/{storage}/download-url": + post: + operationId: createNodesSingleStorageSingleDownloadurl + summary: createNodesSingleStorageSingleDownloadurl + description: "Download templates, ISO images, OVAs and VM images by using an URL." + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleStorageSingleDownloadurlResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleStorageSingleDownloadurlRequest + "/nodes/{node}/storage/{storage}/oci-registry-pull": + post: + operationId: createNodesSingleStorageSingleOciregistrypull + summary: createNodesSingleStorageSingleOciregistrypull + description: Pull an OCI image from a registry. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleStorageSingleOciregistrypullResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleStorageSingleOciregistrypullRequest + "/nodes/{node}/storage/{storage}/import-metadata": + get: + operationId: getNodesSingleStorageSingleImportmetadata + summary: getNodesSingleStorageSingleImportmetadata + description: >- + Get the base parameters for creating a guest which imports data from a + foreign importable guest, like an ESXi VM + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleStorageSingleImportmetadataResponse + "/nodes/{node}/disks": + get: + operationId: getNodesSingleDisks + summary: getNodesSingleDisks + description: Node index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDisksResponse" + "/nodes/{node}/disks/lvm": + get: + operationId: getNodesSingleDisksLvm + summary: getNodesSingleDisksLvm + description: List LVM Volume Groups + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDisksLvmResponse" + post: + operationId: createNodesSingleDisksLvm + summary: createNodesSingleDisksLvm + description: Create an LVM Volume Group + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleDisksLvmResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleDisksLvmRequest" + "/nodes/{node}/disks/lvm/{name}": + delete: + operationId: deleteNodesSingleDisksLvmSingle + summary: deleteNodesSingleDisksLvmSingle + description: Remove an LVM Volume Group. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleDisksLvmSingleResponse" + "/nodes/{node}/disks/lvmthin": + get: + operationId: getNodesSingleDisksLvmthin + summary: getNodesSingleDisksLvmthin + description: List LVM thinpools + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDisksLvmthinResponse" + post: + operationId: createNodesSingleDisksLvmthin + summary: createNodesSingleDisksLvmthin + description: Create an LVM thinpool + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleDisksLvmthinResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleDisksLvmthinRequest" + "/nodes/{node}/disks/lvmthin/{name}": + delete: + operationId: deleteNodesSingleDisksLvmthinSingle + summary: deleteNodesSingleDisksLvmthinSingle + description: Remove an LVM thin pool. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleDisksLvmthinSingleResponse" + "/nodes/{node}/disks/directory": + get: + operationId: getNodesSingleDisksDirectory + summary: getNodesSingleDisksDirectory + description: PVE Managed Directory storages. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDisksDirectoryResponse" + post: + operationId: createNodesSingleDisksDirectory + summary: createNodesSingleDisksDirectory + description: >- + Create a Filesystem on an unused disk. Will be mounted under + '/mnt/pve/NAME'. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleDisksDirectoryResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleDisksDirectoryRequest" + "/nodes/{node}/disks/directory/{name}": + delete: + operationId: deleteNodesSingleDisksDirectorySingle + summary: deleteNodesSingleDisksDirectorySingle + description: Unmounts the storage and removes the mount unit. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleDisksDirectorySingleResponse" + "/nodes/{node}/disks/zfs": + get: + operationId: getNodesSingleDisksZfs + summary: getNodesSingleDisksZfs + description: List Zpools. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDisksZfsResponse" + post: + operationId: createNodesSingleDisksZfs + summary: createNodesSingleDisksZfs + description: Create a ZFS pool. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleDisksZfsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleDisksZfsRequest" + "/nodes/{node}/disks/zfs/{name}": + delete: + operationId: deleteNodesSingleDisksZfsSingle + summary: deleteNodesSingleDisksZfsSingle + description: Destroy a ZFS pool. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleDisksZfsSingleResponse" + get: + operationId: getNodesSingleDisksZfsSingle + summary: getNodesSingleDisksZfsSingle + description: Get details about a zpool. + tags: + - nodes + parameters: + - name: name + in: path + required: true + description: name + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDisksZfsSingleResponse" + "/nodes/{node}/disks/list": + get: + operationId: getNodesSingleDisksList + summary: getNodesSingleDisksList + description: List local disks. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDisksListResponse" + "/nodes/{node}/disks/smart": + get: + operationId: getNodesSingleDisksSmart + summary: getNodesSingleDisksSmart + description: Get SMART Health of a disk. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDisksSmartResponse" + "/nodes/{node}/disks/initgpt": + post: + operationId: createNodesSingleDisksInitgpt + summary: createNodesSingleDisksInitgpt + description: Initialize Disk with GPT + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleDisksInitgptResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleDisksInitgptRequest" + "/nodes/{node}/disks/wipedisk": + put: + operationId: updateNodesSingleDisksWipedisk + summary: updateNodesSingleDisksWipedisk + description: Wipe a disk or partition. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleDisksWipediskResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleDisksWipediskRequest" + "/nodes/{node}/apt": + get: + operationId: getNodesSingleApt + summary: getNodesSingleApt + description: Directory index for apt (Advanced Package Tool). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleAptResponse" + "/nodes/{node}/apt/update": + get: + operationId: getNodesSingleAptUpdate + summary: getNodesSingleAptUpdate + description: List available updates. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleAptUpdateResponse" + post: + operationId: createNodesSingleAptUpdate + summary: createNodesSingleAptUpdate + description: >- + This is used to resynchronize the package index files from their sources + (apt-get update). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleAptUpdateResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleAptUpdateRequest" + "/nodes/{node}/apt/changelog": + get: + operationId: getNodesSingleAptChangelog + summary: getNodesSingleAptChangelog + description: Get package changelogs. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleAptChangelogResponse" + "/nodes/{node}/apt/repositories": + get: + operationId: getNodesSingleAptRepositories + summary: getNodesSingleAptRepositories + description: Get APT repository information. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleAptRepositoriesResponse" + post: + operationId: createNodesSingleAptRepositories + summary: createNodesSingleAptRepositories + description: >- + Change the properties of a repository. Currently only allows + enabling/disabling. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleAptRepositoriesResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleAptRepositoriesRequest" + put: + operationId: updateNodesSingleAptRepositories + summary: updateNodesSingleAptRepositories + description: Add a standard repository to the configuration + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleAptRepositoriesResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleAptRepositoriesRequest" + "/nodes/{node}/apt/versions": + get: + operationId: getNodesSingleAptVersions + summary: getNodesSingleAptVersions + description: Get package information for important Proxmox packages. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleAptVersionsResponse" + "/nodes/{node}/firewall": + get: + operationId: getNodeFirewall + summary: getNodeFirewall + description: Directory index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeFirewallResponse" + "/nodes/{node}/firewall/rules": + get: + operationId: getNodeFirewallRules + summary: getNodeFirewallRules + description: List rules. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeFirewallRulesResponse" + post: + operationId: createNodeFirewallRule + summary: createNodeFirewallRule + description: Create new rule. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodeFirewallRuleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodeFirewallRuleRequest" + "/nodes/{node}/firewall/rules/{pos}": + delete: + operationId: deleteNodeFirewallRule + summary: deleteNodeFirewallRule + description: Delete rule. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/DeleteNodeFirewallRuleResponse" + get: + operationId: getNodeFirewallRule + summary: getNodeFirewallRule + description: Get single rule data. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/GetNodeFirewallRuleResponse" + put: + operationId: updateNodeFirewallRule + summary: updateNodeFirewallRule + description: Modify rule data. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: pos + in: path + required: true + description: pos + schema: + type: integer + responses: + "200": + $ref: "#/components/responses/UpdateNodeFirewallRuleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodeFirewallRuleRequest" + "/nodes/{node}/firewall/options": + get: + operationId: getNodeFirewallOptions + summary: getNodeFirewallOptions + description: Get host firewall options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeFirewallOptionsResponse" + put: + operationId: updateNodeFirewallOptions + summary: updateNodeFirewallOptions + description: Set Firewall options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodeFirewallOptionsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodeFirewallOptionsRequest" + "/nodes/{node}/firewall/log": + get: + operationId: getNodesSingleFirewallLog + summary: getNodesSingleFirewallLog + description: Read firewall log + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleFirewallLogResponse" + "/nodes/{node}/replication": + get: + operationId: getNodesSingleReplication + summary: getNodesSingleReplication + description: List status of all replication jobs on this node. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleReplicationResponse" + "/nodes/{node}/replication/{id}": + get: + operationId: getNodesSingleReplicationSingle + summary: getNodesSingleReplicationSingle + description: Directory index. + tags: + - nodes + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleReplicationSingleResponse" + "/nodes/{node}/replication/{id}/status": + get: + operationId: getNodesSingleReplicationSingleStatus + summary: getNodesSingleReplicationSingleStatus + description: Get replication job status. + tags: + - nodes + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleReplicationSingleStatusResponse" + "/nodes/{node}/replication/{id}/log": + get: + operationId: getNodesSingleReplicationSingleLog + summary: getNodesSingleReplicationSingleLog + description: Read replication job log. + tags: + - nodes + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleReplicationSingleLogResponse" + "/nodes/{node}/replication/{id}/schedule_now": + post: + operationId: createNodesSingleReplicationSingleSchedulenow + summary: createNodesSingleReplicationSingleSchedulenow + description: Schedule replication job to start as soon as possible. + tags: + - nodes + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleReplicationSingleSchedulenowResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleReplicationSingleSchedulenowRequest + "/nodes/{node}/certificates": + get: + operationId: getNodesSingleCertificates + summary: getNodesSingleCertificates + description: Node index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCertificatesResponse" + "/nodes/{node}/certificates/acme": + get: + operationId: getNodesSingleCertificatesAcme + summary: getNodesSingleCertificatesAcme + description: ACME index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCertificatesAcmeResponse" + "/nodes/{node}/certificates/acme/certificate": + delete: + operationId: deleteNodesSingleCertificatesAcmeCertificate + summary: deleteNodesSingleCertificatesAcmeCertificate + description: Revoke existing certificate from CA. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/DeleteNodesSingleCertificatesAcmeCertificateResponse + post: + operationId: createNodesSingleCertificatesAcmeCertificate + summary: createNodesSingleCertificatesAcmeCertificate + description: Order a new certificate from ACME-compatible CA. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/CreateNodesSingleCertificatesAcmeCertificateResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/CreateNodesSingleCertificatesAcmeCertificateRequest + put: + operationId: updateNodesSingleCertificatesAcmeCertificate + summary: updateNodesSingleCertificatesAcmeCertificate + description: Renew existing certificate from CA. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/UpdateNodesSingleCertificatesAcmeCertificateResponse + requestBody: + content: + application/json: + schema: + $ref: >- + #/components/schemas/UpdateNodesSingleCertificatesAcmeCertificateRequest + "/nodes/{node}/certificates/info": + get: + operationId: getNodesSingleCertificatesInfo + summary: getNodesSingleCertificatesInfo + description: Get information about node's certificates. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleCertificatesInfoResponse" + "/nodes/{node}/certificates/custom": + delete: + operationId: deleteNodesSingleCertificatesCustom + summary: deleteNodesSingleCertificatesCustom + description: DELETE custom certificate chain and key. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteNodesSingleCertificatesCustomResponse" + post: + operationId: createNodesSingleCertificatesCustom + summary: createNodesSingleCertificatesCustom + description: Upload or update custom certificate chain and key. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleCertificatesCustomResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleCertificatesCustomRequest" + "/nodes/{node}/config": + get: + operationId: getNodesSingleConfig + summary: getNodesSingleConfig + description: Get node configuration options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleConfigResponse" + put: + operationId: updateNodesSingleConfig + summary: updateNodesSingleConfig + description: Set node configuration options. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleConfigResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleConfigRequest" + "/nodes/{node}/sdn": + get: + operationId: getNodeSDN + summary: getNodeSDN + description: SDN index. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeSDNResponse" + "/nodes/{node}/sdn/fabrics/{fabric}": + get: + operationId: getNodesSingleSdnFabricsSingle + summary: getNodesSingleSdnFabricsSingle + description: Directory index for SDN fabric status. + tags: + - nodes + parameters: + - name: fabric + in: path + required: true + description: fabric + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleSdnFabricsSingleResponse" + "/nodes/{node}/sdn/fabrics/{fabric}/routes": + get: + operationId: getNodesSingleSdnFabricsSingleRoutes + summary: getNodesSingleSdnFabricsSingleRoutes + description: Get all routes for a fabric. + tags: + - nodes + parameters: + - name: fabric + in: path + required: true + description: fabric + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleSdnFabricsSingleRoutesResponse" + "/nodes/{node}/sdn/fabrics/{fabric}/neighbors": + get: + operationId: getNodesSingleSdnFabricsSingleNeighbors + summary: getNodesSingleSdnFabricsSingleNeighbors + description: Get all neighbors for a fabric. + tags: + - nodes + parameters: + - name: fabric + in: path + required: true + description: fabric + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleSdnFabricsSingleNeighborsResponse + "/nodes/{node}/sdn/fabrics/{fabric}/interfaces": + get: + operationId: getNodesSingleSdnFabricsSingleInterfaces + summary: getNodesSingleSdnFabricsSingleInterfaces + description: Get all interfaces for a fabric. + tags: + - nodes + parameters: + - name: fabric + in: path + required: true + description: fabric + schema: + type: string + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: >- + #/components/responses/GetNodesSingleSdnFabricsSingleInterfacesResponse + "/nodes/{node}/sdn/zones": + get: + operationId: getNodeSDNZones + summary: getNodeSDNZones + description: Get status for all zones. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeSDNZonesResponse" + "/nodes/{node}/sdn/zones/{zone}": + get: + operationId: getNodeSDNZone + summary: getNodeSDNZone + description: Directory index for SDN zone status. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: zone + in: path + required: true + description: zone + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeSDNZoneResponse" + "/nodes/{node}/sdn/zones/{zone}/content": + get: + operationId: getNodeSDNZoneContent + summary: getNodeSDNZoneContent + description: List zone content. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: zone + in: path + required: true + description: zone + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeSDNZoneContentResponse" + "/nodes/{node}/sdn/zones/{zone}/bridges": + get: + operationId: getNodesSingleSdnZonesSingleBridges + summary: getNodesSingleSdnZonesSingleBridges + description: >- + Get a list of all bridges (vnets) that are part of a zone, as well as + the ports that are members of that bridge. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: zone + in: path + required: true + description: zone + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleSdnZonesSingleBridgesResponse" + "/nodes/{node}/sdn/zones/{zone}/ip-vrf": + get: + operationId: getNodesSingleSdnZonesSingleIpvrf + summary: getNodesSingleSdnZonesSingleIpvrf + description: Get the IP VRF of an EVPN zone. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: zone + in: path + required: true + description: zone + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleSdnZonesSingleIpvrfResponse" + "/nodes/{node}/sdn/vnets/{vnet}": + get: + operationId: getNodesSingleSdnVnetsSingle + summary: getNodesSingleSdnVnetsSingle + description: getNodesSingleSdnVnetsSingle + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleSdnVnetsSingleResponse" + "/nodes/{node}/sdn/vnets/{vnet}/mac-vrf": + get: + operationId: getNodesSingleSdnVnetsSingleMacvrf + summary: getNodesSingleSdnVnetsSingleMacvrf + description: Get the MAC VRF for a VNet in an EVPN zone. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + - name: vnet + in: path + required: true + description: vnet + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleSdnVnetsSingleMacvrfResponse" + "/nodes/{node}/version": + get: + operationId: getNodesSingleVersion + summary: getNodesSingleVersion + description: API version details + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleVersionResponse" + "/nodes/{node}/status": + get: + operationId: getNodesSingleStatus + summary: getNodesSingleStatus + description: Read node status + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleStatusResponse" + post: + operationId: createNodesSingleStatus + summary: createNodesSingleStatus + description: Reboot or shutdown a node. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleStatusResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleStatusRequest" + "/nodes/{node}/netstat": + get: + operationId: getNodesSingleNetstat + summary: getNodesSingleNetstat + description: Read tap/vm network device interface counters + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleNetstatResponse" + "/nodes/{node}/execute": + post: + operationId: createNodesSingleExecute + summary: createNodesSingleExecute + description: "Execute multiple commands in order, root only." + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleExecuteResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleExecuteRequest" + "/nodes/{node}/wakeonlan": + post: + operationId: createNodesSingleWakeonlan + summary: createNodesSingleWakeonlan + description: Try to wake a node via 'wake on LAN' network packet. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleWakeonlanResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleWakeonlanRequest" + "/nodes/{node}/rrd": + get: + operationId: getNodeRRD + summary: getNodeRRD + description: Read node RRD statistics (returns PNG) + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeRRDResponse" + "/nodes/{node}/rrddata": + get: + operationId: getNodeRRDData + summary: getNodeRRDData + description: Read node RRD statistics + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodeRRDDataResponse" + "/nodes/{node}/syslog": + get: + operationId: getNodesSingleSyslog + summary: getNodesSingleSyslog + description: Read system log + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleSyslogResponse" + "/nodes/{node}/journal": + get: + operationId: getNodesSingleJournal + summary: getNodesSingleJournal + description: Read Journal + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleJournalResponse" + "/nodes/{node}/vncshell": + post: + operationId: createNodesSingleVncshell + summary: createNodesSingleVncshell + description: Creates a VNC Shell proxy. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleVncshellResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleVncshellRequest" + "/nodes/{node}/termproxy": + post: + operationId: createNodesSingleTermproxy + summary: createNodesSingleTermproxy + description: Creates a VNC Shell proxy. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleTermproxyResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleTermproxyRequest" + "/nodes/{node}/vncwebsocket": + get: + operationId: getNodesSingleVncwebsocket + summary: getNodesSingleVncwebsocket + description: Opens a websocket for VNC traffic. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleVncwebsocketResponse" + "/nodes/{node}/spiceshell": + post: + operationId: createNodesSingleSpiceshell + summary: createNodesSingleSpiceshell + description: Creates a SPICE shell. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleSpiceshellResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleSpiceshellRequest" + "/nodes/{node}/dns": + get: + operationId: getNodesSingleDns + summary: getNodesSingleDns + description: Read DNS settings. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleDnsResponse" + put: + operationId: updateNodesSingleDns + summary: updateNodesSingleDns + description: Write DNS settings. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleDnsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleDnsRequest" + "/nodes/{node}/time": + get: + operationId: getNodesSingleTime + summary: getNodesSingleTime + description: Read server time and time zone settings. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleTimeResponse" + put: + operationId: updateNodesSingleTime + summary: updateNodesSingleTime + description: Set time zone. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateNodesSingleTimeResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateNodesSingleTimeRequest" + "/nodes/{node}/aplinfo": + get: + operationId: getNodesSingleAplinfo + summary: getNodesSingleAplinfo + description: Get list of appliances. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleAplinfoResponse" + post: + operationId: createNodesSingleAplinfo + summary: createNodesSingleAplinfo + description: Download appliance templates. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleAplinfoResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleAplinfoRequest" + "/nodes/{node}/query-oci-repo-tags": + get: + operationId: getNodesSingleQueryocirepotags + summary: getNodesSingleQueryocirepotags + description: List all tags for an OCI repository reference. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQueryocirepotagsResponse" + "/nodes/{node}/query-url-metadata": + get: + operationId: getNodesSingleQueryurlmetadata + summary: getNodesSingleQueryurlmetadata + description: "Query metadata of an URL: file size, file name and mime type." + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleQueryurlmetadataResponse" + "/nodes/{node}/report": + get: + operationId: getNodesSingleReport + summary: getNodesSingleReport + description: Gather various systems information about a node + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleReportResponse" + "/nodes/{node}/startall": + post: + operationId: createNodesSingleStartall + summary: createNodesSingleStartall + description: >- + Start all VMs and containers located on this node (by default only those + with onboot=1). + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleStartallResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleStartallRequest" + "/nodes/{node}/stopall": + post: + operationId: createNodesSingleStopall + summary: createNodesSingleStopall + description: Stop all VMs and Containers. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleStopallResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleStopallRequest" + "/nodes/{node}/suspendall": + post: + operationId: createNodesSingleSuspendall + summary: createNodesSingleSuspendall + description: Suspend all VMs. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleSuspendallResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleSuspendallRequest" + "/nodes/{node}/migrateall": + post: + operationId: createNodesSingleMigrateall + summary: createNodesSingleMigrateall + description: Migrate all VMs and Containers. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleMigrateallResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleMigrateallRequest" + "/nodes/{node}/hosts": + get: + operationId: getNodesSingleHosts + summary: getNodesSingleHosts + description: Get the content of /etc/hosts. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetNodesSingleHostsResponse" + post: + operationId: createNodesSingleHosts + summary: createNodesSingleHosts + description: Write /etc/hosts. + tags: + - nodes + parameters: + - name: node + in: path + required: true + description: node + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateNodesSingleHostsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateNodesSingleHostsRequest" + /storage: + get: + operationId: getStorage + summary: getStorage + description: Storage index. + tags: + - storage + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetStorageResponse" + post: + operationId: createStorage + summary: createStorage + description: Create a new storage. + tags: + - storage + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateStorageResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateStorageRequest" + "/storage/{storage}": + delete: + operationId: deleteStorageSingle + summary: deleteStorageSingle + description: Delete storage configuration. + tags: + - storage + parameters: + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteStorageSingleResponse" + get: + operationId: getStorageSingle + summary: getStorageSingle + description: Read storage configuration. + tags: + - storage + parameters: + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetStorageSingleResponse" + put: + operationId: updateStorageSingle + summary: updateStorageSingle + description: Update storage configuration. + tags: + - storage + parameters: + - name: storage + in: path + required: true + description: storage + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateStorageSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateStorageSingleRequest" + /access: + get: + operationId: getAccess + summary: getAccess + description: Directory index. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessResponse" + /access/users: + get: + operationId: getAccessUsers + summary: getAccessUsers + description: User index. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessUsersResponse" + post: + operationId: createAccessUsers + summary: createAccessUsers + description: Create new user. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateAccessUsersResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessUsersRequest" + "/access/users/{userid}": + delete: + operationId: deleteAccessUsersSingle + summary: deleteAccessUsersSingle + description: Delete user. + tags: + - access + parameters: + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteAccessUsersSingleResponse" + get: + operationId: getAccessUsersSingle + summary: getAccessUsersSingle + description: Get user configuration. + tags: + - access + parameters: + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessUsersSingleResponse" + put: + operationId: updateAccessUsersSingle + summary: updateAccessUsersSingle + description: Update user configuration. + tags: + - access + parameters: + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateAccessUsersSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessUsersSingleRequest" + "/access/users/{userid}/tfa": + get: + operationId: getAccessUsersSingleTfa + summary: getAccessUsersSingleTfa + description: Get user TFA types (Personal and Realm). + tags: + - access + parameters: + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessUsersSingleTfaResponse" + "/access/users/{userid}/unlock-tfa": + put: + operationId: updateAccessUsersSingleUnlocktfa + summary: updateAccessUsersSingleUnlocktfa + description: Unlock a user's TFA authentication. + tags: + - access + parameters: + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateAccessUsersSingleUnlocktfaResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessUsersSingleUnlocktfaRequest" + "/access/users/{userid}/token": + get: + operationId: getAccessUsersSingleToken + summary: getAccessUsersSingleToken + description: Get user API tokens. + tags: + - access + parameters: + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessUsersSingleTokenResponse" + "/access/users/{userid}/token/{tokenid}": + delete: + operationId: deleteAccessUsersSingleTokenSingle + summary: deleteAccessUsersSingleTokenSingle + description: Remove API token for a specific user. + tags: + - access + parameters: + - name: tokenid + in: path + required: true + description: tokenid + schema: + type: string + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteAccessUsersSingleTokenSingleResponse" + get: + operationId: getAccessUsersSingleTokenSingle + summary: getAccessUsersSingleTokenSingle + description: Get specific API token information. + tags: + - access + parameters: + - name: tokenid + in: path + required: true + description: tokenid + schema: + type: string + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessUsersSingleTokenSingleResponse" + post: + operationId: createAccessUsersSingleTokenSingle + summary: createAccessUsersSingleTokenSingle + description: >- + Generate a new API token for a specific user. NOTE: returns API token + value, which needs to be stored as it cannot be retrieved afterwards! + tags: + - access + parameters: + - name: tokenid + in: path + required: true + description: tokenid + schema: + type: string + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateAccessUsersSingleTokenSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessUsersSingleTokenSingleRequest" + put: + operationId: updateAccessUsersSingleTokenSingle + summary: updateAccessUsersSingleTokenSingle + description: Update API token for a specific user. + tags: + - access + parameters: + - name: tokenid + in: path + required: true + description: tokenid + schema: + type: string + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateAccessUsersSingleTokenSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessUsersSingleTokenSingleRequest" + /access/groups: + get: + operationId: getAccessGroups + summary: getAccessGroups + description: Group index. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessGroupsResponse" + post: + operationId: createAccessGroups + summary: createAccessGroups + description: Create new group. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateAccessGroupsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessGroupsRequest" + "/access/groups/{groupid}": + delete: + operationId: deleteAccessGroupsSingle + summary: deleteAccessGroupsSingle + description: Delete group. + tags: + - access + parameters: + - name: groupid + in: path + required: true + description: groupid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteAccessGroupsSingleResponse" + get: + operationId: getAccessGroupsSingle + summary: getAccessGroupsSingle + description: Get group configuration. + tags: + - access + parameters: + - name: groupid + in: path + required: true + description: groupid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessGroupsSingleResponse" + put: + operationId: updateAccessGroupsSingle + summary: updateAccessGroupsSingle + description: Update group data. + tags: + - access + parameters: + - name: groupid + in: path + required: true + description: groupid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateAccessGroupsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessGroupsSingleRequest" + /access/roles: + get: + operationId: getAccessRoles + summary: getAccessRoles + description: Role index. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessRolesResponse" + post: + operationId: createAccessRoles + summary: createAccessRoles + description: Create new role. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateAccessRolesResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessRolesRequest" + "/access/roles/{roleid}": + delete: + operationId: deleteAccessRolesSingle + summary: deleteAccessRolesSingle + description: Delete role. + tags: + - access + parameters: + - name: roleid + in: path + required: true + description: roleid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteAccessRolesSingleResponse" + get: + operationId: getAccessRolesSingle + summary: getAccessRolesSingle + description: Get role configuration. + tags: + - access + parameters: + - name: roleid + in: path + required: true + description: roleid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessRolesSingleResponse" + put: + operationId: updateAccessRolesSingle + summary: updateAccessRolesSingle + description: Update an existing role. + tags: + - access + parameters: + - name: roleid + in: path + required: true + description: roleid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateAccessRolesSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessRolesSingleRequest" + /access/acl: + get: + operationId: getAccessAcl + summary: getAccessAcl + description: Get Access Control List (ACLs). + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessAclResponse" + put: + operationId: updateAccessAcl + summary: updateAccessAcl + description: Update Access Control List (add or remove permissions). + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/UpdateAccessAclResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessAclRequest" + /access/domains: + get: + operationId: getAccessDomains + summary: getAccessDomains + description: Authentication domain index. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessDomainsResponse" + post: + operationId: createAccessDomains + summary: createAccessDomains + description: Add an authentication server. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateAccessDomainsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessDomainsRequest" + "/access/domains/{realm}": + delete: + operationId: deleteAccessDomainsSingle + summary: deleteAccessDomainsSingle + description: Delete an authentication server. + tags: + - access + parameters: + - name: realm + in: path + required: true + description: realm + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteAccessDomainsSingleResponse" + get: + operationId: getAccessDomainsSingle + summary: getAccessDomainsSingle + description: Get auth server configuration. + tags: + - access + parameters: + - name: realm + in: path + required: true + description: realm + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessDomainsSingleResponse" + put: + operationId: updateAccessDomainsSingle + summary: updateAccessDomainsSingle + description: Update authentication server settings. + tags: + - access + parameters: + - name: realm + in: path + required: true + description: realm + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateAccessDomainsSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessDomainsSingleRequest" + "/access/domains/{realm}/sync": + post: + operationId: createAccessDomainsSingleSync + summary: createAccessDomainsSingleSync + description: >- + Syncs users and/or groups from the configured LDAP to user.cfg. NOTE: + Synced groups will have the name 'name-$realm', so make sure those + groups do not exist to prevent overwriting. + tags: + - access + parameters: + - name: realm + in: path + required: true + description: realm + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateAccessDomainsSingleSyncResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessDomainsSingleSyncRequest" + /access/openid: + get: + operationId: getAccessOpenid + summary: getAccessOpenid + description: Directory index. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessOpenidResponse" + /access/openid/auth-url: + post: + operationId: createAccessOpenidAuthurl + summary: createAccessOpenidAuthurl + description: Get the OpenId Authorization Url for the specified realm. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateAccessOpenidAuthurlResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessOpenidAuthurlRequest" + /access/openid/login: + post: + operationId: createAccessOpenidLogin + summary: createAccessOpenidLogin + description: " Verify OpenID authorization code and create a ticket." + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateAccessOpenidLoginResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessOpenidLoginRequest" + /access/tfa: + get: + operationId: getAccessTfa + summary: getAccessTfa + description: List TFA configurations of users. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessTfaResponse" + "/access/tfa/{userid}": + get: + operationId: getAccessTfaSingle + summary: getAccessTfaSingle + description: List TFA configurations of users. + tags: + - access + parameters: + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessTfaSingleResponse" + post: + operationId: createAccessTfaSingle + summary: createAccessTfaSingle + description: Add a TFA entry for a user. + tags: + - access + parameters: + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/CreateAccessTfaSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessTfaSingleRequest" + "/access/tfa/{userid}/{id}": + delete: + operationId: deleteAccessTfaSingleSingle + summary: deleteAccessTfaSingleSingle + description: Delete a TFA entry by ID. + tags: + - access + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeleteAccessTfaSingleSingleResponse" + get: + operationId: getAccessTfaSingleSingle + summary: getAccessTfaSingleSingle + description: Fetch a requested TFA entry if present. + tags: + - access + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetAccessTfaSingleSingleResponse" + put: + operationId: updateAccessTfaSingleSingle + summary: updateAccessTfaSingleSingle + description: Add a TFA entry for a user. + tags: + - access + parameters: + - name: id + in: path + required: true + description: id + schema: + type: string + - name: userid + in: path + required: true + description: userid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdateAccessTfaSingleSingleResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessTfaSingleSingleRequest" + /access/ticket: + get: + operationId: getAccessTicket + summary: getAccessTicket + description: Dummy. Useful for formatters which want to provide a login page. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessTicketResponse" + post: + operationId: createAccessTicket + summary: createAccessTicket + description: Create or verify authentication ticket. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateAccessTicketResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessTicketRequest" + /access/vncticket: + post: + operationId: createAccessVncticket + summary: createAccessVncticket + description: verify VNC authentication ticket. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreateAccessVncticketResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateAccessVncticketRequest" + /access/password: + put: + operationId: updateAccessPassword + summary: updateAccessPassword + description: Change user password. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/UpdateAccessPasswordResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessPasswordRequest" + /access/permissions: + get: + operationId: getAccessPermissions + summary: getAccessPermissions + description: Retrieve effective permissions of given user/token. + tags: + - access + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetAccessPermissionsResponse" + /pools: + delete: + operationId: deletePools + summary: deletePools + description: Delete pool. + tags: + - pools + parameters: [] + responses: + "200": + $ref: "#/components/responses/DeletePoolsResponse" + get: + operationId: getPools + summary: getPools + description: List pools or get pool configuration. + tags: + - pools + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetPoolsResponse" + post: + operationId: createPool + summary: createPool + description: Create new pool. + tags: + - pools + parameters: [] + responses: + "200": + $ref: "#/components/responses/CreatePoolResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreatePoolRequest" + put: + operationId: updatePools + summary: updatePools + description: Update pool. + tags: + - pools + parameters: [] + responses: + "200": + $ref: "#/components/responses/UpdatePoolsResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdatePoolsRequest" + "/pools/{poolid}": + delete: + operationId: deletePool + summary: deletePool + description: >- + Delete pool (deprecated, no support for nested pools, use 'DELETE + /pools/?poolid={poolid}'). + tags: + - pools + parameters: + - name: poolid + in: path + required: true + description: poolid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/DeletePoolResponse" + get: + operationId: getPool + summary: getPool + description: >- + Get pool configuration (deprecated, no support for nested pools, use + 'GET /pools/?poolid={poolid}'). + tags: + - pools + parameters: + - name: poolid + in: path + required: true + description: poolid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/GetPoolResponse" + put: + operationId: updatePool + summary: updatePool + description: >- + Update pool data (deprecated, no support for nested pools - use 'PUT + /pools/?poolid={poolid}' instead). + tags: + - pools + parameters: + - name: poolid + in: path + required: true + description: poolid + schema: + type: string + responses: + "200": + $ref: "#/components/responses/UpdatePoolResponse" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdatePoolRequest" + /version: + get: + operationId: getVersion + summary: getVersion + description: >- + API version details, including some parts of the global datacenter + config. + tags: + - version + parameters: [] + responses: + "200": + $ref: "#/components/responses/GetVersionResponse" +components: + schemas: + CreateClusterReplicationRequest: + title: CreateClusterReplicationRequest + type: object + properties: + comment: + type: string + disable: + type: boolean + id: + type: string + rate: + type: number + remove_job: + type: string + schedule: + type: string + source: + type: string + target: + type: string + type: + type: string + required: + - id + - target + - type + UpdateClusterReplicationSingleRequest: + title: UpdateClusterReplicationSingleRequest + type: object + properties: + comment: + type: string + delete: + type: string + digest: + type: string + disable: + type: boolean + rate: + type: number + remove_job: + type: string + schedule: + type: string + source: + type: string + CreateClusterMetricsServerSingleRequest: + title: CreateClusterMetricsServerSingleRequest + type: object + properties: + api-path-prefix: + type: string + bucket: + type: string + disable: + type: boolean + influxdbproto: + type: string + max-body-size: + type: integer + mtu: + type: integer + organization: + type: string + otel-compression: + type: string + otel-headers: + type: string + otel-max-body-size: + type: integer + otel-path: + type: string + otel-protocol: + type: string + otel-resource-attributes: + type: string + otel-timeout: + type: integer + otel-verify-ssl: + type: boolean + path: + type: string + port: + type: integer + proto: + type: string + server: + type: string + timeout: + type: integer + token: + type: string + type: + type: string + verify-certificate: + type: boolean + required: + - port + - server + - type + UpdateClusterMetricsServerSingleRequest: + title: UpdateClusterMetricsServerSingleRequest + type: object + properties: + api-path-prefix: + type: string + bucket: + type: string + delete: + type: string + digest: + type: string + disable: + type: boolean + influxdbproto: + type: string + max-body-size: + type: integer + mtu: + type: integer + organization: + type: string + otel-compression: + type: string + otel-headers: + type: string + otel-max-body-size: + type: integer + otel-path: + type: string + otel-protocol: + type: string + otel-resource-attributes: + type: string + otel-timeout: + type: integer + otel-verify-ssl: + type: boolean + path: + type: string + port: + type: integer + proto: + type: string + server: + type: string + timeout: + type: integer + token: + type: string + verify-certificate: + type: boolean + required: + - port + - server + CreateClusterNotificationsEndpointsSendmailRequest: + title: CreateClusterNotificationsEndpointsSendmailRequest + type: object + properties: + author: + type: string + comment: + type: string + disable: + type: boolean + from-address: + type: string + mailto: + type: array + items: + type: string + mailto-user: + type: array + items: + type: string + name: + type: string + required: + - name + UpdateClusterNotificationsEndpointsSendmailSingleRequest: + title: UpdateClusterNotificationsEndpointsSendmailSingleRequest + type: object + properties: + author: + type: string + comment: + type: string + delete: + type: array + items: + type: string + digest: + type: string + disable: + type: boolean + from-address: + type: string + mailto: + type: array + items: + type: string + mailto-user: + type: array + items: + type: string + CreateClusterNotificationsEndpointsGotifyRequest: + title: CreateClusterNotificationsEndpointsGotifyRequest + type: object + properties: + comment: + type: string + disable: + type: boolean + name: + type: string + server: + type: string + token: + type: string + required: + - name + - server + - token + UpdateClusterNotificationsEndpointsGotifySingleRequest: + title: UpdateClusterNotificationsEndpointsGotifySingleRequest + type: object + properties: + comment: + type: string + delete: + type: array + items: + type: string + digest: + type: string + disable: + type: boolean + server: + type: string + token: + type: string + CreateClusterNotificationsEndpointsSmtpRequest: + title: CreateClusterNotificationsEndpointsSmtpRequest + type: object + properties: + author: + type: string + comment: + type: string + disable: + type: boolean + from-address: + type: string + mailto: + type: array + items: + type: string + mailto-user: + type: array + items: + type: string + mode: + type: string + name: + type: string + password: + type: string + port: + type: integer + server: + type: string + username: + type: string + required: + - from-address + - name + - server + UpdateClusterNotificationsEndpointsSmtpSingleRequest: + title: UpdateClusterNotificationsEndpointsSmtpSingleRequest + type: object + properties: + author: + type: string + comment: + type: string + delete: + type: array + items: + type: string + digest: + type: string + disable: + type: boolean + from-address: + type: string + mailto: + type: array + items: + type: string + mailto-user: + type: array + items: + type: string + mode: + type: string + password: + type: string + port: + type: integer + server: + type: string + username: + type: string + CreateClusterNotificationsEndpointsWebhookRequest: + title: CreateClusterNotificationsEndpointsWebhookRequest + type: object + properties: + body: + type: string + comment: + type: string + disable: + type: boolean + header: + type: array + items: + type: string + method: + type: string + name: + type: string + secret: + type: array + items: + type: string + url: + type: string + required: + - method + - name + - url + UpdateClusterNotificationsEndpointsWebhookSingleRequest: + title: UpdateClusterNotificationsEndpointsWebhookSingleRequest + type: object + properties: + body: + type: string + comment: + type: string + delete: + type: array + items: + type: string + digest: + type: string + disable: + type: boolean + header: + type: array + items: + type: string + method: + type: string + secret: + type: array + items: + type: string + url: + type: string + CreateClusterNotificationsTargetsSingleTestRequest: + title: CreateClusterNotificationsTargetsSingleTestRequest + type: object + properties: {} + CreateClusterNotificationsMatchersRequest: + title: CreateClusterNotificationsMatchersRequest + type: object + properties: + comment: + type: string + disable: + type: boolean + invert-match: + type: boolean + match-calendar: + type: array + items: + type: string + match-field: + type: array + items: + type: string + match-severity: + type: array + items: + type: string + mode: + type: string + name: + type: string + target: + type: array + items: + type: string + required: + - name + UpdateClusterNotificationsMatchersSingleRequest: + title: UpdateClusterNotificationsMatchersSingleRequest + type: object + properties: + comment: + type: string + delete: + type: array + items: + type: string + digest: + type: string + disable: + type: boolean + invert-match: + type: boolean + match-calendar: + type: array + items: + type: string + match-field: + type: array + items: + type: string + match-severity: + type: array + items: + type: string + mode: + type: string + target: + type: array + items: + type: string + CreateClusterConfigRequest: + title: CreateClusterConfigRequest + type: object + properties: + clustername: + type: string + link0: + type: string + link1: + type: string + link2: + type: string + link3: + type: string + link4: + type: string + link5: + type: string + link6: + type: string + link7: + type: string + link8: + type: string + link9: + type: string + link10: + type: string + link11: + type: string + link12: + type: string + link13: + type: string + link14: + type: string + link15: + type: string + link16: + type: string + link17: + type: string + link18: + type: string + link19: + type: string + link20: + type: string + link21: + type: string + link22: + type: string + link23: + type: string + link24: + type: string + link25: + type: string + link26: + type: string + link27: + type: string + link28: + type: string + link29: + type: string + nodeid: + type: integer + votes: + type: integer + required: + - clustername + CreateClusterConfigNodesSingleRequest: + title: CreateClusterConfigNodesSingleRequest + type: object + properties: + apiversion: + type: integer + force: + type: boolean + link0: + type: string + link1: + type: string + link2: + type: string + link3: + type: string + link4: + type: string + link5: + type: string + link6: + type: string + link7: + type: string + link8: + type: string + link9: + type: string + link10: + type: string + link11: + type: string + link12: + type: string + link13: + type: string + link14: + type: string + link15: + type: string + link16: + type: string + link17: + type: string + link18: + type: string + link19: + type: string + link20: + type: string + link21: + type: string + link22: + type: string + link23: + type: string + link24: + type: string + link25: + type: string + link26: + type: string + link27: + type: string + link28: + type: string + link29: + type: string + new_node_ip: + type: string + nodeid: + type: integer + votes: + type: integer + CreateClusterConfigJoinRequest: + title: CreateClusterConfigJoinRequest + type: object + properties: + fingerprint: + type: string + force: + type: boolean + hostname: + type: string + link0: + type: string + link1: + type: string + link2: + type: string + link3: + type: string + link4: + type: string + link5: + type: string + link6: + type: string + link7: + type: string + link8: + type: string + link9: + type: string + link10: + type: string + link11: + type: string + link12: + type: string + link13: + type: string + link14: + type: string + link15: + type: string + link16: + type: string + link17: + type: string + link18: + type: string + link19: + type: string + link20: + type: string + link21: + type: string + link22: + type: string + link23: + type: string + link24: + type: string + link25: + type: string + link26: + type: string + link27: + type: string + link28: + type: string + link29: + type: string + nodeid: + type: integer + password: + type: string + votes: + type: integer + required: + - fingerprint + - hostname + - password + CreateClusterFirewallGroupRequest: + title: CreateClusterFirewallGroupRequest + type: object + properties: + comment: + type: string + digest: + type: string + group: + type: string + rename: + type: string + required: + - group + AddClusterFirewallGroupRuleRequest: + title: AddClusterFirewallGroupRuleRequest + type: object + properties: + action: + type: string + comment: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + pos: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + required: + - action + - type + UpdateClusterFirewallGroupRuleRequest: + title: UpdateClusterFirewallGroupRuleRequest + type: object + properties: + action: + type: string + comment: + type: string + delete: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + moveto: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + AddClusterFirewallRuleRequest: + title: AddClusterFirewallRuleRequest + type: object + properties: + action: + type: string + comment: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + pos: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + required: + - action + - type + UpdateClusterFirewallRuleRequest: + title: UpdateClusterFirewallRuleRequest + type: object + properties: + action: + type: string + comment: + type: string + delete: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + moveto: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + CreateClusterFirewallIPSetRequest: + title: CreateClusterFirewallIPSetRequest + type: object + properties: + comment: + type: string + digest: + type: string + name: + type: string + rename: + type: string + required: + - name + AddClusterFirewallIPSetIPRequest: + title: AddClusterFirewallIPSetIPRequest + type: object + properties: + cidr: + type: string + comment: + type: string + nomatch: + type: boolean + required: + - cidr + UpdateClusterFirewallIPSetIPRequest: + title: UpdateClusterFirewallIPSetIPRequest + type: object + properties: + comment: + type: string + digest: + type: string + nomatch: + type: boolean + CreateClusterFirewallAliasesRequest: + title: CreateClusterFirewallAliasesRequest + type: object + properties: + cidr: + type: string + comment: + type: string + name: + type: string + required: + - cidr + - name + UpdateClusterFirewallAliasesSingleRequest: + title: UpdateClusterFirewallAliasesSingleRequest + type: object + properties: + cidr: + type: string + comment: + type: string + digest: + type: string + rename: + type: string + required: + - cidr + UpdateClusterFirewallOptionsRequest: + title: UpdateClusterFirewallOptionsRequest + type: object + properties: + delete: + type: string + digest: + type: string + ebtables: + type: boolean + enable: + type: integer + log_ratelimit: + type: string + policy_forward: + type: string + policy_in: + type: string + policy_out: + type: string + CreateClusterBackupRequest: + title: CreateClusterBackupRequest + type: object + properties: + all: + type: boolean + bwlimit: + type: integer + comment: + type: string + compress: + type: string + dow: + type: string + dumpdir: + type: string + enabled: + type: boolean + exclude: + type: string + exclude-path: + type: array + items: + type: string + fleecing: + type: string + id: + type: string + ionice: + type: integer + lockwait: + type: integer + mailnotification: + type: string + mailto: + type: string + maxfiles: + type: integer + mode: + type: string + node: + type: string + notes-template: + type: string + notification-mode: + type: string + pbs-change-detection-mode: + type: string + performance: + type: string + pigz: + type: integer + pool: + type: string + protected: + type: boolean + prune-backups: + type: string + quiet: + type: boolean + remove: + type: boolean + repeat-missed: + type: boolean + schedule: + type: string + script: + type: string + starttime: + type: string + stdexcludes: + type: boolean + stop: + type: boolean + stopwait: + type: integer + storage: + type: string + tmpdir: + type: string + vmid: + type: string + zstd: + type: integer + UpdateClusterBackupSingleRequest: + title: UpdateClusterBackupSingleRequest + type: object + properties: + all: + type: boolean + bwlimit: + type: integer + comment: + type: string + compress: + type: string + delete: + type: string + dow: + type: string + dumpdir: + type: string + enabled: + type: boolean + exclude: + type: string + exclude-path: + type: array + items: + type: string + fleecing: + type: string + ionice: + type: integer + lockwait: + type: integer + mailnotification: + type: string + mailto: + type: string + maxfiles: + type: integer + mode: + type: string + node: + type: string + notes-template: + type: string + notification-mode: + type: string + pbs-change-detection-mode: + type: string + performance: + type: string + pigz: + type: integer + pool: + type: string + protected: + type: boolean + prune-backups: + type: string + quiet: + type: boolean + remove: + type: boolean + repeat-missed: + type: boolean + schedule: + type: string + script: + type: string + starttime: + type: string + stdexcludes: + type: boolean + stop: + type: boolean + stopwait: + type: integer + storage: + type: string + tmpdir: + type: string + vmid: + type: string + zstd: + type: integer + CreateClusterHaResourcesRequest: + title: CreateClusterHaResourcesRequest + type: object + properties: + comment: + type: string + failback: + type: boolean + group: + type: string + max_relocate: + type: integer + max_restart: + type: integer + sid: + type: string + state: + type: string + type: + type: string + required: + - sid + UpdateClusterHaResourcesSingleRequest: + title: UpdateClusterHaResourcesSingleRequest + type: object + properties: + comment: + type: string + delete: + type: string + digest: + type: string + failback: + type: boolean + group: + type: string + max_relocate: + type: integer + max_restart: + type: integer + state: + type: string + CreateClusterHaResourcesSingleMigrateRequest: + title: CreateClusterHaResourcesSingleMigrateRequest + type: object + properties: + node: + type: string + required: + - node + CreateClusterHaResourcesSingleRelocateRequest: + title: CreateClusterHaResourcesSingleRelocateRequest + type: object + properties: + node: + type: string + required: + - node + CreateClusterHaGroupsRequest: + title: CreateClusterHaGroupsRequest + type: object + properties: + comment: + type: string + group: + type: string + nodes: + type: string + nofailback: + type: boolean + restricted: + type: boolean + type: + type: string + required: + - group + - nodes + UpdateClusterHaGroupsSingleRequest: + title: UpdateClusterHaGroupsSingleRequest + type: object + properties: + comment: + type: string + delete: + type: string + digest: + type: string + nodes: + type: string + nofailback: + type: boolean + restricted: + type: boolean + CreateClusterHaRulesRequest: + title: CreateClusterHaRulesRequest + type: object + properties: + affinity: + type: string + comment: + type: string + disable: + type: boolean + nodes: + type: string + resources: + type: string + rule: + type: string + strict: + type: boolean + type: + type: string + required: + - resources + - rule + - type + UpdateClusterHaRulesSingleRequest: + title: UpdateClusterHaRulesSingleRequest + type: object + properties: + affinity: + type: string + comment: + type: string + delete: + type: string + digest: + type: string + disable: + type: boolean + nodes: + type: string + resources: + type: string + strict: + type: boolean + type: + type: string + required: + - type + CreateClusterAcmePluginsRequest: + title: CreateClusterAcmePluginsRequest + type: object + properties: + api: + type: string + data: + type: string + disable: + type: boolean + id: + type: string + nodes: + type: string + type: + type: string + validation-delay: + type: integer + required: + - id + - type + UpdateClusterAcmePluginsSingleRequest: + title: UpdateClusterAcmePluginsSingleRequest + type: object + properties: + api: + type: string + data: + type: string + delete: + type: string + digest: + type: string + disable: + type: boolean + nodes: + type: string + validation-delay: + type: integer + CreateClusterAcmeAccountRequest: + title: CreateClusterAcmeAccountRequest + type: object + properties: + contact: + type: string + directory: + type: string + eab-hmac-key: + type: string + eab-kid: + type: string + name: + type: string + tos_url: + type: string + required: + - contact + UpdateClusterAcmeAccountSingleRequest: + title: UpdateClusterAcmeAccountSingleRequest + type: object + properties: + contact: + type: string + UpdateClusterCephFlagsRequest: + title: UpdateClusterCephFlagsRequest + type: object + properties: + nobackfill: + type: boolean + nodeep-scrub: + type: boolean + nodown: + type: boolean + noin: + type: boolean + noout: + type: boolean + norebalance: + type: boolean + norecover: + type: boolean + noscrub: + type: boolean + notieragent: + type: boolean + noup: + type: boolean + pause: + type: boolean + UpdateClusterCephFlagsSingleRequest: + title: UpdateClusterCephFlagsSingleRequest + type: object + properties: + value: + type: boolean + required: + - value + CreateClusterJobsRealmsyncSingleRequest: + title: CreateClusterJobsRealmsyncSingleRequest + type: object + properties: + comment: + type: string + enable-new: + type: boolean + enabled: + type: boolean + realm: + type: string + remove-vanished: + type: string + schedule: + type: string + scope: + type: string + required: + - schedule + UpdateClusterJobsRealmsyncSingleRequest: + title: UpdateClusterJobsRealmsyncSingleRequest + type: object + properties: + comment: + type: string + delete: + type: string + enable-new: + type: boolean + enabled: + type: boolean + remove-vanished: + type: string + schedule: + type: string + scope: + type: string + required: + - schedule + CreateClusterMappingDirRequest: + title: CreateClusterMappingDirRequest + type: object + properties: + description: + type: string + id: + type: string + map: + type: array + items: + type: string + required: + - id + - map + UpdateClusterMappingDirSingleRequest: + title: UpdateClusterMappingDirSingleRequest + type: object + properties: + delete: + type: string + description: + type: string + digest: + type: string + map: + type: array + items: + type: string + CreateClusterMappingPciRequest: + title: CreateClusterMappingPciRequest + type: object + properties: + description: + type: string + id: + type: string + live-migration-capable: + type: boolean + map: + type: array + items: + type: string + mdev: + type: boolean + required: + - id + - map + UpdateClusterMappingPciSingleRequest: + title: UpdateClusterMappingPciSingleRequest + type: object + properties: + delete: + type: string + description: + type: string + digest: + type: string + live-migration-capable: + type: boolean + map: + type: array + items: + type: string + mdev: + type: boolean + CreateClusterMappingUsbRequest: + title: CreateClusterMappingUsbRequest + type: object + properties: + description: + type: string + id: + type: string + map: + type: array + items: + type: string + required: + - id + - map + UpdateClusterMappingUsbSingleRequest: + title: UpdateClusterMappingUsbSingleRequest + type: object + properties: + delete: + type: string + description: + type: string + digest: + type: string + map: + type: array + items: + type: string + required: + - map + CreateClusterBulkactionGuestStartRequest: + title: CreateClusterBulkactionGuestStartRequest + type: object + properties: + maxworkers: + type: integer + timeout: + type: integer + vms: + type: array + items: + type: integer + CreateClusterBulkactionGuestShutdownRequest: + title: CreateClusterBulkactionGuestShutdownRequest + type: object + properties: + force-stop: + type: boolean + maxworkers: + type: integer + timeout: + type: integer + vms: + type: array + items: + type: integer + CreateClusterBulkactionGuestSuspendRequest: + title: CreateClusterBulkactionGuestSuspendRequest + type: object + properties: + maxworkers: + type: integer + statestorage: + type: string + to-disk: + type: boolean + vms: + type: array + items: + type: integer + CreateClusterBulkactionGuestMigrateRequest: + title: CreateClusterBulkactionGuestMigrateRequest + type: object + properties: + maxworkers: + type: integer + online: + type: boolean + target: + type: string + vms: + type: array + items: + type: integer + with-local-disks: + type: boolean + required: + - target + UpdateClusterSDNRequest: + title: UpdateClusterSDNRequest + type: object + properties: + lock-token: + type: string + release-lock: + type: boolean + CreateClusterSDNVnetRequest: + title: CreateClusterSDNVnetRequest + type: object + properties: + alias: + type: string + isolate-ports: + type: boolean + lock-token: + type: string + tag: + type: integer + type: + type: string + vlanaware: + type: boolean + vnet: + type: string + zone: + type: string + required: + - vnet + - zone + UpdateClusterSDNVnetRequest: + title: UpdateClusterSDNVnetRequest + type: object + properties: + alias: + type: string + delete: + type: string + digest: + type: string + isolate-ports: + type: boolean + lock-token: + type: string + tag: + type: integer + vlanaware: + type: boolean + zone: + type: string + CreateClusterSdnVnetsSingleFirewallRulesRequest: + title: CreateClusterSdnVnetsSingleFirewallRulesRequest + type: object + properties: + action: + type: string + comment: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + pos: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + required: + - action + - type + UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest: + title: UpdateClusterSdnVnetsSingleFirewallRulesSingleRequest + type: object + properties: + action: + type: string + comment: + type: string + delete: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + moveto: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + UpdateClusterSdnVnetsSingleFirewallOptionsRequest: + title: UpdateClusterSdnVnetsSingleFirewallOptionsRequest + type: object + properties: + delete: + type: string + digest: + type: string + enable: + type: boolean + log_level_forward: + type: string + policy_forward: + type: string + CreateClusterSdnVnetsSingleSubnetsRequest: + title: CreateClusterSdnVnetsSingleSubnetsRequest + type: object + properties: + dhcp-dns-server: + type: string + dhcp-range: + type: array + items: + type: string + dnszoneprefix: + type: string + gateway: + type: string + lock-token: + type: string + snat: + type: boolean + subnet: + type: string + type: + type: string + required: + - subnet + - type + UpdateClusterSdnVnetsSingleSubnetsSingleRequest: + title: UpdateClusterSdnVnetsSingleSubnetsSingleRequest + type: object + properties: + delete: + type: string + dhcp-dns-server: + type: string + dhcp-range: + type: array + items: + type: string + digest: + type: string + dnszoneprefix: + type: string + gateway: + type: string + lock-token: + type: string + snat: + type: boolean + CreateClusterSdnVnetsSingleIpsRequest: + title: CreateClusterSdnVnetsSingleIpsRequest + type: object + properties: + ip: + type: string + mac: + type: string + zone: + type: string + required: + - ip + - zone + UpdateClusterSdnVnetsSingleIpsRequest: + title: UpdateClusterSdnVnetsSingleIpsRequest + type: object + properties: + ip: + type: string + mac: + type: string + vmid: + type: integer + zone: + type: string + required: + - ip + - zone + CreateClusterSDNZoneRequest: + title: CreateClusterSDNZoneRequest + type: object + properties: + advertise-subnets: + type: boolean + bridge: + type: string + bridge-disable-mac-learning: + type: boolean + controller: + type: string + dhcp: + type: string + disable-arp-nd-suppression: + type: boolean + dns: + type: string + dnszone: + type: string + dp-id: + type: integer + exitnodes: + type: string + exitnodes-local-routing: + type: boolean + exitnodes-primary: + type: string + fabric: + type: string + ipam: + type: string + lock-token: + type: string + mac: + type: string + mtu: + type: integer + nodes: + type: string + peers: + type: string + reversedns: + type: string + rt-import: + type: string + tag: + type: integer + type: + type: string + vlan-protocol: + type: string + vrf-vxlan: + type: integer + vxlan-port: + type: integer + zone: + type: string + required: + - type + - zone + UpdateClusterSDNZoneRequest: + title: UpdateClusterSDNZoneRequest + type: object + properties: + advertise-subnets: + type: boolean + bridge: + type: string + bridge-disable-mac-learning: + type: boolean + controller: + type: string + delete: + type: string + dhcp: + type: string + digest: + type: string + disable-arp-nd-suppression: + type: boolean + dns: + type: string + dnszone: + type: string + dp-id: + type: integer + exitnodes: + type: string + exitnodes-local-routing: + type: boolean + exitnodes-primary: + type: string + fabric: + type: string + ipam: + type: string + lock-token: + type: string + mac: + type: string + mtu: + type: integer + nodes: + type: string + peers: + type: string + reversedns: + type: string + rt-import: + type: string + tag: + type: integer + vlan-protocol: + type: string + vrf-vxlan: + type: integer + vxlan-port: + type: integer + CreateClusterSDNControllerRequest: + title: CreateClusterSDNControllerRequest + type: object + properties: + asn: + type: integer + bgp-multipath-as-path-relax: + type: boolean + controller: + type: string + ebgp: + type: boolean + ebgp-multihop: + type: integer + fabric: + type: string + isis-domain: + type: string + isis-ifaces: + type: string + isis-net: + type: string + lock-token: + type: string + loopback: + type: string + node: + type: string + peers: + type: string + type: + type: string + required: + - controller + - type + UpdateClusterSDNControllerRequest: + title: UpdateClusterSDNControllerRequest + type: object + properties: + asn: + type: integer + bgp-multipath-as-path-relax: + type: boolean + delete: + type: string + digest: + type: string + ebgp: + type: boolean + ebgp-multihop: + type: integer + fabric: + type: string + isis-domain: + type: string + isis-ifaces: + type: string + isis-net: + type: string + lock-token: + type: string + loopback: + type: string + node: + type: string + peers: + type: string + CreateClusterSdnIpamsRequest: + title: CreateClusterSdnIpamsRequest + type: object + properties: + fingerprint: + type: string + ipam: + type: string + lock-token: + type: string + section: + type: integer + token: + type: string + type: + type: string + url: + type: string + required: + - ipam + - type + UpdateClusterSdnIpamsSingleRequest: + title: UpdateClusterSdnIpamsSingleRequest + type: object + properties: + delete: + type: string + digest: + type: string + fingerprint: + type: string + lock-token: + type: string + section: + type: integer + token: + type: string + url: + type: string + CreateClusterSdnDnsRequest: + title: CreateClusterSdnDnsRequest + type: object + properties: + dns: + type: string + fingerprint: + type: string + key: + type: string + lock-token: + type: string + reversemaskv6: + type: integer + reversev6mask: + type: integer + ttl: + type: integer + type: + type: string + url: + type: string + required: + - dns + - key + - type + - url + UpdateClusterSdnDnsSingleRequest: + title: UpdateClusterSdnDnsSingleRequest + type: object + properties: + delete: + type: string + digest: + type: string + fingerprint: + type: string + key: + type: string + lock-token: + type: string + reversemaskv6: + type: integer + ttl: + type: integer + url: + type: string + CreateClusterSdnFabricsFabricRequest: + title: CreateClusterSdnFabricsFabricRequest + type: object + properties: + area: + type: string + csnp_interval: + type: number + digest: + type: string + hello_interval: + type: number + id: + type: string + ip6_prefix: + type: string + ip_prefix: + type: string + lock-token: + type: string + protocol: + type: string + required: + - id + - protocol + UpdateClusterSdnFabricsFabricSingleRequest: + title: UpdateClusterSdnFabricsFabricSingleRequest + type: object + properties: + area: + type: string + csnp_interval: + type: number + delete: + type: array + digest: + type: string + hello_interval: + type: number + ip6_prefix: + type: string + ip_prefix: + type: string + lock-token: + type: string + protocol: + type: string + required: + - delete + - protocol + CreateClusterSdnFabricsNodeSingleRequest: + title: CreateClusterSdnFabricsNodeSingleRequest + type: object + properties: + digest: + type: string + interfaces: + type: array + ip: + type: string + ip6: + type: string + lock-token: + type: string + node_id: + type: string + protocol: + type: string + required: + - interfaces + - node_id + - protocol + UpdateClusterSdnFabricsNodeSingleSingleRequest: + title: UpdateClusterSdnFabricsNodeSingleSingleRequest + type: object + properties: + delete: + type: array + items: + type: string + digest: + type: string + interfaces: + type: array + ip: + type: string + ip6: + type: string + lock-token: + type: string + protocol: + type: string + required: + - interfaces + - protocol + CreateClusterSdnLockRequest: + title: CreateClusterSdnLockRequest + type: object + properties: + allow-pending: + type: boolean + CreateClusterSdnRollbackRequest: + title: CreateClusterSdnRollbackRequest + type: object + properties: + lock-token: + type: string + release-lock: + type: boolean + UpdateClusterOptionsRequest: + title: UpdateClusterOptionsRequest + type: object + properties: + bwlimit: + type: string + consent-text: + type: string + console: + type: string + crs: + type: string + delete: + type: string + description: + type: string + email_from: + type: string + fencing: + type: string + ha: + type: string + http_proxy: + type: string + keyboard: + type: string + language: + type: string + mac_prefix: + type: string + max_workers: + type: integer + migration: + type: string + migration_unsecure: + type: boolean + next-id: + type: string + notify: + type: string + registered-tags: + type: string + replication: + type: string + tag-style: + type: string + u2f: + type: string + user-tag-access: + type: string + webauthn: + type: string + CreateVMRequest: + title: CreateVMRequest + type: object + properties: + acpi: + type: boolean + affinity: + type: string + agent: + type: string + allow-ksm: + type: boolean + amd-sev: + type: string + arch: + type: string + archive: + type: string + args: + type: string + audio0: + type: string + autostart: + type: boolean + balloon: + type: integer + bios: + type: string + boot: + type: string + bootdisk: + type: string + bwlimit: + type: integer + cdrom: + type: string + cicustom: + type: string + cipassword: + type: string + citype: + type: string + ciupgrade: + type: boolean + ciuser: + type: string + cores: + type: integer + cpu: + type: string + cpulimit: + type: number + cpuunits: + type: integer + description: + type: string + efidisk0: + type: string + force: + type: boolean + freeze: + type: boolean + ha-managed: + type: boolean + hookscript: + type: string + hostpci0: + type: string + hostpci1: + type: string + hostpci2: + type: string + hostpci3: + type: string + hostpci4: + type: string + hostpci5: + type: string + hostpci6: + type: string + hostpci7: + type: string + hostpci8: + type: string + hostpci9: + type: string + hostpci10: + type: string + hostpci11: + type: string + hostpci12: + type: string + hostpci13: + type: string + hostpci14: + type: string + hostpci15: + type: string + hostpci16: + type: string + hostpci17: + type: string + hostpci18: + type: string + hostpci19: + type: string + hostpci20: + type: string + hostpci21: + type: string + hostpci22: + type: string + hostpci23: + type: string + hostpci24: + type: string + hostpci25: + type: string + hostpci26: + type: string + hostpci27: + type: string + hostpci28: + type: string + hostpci29: + type: string + hotplug: + type: string + hugepages: + type: string + ide0: + type: string + ide1: + type: string + ide2: + type: string + ide3: + type: string + ide4: + type: string + ide5: + type: string + ide6: + type: string + ide7: + type: string + ide8: + type: string + ide9: + type: string + ide10: + type: string + ide11: + type: string + ide12: + type: string + ide13: + type: string + ide14: + type: string + ide15: + type: string + ide16: + type: string + ide17: + type: string + ide18: + type: string + ide19: + type: string + ide20: + type: string + ide21: + type: string + ide22: + type: string + ide23: + type: string + ide24: + type: string + ide25: + type: string + ide26: + type: string + ide27: + type: string + ide28: + type: string + ide29: + type: string + import-working-storage: + type: string + intel-tdx: + type: string + ipconfig0: + type: string + ipconfig1: + type: string + ipconfig2: + type: string + ipconfig3: + type: string + ipconfig4: + type: string + ipconfig5: + type: string + ipconfig6: + type: string + ipconfig7: + type: string + ipconfig8: + type: string + ipconfig9: + type: string + ipconfig10: + type: string + ipconfig11: + type: string + ipconfig12: + type: string + ipconfig13: + type: string + ipconfig14: + type: string + ipconfig15: + type: string + ipconfig16: + type: string + ipconfig17: + type: string + ipconfig18: + type: string + ipconfig19: + type: string + ipconfig20: + type: string + ipconfig21: + type: string + ipconfig22: + type: string + ipconfig23: + type: string + ipconfig24: + type: string + ipconfig25: + type: string + ipconfig26: + type: string + ipconfig27: + type: string + ipconfig28: + type: string + ipconfig29: + type: string + ivshmem: + type: string + keephugepages: + type: boolean + keyboard: + type: string + kvm: + type: boolean + live-restore: + type: boolean + localtime: + type: boolean + lock: + type: string + machine: + type: string + memory: + type: string + migrate_downtime: + type: number + migrate_speed: + type: integer + name: + type: string + nameserver: + type: string + net0: + type: string + net1: + type: string + net2: + type: string + net3: + type: string + net4: + type: string + net5: + type: string + net6: + type: string + net7: + type: string + net8: + type: string + net9: + type: string + net10: + type: string + net11: + type: string + net12: + type: string + net13: + type: string + net14: + type: string + net15: + type: string + net16: + type: string + net17: + type: string + net18: + type: string + net19: + type: string + net20: + type: string + net21: + type: string + net22: + type: string + net23: + type: string + net24: + type: string + net25: + type: string + net26: + type: string + net27: + type: string + net28: + type: string + net29: + type: string + numa: + type: boolean + numa0: + type: string + numa1: + type: string + numa2: + type: string + numa3: + type: string + numa4: + type: string + numa5: + type: string + numa6: + type: string + numa7: + type: string + numa8: + type: string + numa9: + type: string + numa10: + type: string + numa11: + type: string + numa12: + type: string + numa13: + type: string + numa14: + type: string + numa15: + type: string + numa16: + type: string + numa17: + type: string + numa18: + type: string + numa19: + type: string + numa20: + type: string + numa21: + type: string + numa22: + type: string + numa23: + type: string + numa24: + type: string + numa25: + type: string + numa26: + type: string + numa27: + type: string + numa28: + type: string + numa29: + type: string + onboot: + type: boolean + ostype: + type: string + parallel0: + type: string + parallel1: + type: string + parallel2: + type: string + parallel3: + type: string + parallel4: + type: string + parallel5: + type: string + parallel6: + type: string + parallel7: + type: string + parallel8: + type: string + parallel9: + type: string + parallel10: + type: string + parallel11: + type: string + parallel12: + type: string + parallel13: + type: string + parallel14: + type: string + parallel15: + type: string + parallel16: + type: string + parallel17: + type: string + parallel18: + type: string + parallel19: + type: string + parallel20: + type: string + parallel21: + type: string + parallel22: + type: string + parallel23: + type: string + parallel24: + type: string + parallel25: + type: string + parallel26: + type: string + parallel27: + type: string + parallel28: + type: string + parallel29: + type: string + pool: + type: string + protection: + type: boolean + reboot: + type: boolean + rng0: + type: string + sata0: + type: string + sata1: + type: string + sata2: + type: string + sata3: + type: string + sata4: + type: string + sata5: + type: string + sata6: + type: string + sata7: + type: string + sata8: + type: string + sata9: + type: string + sata10: + type: string + sata11: + type: string + sata12: + type: string + sata13: + type: string + sata14: + type: string + sata15: + type: string + sata16: + type: string + sata17: + type: string + sata18: + type: string + sata19: + type: string + sata20: + type: string + sata21: + type: string + sata22: + type: string + sata23: + type: string + sata24: + type: string + sata25: + type: string + sata26: + type: string + sata27: + type: string + sata28: + type: string + sata29: + type: string + scsi0: + type: string + scsi1: + type: string + scsi2: + type: string + scsi3: + type: string + scsi4: + type: string + scsi5: + type: string + scsi6: + type: string + scsi7: + type: string + scsi8: + type: string + scsi9: + type: string + scsi10: + type: string + scsi11: + type: string + scsi12: + type: string + scsi13: + type: string + scsi14: + type: string + scsi15: + type: string + scsi16: + type: string + scsi17: + type: string + scsi18: + type: string + scsi19: + type: string + scsi20: + type: string + scsi21: + type: string + scsi22: + type: string + scsi23: + type: string + scsi24: + type: string + scsi25: + type: string + scsi26: + type: string + scsi27: + type: string + scsi28: + type: string + scsi29: + type: string + scsihw: + type: string + searchdomain: + type: string + serial0: + type: string + serial1: + type: string + serial2: + type: string + serial3: + type: string + serial4: + type: string + serial5: + type: string + serial6: + type: string + serial7: + type: string + serial8: + type: string + serial9: + type: string + serial10: + type: string + serial11: + type: string + serial12: + type: string + serial13: + type: string + serial14: + type: string + serial15: + type: string + serial16: + type: string + serial17: + type: string + serial18: + type: string + serial19: + type: string + serial20: + type: string + serial21: + type: string + serial22: + type: string + serial23: + type: string + serial24: + type: string + serial25: + type: string + serial26: + type: string + serial27: + type: string + serial28: + type: string + serial29: + type: string + shares: + type: integer + smbios1: + type: string + smp: + type: integer + sockets: + type: integer + spice_enhancements: + type: string + sshkeys: + type: string + start: + type: boolean + startdate: + type: string + startup: + type: string + storage: + type: string + tablet: + type: boolean + tags: + type: string + tdf: + type: boolean + template: + type: boolean + tpmstate0: + type: string + unique: + type: boolean + unused0: + type: string + unused1: + type: string + unused2: + type: string + unused3: + type: string + unused4: + type: string + unused5: + type: string + unused6: + type: string + unused7: + type: string + unused8: + type: string + unused9: + type: string + unused10: + type: string + unused11: + type: string + unused12: + type: string + unused13: + type: string + unused14: + type: string + unused15: + type: string + unused16: + type: string + unused17: + type: string + unused18: + type: string + unused19: + type: string + unused20: + type: string + unused21: + type: string + unused22: + type: string + unused23: + type: string + unused24: + type: string + unused25: + type: string + unused26: + type: string + unused27: + type: string + unused28: + type: string + unused29: + type: string + usb0: + type: string + usb1: + type: string + usb2: + type: string + usb3: + type: string + usb4: + type: string + usb5: + type: string + usb6: + type: string + usb7: + type: string + usb8: + type: string + usb9: + type: string + usb10: + type: string + usb11: + type: string + usb12: + type: string + usb13: + type: string + usb14: + type: string + usb15: + type: string + usb16: + type: string + usb17: + type: string + usb18: + type: string + usb19: + type: string + usb20: + type: string + usb21: + type: string + usb22: + type: string + usb23: + type: string + usb24: + type: string + usb25: + type: string + usb26: + type: string + usb27: + type: string + usb28: + type: string + usb29: + type: string + vcpus: + type: integer + vga: + type: string + virtio0: + type: string + virtio1: + type: string + virtio2: + type: string + virtio3: + type: string + virtio4: + type: string + virtio5: + type: string + virtio6: + type: string + virtio7: + type: string + virtio8: + type: string + virtio9: + type: string + virtio10: + type: string + virtio11: + type: string + virtio12: + type: string + virtio13: + type: string + virtio14: + type: string + virtio15: + type: string + virtio16: + type: string + virtio17: + type: string + virtio18: + type: string + virtio19: + type: string + virtio20: + type: string + virtio21: + type: string + virtio22: + type: string + virtio23: + type: string + virtio24: + type: string + virtio25: + type: string + virtio26: + type: string + virtio27: + type: string + virtio28: + type: string + virtio29: + type: string + virtiofs0: + type: string + virtiofs1: + type: string + virtiofs2: + type: string + virtiofs3: + type: string + virtiofs4: + type: string + virtiofs5: + type: string + virtiofs6: + type: string + virtiofs7: + type: string + virtiofs8: + type: string + virtiofs9: + type: string + virtiofs10: + type: string + virtiofs11: + type: string + virtiofs12: + type: string + virtiofs13: + type: string + virtiofs14: + type: string + virtiofs15: + type: string + virtiofs16: + type: string + virtiofs17: + type: string + virtiofs18: + type: string + virtiofs19: + type: string + virtiofs20: + type: string + virtiofs21: + type: string + virtiofs22: + type: string + virtiofs23: + type: string + virtiofs24: + type: string + virtiofs25: + type: string + virtiofs26: + type: string + virtiofs27: + type: string + virtiofs28: + type: string + virtiofs29: + type: string + vmgenid: + type: string + vmid: + type: integer + vmstatestorage: + type: string + watchdog: + type: string + required: + - vmid + CreateVMFirewallRuleRequest: + title: CreateVMFirewallRuleRequest + type: object + properties: + action: + type: string + comment: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + pos: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + required: + - action + - type + UpdateVMFirewallRuleRequest: + title: UpdateVMFirewallRuleRequest + type: object + properties: + action: + type: string + comment: + type: string + delete: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + moveto: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + CreateNodesSingleQemuSingleFirewallAliasesRequest: + title: CreateNodesSingleQemuSingleFirewallAliasesRequest + type: object + properties: + cidr: + type: string + comment: + type: string + name: + type: string + required: + - cidr + - name + UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest: + title: UpdateNodesSingleQemuSingleFirewallAliasesSingleRequest + type: object + properties: + cidr: + type: string + comment: + type: string + digest: + type: string + rename: + type: string + required: + - cidr + CreateVMFirewallIPSetRequest: + title: CreateVMFirewallIPSetRequest + type: object + properties: + comment: + type: string + digest: + type: string + name: + type: string + rename: + type: string + required: + - name + AddVMFirewallIPSetIPRequest: + title: AddVMFirewallIPSetIPRequest + type: object + properties: + cidr: + type: string + comment: + type: string + nomatch: + type: boolean + required: + - cidr + UpdateVMFirewallIPSetIPRequest: + title: UpdateVMFirewallIPSetIPRequest + type: object + properties: + comment: + type: string + digest: + type: string + nomatch: + type: boolean + UpdateVMFirewallOptionsRequest: + title: UpdateVMFirewallOptionsRequest + type: object + properties: + delete: + type: string + dhcp: + type: boolean + digest: + type: string + enable: + type: boolean + ipfilter: + type: boolean + log_level_in: + type: string + log_level_out: + type: string + macfilter: + type: boolean + ndp: + type: boolean + policy_in: + type: string + policy_out: + type: string + radv: + type: boolean + CreateNodesSingleQemuSingleAgentRequest: + title: CreateNodesSingleQemuSingleAgentRequest + type: object + properties: + command: + type: string + required: + - command + CreateNodesSingleQemuSingleAgentFsfreezefreezeRequest: + title: CreateNodesSingleQemuSingleAgentFsfreezefreezeRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentFsfreezestatusRequest: + title: CreateNodesSingleQemuSingleAgentFsfreezestatusRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentFsfreezethawRequest: + title: CreateNodesSingleQemuSingleAgentFsfreezethawRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentFstrimRequest: + title: CreateNodesSingleQemuSingleAgentFstrimRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentPingRequest: + title: CreateNodesSingleQemuSingleAgentPingRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentShutdownRequest: + title: CreateNodesSingleQemuSingleAgentShutdownRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentSuspenddiskRequest: + title: CreateNodesSingleQemuSingleAgentSuspenddiskRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentSuspendhybridRequest: + title: CreateNodesSingleQemuSingleAgentSuspendhybridRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentSuspendramRequest: + title: CreateNodesSingleQemuSingleAgentSuspendramRequest + type: object + properties: {} + CreateNodesSingleQemuSingleAgentSetuserpasswordRequest: + title: CreateNodesSingleQemuSingleAgentSetuserpasswordRequest + type: object + properties: + crypted: + type: boolean + password: + type: string + username: + type: string + required: + - password + - username + CreateNodesSingleQemuSingleAgentExecRequest: + title: CreateNodesSingleQemuSingleAgentExecRequest + type: object + properties: + command: + type: array + items: + type: string + input-data: + type: string + required: + - command + CreateNodesSingleQemuSingleAgentFilewriteRequest: + title: CreateNodesSingleQemuSingleAgentFilewriteRequest + type: object + properties: + content: + type: string + encode: + type: boolean + file: + type: string + required: + - content + - file + UpdateVMConfigRequest: + title: UpdateVMConfigRequest + type: object + properties: + acpi: + type: boolean + affinity: + type: string + agent: + type: string + allow-ksm: + type: boolean + amd-sev: + type: string + arch: + type: string + args: + type: string + audio0: + type: string + autostart: + type: boolean + background_delay: + type: integer + balloon: + type: integer + bios: + type: string + boot: + type: string + bootdisk: + type: string + cdrom: + type: string + cicustom: + type: string + cipassword: + type: string + citype: + type: string + ciupgrade: + type: boolean + ciuser: + type: string + cores: + type: integer + cpu: + type: string + cpulimit: + type: number + cpuunits: + type: integer + delete: + type: string + description: + type: string + digest: + type: string + efidisk0: + type: string + force: + type: boolean + freeze: + type: boolean + hookscript: + type: string + hostpci0: + type: string + hostpci1: + type: string + hostpci2: + type: string + hostpci3: + type: string + hostpci4: + type: string + hostpci5: + type: string + hostpci6: + type: string + hostpci7: + type: string + hostpci8: + type: string + hostpci9: + type: string + hostpci10: + type: string + hostpci11: + type: string + hostpci12: + type: string + hostpci13: + type: string + hostpci14: + type: string + hostpci15: + type: string + hostpci16: + type: string + hostpci17: + type: string + hostpci18: + type: string + hostpci19: + type: string + hostpci20: + type: string + hostpci21: + type: string + hostpci22: + type: string + hostpci23: + type: string + hostpci24: + type: string + hostpci25: + type: string + hostpci26: + type: string + hostpci27: + type: string + hostpci28: + type: string + hostpci29: + type: string + hotplug: + type: string + hugepages: + type: string + ide0: + type: string + ide1: + type: string + ide2: + type: string + ide3: + type: string + ide4: + type: string + ide5: + type: string + ide6: + type: string + ide7: + type: string + ide8: + type: string + ide9: + type: string + ide10: + type: string + ide11: + type: string + ide12: + type: string + ide13: + type: string + ide14: + type: string + ide15: + type: string + ide16: + type: string + ide17: + type: string + ide18: + type: string + ide19: + type: string + ide20: + type: string + ide21: + type: string + ide22: + type: string + ide23: + type: string + ide24: + type: string + ide25: + type: string + ide26: + type: string + ide27: + type: string + ide28: + type: string + ide29: + type: string + import-working-storage: + type: string + intel-tdx: + type: string + ipconfig0: + type: string + ipconfig1: + type: string + ipconfig2: + type: string + ipconfig3: + type: string + ipconfig4: + type: string + ipconfig5: + type: string + ipconfig6: + type: string + ipconfig7: + type: string + ipconfig8: + type: string + ipconfig9: + type: string + ipconfig10: + type: string + ipconfig11: + type: string + ipconfig12: + type: string + ipconfig13: + type: string + ipconfig14: + type: string + ipconfig15: + type: string + ipconfig16: + type: string + ipconfig17: + type: string + ipconfig18: + type: string + ipconfig19: + type: string + ipconfig20: + type: string + ipconfig21: + type: string + ipconfig22: + type: string + ipconfig23: + type: string + ipconfig24: + type: string + ipconfig25: + type: string + ipconfig26: + type: string + ipconfig27: + type: string + ipconfig28: + type: string + ipconfig29: + type: string + ivshmem: + type: string + keephugepages: + type: boolean + keyboard: + type: string + kvm: + type: boolean + localtime: + type: boolean + lock: + type: string + machine: + type: string + memory: + type: string + migrate_downtime: + type: number + migrate_speed: + type: integer + name: + type: string + nameserver: + type: string + net0: + type: string + net1: + type: string + net2: + type: string + net3: + type: string + net4: + type: string + net5: + type: string + net6: + type: string + net7: + type: string + net8: + type: string + net9: + type: string + net10: + type: string + net11: + type: string + net12: + type: string + net13: + type: string + net14: + type: string + net15: + type: string + net16: + type: string + net17: + type: string + net18: + type: string + net19: + type: string + net20: + type: string + net21: + type: string + net22: + type: string + net23: + type: string + net24: + type: string + net25: + type: string + net26: + type: string + net27: + type: string + net28: + type: string + net29: + type: string + numa: + type: boolean + numa0: + type: string + numa1: + type: string + numa2: + type: string + numa3: + type: string + numa4: + type: string + numa5: + type: string + numa6: + type: string + numa7: + type: string + numa8: + type: string + numa9: + type: string + numa10: + type: string + numa11: + type: string + numa12: + type: string + numa13: + type: string + numa14: + type: string + numa15: + type: string + numa16: + type: string + numa17: + type: string + numa18: + type: string + numa19: + type: string + numa20: + type: string + numa21: + type: string + numa22: + type: string + numa23: + type: string + numa24: + type: string + numa25: + type: string + numa26: + type: string + numa27: + type: string + numa28: + type: string + numa29: + type: string + onboot: + type: boolean + ostype: + type: string + parallel0: + type: string + parallel1: + type: string + parallel2: + type: string + parallel3: + type: string + parallel4: + type: string + parallel5: + type: string + parallel6: + type: string + parallel7: + type: string + parallel8: + type: string + parallel9: + type: string + parallel10: + type: string + parallel11: + type: string + parallel12: + type: string + parallel13: + type: string + parallel14: + type: string + parallel15: + type: string + parallel16: + type: string + parallel17: + type: string + parallel18: + type: string + parallel19: + type: string + parallel20: + type: string + parallel21: + type: string + parallel22: + type: string + parallel23: + type: string + parallel24: + type: string + parallel25: + type: string + parallel26: + type: string + parallel27: + type: string + parallel28: + type: string + parallel29: + type: string + protection: + type: boolean + reboot: + type: boolean + revert: + type: string + rng0: + type: string + sata0: + type: string + sata1: + type: string + sata2: + type: string + sata3: + type: string + sata4: + type: string + sata5: + type: string + sata6: + type: string + sata7: + type: string + sata8: + type: string + sata9: + type: string + sata10: + type: string + sata11: + type: string + sata12: + type: string + sata13: + type: string + sata14: + type: string + sata15: + type: string + sata16: + type: string + sata17: + type: string + sata18: + type: string + sata19: + type: string + sata20: + type: string + sata21: + type: string + sata22: + type: string + sata23: + type: string + sata24: + type: string + sata25: + type: string + sata26: + type: string + sata27: + type: string + sata28: + type: string + sata29: + type: string + scsi0: + type: string + scsi1: + type: string + scsi2: + type: string + scsi3: + type: string + scsi4: + type: string + scsi5: + type: string + scsi6: + type: string + scsi7: + type: string + scsi8: + type: string + scsi9: + type: string + scsi10: + type: string + scsi11: + type: string + scsi12: + type: string + scsi13: + type: string + scsi14: + type: string + scsi15: + type: string + scsi16: + type: string + scsi17: + type: string + scsi18: + type: string + scsi19: + type: string + scsi20: + type: string + scsi21: + type: string + scsi22: + type: string + scsi23: + type: string + scsi24: + type: string + scsi25: + type: string + scsi26: + type: string + scsi27: + type: string + scsi28: + type: string + scsi29: + type: string + scsihw: + type: string + searchdomain: + type: string + serial0: + type: string + serial1: + type: string + serial2: + type: string + serial3: + type: string + serial4: + type: string + serial5: + type: string + serial6: + type: string + serial7: + type: string + serial8: + type: string + serial9: + type: string + serial10: + type: string + serial11: + type: string + serial12: + type: string + serial13: + type: string + serial14: + type: string + serial15: + type: string + serial16: + type: string + serial17: + type: string + serial18: + type: string + serial19: + type: string + serial20: + type: string + serial21: + type: string + serial22: + type: string + serial23: + type: string + serial24: + type: string + serial25: + type: string + serial26: + type: string + serial27: + type: string + serial28: + type: string + serial29: + type: string + shares: + type: integer + skiplock: + type: boolean + smbios1: + type: string + smp: + type: integer + sockets: + type: integer + spice_enhancements: + type: string + sshkeys: + type: string + startdate: + type: string + startup: + type: string + tablet: + type: boolean + tags: + type: string + tdf: + type: boolean + template: + type: boolean + tpmstate0: + type: string + unused0: + type: string + unused1: + type: string + unused2: + type: string + unused3: + type: string + unused4: + type: string + unused5: + type: string + unused6: + type: string + unused7: + type: string + unused8: + type: string + unused9: + type: string + unused10: + type: string + unused11: + type: string + unused12: + type: string + unused13: + type: string + unused14: + type: string + unused15: + type: string + unused16: + type: string + unused17: + type: string + unused18: + type: string + unused19: + type: string + unused20: + type: string + unused21: + type: string + unused22: + type: string + unused23: + type: string + unused24: + type: string + unused25: + type: string + unused26: + type: string + unused27: + type: string + unused28: + type: string + unused29: + type: string + usb0: + type: string + usb1: + type: string + usb2: + type: string + usb3: + type: string + usb4: + type: string + usb5: + type: string + usb6: + type: string + usb7: + type: string + usb8: + type: string + usb9: + type: string + usb10: + type: string + usb11: + type: string + usb12: + type: string + usb13: + type: string + usb14: + type: string + usb15: + type: string + usb16: + type: string + usb17: + type: string + usb18: + type: string + usb19: + type: string + usb20: + type: string + usb21: + type: string + usb22: + type: string + usb23: + type: string + usb24: + type: string + usb25: + type: string + usb26: + type: string + usb27: + type: string + usb28: + type: string + usb29: + type: string + vcpus: + type: integer + vga: + type: string + virtio0: + type: string + virtio1: + type: string + virtio2: + type: string + virtio3: + type: string + virtio4: + type: string + virtio5: + type: string + virtio6: + type: string + virtio7: + type: string + virtio8: + type: string + virtio9: + type: string + virtio10: + type: string + virtio11: + type: string + virtio12: + type: string + virtio13: + type: string + virtio14: + type: string + virtio15: + type: string + virtio16: + type: string + virtio17: + type: string + virtio18: + type: string + virtio19: + type: string + virtio20: + type: string + virtio21: + type: string + virtio22: + type: string + virtio23: + type: string + virtio24: + type: string + virtio25: + type: string + virtio26: + type: string + virtio27: + type: string + virtio28: + type: string + virtio29: + type: string + virtiofs0: + type: string + virtiofs1: + type: string + virtiofs2: + type: string + virtiofs3: + type: string + virtiofs4: + type: string + virtiofs5: + type: string + virtiofs6: + type: string + virtiofs7: + type: string + virtiofs8: + type: string + virtiofs9: + type: string + virtiofs10: + type: string + virtiofs11: + type: string + virtiofs12: + type: string + virtiofs13: + type: string + virtiofs14: + type: string + virtiofs15: + type: string + virtiofs16: + type: string + virtiofs17: + type: string + virtiofs18: + type: string + virtiofs19: + type: string + virtiofs20: + type: string + virtiofs21: + type: string + virtiofs22: + type: string + virtiofs23: + type: string + virtiofs24: + type: string + virtiofs25: + type: string + virtiofs26: + type: string + virtiofs27: + type: string + virtiofs28: + type: string + virtiofs29: + type: string + vmgenid: + type: string + vmstatestorage: + type: string + watchdog: + type: string + UpdateVMConfigSyncRequest: + title: UpdateVMConfigSyncRequest + type: object + properties: + acpi: + type: boolean + affinity: + type: string + agent: + type: string + allow-ksm: + type: boolean + amd-sev: + type: string + arch: + type: string + args: + type: string + audio0: + type: string + autostart: + type: boolean + balloon: + type: integer + bios: + type: string + boot: + type: string + bootdisk: + type: string + cdrom: + type: string + cicustom: + type: string + cipassword: + type: string + citype: + type: string + ciupgrade: + type: boolean + ciuser: + type: string + cores: + type: integer + cpu: + type: string + cpulimit: + type: number + cpuunits: + type: integer + delete: + type: string + description: + type: string + digest: + type: string + efidisk0: + type: string + force: + type: boolean + freeze: + type: boolean + hookscript: + type: string + hostpci0: + type: string + hostpci1: + type: string + hostpci2: + type: string + hostpci3: + type: string + hostpci4: + type: string + hostpci5: + type: string + hostpci6: + type: string + hostpci7: + type: string + hostpci8: + type: string + hostpci9: + type: string + hostpci10: + type: string + hostpci11: + type: string + hostpci12: + type: string + hostpci13: + type: string + hostpci14: + type: string + hostpci15: + type: string + hostpci16: + type: string + hostpci17: + type: string + hostpci18: + type: string + hostpci19: + type: string + hostpci20: + type: string + hostpci21: + type: string + hostpci22: + type: string + hostpci23: + type: string + hostpci24: + type: string + hostpci25: + type: string + hostpci26: + type: string + hostpci27: + type: string + hostpci28: + type: string + hostpci29: + type: string + hotplug: + type: string + hugepages: + type: string + ide0: + type: string + ide1: + type: string + ide2: + type: string + ide3: + type: string + ide4: + type: string + ide5: + type: string + ide6: + type: string + ide7: + type: string + ide8: + type: string + ide9: + type: string + ide10: + type: string + ide11: + type: string + ide12: + type: string + ide13: + type: string + ide14: + type: string + ide15: + type: string + ide16: + type: string + ide17: + type: string + ide18: + type: string + ide19: + type: string + ide20: + type: string + ide21: + type: string + ide22: + type: string + ide23: + type: string + ide24: + type: string + ide25: + type: string + ide26: + type: string + ide27: + type: string + ide28: + type: string + ide29: + type: string + intel-tdx: + type: string + ipconfig0: + type: string + ipconfig1: + type: string + ipconfig2: + type: string + ipconfig3: + type: string + ipconfig4: + type: string + ipconfig5: + type: string + ipconfig6: + type: string + ipconfig7: + type: string + ipconfig8: + type: string + ipconfig9: + type: string + ipconfig10: + type: string + ipconfig11: + type: string + ipconfig12: + type: string + ipconfig13: + type: string + ipconfig14: + type: string + ipconfig15: + type: string + ipconfig16: + type: string + ipconfig17: + type: string + ipconfig18: + type: string + ipconfig19: + type: string + ipconfig20: + type: string + ipconfig21: + type: string + ipconfig22: + type: string + ipconfig23: + type: string + ipconfig24: + type: string + ipconfig25: + type: string + ipconfig26: + type: string + ipconfig27: + type: string + ipconfig28: + type: string + ipconfig29: + type: string + ivshmem: + type: string + keephugepages: + type: boolean + keyboard: + type: string + kvm: + type: boolean + localtime: + type: boolean + lock: + type: string + machine: + type: string + memory: + type: string + migrate_downtime: + type: number + migrate_speed: + type: integer + name: + type: string + nameserver: + type: string + net0: + type: string + net1: + type: string + net2: + type: string + net3: + type: string + net4: + type: string + net5: + type: string + net6: + type: string + net7: + type: string + net8: + type: string + net9: + type: string + net10: + type: string + net11: + type: string + net12: + type: string + net13: + type: string + net14: + type: string + net15: + type: string + net16: + type: string + net17: + type: string + net18: + type: string + net19: + type: string + net20: + type: string + net21: + type: string + net22: + type: string + net23: + type: string + net24: + type: string + net25: + type: string + net26: + type: string + net27: + type: string + net28: + type: string + net29: + type: string + numa: + type: boolean + numa0: + type: string + numa1: + type: string + numa2: + type: string + numa3: + type: string + numa4: + type: string + numa5: + type: string + numa6: + type: string + numa7: + type: string + numa8: + type: string + numa9: + type: string + numa10: + type: string + numa11: + type: string + numa12: + type: string + numa13: + type: string + numa14: + type: string + numa15: + type: string + numa16: + type: string + numa17: + type: string + numa18: + type: string + numa19: + type: string + numa20: + type: string + numa21: + type: string + numa22: + type: string + numa23: + type: string + numa24: + type: string + numa25: + type: string + numa26: + type: string + numa27: + type: string + numa28: + type: string + numa29: + type: string + onboot: + type: boolean + ostype: + type: string + parallel0: + type: string + parallel1: + type: string + parallel2: + type: string + parallel3: + type: string + parallel4: + type: string + parallel5: + type: string + parallel6: + type: string + parallel7: + type: string + parallel8: + type: string + parallel9: + type: string + parallel10: + type: string + parallel11: + type: string + parallel12: + type: string + parallel13: + type: string + parallel14: + type: string + parallel15: + type: string + parallel16: + type: string + parallel17: + type: string + parallel18: + type: string + parallel19: + type: string + parallel20: + type: string + parallel21: + type: string + parallel22: + type: string + parallel23: + type: string + parallel24: + type: string + parallel25: + type: string + parallel26: + type: string + parallel27: + type: string + parallel28: + type: string + parallel29: + type: string + protection: + type: boolean + reboot: + type: boolean + revert: + type: string + rng0: + type: string + sata0: + type: string + sata1: + type: string + sata2: + type: string + sata3: + type: string + sata4: + type: string + sata5: + type: string + sata6: + type: string + sata7: + type: string + sata8: + type: string + sata9: + type: string + sata10: + type: string + sata11: + type: string + sata12: + type: string + sata13: + type: string + sata14: + type: string + sata15: + type: string + sata16: + type: string + sata17: + type: string + sata18: + type: string + sata19: + type: string + sata20: + type: string + sata21: + type: string + sata22: + type: string + sata23: + type: string + sata24: + type: string + sata25: + type: string + sata26: + type: string + sata27: + type: string + sata28: + type: string + sata29: + type: string + scsi0: + type: string + scsi1: + type: string + scsi2: + type: string + scsi3: + type: string + scsi4: + type: string + scsi5: + type: string + scsi6: + type: string + scsi7: + type: string + scsi8: + type: string + scsi9: + type: string + scsi10: + type: string + scsi11: + type: string + scsi12: + type: string + scsi13: + type: string + scsi14: + type: string + scsi15: + type: string + scsi16: + type: string + scsi17: + type: string + scsi18: + type: string + scsi19: + type: string + scsi20: + type: string + scsi21: + type: string + scsi22: + type: string + scsi23: + type: string + scsi24: + type: string + scsi25: + type: string + scsi26: + type: string + scsi27: + type: string + scsi28: + type: string + scsi29: + type: string + scsihw: + type: string + searchdomain: + type: string + serial0: + type: string + serial1: + type: string + serial2: + type: string + serial3: + type: string + serial4: + type: string + serial5: + type: string + serial6: + type: string + serial7: + type: string + serial8: + type: string + serial9: + type: string + serial10: + type: string + serial11: + type: string + serial12: + type: string + serial13: + type: string + serial14: + type: string + serial15: + type: string + serial16: + type: string + serial17: + type: string + serial18: + type: string + serial19: + type: string + serial20: + type: string + serial21: + type: string + serial22: + type: string + serial23: + type: string + serial24: + type: string + serial25: + type: string + serial26: + type: string + serial27: + type: string + serial28: + type: string + serial29: + type: string + shares: + type: integer + skiplock: + type: boolean + smbios1: + type: string + smp: + type: integer + sockets: + type: integer + spice_enhancements: + type: string + sshkeys: + type: string + startdate: + type: string + startup: + type: string + tablet: + type: boolean + tags: + type: string + tdf: + type: boolean + template: + type: boolean + tpmstate0: + type: string + unused0: + type: string + unused1: + type: string + unused2: + type: string + unused3: + type: string + unused4: + type: string + unused5: + type: string + unused6: + type: string + unused7: + type: string + unused8: + type: string + unused9: + type: string + unused10: + type: string + unused11: + type: string + unused12: + type: string + unused13: + type: string + unused14: + type: string + unused15: + type: string + unused16: + type: string + unused17: + type: string + unused18: + type: string + unused19: + type: string + unused20: + type: string + unused21: + type: string + unused22: + type: string + unused23: + type: string + unused24: + type: string + unused25: + type: string + unused26: + type: string + unused27: + type: string + unused28: + type: string + unused29: + type: string + usb0: + type: string + usb1: + type: string + usb2: + type: string + usb3: + type: string + usb4: + type: string + usb5: + type: string + usb6: + type: string + usb7: + type: string + usb8: + type: string + usb9: + type: string + usb10: + type: string + usb11: + type: string + usb12: + type: string + usb13: + type: string + usb14: + type: string + usb15: + type: string + usb16: + type: string + usb17: + type: string + usb18: + type: string + usb19: + type: string + usb20: + type: string + usb21: + type: string + usb22: + type: string + usb23: + type: string + usb24: + type: string + usb25: + type: string + usb26: + type: string + usb27: + type: string + usb28: + type: string + usb29: + type: string + vcpus: + type: integer + vga: + type: string + virtio0: + type: string + virtio1: + type: string + virtio2: + type: string + virtio3: + type: string + virtio4: + type: string + virtio5: + type: string + virtio6: + type: string + virtio7: + type: string + virtio8: + type: string + virtio9: + type: string + virtio10: + type: string + virtio11: + type: string + virtio12: + type: string + virtio13: + type: string + virtio14: + type: string + virtio15: + type: string + virtio16: + type: string + virtio17: + type: string + virtio18: + type: string + virtio19: + type: string + virtio20: + type: string + virtio21: + type: string + virtio22: + type: string + virtio23: + type: string + virtio24: + type: string + virtio25: + type: string + virtio26: + type: string + virtio27: + type: string + virtio28: + type: string + virtio29: + type: string + virtiofs0: + type: string + virtiofs1: + type: string + virtiofs2: + type: string + virtiofs3: + type: string + virtiofs4: + type: string + virtiofs5: + type: string + virtiofs6: + type: string + virtiofs7: + type: string + virtiofs8: + type: string + virtiofs9: + type: string + virtiofs10: + type: string + virtiofs11: + type: string + virtiofs12: + type: string + virtiofs13: + type: string + virtiofs14: + type: string + virtiofs15: + type: string + virtiofs16: + type: string + virtiofs17: + type: string + virtiofs18: + type: string + virtiofs19: + type: string + virtiofs20: + type: string + virtiofs21: + type: string + virtiofs22: + type: string + virtiofs23: + type: string + virtiofs24: + type: string + virtiofs25: + type: string + virtiofs26: + type: string + virtiofs27: + type: string + virtiofs28: + type: string + virtiofs29: + type: string + vmgenid: + type: string + vmstatestorage: + type: string + watchdog: + type: string + UpdateNodesSingleQemuSingleCloudinitRequest: + title: UpdateNodesSingleQemuSingleCloudinitRequest + type: object + properties: {} + UnlinkVMDiskImagesRequest: + title: UnlinkVMDiskImagesRequest + type: object + properties: + force: + type: boolean + idlist: + type: string + required: + - idlist + CreateNodesSingleQemuSingleVncproxyRequest: + title: CreateNodesSingleQemuSingleVncproxyRequest + type: object + properties: + generate-password: + type: boolean + websocket: + type: boolean + CreateNodesSingleQemuSingleTermproxyRequest: + title: CreateNodesSingleQemuSingleTermproxyRequest + type: object + properties: + serial: + type: string + CreateNodesSingleQemuSingleSpiceproxyRequest: + title: CreateNodesSingleQemuSingleSpiceproxyRequest + type: object + properties: + proxy: + type: string + StartVMRequest: + title: StartVMRequest + type: object + properties: + force-cpu: + type: string + machine: + type: string + migratedfrom: + type: string + migration_network: + type: string + migration_type: + type: string + nets-host-mtu: + type: string + skiplock: + type: boolean + stateuri: + type: string + targetstorage: + type: string + timeout: + type: integer + with-conntrack-state: + type: boolean + StopVMRequest: + title: StopVMRequest + type: object + properties: + keepActive: + type: boolean + migratedfrom: + type: string + overrule-shutdown: + type: boolean + skiplock: + type: boolean + timeout: + type: integer + ResetVMRequest: + title: ResetVMRequest + type: object + properties: + skiplock: + type: boolean + ShutdownVMRequest: + title: ShutdownVMRequest + type: object + properties: + forceStop: + type: boolean + keepActive: + type: boolean + skiplock: + type: boolean + timeout: + type: integer + RebootVMRequest: + title: RebootVMRequest + type: object + properties: + timeout: + type: integer + SuspendVMRequest: + title: SuspendVMRequest + type: object + properties: + skiplock: + type: boolean + statestorage: + type: string + todisk: + type: boolean + ResumeVMRequest: + title: ResumeVMRequest + type: object + properties: + nocheck: + type: boolean + skiplock: + type: boolean + UpdateNodesSingleQemuSingleSendkeyRequest: + title: UpdateNodesSingleQemuSingleSendkeyRequest + type: object + properties: + key: + type: string + skiplock: + type: boolean + required: + - key + CloneVMRequest: + title: CloneVMRequest + type: object + properties: + bwlimit: + type: integer + description: + type: string + format: + type: string + full: + type: boolean + name: + type: string + newid: + type: integer + pool: + type: string + snapname: + type: string + storage: + type: string + target: + type: string + required: + - newid + CreateNodesSingleQemuSingleMovediskRequest: + title: CreateNodesSingleQemuSingleMovediskRequest + type: object + properties: + bwlimit: + type: integer + delete: + type: boolean + digest: + type: string + disk: + type: string + format: + type: string + storage: + type: string + target-digest: + type: string + target-disk: + type: string + target-vmid: + type: integer + required: + - disk + CreateNodesSingleQemuSingleMigrateRequest: + title: CreateNodesSingleQemuSingleMigrateRequest + type: object + properties: + bwlimit: + type: integer + force: + type: boolean + migration_network: + type: string + migration_type: + type: string + online: + type: boolean + target: + type: string + targetstorage: + type: string + with-conntrack-state: + type: boolean + with-local-disks: + type: boolean + required: + - target + CreateNodesSingleQemuSingleRemotemigrateRequest: + title: CreateNodesSingleQemuSingleRemotemigrateRequest + type: object + properties: + bwlimit: + type: integer + delete: + type: boolean + online: + type: boolean + target-bridge: + type: string + target-endpoint: + type: string + target-storage: + type: string + target-vmid: + type: integer + required: + - target-bridge + - target-endpoint + - target-storage + CreateNodesSingleQemuSingleMonitorRequest: + title: CreateNodesSingleQemuSingleMonitorRequest + type: object + properties: + command: + type: string + required: + - command + ResizeVMDiskRequest: + title: ResizeVMDiskRequest + type: object + properties: + digest: + type: string + disk: + type: string + size: + type: string + skiplock: + type: boolean + required: + - disk + - size + CreateVMSnapshotRequest: + title: CreateVMSnapshotRequest + type: object + properties: + description: + type: string + snapname: + type: string + vmstate: + type: boolean + required: + - snapname + UpdateVMSnapshotConfigRequest: + title: UpdateVMSnapshotConfigRequest + type: object + properties: + description: + type: string + RollbackVMSnapshotRequest: + title: RollbackVMSnapshotRequest + type: object + properties: + start: + type: boolean + CreateNodesSingleQemuSingleTemplateRequest: + title: CreateNodesSingleQemuSingleTemplateRequest + type: object + properties: + disk: + type: string + CreateNodesSingleQemuSingleMtunnelRequest: + title: CreateNodesSingleQemuSingleMtunnelRequest + type: object + properties: + bridges: + type: string + storages: + type: string + CreateNodesSingleQemuSingleDbusvmstateRequest: + title: CreateNodesSingleQemuSingleDbusvmstateRequest + type: object + properties: + action: + type: string + required: + - action + CreateNodesSingleLxcRequest: + title: CreateNodesSingleLxcRequest + type: object + properties: + arch: + type: string + bwlimit: + type: number + cmode: + type: string + console: + type: boolean + cores: + type: integer + cpulimit: + type: number + cpuunits: + type: integer + debug: + type: boolean + description: + type: string + dev0: + type: string + dev1: + type: string + dev2: + type: string + dev3: + type: string + dev4: + type: string + dev5: + type: string + dev6: + type: string + dev7: + type: string + dev8: + type: string + dev9: + type: string + dev10: + type: string + dev11: + type: string + dev12: + type: string + dev13: + type: string + dev14: + type: string + dev15: + type: string + dev16: + type: string + dev17: + type: string + dev18: + type: string + dev19: + type: string + dev20: + type: string + dev21: + type: string + dev22: + type: string + dev23: + type: string + dev24: + type: string + dev25: + type: string + dev26: + type: string + dev27: + type: string + dev28: + type: string + dev29: + type: string + entrypoint: + type: string + env: + type: string + features: + type: string + force: + type: boolean + ha-managed: + type: boolean + hookscript: + type: string + hostname: + type: string + ignore-unpack-errors: + type: boolean + lock: + type: string + memory: + type: integer + mp0: + type: string + mp1: + type: string + mp2: + type: string + mp3: + type: string + mp4: + type: string + mp5: + type: string + mp6: + type: string + mp7: + type: string + mp8: + type: string + mp9: + type: string + mp10: + type: string + mp11: + type: string + mp12: + type: string + mp13: + type: string + mp14: + type: string + mp15: + type: string + mp16: + type: string + mp17: + type: string + mp18: + type: string + mp19: + type: string + mp20: + type: string + mp21: + type: string + mp22: + type: string + mp23: + type: string + mp24: + type: string + mp25: + type: string + mp26: + type: string + mp27: + type: string + mp28: + type: string + mp29: + type: string + nameserver: + type: string + net0: + type: string + net1: + type: string + net2: + type: string + net3: + type: string + net4: + type: string + net5: + type: string + net6: + type: string + net7: + type: string + net8: + type: string + net9: + type: string + net10: + type: string + net11: + type: string + net12: + type: string + net13: + type: string + net14: + type: string + net15: + type: string + net16: + type: string + net17: + type: string + net18: + type: string + net19: + type: string + net20: + type: string + net21: + type: string + net22: + type: string + net23: + type: string + net24: + type: string + net25: + type: string + net26: + type: string + net27: + type: string + net28: + type: string + net29: + type: string + onboot: + type: boolean + ostemplate: + type: string + ostype: + type: string + password: + type: string + pool: + type: string + protection: + type: boolean + restore: + type: boolean + rootfs: + type: string + searchdomain: + type: string + ssh-public-keys: + type: string + start: + type: boolean + startup: + type: string + storage: + type: string + swap: + type: integer + tags: + type: string + template: + type: boolean + timezone: + type: string + tty: + type: integer + unique: + type: boolean + unprivileged: + type: boolean + unused0: + type: string + unused1: + type: string + unused2: + type: string + unused3: + type: string + unused4: + type: string + unused5: + type: string + unused6: + type: string + unused7: + type: string + unused8: + type: string + unused9: + type: string + unused10: + type: string + unused11: + type: string + unused12: + type: string + unused13: + type: string + unused14: + type: string + unused15: + type: string + unused16: + type: string + unused17: + type: string + unused18: + type: string + unused19: + type: string + unused20: + type: string + unused21: + type: string + unused22: + type: string + unused23: + type: string + unused24: + type: string + unused25: + type: string + unused26: + type: string + unused27: + type: string + unused28: + type: string + unused29: + type: string + vmid: + type: integer + required: + - ostemplate + - vmid + UpdateNodesSingleLxcSingleConfigRequest: + title: UpdateNodesSingleLxcSingleConfigRequest + type: object + properties: + arch: + type: string + cmode: + type: string + console: + type: boolean + cores: + type: integer + cpulimit: + type: number + cpuunits: + type: integer + debug: + type: boolean + delete: + type: string + description: + type: string + dev0: + type: string + dev1: + type: string + dev2: + type: string + dev3: + type: string + dev4: + type: string + dev5: + type: string + dev6: + type: string + dev7: + type: string + dev8: + type: string + dev9: + type: string + dev10: + type: string + dev11: + type: string + dev12: + type: string + dev13: + type: string + dev14: + type: string + dev15: + type: string + dev16: + type: string + dev17: + type: string + dev18: + type: string + dev19: + type: string + dev20: + type: string + dev21: + type: string + dev22: + type: string + dev23: + type: string + dev24: + type: string + dev25: + type: string + dev26: + type: string + dev27: + type: string + dev28: + type: string + dev29: + type: string + digest: + type: string + entrypoint: + type: string + env: + type: string + features: + type: string + hookscript: + type: string + hostname: + type: string + lock: + type: string + memory: + type: integer + mp0: + type: string + mp1: + type: string + mp2: + type: string + mp3: + type: string + mp4: + type: string + mp5: + type: string + mp6: + type: string + mp7: + type: string + mp8: + type: string + mp9: + type: string + mp10: + type: string + mp11: + type: string + mp12: + type: string + mp13: + type: string + mp14: + type: string + mp15: + type: string + mp16: + type: string + mp17: + type: string + mp18: + type: string + mp19: + type: string + mp20: + type: string + mp21: + type: string + mp22: + type: string + mp23: + type: string + mp24: + type: string + mp25: + type: string + mp26: + type: string + mp27: + type: string + mp28: + type: string + mp29: + type: string + nameserver: + type: string + net0: + type: string + net1: + type: string + net2: + type: string + net3: + type: string + net4: + type: string + net5: + type: string + net6: + type: string + net7: + type: string + net8: + type: string + net9: + type: string + net10: + type: string + net11: + type: string + net12: + type: string + net13: + type: string + net14: + type: string + net15: + type: string + net16: + type: string + net17: + type: string + net18: + type: string + net19: + type: string + net20: + type: string + net21: + type: string + net22: + type: string + net23: + type: string + net24: + type: string + net25: + type: string + net26: + type: string + net27: + type: string + net28: + type: string + net29: + type: string + onboot: + type: boolean + ostype: + type: string + protection: + type: boolean + revert: + type: string + rootfs: + type: string + searchdomain: + type: string + startup: + type: string + swap: + type: integer + tags: + type: string + template: + type: boolean + timezone: + type: string + tty: + type: integer + unprivileged: + type: boolean + unused0: + type: string + unused1: + type: string + unused2: + type: string + unused3: + type: string + unused4: + type: string + unused5: + type: string + unused6: + type: string + unused7: + type: string + unused8: + type: string + unused9: + type: string + unused10: + type: string + unused11: + type: string + unused12: + type: string + unused13: + type: string + unused14: + type: string + unused15: + type: string + unused16: + type: string + unused17: + type: string + unused18: + type: string + unused19: + type: string + unused20: + type: string + unused21: + type: string + unused22: + type: string + unused23: + type: string + unused24: + type: string + unused25: + type: string + unused26: + type: string + unused27: + type: string + unused28: + type: string + unused29: + type: string + CreateNodesSingleLxcSingleStatusStartRequest: + title: CreateNodesSingleLxcSingleStatusStartRequest + type: object + properties: + debug: + type: boolean + skiplock: + type: boolean + CreateNodesSingleLxcSingleStatusStopRequest: + title: CreateNodesSingleLxcSingleStatusStopRequest + type: object + properties: + overrule-shutdown: + type: boolean + skiplock: + type: boolean + CreateNodesSingleLxcSingleStatusShutdownRequest: + title: CreateNodesSingleLxcSingleStatusShutdownRequest + type: object + properties: + forceStop: + type: boolean + timeout: + type: integer + CreateNodesSingleLxcSingleStatusSuspendRequest: + title: CreateNodesSingleLxcSingleStatusSuspendRequest + type: object + properties: {} + CreateNodesSingleLxcSingleStatusResumeRequest: + title: CreateNodesSingleLxcSingleStatusResumeRequest + type: object + properties: {} + CreateNodesSingleLxcSingleStatusRebootRequest: + title: CreateNodesSingleLxcSingleStatusRebootRequest + type: object + properties: + timeout: + type: integer + CreateNodesSingleLxcSingleSnapshotRequest: + title: CreateNodesSingleLxcSingleSnapshotRequest + type: object + properties: + description: + type: string + snapname: + type: string + required: + - snapname + CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest: + title: CreateNodesSingleLxcSingleSnapshotSingleRollbackRequest + type: object + properties: + start: + type: boolean + UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest: + title: UpdateNodesSingleLxcSingleSnapshotSingleConfigRequest + type: object + properties: + description: + type: string + CreateNodesSingleLxcSingleFirewallRulesRequest: + title: CreateNodesSingleLxcSingleFirewallRulesRequest + type: object + properties: + action: + type: string + comment: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + pos: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + required: + - action + - type + UpdateNodesSingleLxcSingleFirewallRulesSingleRequest: + title: UpdateNodesSingleLxcSingleFirewallRulesSingleRequest + type: object + properties: + action: + type: string + comment: + type: string + delete: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + moveto: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + CreateNodesSingleLxcSingleFirewallAliasesRequest: + title: CreateNodesSingleLxcSingleFirewallAliasesRequest + type: object + properties: + cidr: + type: string + comment: + type: string + name: + type: string + required: + - cidr + - name + UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest: + title: UpdateNodesSingleLxcSingleFirewallAliasesSingleRequest + type: object + properties: + cidr: + type: string + comment: + type: string + digest: + type: string + rename: + type: string + required: + - cidr + CreateNodesSingleLxcSingleFirewallIpsetRequest: + title: CreateNodesSingleLxcSingleFirewallIpsetRequest + type: object + properties: + comment: + type: string + digest: + type: string + name: + type: string + rename: + type: string + required: + - name + CreateNodesSingleLxcSingleFirewallIpsetSingleRequest: + title: CreateNodesSingleLxcSingleFirewallIpsetSingleRequest + type: object + properties: + cidr: + type: string + comment: + type: string + nomatch: + type: boolean + required: + - cidr + UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest: + title: UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleRequest + type: object + properties: + comment: + type: string + digest: + type: string + nomatch: + type: boolean + UpdateNodesSingleLxcSingleFirewallOptionsRequest: + title: UpdateNodesSingleLxcSingleFirewallOptionsRequest + type: object + properties: + delete: + type: string + dhcp: + type: boolean + digest: + type: string + enable: + type: boolean + ipfilter: + type: boolean + log_level_in: + type: string + log_level_out: + type: string + macfilter: + type: boolean + ndp: + type: boolean + policy_in: + type: string + policy_out: + type: string + radv: + type: boolean + CreateNodesSingleLxcSingleVncproxyRequest: + title: CreateNodesSingleLxcSingleVncproxyRequest + type: object + properties: + height: + type: integer + websocket: + type: boolean + width: + type: integer + CreateNodesSingleLxcSingleTermproxyRequest: + title: CreateNodesSingleLxcSingleTermproxyRequest + type: object + properties: {} + CreateNodesSingleLxcSingleSpiceproxyRequest: + title: CreateNodesSingleLxcSingleSpiceproxyRequest + type: object + properties: + proxy: + type: string + CreateNodesSingleLxcSingleRemotemigrateRequest: + title: CreateNodesSingleLxcSingleRemotemigrateRequest + type: object + properties: + bwlimit: + type: number + delete: + type: boolean + online: + type: boolean + restart: + type: boolean + target-bridge: + type: string + target-endpoint: + type: string + target-storage: + type: string + target-vmid: + type: integer + timeout: + type: integer + required: + - target-bridge + - target-endpoint + - target-storage + CreateNodesSingleLxcSingleMigrateRequest: + title: CreateNodesSingleLxcSingleMigrateRequest + type: object + properties: + bwlimit: + type: number + online: + type: boolean + restart: + type: boolean + target: + type: string + target-storage: + type: string + timeout: + type: integer + required: + - target + CreateNodesSingleLxcSingleTemplateRequest: + title: CreateNodesSingleLxcSingleTemplateRequest + type: object + properties: {} + CreateNodesSingleLxcSingleCloneRequest: + title: CreateNodesSingleLxcSingleCloneRequest + type: object + properties: + bwlimit: + type: number + description: + type: string + full: + type: boolean + hostname: + type: string + newid: + type: integer + pool: + type: string + snapname: + type: string + storage: + type: string + target: + type: string + required: + - newid + UpdateNodesSingleLxcSingleResizeRequest: + title: UpdateNodesSingleLxcSingleResizeRequest + type: object + properties: + digest: + type: string + disk: + type: string + size: + type: string + required: + - disk + - size + CreateNodesSingleLxcSingleMovevolumeRequest: + title: CreateNodesSingleLxcSingleMovevolumeRequest + type: object + properties: + bwlimit: + type: number + delete: + type: boolean + digest: + type: string + storage: + type: string + target-digest: + type: string + target-vmid: + type: integer + target-volume: + type: string + volume: + type: string + required: + - volume + CreateNodesSingleLxcSingleMtunnelRequest: + title: CreateNodesSingleLxcSingleMtunnelRequest + type: object + properties: + bridges: + type: string + storages: + type: string + CreateNodesSingleCephOsdRequest: + title: CreateNodesSingleCephOsdRequest + type: object + properties: + crush-device-class: + type: string + db_dev: + type: string + db_dev_size: + type: number + dev: + type: string + encrypted: + type: boolean + osds-per-device: + type: integer + wal_dev: + type: string + wal_dev_size: + type: number + required: + - dev + CreateNodesSingleCephOsdSingleInRequest: + title: CreateNodesSingleCephOsdSingleInRequest + type: object + properties: {} + CreateNodesSingleCephOsdSingleOutRequest: + title: CreateNodesSingleCephOsdSingleOutRequest + type: object + properties: {} + CreateNodesSingleCephOsdSingleScrubRequest: + title: CreateNodesSingleCephOsdSingleScrubRequest + type: object + properties: + deep: + type: boolean + CreateNodesSingleCephMdsSingleRequest: + title: CreateNodesSingleCephMdsSingleRequest + type: object + properties: + hotstandby: + type: boolean + CreateNodesSingleCephMgrSingleRequest: + title: CreateNodesSingleCephMgrSingleRequest + type: object + properties: {} + CreateNodesSingleCephMonSingleRequest: + title: CreateNodesSingleCephMonSingleRequest + type: object + properties: + mon-address: + type: string + CreateNodesSingleCephFsSingleRequest: + title: CreateNodesSingleCephFsSingleRequest + type: object + properties: + add-storage: + type: boolean + pg_num: + type: integer + CreateNodesSingleCephPoolRequest: + title: CreateNodesSingleCephPoolRequest + type: object + properties: + add_storages: + type: boolean + application: + type: string + crush_rule: + type: string + erasure-coding: + type: string + min_size: + type: integer + name: + type: string + pg_autoscale_mode: + type: string + pg_num: + type: integer + pg_num_min: + type: integer + size: + type: integer + target_size: + type: string + target_size_ratio: + type: number + required: + - name + UpdateNodesSingleCephPoolSingleRequest: + title: UpdateNodesSingleCephPoolSingleRequest + type: object + properties: + application: + type: string + crush_rule: + type: string + min_size: + type: integer + pg_autoscale_mode: + type: string + pg_num: + type: integer + pg_num_min: + type: integer + size: + type: integer + target_size: + type: string + target_size_ratio: + type: number + CreateNodesSingleCephInitRequest: + title: CreateNodesSingleCephInitRequest + type: object + properties: + cluster-network: + type: string + disable_cephx: + type: boolean + min_size: + type: integer + network: + type: string + pg_bits: + type: integer + size: + type: integer + CreateNodesSingleCephStopRequest: + title: CreateNodesSingleCephStopRequest + type: object + properties: + service: + type: string + CreateNodesSingleCephStartRequest: + title: CreateNodesSingleCephStartRequest + type: object + properties: + service: + type: string + CreateNodesSingleCephRestartRequest: + title: CreateNodesSingleCephRestartRequest + type: object + properties: + service: + type: string + CreateNodesSingleVzdumpRequest: + title: CreateNodesSingleVzdumpRequest + type: object + properties: + all: + type: boolean + bwlimit: + type: integer + compress: + type: string + dumpdir: + type: string + exclude: + type: string + exclude-path: + type: array + items: + type: string + fleecing: + type: string + ionice: + type: integer + job-id: + type: string + lockwait: + type: integer + mailnotification: + type: string + mailto: + type: string + maxfiles: + type: integer + mode: + type: string + notes-template: + type: string + notification-mode: + type: string + pbs-change-detection-mode: + type: string + performance: + type: string + pigz: + type: integer + pool: + type: string + protected: + type: boolean + prune-backups: + type: string + quiet: + type: boolean + remove: + type: boolean + script: + type: string + stdexcludes: + type: boolean + stdout: + type: boolean + stop: + type: boolean + stopwait: + type: integer + storage: + type: string + tmpdir: + type: string + vmid: + type: string + zstd: + type: integer + CreateNodesSingleServicesSingleStartRequest: + title: CreateNodesSingleServicesSingleStartRequest + type: object + properties: {} + CreateNodesSingleServicesSingleStopRequest: + title: CreateNodesSingleServicesSingleStopRequest + type: object + properties: {} + CreateNodesSingleServicesSingleRestartRequest: + title: CreateNodesSingleServicesSingleRestartRequest + type: object + properties: {} + CreateNodesSingleServicesSingleReloadRequest: + title: CreateNodesSingleServicesSingleReloadRequest + type: object + properties: {} + CreateNodesSingleSubscriptionRequest: + title: CreateNodesSingleSubscriptionRequest + type: object + properties: + force: + type: boolean + UpdateNodesSingleSubscriptionRequest: + title: UpdateNodesSingleSubscriptionRequest + type: object + properties: + key: + type: string + required: + - key + CreateNodesSingleNetworkRequest: + title: CreateNodesSingleNetworkRequest + type: object + properties: + address: + type: string + address6: + type: string + autostart: + type: boolean + bond-primary: + type: string + bond_mode: + type: string + bond_xmit_hash_policy: + type: string + bridge_ports: + type: string + bridge_vids: + type: string + bridge_vlan_aware: + type: boolean + cidr: + type: string + cidr6: + type: string + comments: + type: string + comments6: + type: string + gateway: + type: string + gateway6: + type: string + iface: + type: string + mtu: + type: integer + netmask: + type: string + netmask6: + type: integer + ovs_bonds: + type: string + ovs_bridge: + type: string + ovs_options: + type: string + ovs_ports: + type: string + ovs_tag: + type: integer + slaves: + type: string + type: + type: string + vlan-id: + type: integer + vlan-raw-device: + type: string + required: + - iface + - type + UpdateNodesSingleNetworkRequest: + title: UpdateNodesSingleNetworkRequest + type: object + properties: + regenerate-frr: + type: boolean + UpdateNodesSingleNetworkSingleRequest: + title: UpdateNodesSingleNetworkSingleRequest + type: object + properties: + address: + type: string + address6: + type: string + autostart: + type: boolean + bond-primary: + type: string + bond_mode: + type: string + bond_xmit_hash_policy: + type: string + bridge_ports: + type: string + bridge_vids: + type: string + bridge_vlan_aware: + type: boolean + cidr: + type: string + cidr6: + type: string + comments: + type: string + comments6: + type: string + delete: + type: string + gateway: + type: string + gateway6: + type: string + mtu: + type: integer + netmask: + type: string + netmask6: + type: integer + ovs_bonds: + type: string + ovs_bridge: + type: string + ovs_options: + type: string + ovs_ports: + type: string + ovs_tag: + type: integer + slaves: + type: string + type: + type: string + vlan-id: + type: integer + vlan-raw-device: + type: string + required: + - type + CreateNodesSingleStorageSingleContentRequest: + title: CreateNodesSingleStorageSingleContentRequest + type: object + properties: + filename: + type: string + format: + type: string + size: + type: string + vmid: + type: integer + required: + - filename + - size + - vmid + CreateNodesSingleStorageSingleContentSingleRequest: + title: CreateNodesSingleStorageSingleContentSingleRequest + type: object + properties: + target: + type: string + target_node: + type: string + required: + - target + UpdateNodesSingleStorageSingleContentSingleRequest: + title: UpdateNodesSingleStorageSingleContentSingleRequest + type: object + properties: + notes: + type: string + protected: + type: boolean + CreateNodesSingleStorageSingleUploadRequest: + title: CreateNodesSingleStorageSingleUploadRequest + type: object + properties: + checksum: + type: string + checksum-algorithm: + type: string + content: + type: string + filename: + type: string + tmpfilename: + type: string + required: + - content + - filename + CreateNodesSingleStorageSingleDownloadurlRequest: + title: CreateNodesSingleStorageSingleDownloadurlRequest + type: object + properties: + checksum: + type: string + checksum-algorithm: + type: string + compression: + type: string + content: + type: string + filename: + type: string + url: + type: string + verify-certificates: + type: boolean + required: + - content + - filename + - url + CreateNodesSingleStorageSingleOciregistrypullRequest: + title: CreateNodesSingleStorageSingleOciregistrypullRequest + type: object + properties: + filename: + type: string + reference: + type: string + required: + - reference + CreateNodesSingleDisksLvmRequest: + title: CreateNodesSingleDisksLvmRequest + type: object + properties: + add_storage: + type: boolean + device: + type: string + name: + type: string + required: + - device + - name + CreateNodesSingleDisksLvmthinRequest: + title: CreateNodesSingleDisksLvmthinRequest + type: object + properties: + add_storage: + type: boolean + device: + type: string + name: + type: string + required: + - device + - name + CreateNodesSingleDisksDirectoryRequest: + title: CreateNodesSingleDisksDirectoryRequest + type: object + properties: + add_storage: + type: boolean + device: + type: string + filesystem: + type: string + name: + type: string + required: + - device + - name + CreateNodesSingleDisksZfsRequest: + title: CreateNodesSingleDisksZfsRequest + type: object + properties: + add_storage: + type: boolean + ashift: + type: integer + compression: + type: string + devices: + type: string + draid-config: + type: string + name: + type: string + raidlevel: + type: string + required: + - devices + - name + - raidlevel + CreateNodesSingleDisksInitgptRequest: + title: CreateNodesSingleDisksInitgptRequest + type: object + properties: + disk: + type: string + uuid: + type: string + required: + - disk + UpdateNodesSingleDisksWipediskRequest: + title: UpdateNodesSingleDisksWipediskRequest + type: object + properties: + disk: + type: string + required: + - disk + CreateNodesSingleAptUpdateRequest: + title: CreateNodesSingleAptUpdateRequest + type: object + properties: + notify: + type: boolean + quiet: + type: boolean + CreateNodesSingleAptRepositoriesRequest: + title: CreateNodesSingleAptRepositoriesRequest + type: object + properties: + digest: + type: string + enabled: + type: boolean + index: + type: integer + path: + type: string + required: + - index + - path + UpdateNodesSingleAptRepositoriesRequest: + title: UpdateNodesSingleAptRepositoriesRequest + type: object + properties: + digest: + type: string + handle: + type: string + required: + - handle + CreateNodeFirewallRuleRequest: + title: CreateNodeFirewallRuleRequest + type: object + properties: + action: + type: string + comment: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + pos: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + required: + - action + - type + UpdateNodeFirewallRuleRequest: + title: UpdateNodeFirewallRuleRequest + type: object + properties: + action: + type: string + comment: + type: string + delete: + type: string + dest: + type: string + digest: + type: string + dport: + type: string + enable: + type: integer + icmp-type: + type: string + iface: + type: string + log: + type: string + macro: + type: string + moveto: + type: integer + proto: + type: string + source: + type: string + sport: + type: string + type: + type: string + UpdateNodeFirewallOptionsRequest: + title: UpdateNodeFirewallOptionsRequest + type: object + properties: + delete: + type: string + digest: + type: string + enable: + type: boolean + log_level_forward: + type: string + log_level_in: + type: string + log_level_out: + type: string + log_nf_conntrack: + type: boolean + ndp: + type: boolean + nf_conntrack_allow_invalid: + type: boolean + nf_conntrack_helpers: + type: string + nf_conntrack_max: + type: integer + nf_conntrack_tcp_timeout_established: + type: integer + nf_conntrack_tcp_timeout_syn_recv: + type: integer + nftables: + type: boolean + nosmurfs: + type: boolean + protection_synflood: + type: boolean + protection_synflood_burst: + type: integer + protection_synflood_rate: + type: integer + smurf_log_level: + type: string + tcp_flags_log_level: + type: string + tcpflags: + type: boolean + CreateNodesSingleReplicationSingleSchedulenowRequest: + title: CreateNodesSingleReplicationSingleSchedulenowRequest + type: object + properties: {} + CreateNodesSingleCertificatesAcmeCertificateRequest: + title: CreateNodesSingleCertificatesAcmeCertificateRequest + type: object + properties: + force: + type: boolean + UpdateNodesSingleCertificatesAcmeCertificateRequest: + title: UpdateNodesSingleCertificatesAcmeCertificateRequest + type: object + properties: + force: + type: boolean + CreateNodesSingleCertificatesCustomRequest: + title: CreateNodesSingleCertificatesCustomRequest + type: object + properties: + certificates: + type: string + force: + type: boolean + key: + type: string + restart: + type: boolean + required: + - certificates + UpdateNodesSingleConfigRequest: + title: UpdateNodesSingleConfigRequest + type: object + properties: + acme: + type: string + acmedomain0: + type: string + acmedomain1: + type: string + acmedomain2: + type: string + acmedomain3: + type: string + acmedomain4: + type: string + acmedomain5: + type: string + acmedomain6: + type: string + acmedomain7: + type: string + acmedomain8: + type: string + acmedomain9: + type: string + acmedomain10: + type: string + acmedomain11: + type: string + acmedomain12: + type: string + acmedomain13: + type: string + acmedomain14: + type: string + acmedomain15: + type: string + acmedomain16: + type: string + acmedomain17: + type: string + acmedomain18: + type: string + acmedomain19: + type: string + acmedomain20: + type: string + acmedomain21: + type: string + acmedomain22: + type: string + acmedomain23: + type: string + acmedomain24: + type: string + acmedomain25: + type: string + acmedomain26: + type: string + acmedomain27: + type: string + acmedomain28: + type: string + acmedomain29: + type: string + ballooning-target: + type: integer + delete: + type: string + description: + type: string + digest: + type: string + startall-onboot-delay: + type: integer + wakeonlan: + type: string + CreateNodesSingleStatusRequest: + title: CreateNodesSingleStatusRequest + type: object + properties: + command: + type: string + required: + - command + CreateNodesSingleExecuteRequest: + title: CreateNodesSingleExecuteRequest + type: object + properties: + commands: + type: string + required: + - commands + CreateNodesSingleWakeonlanRequest: + title: CreateNodesSingleWakeonlanRequest + type: object + properties: {} + CreateNodesSingleVncshellRequest: + title: CreateNodesSingleVncshellRequest + type: object + properties: + cmd: + type: string + cmd-opts: + type: string + height: + type: integer + websocket: + type: boolean + width: + type: integer + CreateNodesSingleTermproxyRequest: + title: CreateNodesSingleTermproxyRequest + type: object + properties: + cmd: + type: string + cmd-opts: + type: string + CreateNodesSingleSpiceshellRequest: + title: CreateNodesSingleSpiceshellRequest + type: object + properties: + cmd: + type: string + cmd-opts: + type: string + proxy: + type: string + UpdateNodesSingleDnsRequest: + title: UpdateNodesSingleDnsRequest + type: object + properties: + dns1: + type: string + dns2: + type: string + dns3: + type: string + search: + type: string + required: + - search + UpdateNodesSingleTimeRequest: + title: UpdateNodesSingleTimeRequest + type: object + properties: + timezone: + type: string + required: + - timezone + CreateNodesSingleAplinfoRequest: + title: CreateNodesSingleAplinfoRequest + type: object + properties: + storage: + type: string + template: + type: string + required: + - storage + - template + CreateNodesSingleStartallRequest: + title: CreateNodesSingleStartallRequest + type: object + properties: + force: + type: boolean + vms: + type: string + CreateNodesSingleStopallRequest: + title: CreateNodesSingleStopallRequest + type: object + properties: + force-stop: + type: boolean + timeout: + type: integer + vms: + type: string + CreateNodesSingleSuspendallRequest: + title: CreateNodesSingleSuspendallRequest + type: object + properties: + vms: + type: string + CreateNodesSingleMigrateallRequest: + title: CreateNodesSingleMigrateallRequest + type: object + properties: + maxworkers: + type: integer + target: + type: string + vms: + type: string + with-local-disks: + type: boolean + required: + - target + CreateNodesSingleHostsRequest: + title: CreateNodesSingleHostsRequest + type: object + properties: + data: + type: string + digest: + type: string + required: + - data + CreateStorageRequest: + title: CreateStorageRequest + type: object + properties: + authsupported: + type: string + base: + type: string + blocksize: + type: string + bwlimit: + type: string + comstar_hg: + type: string + comstar_tg: + type: string + content: + type: string + content-dirs: + type: string + create-base-path: + type: boolean + create-subdirs: + type: boolean + data-pool: + type: string + datastore: + type: string + disable: + type: boolean + domain: + type: string + encryption-key: + type: string + export: + type: string + fingerprint: + type: string + format: + type: string + fs-name: + type: string + fuse: + type: boolean + is_mountpoint: + type: string + iscsiprovider: + type: string + keyring: + type: string + krbd: + type: boolean + lio_tpg: + type: string + master-pubkey: + type: string + max-protected-backups: + type: integer + mkdir: + type: boolean + monhost: + type: string + mountpoint: + type: string + namespace: + type: string + nocow: + type: boolean + nodes: + type: string + nowritecache: + type: boolean + options: + type: string + password: + type: string + path: + type: string + pool: + type: string + port: + type: integer + portal: + type: string + preallocation: + type: string + prune-backups: + type: string + saferemove: + type: boolean + saferemove-stepsize: + type: integer + saferemove_throughput: + type: string + server: + type: string + share: + type: string + shared: + type: boolean + skip-cert-verification: + type: boolean + smbversion: + type: string + snapshot-as-volume-chain: + type: boolean + sparse: + type: boolean + storage: + type: string + subdir: + type: string + tagged_only: + type: boolean + target: + type: string + thinpool: + type: string + type: + type: string + username: + type: string + vgname: + type: string + zfs-base-path: + type: string + required: + - storage + - type + UpdateStorageSingleRequest: + title: UpdateStorageSingleRequest + type: object + properties: + blocksize: + type: string + bwlimit: + type: string + comstar_hg: + type: string + comstar_tg: + type: string + content: + type: string + content-dirs: + type: string + create-base-path: + type: boolean + create-subdirs: + type: boolean + data-pool: + type: string + delete: + type: string + digest: + type: string + disable: + type: boolean + domain: + type: string + encryption-key: + type: string + fingerprint: + type: string + format: + type: string + fs-name: + type: string + fuse: + type: boolean + is_mountpoint: + type: string + keyring: + type: string + krbd: + type: boolean + lio_tpg: + type: string + master-pubkey: + type: string + max-protected-backups: + type: integer + mkdir: + type: boolean + monhost: + type: string + mountpoint: + type: string + namespace: + type: string + nocow: + type: boolean + nodes: + type: string + nowritecache: + type: boolean + options: + type: string + password: + type: string + pool: + type: string + port: + type: integer + preallocation: + type: string + prune-backups: + type: string + saferemove: + type: boolean + saferemove-stepsize: + type: integer + saferemove_throughput: + type: string + server: + type: string + shared: + type: boolean + skip-cert-verification: + type: boolean + smbversion: + type: string + snapshot-as-volume-chain: + type: boolean + sparse: + type: boolean + subdir: + type: string + tagged_only: + type: boolean + username: + type: string + zfs-base-path: + type: string + CreateAccessUsersRequest: + title: CreateAccessUsersRequest + type: object + properties: + comment: + type: string + email: + type: string + enable: + type: boolean + expire: + type: integer + firstname: + type: string + groups: + type: string + keys: + type: string + lastname: + type: string + password: + type: string + userid: + type: string + required: + - userid + UpdateAccessUsersSingleRequest: + title: UpdateAccessUsersSingleRequest + type: object + properties: + append: + type: boolean + comment: + type: string + email: + type: string + enable: + type: boolean + expire: + type: integer + firstname: + type: string + groups: + type: string + keys: + type: string + lastname: + type: string + UpdateAccessUsersSingleUnlocktfaRequest: + title: UpdateAccessUsersSingleUnlocktfaRequest + type: object + properties: {} + CreateAccessUsersSingleTokenSingleRequest: + title: CreateAccessUsersSingleTokenSingleRequest + type: object + properties: + comment: + type: string + expire: + type: integer + privsep: + type: boolean + UpdateAccessUsersSingleTokenSingleRequest: + title: UpdateAccessUsersSingleTokenSingleRequest + type: object + properties: + comment: + type: string + delete: + type: string + expire: + type: integer + privsep: + type: boolean + CreateAccessGroupsRequest: + title: CreateAccessGroupsRequest + type: object + properties: + comment: + type: string + groupid: + type: string + required: + - groupid + UpdateAccessGroupsSingleRequest: + title: UpdateAccessGroupsSingleRequest + type: object + properties: + comment: + type: string + CreateAccessRolesRequest: + title: CreateAccessRolesRequest + type: object + properties: + privs: + type: string + roleid: + type: string + required: + - roleid + UpdateAccessRolesSingleRequest: + title: UpdateAccessRolesSingleRequest + type: object + properties: + append: + type: boolean + privs: + type: string + UpdateAccessAclRequest: + title: UpdateAccessAclRequest + type: object + properties: + delete: + type: boolean + groups: + type: string + path: + type: string + propagate: + type: boolean + roles: + type: string + tokens: + type: string + users: + type: string + required: + - path + - roles + CreateAccessDomainsRequest: + title: CreateAccessDomainsRequest + type: object + properties: + acr-values: + type: string + autocreate: + type: boolean + base_dn: + type: string + bind_dn: + type: string + capath: + type: string + case-sensitive: + type: boolean + cert: + type: string + certkey: + type: string + check-connection: + type: boolean + client-id: + type: string + client-key: + type: string + comment: + type: string + default: + type: boolean + domain: + type: string + filter: + type: string + group_classes: + type: string + group_dn: + type: string + group_filter: + type: string + group_name_attr: + type: string + groups-autocreate: + type: boolean + groups-claim: + type: string + groups-overwrite: + type: boolean + issuer-url: + type: string + mode: + type: string + password: + type: string + port: + type: integer + prompt: + type: string + query-userinfo: + type: boolean + realm: + type: string + scopes: + type: string + secure: + type: boolean + server1: + type: string + server2: + type: string + sslversion: + type: string + sync-defaults-options: + type: string + sync_attributes: + type: string + tfa: + type: string + type: + type: string + user_attr: + type: string + user_classes: + type: string + username-claim: + type: string + verify: + type: boolean + required: + - realm + - type + UpdateAccessDomainsSingleRequest: + title: UpdateAccessDomainsSingleRequest + type: object + properties: + acr-values: + type: string + autocreate: + type: boolean + base_dn: + type: string + bind_dn: + type: string + capath: + type: string + case-sensitive: + type: boolean + cert: + type: string + certkey: + type: string + check-connection: + type: boolean + client-id: + type: string + client-key: + type: string + comment: + type: string + default: + type: boolean + delete: + type: string + digest: + type: string + domain: + type: string + filter: + type: string + group_classes: + type: string + group_dn: + type: string + group_filter: + type: string + group_name_attr: + type: string + groups-autocreate: + type: boolean + groups-claim: + type: string + groups-overwrite: + type: boolean + issuer-url: + type: string + mode: + type: string + password: + type: string + port: + type: integer + prompt: + type: string + query-userinfo: + type: boolean + scopes: + type: string + secure: + type: boolean + server1: + type: string + server2: + type: string + sslversion: + type: string + sync-defaults-options: + type: string + sync_attributes: + type: string + tfa: + type: string + user_attr: + type: string + user_classes: + type: string + verify: + type: boolean + CreateAccessDomainsSingleSyncRequest: + title: CreateAccessDomainsSingleSyncRequest + type: object + properties: + dry-run: + type: boolean + enable-new: + type: boolean + full: + type: boolean + purge: + type: boolean + remove-vanished: + type: string + scope: + type: string + required: + - enable-new + - full + - purge + - remove-vanished + - scope + CreateAccessOpenidAuthurlRequest: + title: CreateAccessOpenidAuthurlRequest + type: object + properties: + realm: + type: string + redirect-url: + type: string + required: + - realm + - redirect-url + CreateAccessOpenidLoginRequest: + title: CreateAccessOpenidLoginRequest + type: object + properties: + code: + type: string + redirect-url: + type: string + state: + type: string + required: + - code + - redirect-url + - state + CreateAccessTfaSingleRequest: + title: CreateAccessTfaSingleRequest + type: object + properties: + challenge: + type: string + description: + type: string + password: + type: string + totp: + type: string + type: + type: string + value: + type: string + required: + - type + UpdateAccessTfaSingleSingleRequest: + title: UpdateAccessTfaSingleSingleRequest + type: object + properties: + description: + type: string + enable: + type: boolean + password: + type: string + CreateAccessTicketRequest: + title: CreateAccessTicketRequest + type: object + properties: + new-format: + type: boolean + otp: + type: string + password: + type: string + path: + type: string + privs: + type: string + realm: + type: string + tfa-challenge: + type: string + username: + type: string + required: + - password + - username + CreateAccessVncticketRequest: + title: CreateAccessVncticketRequest + type: object + properties: + authid: + type: string + path: + type: string + privs: + type: string + vncticket: + type: string + required: + - authid + - path + - privs + - vncticket + UpdateAccessPasswordRequest: + title: UpdateAccessPasswordRequest + type: object + properties: + confirmation-password: + type: string + password: + type: string + userid: + type: string + required: + - password + - userid + CreatePoolRequest: + title: CreatePoolRequest + type: object + properties: + comment: + type: string + poolid: + type: string + required: + - poolid + UpdatePoolsRequest: + title: UpdatePoolsRequest + type: object + properties: + allow-move: + type: boolean + comment: + type: string + delete: + type: boolean + poolid: + type: string + storage: + type: string + vms: + type: string + required: + - poolid + UpdatePoolRequest: + title: UpdatePoolRequest + type: object + properties: + allow-move: + type: boolean + comment: + type: string + delete: + type: boolean + storage: + type: string + vms: + type: string + responses: + GetClusterResponse: + description: GetClusterResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterReplicationResponse: + description: GetClusterReplicationResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: Description. + disable: + type: int64 + description: Flag to disable/deactivate the entry. + guest: + type: int64 + description: Guest ID. + id: + type: string + description: >- + Replication Job ID. The ID is composed of a Guest ID and + a job number, separated by a hyphen, i.e. + '-'. + jobnum: + type: int64 + description: "Unique, sequential ID assigned to each job." + rate: + type: number + description: >- + Rate limit in mbps (megabytes per second) as floating + point number. + remove_job: + type: string + description: >- + Mark the replication job for removal. The job will + remove all local replication snapshots. When set to + 'full', it also tries to remove replicated volumes on + the target. The job then removes itself from the + configuration file. + schedule: + type: string + description: >- + Storage replication schedule. The format is a subset of + `systemd` calendar events. + source: + type: string + description: "For internal use, to detect if the guest was stolen." + target: + type: string + description: Target node. + type: + type: string + description: Section type. + CreateClusterReplicationResponse: + description: CreateClusterReplicationResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterReplicationSingleResponse: + description: DeleteClusterReplicationSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterReplicationSingleResponse: + description: GetClusterReplicationSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + comment: + type: string + description: Description. + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + disable: + type: int64 + description: Flag to disable/deactivate the entry. + guest: + type: int64 + description: Guest ID. + id: + type: string + description: >- + Replication Job ID. The ID is composed of a Guest ID and a + job number, separated by a hyphen, i.e. + '-'. + jobnum: + type: int64 + description: "Unique, sequential ID assigned to each job." + rate: + type: number + description: >- + Rate limit in mbps (megabytes per second) as floating + point number. + remove_job: + type: string + description: >- + Mark the replication job for removal. The job will remove + all local replication snapshots. When set to 'full', it + also tries to remove replicated volumes on the target. The + job then removes itself from the configuration file. + schedule: + type: string + description: >- + Storage replication schedule. The format is a subset of + `systemd` calendar events. + source: + type: string + description: "For internal use, to detect if the guest was stolen." + target: + type: string + description: Target node. + type: + type: string + description: Section type. + UpdateClusterReplicationSingleResponse: + description: UpdateClusterReplicationSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterMetricsResponse: + description: GetClusterMetricsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterMetricsServerResponse: + description: GetClusterMetricsServerResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + disable: + type: int64 + description: Flag to disable the plugin. + id: + type: string + description: The ID of the entry. + port: + type: int64 + description: Server network port + server: + type: string + description: Server dns name or IP address + type: + type: string + description: Plugin type. + DeleteClusterMetricsServerSingleResponse: + description: DeleteClusterMetricsServerSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterMetricsServerSingleResponse: + description: GetClusterMetricsServerSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + CreateClusterMetricsServerSingleResponse: + description: CreateClusterMetricsServerSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateClusterMetricsServerSingleResponse: + description: UpdateClusterMetricsServerSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterMetricsExportResponse: + description: GetClusterMetricsExportResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + data: + type: array + description: >- + Array of system metrics. Metrics are sorted by their + timestamp. + items: + type: object + description: "" + properties: + id: + type: string + description: >- + Unique identifier for this metric object, for + instance 'node/' or 'qemu/'. + metric: + type: string + description: Name of the metric. + timestamp: + type: int64 + description: Time at which this metric was observed + type: + type: string + description: Type of the metric. + value: + type: number + description: Metric value. + GetClusterNotificationsResponse: + description: GetClusterNotificationsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterNotificationsMatcherfieldsResponse: + description: GetClusterNotificationsMatcherfieldsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + name: + type: string + description: Name of the field. + GetClusterNotificationsMatcherfieldvaluesResponse: + description: GetClusterNotificationsMatcherfieldvaluesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: Additional comment for this value. + field: + type: string + description: Field this value belongs to. + value: + type: string + description: Notification metadata value known by the system. + GetClusterNotificationsEndpointsResponse: + description: GetClusterNotificationsEndpointsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterNotificationsEndpointsSendmailResponse: + description: GetClusterNotificationsEndpointsSendmailResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + author: + type: string + description: Author of the mail + comment: + type: string + description: Comment + disable: + type: int64 + description: Disable this target + from-address: + type: string + description: "`From` address for the mail" + mailto: + type: array + description: List of email recipients + items: + type: string + description: "" + mailto-user: + type: array + description: List of users + items: + type: string + description: "" + name: + type: string + description: The name of the endpoint. + origin: + type: string + description: Show if this entry was created by a user or was built-in + CreateClusterNotificationsEndpointsSendmailResponse: + description: CreateClusterNotificationsEndpointsSendmailResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterNotificationsEndpointsSendmailSingleResponse: + description: DeleteClusterNotificationsEndpointsSendmailSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsEndpointsSendmailSingleResponse: + description: GetClusterNotificationsEndpointsSendmailSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + author: + type: string + description: Author of the mail + comment: + type: string + description: Comment + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + disable: + type: int64 + description: Disable this target + from-address: + type: string + description: "`From` address for the mail" + mailto: + type: array + description: List of email recipients + items: + type: string + description: "" + mailto-user: + type: array + description: List of users + items: + type: string + description: "" + name: + type: string + description: The name of the endpoint. + UpdateClusterNotificationsEndpointsSendmailSingleResponse: + description: UpdateClusterNotificationsEndpointsSendmailSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsEndpointsGotifyResponse: + description: GetClusterNotificationsEndpointsGotifyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: Comment + disable: + type: int64 + description: Disable this target + name: + type: string + description: The name of the endpoint. + origin: + type: string + description: Show if this entry was created by a user or was built-in + server: + type: string + description: Server URL + CreateClusterNotificationsEndpointsGotifyResponse: + description: CreateClusterNotificationsEndpointsGotifyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterNotificationsEndpointsGotifySingleResponse: + description: DeleteClusterNotificationsEndpointsGotifySingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsEndpointsGotifySingleResponse: + description: GetClusterNotificationsEndpointsGotifySingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + comment: + type: string + description: Comment + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + disable: + type: int64 + description: Disable this target + name: + type: string + description: The name of the endpoint. + server: + type: string + description: Server URL + UpdateClusterNotificationsEndpointsGotifySingleResponse: + description: UpdateClusterNotificationsEndpointsGotifySingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsEndpointsSmtpResponse: + description: GetClusterNotificationsEndpointsSmtpResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + author: + type: string + description: Author of the mail. Defaults to 'Proxmox VE'. + comment: + type: string + description: Comment + disable: + type: int64 + description: Disable this target + from-address: + type: string + description: "`From` address for the mail" + mailto: + type: array + description: List of email recipients + items: + type: string + description: "" + mailto-user: + type: array + description: List of users + items: + type: string + description: "" + mode: + type: string + description: >- + Determine which encryption method shall be used for the + connection. + name: + type: string + description: The name of the endpoint. + origin: + type: string + description: Show if this entry was created by a user or was built-in + port: + type: int64 + description: >- + The port to be used. Defaults to 465 for TLS based + connections, 587 for STARTTLS based connections and port + 25 for insecure plain-text connections. + server: + type: string + description: The address of the SMTP server. + username: + type: string + description: Username for SMTP authentication + CreateClusterNotificationsEndpointsSmtpResponse: + description: CreateClusterNotificationsEndpointsSmtpResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterNotificationsEndpointsSmtpSingleResponse: + description: DeleteClusterNotificationsEndpointsSmtpSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsEndpointsSmtpSingleResponse: + description: GetClusterNotificationsEndpointsSmtpSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + author: + type: string + description: Author of the mail. Defaults to 'Proxmox VE'. + comment: + type: string + description: Comment + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + disable: + type: int64 + description: Disable this target + from-address: + type: string + description: "`From` address for the mail" + mailto: + type: array + description: List of email recipients + items: + type: string + description: "" + mailto-user: + type: array + description: List of users + items: + type: string + description: "" + mode: + type: string + description: >- + Determine which encryption method shall be used for the + connection. + name: + type: string + description: The name of the endpoint. + port: + type: int64 + description: >- + The port to be used. Defaults to 465 for TLS based + connections, 587 for STARTTLS based connections and port + 25 for insecure plain-text connections. + server: + type: string + description: The address of the SMTP server. + username: + type: string + description: Username for SMTP authentication + UpdateClusterNotificationsEndpointsSmtpSingleResponse: + description: UpdateClusterNotificationsEndpointsSmtpSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsEndpointsWebhookResponse: + description: GetClusterNotificationsEndpointsWebhookResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + body: + type: string + description: "HTTP body, base64 encoded" + comment: + type: string + description: Comment + disable: + type: int64 + description: Disable this target + header: + type: array + description: >- + HTTP headers to set. These have to be formatted as a + property string in the format name=,value= + items: + type: string + description: "" + method: + type: string + description: HTTP method + name: + type: string + description: The name of the endpoint. + origin: + type: string + description: Show if this entry was created by a user or was built-in + secret: + type: array + description: >- + Secrets to set. These have to be formatted as a property + string in the format name=,value= + items: + type: string + description: "" + url: + type: string + description: Server URL + CreateClusterNotificationsEndpointsWebhookResponse: + description: CreateClusterNotificationsEndpointsWebhookResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterNotificationsEndpointsWebhookSingleResponse: + description: DeleteClusterNotificationsEndpointsWebhookSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsEndpointsWebhookSingleResponse: + description: GetClusterNotificationsEndpointsWebhookSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + body: + type: string + description: "HTTP body, base64 encoded" + comment: + type: string + description: Comment + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + disable: + type: int64 + description: Disable this target + header: + type: array + description: >- + HTTP headers to set. These have to be formatted as a + property string in the format name=,value= + items: + type: string + description: "" + method: + type: string + description: HTTP method + name: + type: string + description: The name of the endpoint. + secret: + type: array + description: >- + Secrets to set. These have to be formatted as a property + string in the format name=,value= + items: + type: string + description: "" + url: + type: string + description: Server URL + UpdateClusterNotificationsEndpointsWebhookSingleResponse: + description: UpdateClusterNotificationsEndpointsWebhookSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsTargetsResponse: + description: GetClusterNotificationsTargetsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: Comment + disable: + type: int64 + description: Show if this target is disabled + name: + type: string + description: Name of the target. + origin: + type: string + description: Show if this entry was created by a user or was built-in + type: + type: string + description: Type of the target. + CreateClusterNotificationsTargetsSingleTestResponse: + description: CreateClusterNotificationsTargetsSingleTestResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsMatchersResponse: + description: GetClusterNotificationsMatchersResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: Comment + disable: + type: int64 + description: Disable this matcher + invert-match: + type: int64 + description: Invert match of the whole matcher + match-calendar: + type: array + description: Match notification timestamp + items: + type: string + description: "" + match-field: + type: array + description: >- + Metadata fields to match (regex or exact match). Must be + in the form (regex|exact):= + items: + type: string + description: "" + match-severity: + type: array + description: Notification severities to match + items: + type: string + description: "" + mode: + type: string + description: >- + Choose between 'all' and 'any' for when multiple + properties are specified + name: + type: string + description: Name of the matcher. + origin: + type: string + description: Show if this entry was created by a user or was built-in + target: + type: array + description: Targets to notify on match + items: + type: string + description: "" + CreateClusterNotificationsMatchersResponse: + description: CreateClusterNotificationsMatchersResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterNotificationsMatchersSingleResponse: + description: DeleteClusterNotificationsMatchersSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterNotificationsMatchersSingleResponse: + description: GetClusterNotificationsMatchersSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + comment: + type: string + description: Comment + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + disable: + type: int64 + description: Disable this matcher + invert-match: + type: int64 + description: Invert match of the whole matcher + match-calendar: + type: array + description: Match notification timestamp + items: + type: string + description: "" + match-field: + type: array + description: >- + Metadata fields to match (regex or exact match). Must be + in the form (regex|exact):= + items: + type: string + description: "" + match-severity: + type: array + description: Notification severities to match + items: + type: string + description: "" + mode: + type: string + description: >- + Choose between 'all' and 'any' for when multiple + properties are specified + name: + type: string + description: Name of the matcher. + target: + type: array + description: Targets to notify on match + items: + type: string + description: "" + UpdateClusterNotificationsMatchersSingleResponse: + description: UpdateClusterNotificationsMatchersSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterConfigResponse: + description: GetClusterConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateClusterConfigResponse: + description: CreateClusterConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterConfigApiversionResponse: + description: GetClusterConfigApiversionResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: int64 + description: "Cluster Join API version, currently 1" + GetClusterConfigNodesResponse: + description: GetClusterConfigNodesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + node: + type: string + description: "" + DeleteClusterConfigNodesSingleResponse: + description: DeleteClusterConfigNodesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateClusterConfigNodesSingleResponse: + description: CreateClusterConfigNodesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + corosync_authkey: + type: string + description: "" + corosync_conf: + type: string + description: "" + warnings: + type: array + description: "" + items: + type: string + description: "" + GetClusterConfigJoinResponse: + description: GetClusterConfigJoinResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + config_digest: + type: string + description: "" + nodelist: + type: array + description: "" + items: + type: object + description: "" + properties: + name: + type: string + description: The cluster node name. + nodeid: + type: int64 + description: Node id for this node. + pve_addr: + type: string + description: "" + pve_fp: + type: string + description: Certificate SHA 256 fingerprint. + quorum_votes: + type: int64 + description: "" + ring0_addr: + type: string + description: >- + Address and priority information of a single + corosync link. (up to 8 links supported; + link0..link7) + preferred_node: + type: string + description: The cluster node name. + totem: + type: object + description: "" + CreateClusterConfigJoinResponse: + description: CreateClusterConfigJoinResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterConfigTotemResponse: + description: GetClusterConfigTotemResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + GetClusterConfigQdeviceResponse: + description: GetClusterConfigQdeviceResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + GetClusterFirewallResponse: + description: GetClusterFirewallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterFirewallGroupsResponse: + description: GetClusterFirewallGroupsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + group: + type: string + description: Security Group name. + CreateClusterFirewallGroupResponse: + description: CreateClusterFirewallGroupResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterFirewallGroupResponse: + description: DeleteClusterFirewallGroupResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallGroupRulesResponse: + description: GetClusterFirewallGroupRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security + group name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + AddClusterFirewallGroupRuleResponse: + description: AddClusterFirewallGroupRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + RemoveClusterFirewallGroupRuleResponse: + description: RemoveClusterFirewallGroupRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallGroupRuleResponse: + description: GetClusterFirewallGroupRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security group + name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + UpdateClusterFirewallGroupRuleResponse: + description: UpdateClusterFirewallGroupRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallRulesResponse: + description: GetClusterFirewallRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security + group name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + AddClusterFirewallRuleResponse: + description: AddClusterFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + RemoveClusterFirewallRuleResponse: + description: RemoveClusterFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallRuleResponse: + description: GetClusterFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security group + name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + UpdateClusterFirewallRuleResponse: + description: UpdateClusterFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallIPSetsResponse: + description: GetClusterFirewallIPSetsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + name: + type: string + description: IP set name. + CreateClusterFirewallIPSetResponse: + description: CreateClusterFirewallIPSetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterFirewallIPSetResponse: + description: DeleteClusterFirewallIPSetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallIPSetResponse: + description: GetClusterFirewallIPSetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cidr: + type: string + description: "" + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + nomatch: + type: int64 + description: "" + AddClusterFirewallIPSetIPResponse: + description: AddClusterFirewallIPSetIPResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + RemoveClusterFirewallIPSetIPResponse: + description: RemoveClusterFirewallIPSetIPResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallIPSetIPResponse: + description: GetClusterFirewallIPSetIPResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterFirewallIPSetIPResponse: + description: UpdateClusterFirewallIPSetIPResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallAliasesResponse: + description: GetClusterFirewallAliasesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cidr: + type: string + description: "" + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + name: + type: string + description: "" + CreateClusterFirewallAliasesResponse: + description: CreateClusterFirewallAliasesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterFirewallAliasesSingleResponse: + description: DeleteClusterFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallAliasesSingleResponse: + description: GetClusterFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterFirewallAliasesSingleResponse: + description: UpdateClusterFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallOptionsResponse: + description: GetClusterFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + ebtables: + type: int64 + description: Enable ebtables rules cluster wide. + enable: + type: int64 + description: Enable or disable the firewall cluster wide. + log_ratelimit: + type: string + description: Log ratelimiting settings + policy_forward: + type: string + description: Forward policy. + policy_in: + type: string + description: Input policy. + policy_out: + type: string + description: Output policy. + UpdateClusterFirewallOptionsResponse: + description: UpdateClusterFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterFirewallMacrosResponse: + description: GetClusterFirewallMacrosResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + descr: + type: string + description: More verbose description (if available). + macro: + type: string + description: Macro name. + GetClusterFirewallRefsResponse: + description: GetClusterFirewallRefsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + name: + type: string + description: "" + ref: + type: string + description: "" + scope: + type: string + description: "" + type: + type: string + description: "" + GetClusterBackupResponse: + description: GetClusterBackupResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: The job ID. + CreateClusterBackupResponse: + description: CreateClusterBackupResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterBackupSingleResponse: + description: DeleteClusterBackupSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterBackupSingleResponse: + description: GetClusterBackupSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterBackupSingleResponse: + description: UpdateClusterBackupSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterBackupSingleIncludedvolumesResponse: + description: GetClusterBackupSingleIncludedvolumesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: >- + Root node of the tree object. Children represent guests, + grandchildren represent volumes of that guest. + properties: + children: + type: array + description: "" + items: + type: object + description: "" + properties: + children: + type: array + description: >- + The volumes of the guest with the information if + they will be included in backups. + items: + type: object + description: "" + properties: + id: + type: string + description: Configuration key of the volume. + included: + type: int64 + description: >- + Whether the volume is included in the backup + or not. + name: + type: string + description: Name of the volume. + reason: + type: string + description: >- + The reason why the volume is included (or + excluded). + id: + type: int64 + description: VMID of the guest. + name: + type: string + description: Name of the guest + type: + type: string + description: >- + Type of the guest, VM, CT or unknown for removed but + not purged guests. + GetClusterBackupinfoResponse: + description: GetClusterBackupinfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: Directory index. + items: + type: object + description: "" + properties: + subdir: + type: string + description: API sub-directory endpoint + GetClusterBackupinfoNotbackedupResponse: + description: GetClusterBackupinfoNotbackedupResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: Contains the guest objects. + items: + type: object + description: "" + properties: + name: + type: string + description: Name of the guest + type: + type: string + description: Type of the guest. + vmid: + type: int64 + description: VMID of the guest. + GetClusterHaResponse: + description: GetClusterHaResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: "" + GetClusterHaResourcesResponse: + description: GetClusterHaResourcesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + sid: + type: string + description: "" + CreateClusterHaResourcesResponse: + description: CreateClusterHaResourcesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterHaResourcesSingleResponse: + description: DeleteClusterHaResourcesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterHaResourcesSingleResponse: + description: GetClusterHaResourcesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + comment: + type: string + description: Description. + digest: + type: string + description: Can be used to prevent concurrent modifications. + failback: + type: int64 + description: >- + The HA resource is automatically migrated to the node with + the highest priority according to their node affinity + rule, if a node with a higher priority than the current + node comes online. + group: + type: string + description: The HA group identifier. + max_relocate: + type: int64 + description: >- + Maximal number of service relocate tries when a service + failes to start. + max_restart: + type: int64 + description: >- + Maximal number of tries to restart the service on a node + after its start failed. + sid: + type: string + description: >- + HA resource ID. This consists of a resource type followed + by a resource specific name, separated with colon + (example: vm:100 / ct:100). For virtual machines and + containers, you can simply use the VM or CT id as a + shortcut (example: 100). + state: + type: string + description: Requested resource state. + type: + type: string + description: The type of the resources. + UpdateClusterHaResourcesSingleResponse: + description: UpdateClusterHaResourcesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateClusterHaResourcesSingleMigrateResponse: + description: CreateClusterHaResourcesSingleMigrateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + blocking-resources: + type: array + description: >- + HA resources, which are blocking the given HA resource + from being migrated to the requested target node. + items: + type: object + description: A blocking HA resource + properties: + cause: + type: string + description: >- + The reason why the HA resource is blocking the + migration. + sid: + type: string + description: The blocking HA resource id + comigrated-resources: + type: array + description: >- + HA resources, which are migrated to the same requested + target node as the given HA resource, because these are in + positive affinity with the HA resource. + requested-node: + type: string + description: "Node, which was requested to be migrated to." + sid: + type: string + description: "HA resource, which is requested to be migrated." + CreateClusterHaResourcesSingleRelocateResponse: + description: CreateClusterHaResourcesSingleRelocateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + blocking-resources: + type: array + description: >- + HA resources, which are blocking the given HA resource + from being relocated to the requested target node. + items: + type: object + description: A blocking HA resource + properties: + cause: + type: string + description: >- + The reason why the HA resource is blocking the + relocation. + sid: + type: string + description: The blocking HA resource id + comigrated-resources: + type: array + description: >- + HA resources, which are relocated to the same requested + target node as the given HA resource, because these are in + positive affinity with the HA resource. + items: + type: string + description: A comigrated HA resource + requested-node: + type: string + description: "Node, which was requested to be relocated to." + sid: + type: string + description: "HA resource, which is requested to be relocated." + GetClusterHaGroupsResponse: + description: GetClusterHaGroupsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + group: + type: string + description: "" + CreateClusterHaGroupsResponse: + description: CreateClusterHaGroupsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterHaGroupsSingleResponse: + description: DeleteClusterHaGroupsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterHaGroupsSingleResponse: + description: GetClusterHaGroupsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateClusterHaGroupsSingleResponse: + description: UpdateClusterHaGroupsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterHaRulesResponse: + description: GetClusterHaRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + rule: + type: string + description: "" + CreateClusterHaRulesResponse: + description: CreateClusterHaRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterHaRulesSingleResponse: + description: DeleteClusterHaRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterHaRulesSingleResponse: + description: GetClusterHaRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + rule: + type: string + description: HA rule identifier. + type: + type: string + description: HA rule type. + UpdateClusterHaRulesSingleResponse: + description: UpdateClusterHaRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterHaStatusResponse: + description: GetClusterHaStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterHaStatusCurrentResponse: + description: GetClusterHaStatusCurrentResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + crm_state: + type: string + description: For type 'service'. Service state as seen by the CRM. + failback: + type: int64 + description: >- + The HA resource is automatically migrated to the node + with the highest priority according to their node + affinity rule, if a node with a higher priority than the + current node comes online. + id: + type: string + description: >- + Status entry ID (quorum, master, lrm:, + service:). + max_relocate: + type: int64 + description: For type 'service'. + max_restart: + type: int64 + description: For type 'service'. + node: + type: string + description: Node associated to status entry. + quorate: + type: int64 + description: >- + For type 'quorum'. Whether the cluster is quorate or + not. + request_state: + type: string + description: For type 'service'. Requested service state. + sid: + type: string + description: For type 'service'. Service ID. + state: + type: string + description: For type 'service'. Verbose service state. + status: + type: string + description: Status of the entry (value depends on type). + timestamp: + type: int64 + description: >- + For type 'lrm','master'. Timestamp of the status + information. + type: + type: string + description: Type of status entry. + GetClusterHaStatusManagerstatusResponse: + description: GetClusterHaStatusManagerstatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + GetClusterAcmeResponse: + description: GetClusterAcmeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterAcmePluginsResponse: + description: GetClusterAcmePluginsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + api: + type: string + description: API plugin name + data: + type: string + description: DNS plugin data. (base64 encoded) + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + disable: + type: int64 + description: Flag to disable the config. + nodes: + type: string + description: List of cluster node names. + plugin: + type: string + description: Unique identifier for ACME plugin instance. + type: + type: string + description: ACME challenge type. + validation-delay: + type: int64 + description: >- + Extra delay in seconds to wait before requesting + validation. Allows to cope with a long TTL of DNS + records. + CreateClusterAcmePluginsResponse: + description: CreateClusterAcmePluginsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterAcmePluginsSingleResponse: + description: DeleteClusterAcmePluginsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterAcmePluginsSingleResponse: + description: GetClusterAcmePluginsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + api: + type: string + description: API plugin name + data: + type: string + description: DNS plugin data. (base64 encoded) + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + disable: + type: int64 + description: Flag to disable the config. + nodes: + type: string + description: List of cluster node names. + plugin: + type: string + description: Unique identifier for ACME plugin instance. + type: + type: string + description: ACME challenge type. + validation-delay: + type: int64 + description: >- + Extra delay in seconds to wait before requesting + validation. Allows to cope with a long TTL of DNS records. + UpdateClusterAcmePluginsSingleResponse: + description: UpdateClusterAcmePluginsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterAcmeAccountResponse: + description: GetClusterAcmeAccountResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateClusterAcmeAccountResponse: + description: CreateClusterAcmeAccountResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterAcmeAccountSingleResponse: + description: DeleteClusterAcmeAccountSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterAcmeAccountSingleResponse: + description: GetClusterAcmeAccountSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + account: + type: object + description: "" + directory: + type: string + description: URL of ACME CA directory endpoint. + location: + type: string + description: "" + tos: + type: string + description: "" + UpdateClusterAcmeAccountSingleResponse: + description: UpdateClusterAcmeAccountSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterAcmeTosResponse: + description: GetClusterAcmeTosResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: ACME TermsOfService URL. + GetClusterAcmeMetaResponse: + description: GetClusterAcmeMetaResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + caaIdentities: + type: array + description: Hostnames referring to the ACME servers. + items: + type: string + description: "" + externalAccountRequired: + type: int64 + description: EAB Required + termsOfService: + type: string + description: ACME TermsOfService URL. + website: + type: string + description: URL to more information about the ACME server. + GetClusterAcmeDirectoriesResponse: + description: GetClusterAcmeDirectoriesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + name: + type: string + description: "" + url: + type: string + description: URL of ACME CA directory endpoint. + GetClusterAcmeChallengeschemaResponse: + description: GetClusterAcmeChallengeschemaResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: "" + name: + type: string + description: "Human readable name, falls back to id" + schema: + type: object + description: "" + type: + type: string + description: "" + GetClusterCephResponse: + description: GetClusterCephResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterCephMetadataResponse: + description: GetClusterCephMetadataResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: >- + Items for each type of service containing objects for each + instance. + properties: + mds: + type: object + description: >- + Metadata servers configured in the cluster and their + properties. + properties: + "{id}": + type: object + description: "Useful properties are listed, but not the full list." + properties: + addr: + type: string + description: Bind addresses and ports. + ceph_release: + type: string + description: Ceph release codename currently used. + ceph_version: + type: string + description: Version info currently used by the service. + ceph_version_short: + type: string + description: >- + Short version (numerical) info currently used by + the service. + hostname: + type: string + description: Hostname on which the service is running. + mem_swap_kb: + type: int64 + description: Memory of the service currently in swap. + mem_total_kb: + type: int64 + description: Memory consumption of the service. + name: + type: string + description: Name of the service instance. + mgr: + type: object + description: Managers configured in the cluster and their properties. + properties: + "{id}": + type: object + description: "Useful properties are listed, but not the full list." + properties: + addr: + type: string + description: Bind address + ceph_release: + type: string + description: Ceph release codename currently used. + ceph_version: + type: string + description: Version info currently used by the service. + ceph_version_short: + type: string + description: >- + Short version (numerical) info currently used by + the service. + hostname: + type: string + description: Hostname on which the service is running. + mem_swap_kb: + type: int64 + description: Memory of the service currently in swap. + mem_total_kb: + type: int64 + description: Memory consumption of the service. + name: + type: string + description: Name of the service instance. + mon: + type: object + description: Monitors configured in the cluster and their properties. + properties: + "{id}": + type: object + description: "Useful properties are listed, but not the full list." + properties: + addrs: + type: string + description: Bind addresses and ports. + ceph_release: + type: string + description: Ceph release codename currently used. + ceph_version: + type: string + description: Version info currently used by the service. + ceph_version_short: + type: string + description: >- + Short version (numerical) info currently used by + the service. + hostname: + type: string + description: Hostname on which the service is running. + mem_swap_kb: + type: int64 + description: Memory of the service currently in swap. + mem_total_kb: + type: int64 + description: Memory consumption of the service. + name: + type: string + description: Name of the service instance. + node: + type: object + description: Ceph version installed on the nodes. + properties: + "{node}": + type: object + description: "" + properties: + buildcommit: + type: string + description: GIT commit used for the build. + version: + type: object + description: Version info. + properties: + parts: + type: array + description: "major, minor & patch" + str: + type: string + description: Version as single string. + osd: + type: array + description: OSDs configured in the cluster and their properties. + GetClusterCephStatusResponse: + description: GetClusterCephStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + GetClusterCephFlagsResponse: + description: GetClusterCephFlagsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + description: + type: string + description: Flag description. + name: + type: string + description: Flag name. + value: + type: int64 + description: Flag value. + UpdateClusterCephFlagsResponse: + description: UpdateClusterCephFlagsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterCephFlagsSingleResponse: + description: GetClusterCephFlagsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: int64 + description: "" + UpdateClusterCephFlagsSingleResponse: + description: UpdateClusterCephFlagsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterJobsResponse: + description: GetClusterJobsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: Directory index. + items: + type: object + description: "" + properties: + subdir: + type: string + description: API sub-directory endpoint + GetClusterJobsRealmsyncResponse: + description: GetClusterJobsRealmsyncResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: A comment for the job. + enabled: + type: int64 + description: If the job is enabled or not. + id: + type: string + description: The ID of the entry. + last-run: + type: int64 + description: >- + Last execution time of the job in seconds since the + beginning of the UNIX epoch + next-run: + type: int64 + description: >- + Next planned execution time of the job in seconds since + the beginning of the UNIX epoch. + realm: + type: string + description: Authentication domain ID + remove-vanished: + type: string + description: >- + A semicolon-separated list of things to remove when they + or the user vanishes during a sync. The following values + are possible: 'entry' removes the user/group when not + returned from the sync. 'properties' removes the set + properties on existing user/group that do not appear in + the source (even custom ones). 'acl' removes acls when + the user/group is not returned from the sync. Instead of + a list it also can be 'none' (the default). + schedule: + type: string + description: The configured sync schedule. + scope: + type: string + description: Select what to sync. + DeleteClusterJobsRealmsyncSingleResponse: + description: DeleteClusterJobsRealmsyncSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterJobsRealmsyncSingleResponse: + description: GetClusterJobsRealmsyncSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + CreateClusterJobsRealmsyncSingleResponse: + description: CreateClusterJobsRealmsyncSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateClusterJobsRealmsyncSingleResponse: + description: UpdateClusterJobsRealmsyncSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterJobsScheduleanalyzeResponse: + description: GetClusterJobsScheduleanalyzeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: An array of the next events since . + items: + type: object + description: "" + properties: + timestamp: + type: int64 + description: UNIX timestamp for the run. + utc: + type: string + description: UTC timestamp for the run. + GetClusterMappingResponse: + description: GetClusterMappingResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + GetClusterMappingDirResponse: + description: GetClusterMappingDirResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + checks: + type: array + description: "A list of checks, only present if 'check-node' is set." + items: + type: object + description: "" + properties: + message: + type: string + description: The message of the error + severity: + type: string + description: The severity of the error + description: + type: string + description: A description of the logical mapping. + id: + type: string + description: The logical ID of the mapping. + map: + type: array + description: The entries of the mapping. + items: + type: string + description: A mapping for a node. + CreateClusterMappingDirResponse: + description: CreateClusterMappingDirResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterMappingDirSingleResponse: + description: DeleteClusterMappingDirSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterMappingDirSingleResponse: + description: GetClusterMappingDirSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterMappingDirSingleResponse: + description: UpdateClusterMappingDirSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterMappingPciResponse: + description: GetClusterMappingPciResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + checks: + type: array + description: "A list of checks, only present if 'check_node' is set." + items: + type: object + description: "" + properties: + message: + type: string + description: The message of the error + severity: + type: string + description: The severity of the error + description: + type: string + description: A description of the logical mapping. + id: + type: string + description: The logical ID of the mapping. + map: + type: array + description: The entries of the mapping. + items: + type: string + description: A mapping for a node. + CreateClusterMappingPciResponse: + description: CreateClusterMappingPciResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterMappingPciSingleResponse: + description: DeleteClusterMappingPciSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterMappingPciSingleResponse: + description: GetClusterMappingPciSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterMappingPciSingleResponse: + description: UpdateClusterMappingPciSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterMappingUsbResponse: + description: GetClusterMappingUsbResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + description: + type: string + description: A description of the logical mapping. + error: + type: string + description: A list of errors when 'check_node' is given. + id: + type: string + description: The logical ID of the mapping. + map: + type: array + description: The entries of the mapping. + items: + type: string + description: A mapping for a node. + CreateClusterMappingUsbResponse: + description: CreateClusterMappingUsbResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterMappingUsbSingleResponse: + description: DeleteClusterMappingUsbSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterMappingUsbSingleResponse: + description: GetClusterMappingUsbSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterMappingUsbSingleResponse: + description: UpdateClusterMappingUsbSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterBulkactionResponse: + description: GetClusterBulkactionResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + GetClusterBulkactionGuestResponse: + description: GetClusterBulkactionGuestResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateClusterBulkactionGuestStartResponse: + description: CreateClusterBulkactionGuestStartResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: UPID of the worker + CreateClusterBulkactionGuestShutdownResponse: + description: CreateClusterBulkactionGuestShutdownResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: UPID of the worker + CreateClusterBulkactionGuestSuspendResponse: + description: CreateClusterBulkactionGuestSuspendResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: UPID of the worker + CreateClusterBulkactionGuestMigrateResponse: + description: CreateClusterBulkactionGuestMigrateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: UPID of the worker + GetClusterSDNResponse: + description: GetClusterSDNResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: "" + UpdateClusterSDNResponse: + description: UpdateClusterSDNResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSDNVnetsResponse: + description: GetClusterSDNVnetsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + alias: + type: string + description: Alias name of the VNet. + digest: + type: string + description: Digest of the VNet section. + isolate-ports: + type: int64 + description: >- + If true, sets the isolated property for all interfaces + on the bridge of this VNet. + pending: + type: object + description: >- + Changes that have not yet been applied to the running + configuration. + properties: + alias: + type: string + description: Alias name of the VNet. + isolate-ports: + type: int64 + description: >- + If true, sets the isolated property for all + interfaces on the bridge of this VNet. + tag: + type: int64 + description: >- + VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for + VXLAN or EVPN zones). + vlanaware: + type: int64 + description: Allow VLANs to pass through this VNet. + zone: + type: string + description: Name of the zone this VNet belongs to. + state: + type: string + description: State of the SDN configuration object. + tag: + type: int64 + description: >- + VLAN Tag (for VLAN or QinQ zones) or VXLAN VNI (for + VXLAN or EVPN zones). + type: + type: string + description: Type of the VNet. + vlanaware: + type: int64 + description: Allow VLANs to pass through this VNet. + vnet: + type: string + description: Name of the VNet. + zone: + type: string + description: Name of the zone this VNet belongs to. + CreateClusterSDNVnetResponse: + description: CreateClusterSDNVnetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSDNVnetResponse: + description: DeleteClusterSDNVnetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSDNVnetResponse: + description: GetClusterSDNVnetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateClusterSDNVnetResponse: + description: UpdateClusterSDNVnetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnVnetsSingleFirewallResponse: + description: GetClusterSdnVnetsSingleFirewallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterSdnVnetsSingleFirewallRulesResponse: + description: GetClusterSdnVnetsSingleFirewallRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security + group name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + CreateClusterSdnVnetsSingleFirewallRulesResponse: + description: CreateClusterSdnVnetsSingleFirewallRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSdnVnetsSingleFirewallRulesSingleResponse: + description: DeleteClusterSdnVnetsSingleFirewallRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnVnetsSingleFirewallRulesSingleResponse: + description: GetClusterSdnVnetsSingleFirewallRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security group + name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + UpdateClusterSdnVnetsSingleFirewallRulesSingleResponse: + description: UpdateClusterSdnVnetsSingleFirewallRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnVnetsSingleFirewallOptionsResponse: + description: GetClusterSdnVnetsSingleFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + enable: + type: int64 + description: Enable/disable firewall rules. + log_level_forward: + type: string + description: Log level for forwarded traffic. + policy_forward: + type: string + description: Forward policy. + UpdateClusterSdnVnetsSingleFirewallOptionsResponse: + description: UpdateClusterSdnVnetsSingleFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnVnetsSingleSubnetsResponse: + description: GetClusterSdnVnetsSingleSubnetsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateClusterSdnVnetsSingleSubnetsResponse: + description: CreateClusterSdnVnetsSingleSubnetsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSdnVnetsSingleSubnetsSingleResponse: + description: DeleteClusterSdnVnetsSingleSubnetsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnVnetsSingleSubnetsSingleResponse: + description: GetClusterSdnVnetsSingleSubnetsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterSdnVnetsSingleSubnetsSingleResponse: + description: UpdateClusterSdnVnetsSingleSubnetsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSdnVnetsSingleIpsResponse: + description: DeleteClusterSdnVnetsSingleIpsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateClusterSdnVnetsSingleIpsResponse: + description: CreateClusterSdnVnetsSingleIpsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateClusterSdnVnetsSingleIpsResponse: + description: UpdateClusterSdnVnetsSingleIpsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSDNZonesResponse: + description: GetClusterSDNZonesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + advertise-subnets: + type: int64 + description: >- + Advertise IP prefixes (Type-5 routes) instead of MAC/IP + pairs (Type-2 routes). EVPN zone only. + bridge: + type: string + description: >- + the bridge for which VLANs should be managed. VLAN & + QinQ zone only. + bridge-disable-mac-learning: + type: int64 + description: Disable auto mac learning. VLAN zone only. + controller: + type: string + description: ID of the controller for this zone. EVPN zone only. + dhcp: + type: string + description: Name of DHCP server backend for this zone. + digest: + type: string + description: Digest of the controller section. + disable-arp-nd-suppression: + type: int64 + description: >- + Suppress IPv4 ARP && IPv6 Neighbour Discovery messages. + EVPN zone only. + dns: + type: string + description: ID of the DNS server for this zone. + dnszone: + type: string + description: Domain name for this zone. + exitnodes: + type: string + description: >- + List of PVE Nodes that should act as exit node for this + zone. EVPN zone only. + exitnodes-local-routing: + type: int64 + description: >- + Create routes on the exit nodes, so they can connect to + EVPN guests. EVPN zone only. + exitnodes-primary: + type: string + description: >- + Force traffic through this exitnode first. EVPN zone + only. + ipam: + type: string + description: ID of the IPAM for this zone. + mac: + type: string + description: MAC address of the anycast router for this zone. + mtu: + type: int64 + description: >- + MTU of the zone, will be used for the created VNet + bridges. + nodes: + type: string + description: Nodes where this zone should be created. + peers: + type: string + description: >- + Comma-separated list of peers, that are part of the + VXLAN zone. Usually the IPs of the nodes. VXLAN zone + only. + pending: + type: object + description: >- + Changes that have not yet been applied to the running + configuration. + properties: + advertise-subnets: + type: int64 + description: >- + Advertise IP prefixes (Type-5 routes) instead of + MAC/IP pairs (Type-2 routes). EVPN zone only. + bridge: + type: string + description: >- + the bridge for which VLANs should be managed. VLAN & + QinQ zone only. + bridge-disable-mac-learning: + type: int64 + description: Disable auto mac learning. VLAN zone only. + controller: + type: string + description: ID of the controller for this zone. EVPN zone only. + dhcp: + type: string + description: Name of DHCP server backend for this zone. + disable-arp-nd-suppression: + type: int64 + description: >- + Suppress IPv4 ARP && IPv6 Neighbour Discovery + messages. EVPN zone only. + dns: + type: string + description: ID of the DNS server for this zone. + dnszone: + type: string + description: Domain name for this zone. + exitnodes: + type: string + description: >- + List of PVE Nodes that should act as exit node for + this zone. EVPN zone only. + exitnodes-local-routing: + type: int64 + description: >- + Create routes on the exit nodes, so they can connect + to EVPN guests. EVPN zone only. + exitnodes-primary: + type: string + description: >- + Force traffic through this exitnode first. EVPN zone + only. + ipam: + type: string + description: ID of the IPAM for this zone. + mac: + type: string + description: MAC address of the anycast router for this zone. + mtu: + type: int64 + description: >- + MTU of the zone, will be used for the created VNet + bridges. + nodes: + type: string + description: Nodes where this zone should be created. + peers: + type: string + description: >- + Comma-separated list of peers, that are part of the + VXLAN zone. Usually the IPs of the nodes. VXLAN zone + only. + reversedns: + type: string + description: ID of the reverse DNS server for this zone. + rt-import: + type: string + description: >- + Route-Targets that should be imported into the VRF + of this zone via BGP. EVPN zone only. + tag: + type: int64 + description: Service-VLAN Tag (outer VLAN). QinQ zone only + vlan-protocol: + type: string + description: >- + VLAN protocol for the creation of the QinQ zone. + QinQ zone only. + vrf-vxlan: + type: int64 + description: VNI for the zone VRF. EVPN zone only. + vxlan-port: + type: int64 + description: >- + UDP port that should be used for the VXLAN tunnel + (default 4789). VXLAN zone only. + reversedns: + type: string + description: ID of the reverse DNS server for this zone. + rt-import: + type: string + description: >- + Route-Targets that should be imported into the VRF of + this zone via BGP. EVPN zone only. + state: + type: string + description: State of the SDN configuration object. + tag: + type: int64 + description: Service-VLAN Tag (outer VLAN). QinQ zone only + type: + type: string + description: Type of the zone. + vlan-protocol: + type: string + description: >- + VLAN protocol for the creation of the QinQ zone. QinQ + zone only. + vrf-vxlan: + type: int64 + description: VNI for the zone VRF. EVPN zone only. + vxlan-port: + type: int64 + description: >- + UDP port that should be used for the VXLAN tunnel + (default 4789). VXLAN zone only. + zone: + type: string + description: Name of the zone. + CreateClusterSDNZoneResponse: + description: CreateClusterSDNZoneResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSDNZoneResponse: + description: DeleteClusterSDNZoneResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSDNZoneResponse: + description: GetClusterSDNZoneResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateClusterSDNZoneResponse: + description: UpdateClusterSDNZoneResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSDNControllersResponse: + description: GetClusterSDNControllersResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + asn: + type: int64 + description: The local ASN of the controller. BGP & EVPN only. + bgp-multipath-as-relax: + type: int64 + description: >- + Consider different AS paths of equal length for + multipath computation. BGP only. + controller: + type: string + description: Name of the controller. + digest: + type: string + description: Digest of the controller section. + ebgp: + type: int64 + description: Enable eBGP (remote-as external). BGP only. + ebgp-multihop: + type: int64 + description: >- + Set maximum amount of hops for eBGP peers. Needs ebgp + set to 1. BGP only. + isis-domain: + type: string + description: Name of the IS-IS domain. IS-IS only. + isis-ifaces: + type: string + description: >- + Comma-separated list of interfaces where IS-IS should be + active. IS-IS only. + isis-net: + type: string + description: >- + Network Entity title for this node in the IS-IS network. + IS-IS only. + loopback: + type: string + description: >- + Name of the loopback/dummy interface that provides the + Router-IP. BGP only. + node: + type: string + description: Node(s) where this controller is active. + peers: + type: string + description: Comma-separated list of the peers IP addresses. + pending: + type: object + description: >- + Changes that have not yet been applied to the running + configuration. + properties: + asn: + type: int64 + description: The local ASN of the controller. BGP & EVPN only. + bgp-multipath-as-relax: + type: int64 + description: >- + Consider different AS paths of equal length for + multipath computation. BGP only. + ebgp: + type: int64 + description: Enable eBGP (remote-as external). BGP only. + ebgp-multihop: + type: int64 + description: >- + Set maximum amount of hops for eBGP peers. Needs + ebgp set to 1. BGP only. + isis-domain: + type: string + description: Name of the IS-IS domain. IS-IS only. + isis-ifaces: + type: string + description: >- + Comma-separated list of interfaces where IS-IS + should be active. IS-IS only. + isis-net: + type: string + description: >- + Network Entity title for this node in the IS-IS + network. IS-IS only. + loopback: + type: string + description: >- + Name of the loopback/dummy interface that provides + the Router-IP. BGP only. + node: + type: string + description: Node(s) where this controller is active. + peers: + type: string + description: Comma-separated list of the peers IP addresses. + state: + type: string + description: State of the SDN configuration object. + type: + type: string + description: Type of the controller + CreateClusterSDNControllerResponse: + description: CreateClusterSDNControllerResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSDNControllerResponse: + description: DeleteClusterSDNControllerResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSDNControllerResponse: + description: GetClusterSDNControllerResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateClusterSDNControllerResponse: + description: UpdateClusterSDNControllerResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnIpamsResponse: + description: GetClusterSdnIpamsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + ipam: + type: string + description: "" + type: + type: string + description: "" + CreateClusterSdnIpamsResponse: + description: CreateClusterSdnIpamsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSdnIpamsSingleResponse: + description: DeleteClusterSdnIpamsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnIpamsSingleResponse: + description: GetClusterSdnIpamsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterSdnIpamsSingleResponse: + description: UpdateClusterSdnIpamsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnIpamsSingleStatusResponse: + description: GetClusterSdnIpamsSingleStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + GetClusterSdnDnsResponse: + description: GetClusterSdnDnsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + dns: + type: string + description: "" + type: + type: string + description: "" + CreateClusterSdnDnsResponse: + description: CreateClusterSdnDnsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSdnDnsSingleResponse: + description: DeleteClusterSdnDnsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnDnsSingleResponse: + description: GetClusterSdnDnsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterSdnDnsSingleResponse: + description: UpdateClusterSdnDnsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnFabricsResponse: + description: GetClusterSdnFabricsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetClusterSdnFabricsFabricResponse: + description: GetClusterSdnFabricsFabricResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + area: + type: string + description: >- + OSPF area. Either a IPv4 address or a 32-bit number. + Gets validated in rust. + csnp_interval: + type: number + description: The csnp_interval property for Openfabric + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + hello_interval: + type: number + description: The hello_interval property for Openfabric + id: + type: string + description: Identifier for SDN fabrics + ip6_prefix: + type: string + description: The IP prefix for Node IPs + ip_prefix: + type: string + description: The IP prefix for Node IPs + lock-token: + type: string + description: the token for unlocking the global SDN configuration + protocol: + type: string + description: >- + Type of configuration entry in an SDN Fabric section + config + CreateClusterSdnFabricsFabricResponse: + description: CreateClusterSdnFabricsFabricResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSdnFabricsFabricSingleResponse: + description: DeleteClusterSdnFabricsFabricSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnFabricsFabricSingleResponse: + description: GetClusterSdnFabricsFabricSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + area: + type: string + description: >- + OSPF area. Either a IPv4 address or a 32-bit number. Gets + validated in rust. + csnp_interval: + type: number + description: The csnp_interval property for Openfabric + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + hello_interval: + type: number + description: The hello_interval property for Openfabric + id: + type: string + description: Identifier for SDN fabrics + ip6_prefix: + type: string + description: The IP prefix for Node IPs + ip_prefix: + type: string + description: The IP prefix for Node IPs + lock-token: + type: string + description: the token for unlocking the global SDN configuration + protocol: + type: string + description: >- + Type of configuration entry in an SDN Fabric section + config + UpdateClusterSdnFabricsFabricSingleResponse: + description: UpdateClusterSdnFabricsFabricSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnFabricsNodeResponse: + description: GetClusterSdnFabricsNodeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + fabric_id: + type: string + description: Identifier for SDN fabrics + interfaces: + type: array + description: "" + ip: + type: string + description: IPv4 address for this node + ip6: + type: string + description: IPv6 address for this node + lock-token: + type: string + description: the token for unlocking the global SDN configuration + node_id: + type: string + description: Identifier for nodes in an SDN fabric + protocol: + type: string + description: >- + Type of configuration entry in an SDN Fabric section + config + GetClusterSdnFabricsNodeSingleResponse: + description: GetClusterSdnFabricsNodeSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + fabric_id: + type: string + description: Identifier for SDN fabrics + interfaces: + type: array + description: "" + ip: + type: string + description: IPv4 address for this node + ip6: + type: string + description: IPv6 address for this node + lock-token: + type: string + description: the token for unlocking the global SDN configuration + node_id: + type: string + description: Identifier for nodes in an SDN fabric + protocol: + type: string + description: >- + Type of configuration entry in an SDN Fabric section + config + CreateClusterSdnFabricsNodeSingleResponse: + description: CreateClusterSdnFabricsNodeSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteClusterSdnFabricsNodeSingleSingleResponse: + description: DeleteClusterSdnFabricsNodeSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnFabricsNodeSingleSingleResponse: + description: GetClusterSdnFabricsNodeSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateClusterSdnFabricsNodeSingleSingleResponse: + description: UpdateClusterSdnFabricsNodeSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterSdnFabricsAllResponse: + description: GetClusterSdnFabricsAllResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + fabrics: + type: array + description: "" + items: + type: object + description: "" + properties: + area: + type: string + description: >- + OSPF area. Either a IPv4 address or a 32-bit number. + Gets validated in rust. + csnp_interval: + type: number + description: The csnp_interval property for Openfabric + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent + concurrent modifications. + hello_interval: + type: number + description: The hello_interval property for Openfabric + id: + type: string + description: Identifier for SDN fabrics + ip6_prefix: + type: string + description: The IP prefix for Node IPs + ip_prefix: + type: string + description: The IP prefix for Node IPs + lock-token: + type: string + description: the token for unlocking the global SDN configuration + protocol: + type: string + description: >- + Type of configuration entry in an SDN Fabric section + config + nodes: + type: array + description: "" + items: + type: object + description: "" + properties: + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent + concurrent modifications. + fabric_id: + type: string + description: Identifier for SDN fabrics + interfaces: + type: array + description: "" + ip: + type: string + description: IPv4 address for this node + ip6: + type: string + description: IPv6 address for this node + lock-token: + type: string + description: the token for unlocking the global SDN configuration + node_id: + type: string + description: Identifier for nodes in an SDN fabric + protocol: + type: string + description: >- + Type of configuration entry in an SDN Fabric section + config + DeleteClusterSdnLockResponse: + description: DeleteClusterSdnLockResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateClusterSdnLockResponse: + description: CreateClusterSdnLockResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateClusterSdnRollbackResponse: + description: CreateClusterSdnRollbackResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterLogResponse: + description: GetClusterLogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetClusterResourcesResponse: + description: GetClusterResourcesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cgroup-mode: + type: int64 + description: >- + The cgroup mode the node operates under (for type + 'node'). + content: + type: string + description: Allowed storage content types (for type 'storage'). + cpu: + type: number + description: "CPU utilization (for types 'node', 'qemu' and 'lxc')." + disk: + type: int64 + description: >- + Used disk space in bytes (for type 'storage'), used root + image space for VMs (for types 'qemu' and 'lxc'). + diskread: + type: int64 + description: >- + The number of bytes the guest read from its block + devices since the guest was started. This info is not + available for all storage types. (for types 'qemu' and + 'lxc') + diskwrite: + type: int64 + description: >- + The number of bytes the guest wrote to its block devices + since the guest was started. This info is not available + for all storage types. (for types 'qemu' and 'lxc') + hastate: + type: string + description: HA service status (for HA managed VMs). + id: + type: string + description: Resource id. + level: + type: string + description: Support level (for type 'node'). + lock: + type: string + description: >- + The guest's current config lock (for types 'qemu' and + 'lxc') + maxcpu: + type: number + description: >- + Number of available CPUs (for types 'node', 'qemu' and + 'lxc'). + maxdisk: + type: int64 + description: >- + Storage size in bytes (for type 'storage'), root image + size for VMs (for types 'qemu' and 'lxc'). + maxmem: + type: int64 + description: >- + Number of available memory in bytes (for types 'node', + 'qemu' and 'lxc'). + mem: + type: int64 + description: >- + Used memory in bytes (for types 'node', 'qemu' and + 'lxc'). + memhost: + type: int64 + description: >- + Used memory in bytes from the point of view of the host + (for types 'qemu'). + name: + type: string + description: Name of the resource. + netin: + type: int64 + description: >- + The amount of traffic in bytes that was sent to the + guest over the network since it was started. (for types + 'qemu' and 'lxc') + netout: + type: int64 + description: >- + The amount of traffic in bytes that was sent from the + guest over the network since it was started. (for types + 'qemu' and 'lxc') + network: + type: string + description: The name of a Network entity (for type 'network'). + network-type: + type: string + description: The type of network resource (for type 'network'). + node: + type: string + description: >- + The cluster node name (for types 'node', 'storage', + 'qemu', and 'lxc'). + plugintype: + type: string + description: "More specific type, if available." + pool: + type: string + description: "The pool name (for types 'pool', 'qemu' and 'lxc')." + protocol: + type: string + description: >- + The protocol of a fabric (for type 'network', + network-type 'fabric'). + sdn: + type: string + description: The name of an SDN entity (for type 'sdn') + status: + type: string + description: Resource type dependent status. + storage: + type: string + description: The storage identifier (for type 'storage'). + tags: + type: string + description: The guest's tags (for types 'qemu' and 'lxc') + template: + type: int64 + description: >- + Determines if the guest is a template. (for types 'qemu' + and 'lxc') + type: + type: string + description: Resource type. + uptime: + type: int64 + description: >- + Uptime of node or virtual guest in seconds (for types + 'node', 'qemu' and 'lxc'). + vmid: + type: int64 + description: The numerical vmid (for types 'qemu' and 'lxc'). + zone-type: + type: string + description: The type of an SDN zone (for type 'sdn'). + GetClusterTasksResponse: + description: GetClusterTasksResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + upid: + type: string + description: "" + GetClusterOptionsResponse: + description: GetClusterOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateClusterOptionsResponse: + description: UpdateClusterOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetClusterStatusResponse: + description: GetClusterStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: "" + ip: + type: string + description: "[node] IP of the resolved nodename." + level: + type: string + description: >- + [node] Proxmox VE Subscription level, indicates if + eligible for enterprise support as well as access to the + stable Proxmox VE Enterprise Repository. + local: + type: int64 + description: "[node] Indicates if this is the responding node." + name: + type: string + description: "" + nodeid: + type: int64 + description: "[node] ID of the node from the corosync configuration." + nodes: + type: int64 + description: "[cluster] Nodes count, including offline nodes." + online: + type: int64 + description: "[node] Indicates if the node is online or offline." + quorate: + type: int64 + description: >- + [cluster] Indicates if there is a majority of nodes + online to make decisions + type: + type: string + description: >- + Indicates the type, either cluster or node. The type + defines the object properties e.g. quorate available for + type cluster. + version: + type: int64 + description: >- + [cluster] Current version of the corosync configuration + file. + GetClusterNextidResponse: + description: GetClusterNextidResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: int64 + description: The next free VMID. + GetNodesResponse: + description: GetNodesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cpu: + type: number + description: CPU utilization. + level: + type: string + description: Support level. + maxcpu: + type: int64 + description: Number of available CPUs. + maxmem: + type: int64 + description: Number of available memory in bytes. + mem: + type: int64 + description: Used memory in bytes. + node: + type: string + description: The cluster node name. + ssl_fingerprint: + type: string + description: The SSL fingerprint for the node certificate. + status: + type: string + description: Node status. + uptime: + type: int64 + description: Node uptime in seconds. + GetNodeResponse: + description: GetNodeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetVMsResponse: + description: GetVMsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cpu: + type: number + description: Current CPU usage. + cpus: + type: number + description: Maximum usable CPUs. + diskread: + type: int64 + description: >- + The amount of bytes the guest read from it's block + devices since the guest was started. (Note: This info is + not available for all storage types.) + diskwrite: + type: int64 + description: >- + The amount of bytes the guest wrote from it's block + devices since the guest was started. (Note: This info is + not available for all storage types.) + lock: + type: string + description: "The current config lock, if any." + maxdisk: + type: int64 + description: Root disk size in bytes. + maxmem: + type: int64 + description: Maximum memory in bytes. + mem: + type: int64 + description: Currently used memory in bytes. + memhost: + type: int64 + description: Current memory usage on the host. + name: + type: string + description: VM (host)name. + netin: + type: int64 + description: >- + The amount of traffic in bytes that was sent to the + guest over the network since it was started. + netout: + type: int64 + description: >- + The amount of traffic in bytes that was sent from the + guest over the network since it was started. + pid: + type: int64 + description: "PID of the QEMU process, if the VM is running." + pressurecpufull: + type: number + description: >- + CPU Full pressure stall average over the last 10 + seconds. + pressurecpusome: + type: number + description: >- + CPU Some pressure stall average over the last 10 + seconds. + pressureiofull: + type: number + description: IO Full pressure stall average over the last 10 seconds. + pressureiosome: + type: number + description: IO Some pressure stall average over the last 10 seconds. + pressurememoryfull: + type: number + description: >- + Memory Full pressure stall average over the last 10 + seconds. + pressurememorysome: + type: number + description: >- + Memory Some pressure stall average over the last 10 + seconds. + qmpstatus: + type: string + description: >- + VM run state from the 'query-status' QMP monitor + command. + running-machine: + type: string + description: The currently running machine type (if running). + running-qemu: + type: string + description: The QEMU version the VM is currently using (if running). + serial: + type: int64 + description: Guest has serial device configured. + status: + type: string + description: QEMU process status. + tags: + type: string + description: "The current configured tags, if any" + template: + type: int64 + description: Determines if the guest is a template. + uptime: + type: int64 + description: Uptime in seconds. + vmid: + type: int64 + description: The (unique) ID of the VM. + CreateVMResponse: + description: CreateVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteVMResponse: + description: DeleteVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVMResponse: + description: GetVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetVMFirewallResponse: + description: GetVMFirewallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetVMFirewallRulesResponse: + description: GetVMFirewallRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security + group name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + CreateVMFirewallRuleResponse: + description: CreateVMFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteVMFirewallRuleResponse: + description: DeleteVMFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVMFirewallRuleResponse: + description: GetVMFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security group + name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + UpdateVMFirewallRuleResponse: + description: UpdateVMFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleQemuSingleFirewallAliasesResponse: + description: GetNodesSingleQemuSingleFirewallAliasesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cidr: + type: string + description: "" + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + name: + type: string + description: "" + CreateNodesSingleQemuSingleFirewallAliasesResponse: + description: CreateNodesSingleQemuSingleFirewallAliasesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleQemuSingleFirewallAliasesSingleResponse: + description: DeleteNodesSingleQemuSingleFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleQemuSingleFirewallAliasesSingleResponse: + description: GetNodesSingleQemuSingleFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateNodesSingleQemuSingleFirewallAliasesSingleResponse: + description: UpdateNodesSingleQemuSingleFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVMFirewallIPSetsResponse: + description: GetVMFirewallIPSetsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + name: + type: string + description: IP set name. + CreateVMFirewallIPSetResponse: + description: CreateVMFirewallIPSetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteVMFirewallIPSetResponse: + description: DeleteVMFirewallIPSetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVMFirewallIPSetResponse: + description: GetVMFirewallIPSetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cidr: + type: string + description: "" + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + nomatch: + type: int64 + description: "" + AddVMFirewallIPSetIPResponse: + description: AddVMFirewallIPSetIPResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + RemoveVMFirewallIPSetIPResponse: + description: RemoveVMFirewallIPSetIPResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVMFirewallIPSetIPResponse: + description: GetVMFirewallIPSetIPResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateVMFirewallIPSetIPResponse: + description: UpdateVMFirewallIPSetIPResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVMFirewallOptionsResponse: + description: GetVMFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + dhcp: + type: int64 + description: Enable DHCP. + enable: + type: int64 + description: Enable/disable firewall rules. + ipfilter: + type: int64 + description: >- + Enable default IP filters. This is equivalent to adding an + empty ipfilter-net ipset for every interface. Such + ipsets implicitly contain sane default restrictions such + as restricting IPv6 link local addresses to the one + derived from the interface's MAC address. For containers + the configured IP addresses will be implicitly added. + log_level_in: + type: string + description: Log level for incoming traffic. + log_level_out: + type: string + description: Log level for outgoing traffic. + macfilter: + type: int64 + description: Enable/disable MAC address filter. + ndp: + type: int64 + description: Enable NDP (Neighbor Discovery Protocol). + policy_in: + type: string + description: Input policy. + policy_out: + type: string + description: Output policy. + radv: + type: int64 + description: Allow sending Router Advertisement. + UpdateVMFirewallOptionsResponse: + description: UpdateVMFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleQemuSingleFirewallLogResponse: + description: GetNodesSingleQemuSingleFirewallLogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + "n": + type: int64 + description: Line number + t: + type: string + description: Line text + GetNodesSingleQemuSingleFirewallRefsResponse: + description: GetNodesSingleQemuSingleFirewallRefsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + name: + type: string + description: "" + ref: + type: string + description: "" + scope: + type: string + description: "" + type: + type: string + description: "" + GetNodesSingleQemuSingleAgentResponse: + description: GetNodesSingleQemuSingleAgentResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: Returns the list of QEMU Guest Agent commands + items: + type: object + description: "" + properties: {} + CreateNodesSingleQemuSingleAgentResponse: + description: CreateNodesSingleQemuSingleAgentResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentFsfreezefreezeResponse: + description: CreateNodesSingleQemuSingleAgentFsfreezefreezeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentFsfreezestatusResponse: + description: CreateNodesSingleQemuSingleAgentFsfreezestatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentFsfreezethawResponse: + description: CreateNodesSingleQemuSingleAgentFsfreezethawResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentFstrimResponse: + description: CreateNodesSingleQemuSingleAgentFstrimResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGetfsinfoResponse: + description: GetNodesSingleQemuSingleAgentGetfsinfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGethostnameResponse: + description: GetNodesSingleQemuSingleAgentGethostnameResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGetmemoryblockinfoResponse: + description: GetNodesSingleQemuSingleAgentGetmemoryblockinfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGetmemoryblocksResponse: + description: GetNodesSingleQemuSingleAgentGetmemoryblocksResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGetosinfoResponse: + description: GetNodesSingleQemuSingleAgentGetosinfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGettimeResponse: + description: GetNodesSingleQemuSingleAgentGettimeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGettimezoneResponse: + description: GetNodesSingleQemuSingleAgentGettimezoneResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGetusersResponse: + description: GetNodesSingleQemuSingleAgentGetusersResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentGetvcpusResponse: + description: GetNodesSingleQemuSingleAgentGetvcpusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentInfoResponse: + description: GetNodesSingleQemuSingleAgentInfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + GetNodesSingleQemuSingleAgentNetworkgetinterfacesResponse: + description: GetNodesSingleQemuSingleAgentNetworkgetinterfacesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentPingResponse: + description: CreateNodesSingleQemuSingleAgentPingResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentShutdownResponse: + description: CreateNodesSingleQemuSingleAgentShutdownResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentSuspenddiskResponse: + description: CreateNodesSingleQemuSingleAgentSuspenddiskResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentSuspendhybridResponse: + description: CreateNodesSingleQemuSingleAgentSuspendhybridResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentSuspendramResponse: + description: CreateNodesSingleQemuSingleAgentSuspendramResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentSetuserpasswordResponse: + description: CreateNodesSingleQemuSingleAgentSetuserpasswordResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a single `result` property. + CreateNodesSingleQemuSingleAgentExecResponse: + description: CreateNodesSingleQemuSingleAgentExecResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + pid: + type: int64 + description: The PID of the process started by the guest-agent. + GetNodesSingleQemuSingleAgentExecstatusResponse: + description: GetNodesSingleQemuSingleAgentExecstatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + err-data: + type: string + description: stderr of the process + err-truncated: + type: int64 + description: true if stderr was not fully captured + exitcode: + type: int64 + description: process exit code if it was normally terminated. + exited: + type: int64 + description: Tells if the given command has exited yet. + out-data: + type: string + description: stdout of the process + out-truncated: + type: int64 + description: true if stdout was not fully captured + signal: + type: int64 + description: >- + signal number or exception code if the process was + abnormally terminated. + GetNodesSingleQemuSingleAgentFilereadResponse: + description: GetNodesSingleQemuSingleAgentFilereadResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Returns an object with a `content` property. + properties: + content: + type: string + description: "The content of the file, maximum 16777216" + truncated: + type: int64 + description: "If set to 1, the output is truncated and not complete" + CreateNodesSingleQemuSingleAgentFilewriteResponse: + description: CreateNodesSingleQemuSingleAgentFilewriteResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVMRRDResponse: + description: GetVMRRDResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + filename: + type: string + description: "" + GetVMRRDDataResponse: + description: GetVMRRDDataResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetVMConfigResponse: + description: GetVMConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: The VM configuration. + properties: + acpi: + type: int64 + description: Enable/disable ACPI. + affinity: + type: string + description: >- + List of host cores used to execute guest processes, for + example: 0,5,8-11 + agent: + type: string + description: >- + Enable/disable communication with the QEMU Guest Agent and + its properties. + allow-ksm: + type: int64 + description: >- + Allow memory pages of this guest to be merged via KSM + (Kernel Samepage Merging). + amd-sev: + type: string + description: Secure Encrypted Virtualization (SEV) features by AMD CPUs + arch: + type: string + description: Virtual processor architecture. Defaults to the host. + args: + type: string + description: Arbitrary arguments passed to kvm. + audio0: + type: string + description: >- + Configure a audio device, useful in combination with + QXL/Spice. + autostart: + type: int64 + description: Automatic restart after crash (currently ignored). + balloon: + type: int64 + description: >- + Amount of target RAM for the VM in MiB. Using zero + disables the ballon driver. + bios: + type: string + description: Select BIOS implementation. + boot: + type: string + description: >- + Specify guest boot order. Use the 'order=' sub-property as + usage with no key or 'legacy=' is deprecated. + bootdisk: + type: string + description: >- + Enable booting from specified disk. Deprecated: Use 'boot: + order=foo;bar' instead. + cdrom: + type: string + description: This is an alias for option -ide2 + cicustom: + type: string + description: >- + cloud-init: Specify custom files to replace the + automatically generated ones at start. + cipassword: + type: string + description: >- + cloud-init: Password to assign the user. Using this is + generally not recommended. Use ssh keys instead. Also note + that older cloud-init versions do not support hashed + passwords. + citype: + type: string + description: >- + Specifies the cloud-init configuration format. The default + depends on the configured operating system type (`ostype`. + We use the `nocloud` format for Linux, and `configdrive2` + for windows. + ciupgrade: + type: int64 + description: >- + cloud-init: do an automatic package upgrade after the + first boot. + ciuser: + type: string + description: >- + cloud-init: User name to change ssh keys and password for + instead of the image's configured default user. + cores: + type: int64 + description: The number of cores per socket. + cpu: + type: string + description: Emulated CPU type. + cpulimit: + type: number + description: Limit of CPU usage. + cpuunits: + type: int64 + description: >- + CPU weight for a VM, will be clamped to [1, 10000] in + cgroup v2. + description: + type: string + description: >- + Description for the VM. Shown in the web-interface VM's + summary. This is saved as comment inside the configuration + file. + digest: + type: string + description: >- + SHA1 digest of configuration file. This can be used to + prevent concurrent modifications. + efidisk0: + type: string + description: Configure a disk for storing EFI vars. + freeze: + type: int64 + description: >- + Freeze CPU at startup (use 'c' monitor command to start + execution). + hookscript: + type: string + description: >- + Script that will be executed during various steps in the + vms lifetime. + hostpci0: + type: string + description: Map host PCI devices into guest. + hostpci1: + type: string + description: Map host PCI devices into guest. + hostpci2: + type: string + description: Map host PCI devices into guest. + hostpci3: + type: string + description: Map host PCI devices into guest. + hostpci4: + type: string + description: Map host PCI devices into guest. + hostpci5: + type: string + description: Map host PCI devices into guest. + hostpci6: + type: string + description: Map host PCI devices into guest. + hostpci7: + type: string + description: Map host PCI devices into guest. + hostpci8: + type: string + description: Map host PCI devices into guest. + hostpci9: + type: string + description: Map host PCI devices into guest. + hostpci10: + type: string + description: Map host PCI devices into guest. + hostpci11: + type: string + description: Map host PCI devices into guest. + hostpci12: + type: string + description: Map host PCI devices into guest. + hostpci13: + type: string + description: Map host PCI devices into guest. + hostpci14: + type: string + description: Map host PCI devices into guest. + hostpci15: + type: string + description: Map host PCI devices into guest. + hostpci16: + type: string + description: Map host PCI devices into guest. + hostpci17: + type: string + description: Map host PCI devices into guest. + hostpci18: + type: string + description: Map host PCI devices into guest. + hostpci19: + type: string + description: Map host PCI devices into guest. + hostpci20: + type: string + description: Map host PCI devices into guest. + hostpci21: + type: string + description: Map host PCI devices into guest. + hostpci22: + type: string + description: Map host PCI devices into guest. + hostpci23: + type: string + description: Map host PCI devices into guest. + hostpci24: + type: string + description: Map host PCI devices into guest. + hostpci25: + type: string + description: Map host PCI devices into guest. + hostpci26: + type: string + description: Map host PCI devices into guest. + hostpci27: + type: string + description: Map host PCI devices into guest. + hostpci28: + type: string + description: Map host PCI devices into guest. + hostpci29: + type: string + description: Map host PCI devices into guest. + hotplug: + type: string + description: >- + Selectively enable hotplug features. This is a comma + separated list of hotplug features: 'network', 'disk', + 'cpu', 'memory', 'usb' and 'cloudinit'. Use '0' to disable + hotplug completely. Using '1' as value is an alias for the + default `network,disk,usb`. USB hotplugging is possible + for guests with machine version >= 7.1 and ostype l26 or + windows > 7. + hugepages: + type: string + description: >- + Enables hugepages memory. + + + Sets the size of hugepages in MiB. If the value is set to + 'any' then 1 GiB hugepages will be used if possible, + otherwise the size will fall back to 2 MiB. + ide0: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide1: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide2: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide3: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide4: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide5: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide6: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide7: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide8: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide9: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide10: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide11: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide12: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide13: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide14: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide15: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide16: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide17: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide18: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide19: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide20: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide21: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide22: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide23: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide24: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide25: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide26: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide27: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide28: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + ide29: + type: string + description: Use volume as IDE hard disk or CD-ROM (n is 0 to 3). + intel-tdx: + type: string + description: Trusted Domain Extension (TDX) features by Intel CPUs + ipconfig0: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig1: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig2: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig3: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig4: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig5: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig6: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig7: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig8: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig9: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig10: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig11: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig12: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig13: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig14: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig15: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig16: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig17: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig18: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig19: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig20: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig21: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig22: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig23: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig24: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig25: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig26: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig27: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig28: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ipconfig29: + type: string + description: > + cloud-init: Specify IP addresses and gateways for the + corresponding interface. + + + IP addresses use CIDR notation, gateways are optional but + need an IP of the same type specified. + + + The special string 'dhcp' can be used for IP addresses to + use DHCP, in which case no explicit + + gateway should be provided. + + For IPv6 the special string 'auto' can be used to use + stateless autoconfiguration. This requires + + cloud-init 19.4 or newer. + + + If cloud-init is enabled and neither an IPv4 nor an IPv6 + address is specified, it defaults to using + + dhcp on IPv4. + ivshmem: + type: string + description: >- + Inter-VM shared memory. Useful for direct communication + between VMs, or to the host. + keephugepages: + type: int64 + description: >- + Use together with hugepages. If enabled, hugepages will + not not be deleted after VM shutdown and can be used for + subsequent starts. + keyboard: + type: string + description: >- + Keyboard layout for VNC server. This option is generally + not required and is often better handled from within the + guest OS. + kvm: + type: int64 + description: Enable/disable KVM hardware virtualization. + localtime: + type: int64 + description: >- + Set the real time clock (RTC) to local time. This is + enabled by default if the `ostype` indicates a Microsoft + Windows OS. + lock: + type: string + description: Lock/unlock the VM. + machine: + type: string + description: Specify the QEMU machine. + memory: + type: string + description: Memory properties. + meta: + type: string + description: Some (read-only) meta-information about this guest. + migrate_downtime: + type: number + description: >- + Set maximum tolerated downtime (in seconds) for + migrations. Should the migration not be able to converge + in the very end, because too much newly dirtied RAM needs + to be transferred, the limit will be increased + automatically step-by-step until migration can converge. + migrate_speed: + type: int64 + description: >- + Set maximum speed (in MB/s) for migrations. Value 0 is no + limit. + name: + type: string + description: >- + Set a name for the VM. Only used on the configuration web + interface. + nameserver: + type: string + description: >- + cloud-init: Sets DNS server IP address for a container. + Create will automatically use the setting from the host if + neither searchdomain nor nameserver are set. + net0: + type: string + description: Specify network devices. + net1: + type: string + description: Specify network devices. + net2: + type: string + description: Specify network devices. + net3: + type: string + description: Specify network devices. + net4: + type: string + description: Specify network devices. + net5: + type: string + description: Specify network devices. + net6: + type: string + description: Specify network devices. + net7: + type: string + description: Specify network devices. + net8: + type: string + description: Specify network devices. + net9: + type: string + description: Specify network devices. + net10: + type: string + description: Specify network devices. + net11: + type: string + description: Specify network devices. + net12: + type: string + description: Specify network devices. + net13: + type: string + description: Specify network devices. + net14: + type: string + description: Specify network devices. + net15: + type: string + description: Specify network devices. + net16: + type: string + description: Specify network devices. + net17: + type: string + description: Specify network devices. + net18: + type: string + description: Specify network devices. + net19: + type: string + description: Specify network devices. + net20: + type: string + description: Specify network devices. + net21: + type: string + description: Specify network devices. + net22: + type: string + description: Specify network devices. + net23: + type: string + description: Specify network devices. + net24: + type: string + description: Specify network devices. + net25: + type: string + description: Specify network devices. + net26: + type: string + description: Specify network devices. + net27: + type: string + description: Specify network devices. + net28: + type: string + description: Specify network devices. + net29: + type: string + description: Specify network devices. + numa: + type: int64 + description: Enable/disable NUMA. + numa0: + type: string + description: NUMA topology. + numa1: + type: string + description: NUMA topology. + numa2: + type: string + description: NUMA topology. + numa3: + type: string + description: NUMA topology. + numa4: + type: string + description: NUMA topology. + numa5: + type: string + description: NUMA topology. + numa6: + type: string + description: NUMA topology. + numa7: + type: string + description: NUMA topology. + numa8: + type: string + description: NUMA topology. + numa9: + type: string + description: NUMA topology. + numa10: + type: string + description: NUMA topology. + numa11: + type: string + description: NUMA topology. + numa12: + type: string + description: NUMA topology. + numa13: + type: string + description: NUMA topology. + numa14: + type: string + description: NUMA topology. + numa15: + type: string + description: NUMA topology. + numa16: + type: string + description: NUMA topology. + numa17: + type: string + description: NUMA topology. + numa18: + type: string + description: NUMA topology. + numa19: + type: string + description: NUMA topology. + numa20: + type: string + description: NUMA topology. + numa21: + type: string + description: NUMA topology. + numa22: + type: string + description: NUMA topology. + numa23: + type: string + description: NUMA topology. + numa24: + type: string + description: NUMA topology. + numa25: + type: string + description: NUMA topology. + numa26: + type: string + description: NUMA topology. + numa27: + type: string + description: NUMA topology. + numa28: + type: string + description: NUMA topology. + numa29: + type: string + description: NUMA topology. + onboot: + type: int64 + description: >- + Specifies whether a VM will be started during system + bootup. + ostype: + type: string + description: Specify guest operating system. + parallel0: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel1: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel2: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel3: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel4: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel5: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel6: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel7: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel8: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel9: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel10: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel11: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel12: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel13: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel14: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel15: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel16: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel17: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel18: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel19: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel20: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel21: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel22: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel23: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel24: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel25: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel26: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel27: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel28: + type: string + description: Map host parallel devices (n is 0 to 2). + parallel29: + type: string + description: Map host parallel devices (n is 0 to 2). + parent: + type: string + description: >- + Parent snapshot name. This is used internally, and should + not be modified. + protection: + type: int64 + description: >- + Sets the protection flag of the VM. This will disable the + remove VM and remove disk operations. + reboot: + type: int64 + description: Allow reboot. If set to '0' the VM exit on reboot. + rng0: + type: string + description: Configure a VirtIO-based Random Number Generator. + running-nets-host-mtu: + type: string + description: >- + List of VirtIO network devices and their effective + host_mtu setting. A value of 0 means that the host_mtu + parameter is to be avoided for the corresponding device. + This is used internally for snapshots. + runningcpu: + type: string + description: >- + Specifies the QEMU '-cpu' parameter of the running vm. + This is used internally for snapshots. + runningmachine: + type: string + description: >- + Specifies the QEMU machine type of the running vm. This is + used internally for snapshots. + sata0: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata1: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata2: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata3: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata4: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata5: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata6: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata7: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata8: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata9: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata10: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata11: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata12: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata13: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata14: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata15: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata16: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata17: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata18: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata19: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata20: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata21: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata22: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata23: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata24: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata25: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata26: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata27: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata28: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + sata29: + type: string + description: Use volume as SATA hard disk or CD-ROM (n is 0 to 5). + scsi0: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi1: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi2: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi3: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi4: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi5: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi6: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi7: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi8: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi9: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi10: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi11: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi12: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi13: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi14: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi15: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi16: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi17: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi18: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi19: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi20: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi21: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi22: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi23: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi24: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi25: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi26: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi27: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi28: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsi29: + type: string + description: Use volume as SCSI hard disk or CD-ROM (n is 0 to 30). + scsihw: + type: string + description: SCSI controller model + searchdomain: + type: string + description: >- + cloud-init: Sets DNS search domains for a container. + Create will automatically use the setting from the host if + neither searchdomain nor nameserver are set. + serial0: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial1: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial2: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial3: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial4: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial5: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial6: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial7: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial8: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial9: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial10: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial11: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial12: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial13: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial14: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial15: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial16: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial17: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial18: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial19: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial20: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial21: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial22: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial23: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial24: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial25: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial26: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial27: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial28: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + serial29: + type: string + description: Create a serial device inside the VM (n is 0 to 3) + shares: + type: int64 + description: >- + Amount of memory shares for auto-ballooning. The larger + the number is, the more memory this VM gets. Number is + relative to weights of all other running VMs. Using zero + disables auto-ballooning. Auto-ballooning is done by + pvestatd. + smbios1: + type: string + description: Specify SMBIOS type 1 fields. + smp: + type: int64 + description: The number of CPUs. Please use option -sockets instead. + snaptime: + type: int64 + description: Timestamp for snapshots. + sockets: + type: int64 + description: The number of CPU sockets. + spice_enhancements: + type: string + description: Configure additional enhancements for SPICE. + sshkeys: + type: string + description: >- + cloud-init: Setup public SSH keys (one key per line, + OpenSSH format). + startdate: + type: string + description: >- + Set the initial date of the real time clock. Valid format + for date are:'now' or '2006-06-17T16:01:21' or + '2006-06-17'. + startup: + type: string + description: >- + Startup and shutdown behavior. Order is a non-negative + number defining the general startup order. Shutdown in + done with reverse ordering. Additionally you can set the + 'up' or 'down' delay in seconds, which specifies a delay + to wait before the next VM is started or stopped. + tablet: + type: int64 + description: Enable/disable the USB tablet device. + tags: + type: string + description: Tags of the VM. This is only meta information. + tdf: + type: int64 + description: Enable/disable time drift fix. + template: + type: int64 + description: Enable/disable Template. + tpmstate0: + type: string + description: >- + Configure a Disk for storing TPM state. The format is + fixed to 'raw'. + unused0: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused1: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused2: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused3: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused4: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused5: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused6: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused7: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused8: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused9: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused10: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused11: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused12: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused13: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused14: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused15: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused16: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused17: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused18: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused19: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused20: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused21: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused22: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused23: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused24: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused25: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused26: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused27: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused28: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused29: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + usb0: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb1: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb2: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb3: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb4: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb5: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb6: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb7: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb8: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb9: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb10: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb11: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb12: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb13: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb14: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb15: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb16: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb17: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb18: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb19: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb20: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb21: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb22: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb23: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb24: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb25: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb26: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb27: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb28: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + usb29: + type: string + description: >- + Configure an USB device (n is 0 to 4, for machine version + >= 7.1 and ostype l26 or windows > 7, n can be up to 14). + vcpus: + type: int64 + description: Number of hotplugged vcpus. + vga: + type: string + description: Configure the VGA hardware. + virtio0: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio1: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio2: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio3: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio4: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio5: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio6: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio7: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio8: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio9: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio10: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio11: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio12: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio13: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio14: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio15: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio16: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio17: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio18: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio19: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio20: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio21: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio22: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio23: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio24: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio25: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio26: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio27: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio28: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtio29: + type: string + description: Use volume as VIRTIO hard disk (n is 0 to 15). + virtiofs0: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs1: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs2: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs3: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs4: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs5: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs6: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs7: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs8: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs9: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs10: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs11: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs12: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs13: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs14: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs15: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs16: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs17: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs18: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs19: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs20: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs21: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs22: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs23: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs24: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs25: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs26: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs27: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs28: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + virtiofs29: + type: string + description: >- + Configuration for sharing a directory between host and + guest using Virtio-fs. + vmgenid: + type: string + description: >- + Set VM Generation ID. Use '1' to autogenerate on create or + update, pass '0' to disable explicitly. + vmstate: + type: string + description: >- + Reference to a volume which stores the VM state. This is + used internally for snapshots. + vmstatestorage: + type: string + description: Default storage for VM state volumes/files. + watchdog: + type: string + description: Create a virtual hardware watchdog device. + UpdateVMConfigResponse: + description: UpdateVMConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateVMConfigSyncResponse: + description: UpdateVMConfigSyncResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVMConfigPendingResponse: + description: GetVMConfigPendingResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + delete: + type: int64 + description: >- + Indicates a pending delete request if present and not 0. + The value 2 indicates a force-delete request. + key: + type: string + description: Configuration option name. + pending: + type: string + description: Pending value. + value: + type: string + description: Current value. + GetNodesSingleQemuSingleCloudinitResponse: + description: GetNodesSingleQemuSingleCloudinitResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + delete: + type: int64 + description: >- + Indicates a pending delete request if present and not + 0. + key: + type: string + description: Configuration option name. + pending: + type: string + description: The new pending value. + value: + type: string + description: >- + Value as it was used to generate the current cloudinit + image. + UpdateNodesSingleQemuSingleCloudinitResponse: + description: UpdateNodesSingleQemuSingleCloudinitResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleQemuSingleCloudinitDumpResponse: + description: GetNodesSingleQemuSingleCloudinitDumpResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UnlinkVMDiskImagesResponse: + description: UnlinkVMDiskImagesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleQemuSingleVncproxyResponse: + description: CreateNodesSingleQemuSingleVncproxyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleQemuSingleTermproxyResponse: + description: CreateNodesSingleQemuSingleTermproxyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleQemuSingleVncwebsocketResponse: + description: GetNodesSingleQemuSingleVncwebsocketResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + port: + type: string + description: "" + CreateNodesSingleQemuSingleSpiceproxyResponse: + description: CreateNodesSingleQemuSingleSpiceproxyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: >- + Returned values can be directly passed to the 'remote-viewer' + application. + GetVMStatusResponse: + description: GetVMStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetCurrentVMStatusResponse: + description: GetCurrentVMStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + agent: + type: int64 + description: QEMU Guest Agent is enabled in config. + clipboard: + type: string + description: >- + Enable a specific clipboard. If not set, depending on the + display type the SPICE one will be added. + cpu: + type: number + description: Current CPU usage. + cpus: + type: number + description: Maximum usable CPUs. + diskread: + type: int64 + description: >- + The amount of bytes the guest read from it's block devices + since the guest was started. (Note: This info is not + available for all storage types.) + diskwrite: + type: int64 + description: >- + The amount of bytes the guest wrote from it's block + devices since the guest was started. (Note: This info is + not available for all storage types.) + ha: + type: object + description: HA manager service status. + lock: + type: string + description: "The current config lock, if any." + maxdisk: + type: int64 + description: Root disk size in bytes. + maxmem: + type: int64 + description: Maximum memory in bytes. + mem: + type: int64 + description: Currently used memory in bytes. + memhost: + type: int64 + description: Current memory usage on the host. + name: + type: string + description: VM (host)name. + netin: + type: int64 + description: >- + The amount of traffic in bytes that was sent to the guest + over the network since it was started. + netout: + type: int64 + description: >- + The amount of traffic in bytes that was sent from the + guest over the network since it was started. + pid: + type: int64 + description: "PID of the QEMU process, if the VM is running." + pressurecpufull: + type: number + description: CPU Full pressure stall average over the last 10 seconds. + pressurecpusome: + type: number + description: CPU Some pressure stall average over the last 10 seconds. + pressureiofull: + type: number + description: IO Full pressure stall average over the last 10 seconds. + pressureiosome: + type: number + description: IO Some pressure stall average over the last 10 seconds. + pressurememoryfull: + type: number + description: >- + Memory Full pressure stall average over the last 10 + seconds. + pressurememorysome: + type: number + description: >- + Memory Some pressure stall average over the last 10 + seconds. + qmpstatus: + type: string + description: VM run state from the 'query-status' QMP monitor command. + running-machine: + type: string + description: The currently running machine type (if running). + running-qemu: + type: string + description: The QEMU version the VM is currently using (if running). + serial: + type: int64 + description: Guest has serial device configured. + spice: + type: int64 + description: QEMU VGA configuration supports spice. + status: + type: string + description: QEMU process status. + tags: + type: string + description: "The current configured tags, if any" + template: + type: int64 + description: Determines if the guest is a template. + uptime: + type: int64 + description: Uptime in seconds. + vmid: + type: int64 + description: The (unique) ID of the VM. + StartVMResponse: + description: StartVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + StopVMResponse: + description: StopVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + ResetVMResponse: + description: ResetVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + ShutdownVMResponse: + description: ShutdownVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + RebootVMResponse: + description: RebootVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + SuspendVMResponse: + description: SuspendVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + ResumeVMResponse: + description: ResumeVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateNodesSingleQemuSingleSendkeyResponse: + description: UpdateNodesSingleQemuSingleSendkeyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleQemuSingleFeatureResponse: + description: GetNodesSingleQemuSingleFeatureResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + hasFeature: + type: int64 + description: "" + nodes: + type: array + description: "" + items: + type: string + description: "" + CloneVMResponse: + description: CloneVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleQemuSingleMovediskResponse: + description: CreateNodesSingleQemuSingleMovediskResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + MigrateVMResponse: + description: MigrateVMResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + allowed_nodes: + type: array + description: List of nodes allowed for migration. + items: + type: string + description: An allowed node + dependent-ha-resources: + type: array + description: >- + HA resources, which will be migrated to the same target + node as the VM, because these are in positive affinity + with the VM. + items: + type: string + description: >- + The ':' resource IDs of a HA resource with a + positive affinity rule to this VM. + has-dbus-vmstate: + type: int64 + description: >- + Whether the VM host supports migrating additional VM + state, such as conntrack entries. + local_disks: + type: array + description: >- + List local disks including CD-Rom, unused and not + referenced disks + items: + type: object + description: "" + properties: + cdrom: + type: int64 + description: True if the disk is a cdrom. + is_unused: + type: int64 + description: True if the disk is unused. + size: + type: int64 + description: The size of the disk in bytes. + volid: + type: string + description: The volid of the disk. + local_resources: + type: array + description: "List local resources (e.g. pci, usb) that block migration." + items: + type: string + description: A local resource + mapped-resource-info: + type: object + description: >- + Object of mapped resources with additional information + such if they're live migratable. + mapped-resources: + type: array + description: >- + List of mapped resources e.g. pci, usb. Deprecated, use + 'mapped-resource-info' instead. + items: + type: string + description: A mapped resource + not_allowed_nodes: + type: object + description: List of not allowed nodes with additional information. + properties: + blocking-ha-resources: + type: array + description: >- + HA resources, which are blocking the VM from being + migrated to the node. + items: + type: object + description: A blocking HA resource + properties: + cause: + type: string + description: >- + The reason why the HA resource is blocking the + migration. + sid: + type: string + description: The blocking HA resource id + unavailable_storages: + type: array + description: A list of not available storages. + items: + type: string + description: A storage + running: + type: int64 + description: Determines if the VM is running. + CreateNodesSingleQemuSingleMigrateResponse: + description: CreateNodesSingleQemuSingleMigrateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + CreateNodesSingleQemuSingleRemotemigrateResponse: + description: CreateNodesSingleQemuSingleRemotemigrateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + CreateNodesSingleQemuSingleMonitorResponse: + description: CreateNodesSingleQemuSingleMonitorResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + ResizeVMDiskResponse: + description: ResizeVMDiskResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + GetVMSnapshotsResponse: + description: GetVMSnapshotsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + description: + type: string + description: Snapshot description. + name: + type: string + description: >- + Snapshot identifier. Value 'current' identifies the + current VM. + parent: + type: string + description: Parent snapshot identifier. + snaptime: + type: int64 + description: Snapshot creation time + vmstate: + type: int64 + description: Snapshot includes RAM. + CreateVMSnapshotResponse: + description: CreateVMSnapshotResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + DeleteVMSnapshotResponse: + description: DeleteVMSnapshotResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + GetVMSnapshotResponse: + description: GetVMSnapshotResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetVMSnapshotConfigResponse: + description: GetVMSnapshotConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateVMSnapshotConfigResponse: + description: UpdateVMSnapshotConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + RollbackVMSnapshotResponse: + description: RollbackVMSnapshotResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + CreateNodesSingleQemuSingleTemplateResponse: + description: CreateNodesSingleQemuSingleTemplateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + CreateNodesSingleQemuSingleMtunnelResponse: + description: CreateNodesSingleQemuSingleMtunnelResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleQemuSingleMtunnelwebsocketResponse: + description: GetNodesSingleQemuSingleMtunnelwebsocketResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + port: + type: string + description: "" + socket: + type: string + description: "" + CreateNodesSingleQemuSingleDbusvmstateResponse: + description: CreateNodesSingleQemuSingleDbusvmstateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcResponse: + description: GetNodesSingleLxcResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cpu: + type: number + description: Current CPU usage. + cpus: + type: number + description: Maximum usable CPUs. + disk: + type: int64 + description: Root disk image space-usage in bytes. + diskread: + type: int64 + description: >- + The amount of bytes the guest read from it's block + devices since the guest was started. (Note: This info is + not available for all storage types.) + diskwrite: + type: int64 + description: >- + The amount of bytes the guest wrote from it's block + devices since the guest was started. (Note: This info is + not available for all storage types.) + lock: + type: string + description: "The current config lock, if any." + maxdisk: + type: int64 + description: Root disk image size in bytes. + maxmem: + type: int64 + description: Maximum memory in bytes. + maxswap: + type: int64 + description: Maximum SWAP memory in bytes. + mem: + type: int64 + description: Currently used memory in bytes. + name: + type: string + description: Container name. + netin: + type: int64 + description: >- + The amount of traffic in bytes that was sent to the + guest over the network since it was started. + netout: + type: int64 + description: >- + The amount of traffic in bytes that was sent from the + guest over the network since it was started. + pressurecpusome: + type: number + description: >- + CPU Some pressure stall average over the last 10 + seconds. + pressureiofull: + type: number + description: IO Full pressure stall average over the last 10 seconds. + pressureiosome: + type: number + description: IO Some pressure stall average over the last 10 seconds. + pressurememoryfull: + type: number + description: >- + Memory Full pressure stall average over the last 10 + seconds. + pressurememorysome: + type: number + description: >- + Memory Some pressure stall average over the last 10 + seconds. + status: + type: string + description: LXC Container status. + tags: + type: string + description: "The current configured tags, if any." + template: + type: int64 + description: Determines if the guest is a template. + uptime: + type: int64 + description: Uptime in seconds. + vmid: + type: int64 + description: The (unique) ID of the VM. + CreateNodesSingleLxcResponse: + description: CreateNodesSingleLxcResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleLxcSingleResponse: + description: DeleteNodesSingleLxcSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleResponse: + description: GetNodesSingleLxcSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetNodesSingleLxcSingleConfigResponse: + description: GetNodesSingleLxcSingleConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + arch: + type: string + description: OS architecture type. + cmode: + type: string + description: >- + Console mode. By default, the console command tries to + open a connection to one of the available tty devices. By + setting cmode to 'console' it tries to attach to + /dev/console instead. If you set cmode to 'shell', it + simply invokes a shell inside the container (no login). + console: + type: int64 + description: Attach a console device (/dev/console) to the container. + cores: + type: int64 + description: >- + The number of cores assigned to the container. A container + can use all available cores by default. + cpulimit: + type: number + description: >- + Limit of CPU usage. + + + NOTE: If the computer has 2 CPUs, it has a total of '2' + CPU time. Value '0' indicates no CPU limit. + cpuunits: + type: int64 + description: >- + CPU weight for a container, will be clamped to [1, 10000] + in cgroup v2. + debug: + type: int64 + description: >- + Try to be more verbose. For now this only enables debug + log-level on start. + description: + type: string + description: >- + Description for the Container. Shown in the web-interface + CT's summary. This is saved as comment inside the + configuration file. + dev0: + type: string + description: Device to pass through to the container + dev1: + type: string + description: Device to pass through to the container + dev2: + type: string + description: Device to pass through to the container + dev3: + type: string + description: Device to pass through to the container + dev4: + type: string + description: Device to pass through to the container + dev5: + type: string + description: Device to pass through to the container + dev6: + type: string + description: Device to pass through to the container + dev7: + type: string + description: Device to pass through to the container + dev8: + type: string + description: Device to pass through to the container + dev9: + type: string + description: Device to pass through to the container + dev10: + type: string + description: Device to pass through to the container + dev11: + type: string + description: Device to pass through to the container + dev12: + type: string + description: Device to pass through to the container + dev13: + type: string + description: Device to pass through to the container + dev14: + type: string + description: Device to pass through to the container + dev15: + type: string + description: Device to pass through to the container + dev16: + type: string + description: Device to pass through to the container + dev17: + type: string + description: Device to pass through to the container + dev18: + type: string + description: Device to pass through to the container + dev19: + type: string + description: Device to pass through to the container + dev20: + type: string + description: Device to pass through to the container + dev21: + type: string + description: Device to pass through to the container + dev22: + type: string + description: Device to pass through to the container + dev23: + type: string + description: Device to pass through to the container + dev24: + type: string + description: Device to pass through to the container + dev25: + type: string + description: Device to pass through to the container + dev26: + type: string + description: Device to pass through to the container + dev27: + type: string + description: Device to pass through to the container + dev28: + type: string + description: Device to pass through to the container + dev29: + type: string + description: Device to pass through to the container + digest: + type: string + description: >- + SHA1 digest of configuration file. This can be used to + prevent concurrent modifications. + entrypoint: + type: string + description: >- + Command to run as init, optionally with arguments; may + start with an absolute path, relative path, or a binary in + $PATH. + env: + type: string + description: >- + The container runtime environment as NUL-separated list. + Replaces any lxc.environment.runtime entries in the + config. + features: + type: string + description: Allow containers access to advanced features. + hookscript: + type: string + description: >- + Script that will be executed during various steps in the + containers lifetime. + hostname: + type: string + description: Set a host name for the container. + lock: + type: string + description: Lock/unlock the container. + lxc: + type: array + description: >- + Array of lxc low-level configurations ([[key1, value1], + [key2, value2] ...]). + items: + type: array + description: "" + items: + type: string + description: "" + memory: + type: int64 + description: Amount of RAM for the container in MB. + mp0: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp1: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp2: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp3: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp4: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp5: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp6: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp7: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp8: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp9: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp10: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp11: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp12: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp13: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp14: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp15: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp16: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp17: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp18: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp19: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp20: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp21: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp22: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp23: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp24: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp25: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp26: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp27: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp28: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + mp29: + type: string + description: >- + Use volume as container mount point. Use the special + syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. + nameserver: + type: string + description: >- + Sets DNS server IP address for a container. Create will + automatically use the setting from the host if you neither + set searchdomain nor nameserver. + net0: + type: string + description: Specifies network interfaces for the container. + net1: + type: string + description: Specifies network interfaces for the container. + net2: + type: string + description: Specifies network interfaces for the container. + net3: + type: string + description: Specifies network interfaces for the container. + net4: + type: string + description: Specifies network interfaces for the container. + net5: + type: string + description: Specifies network interfaces for the container. + net6: + type: string + description: Specifies network interfaces for the container. + net7: + type: string + description: Specifies network interfaces for the container. + net8: + type: string + description: Specifies network interfaces for the container. + net9: + type: string + description: Specifies network interfaces for the container. + net10: + type: string + description: Specifies network interfaces for the container. + net11: + type: string + description: Specifies network interfaces for the container. + net12: + type: string + description: Specifies network interfaces for the container. + net13: + type: string + description: Specifies network interfaces for the container. + net14: + type: string + description: Specifies network interfaces for the container. + net15: + type: string + description: Specifies network interfaces for the container. + net16: + type: string + description: Specifies network interfaces for the container. + net17: + type: string + description: Specifies network interfaces for the container. + net18: + type: string + description: Specifies network interfaces for the container. + net19: + type: string + description: Specifies network interfaces for the container. + net20: + type: string + description: Specifies network interfaces for the container. + net21: + type: string + description: Specifies network interfaces for the container. + net22: + type: string + description: Specifies network interfaces for the container. + net23: + type: string + description: Specifies network interfaces for the container. + net24: + type: string + description: Specifies network interfaces for the container. + net25: + type: string + description: Specifies network interfaces for the container. + net26: + type: string + description: Specifies network interfaces for the container. + net27: + type: string + description: Specifies network interfaces for the container. + net28: + type: string + description: Specifies network interfaces for the container. + net29: + type: string + description: Specifies network interfaces for the container. + onboot: + type: int64 + description: >- + Specifies whether a container will be started during + system bootup. + ostype: + type: string + description: >- + OS type. This is used to setup configuration inside the + container, and corresponds to lxc setup scripts in + /usr/share/lxc/config/.common.conf. Value + 'unmanaged' can be used to skip and OS specific setup. + protection: + type: int64 + description: >- + Sets the protection flag of the container. This will + prevent the CT or CT's disk remove/update operation. + rootfs: + type: string + description: Use volume as container root. + searchdomain: + type: string + description: >- + Sets DNS search domains for a container. Create will + automatically use the setting from the host if you neither + set searchdomain nor nameserver. + startup: + type: string + description: >- + Startup and shutdown behavior. Order is a non-negative + number defining the general startup order. Shutdown in + done with reverse ordering. Additionally you can set the + 'up' or 'down' delay in seconds, which specifies a delay + to wait before the next VM is started or stopped. + swap: + type: int64 + description: Amount of SWAP for the container in MB. + tags: + type: string + description: Tags of the Container. This is only meta information. + template: + type: int64 + description: Enable/disable Template. + timezone: + type: string + description: >- + Time zone to use in the container. If option isn't set, + then nothing will be done. Can be set to 'host' to match + the host time zone, or an arbitrary time zone option from + /usr/share/zoneinfo/zone.tab + tty: + type: int64 + description: Specify the number of tty available to the container + unprivileged: + type: int64 + description: >- + Makes the container run as unprivileged user. For + creation, the default is 1. For restore, the default is + the value from the backup. (Should not be modified + manually.) + unused0: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused1: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused2: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused3: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused4: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused5: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused6: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused7: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused8: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused9: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused10: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused11: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused12: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused13: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused14: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused15: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused16: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused17: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused18: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused19: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused20: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused21: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused22: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused23: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused24: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused25: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused26: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused27: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused28: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + unused29: + type: string + description: >- + Reference to unused volumes. This is used internally, and + should not be modified manually. + UpdateNodesSingleLxcSingleConfigResponse: + description: UpdateNodesSingleLxcSingleConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleStatusResponse: + description: GetNodesSingleLxcSingleStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetNodesSingleLxcSingleStatusCurrentResponse: + description: GetNodesSingleLxcSingleStatusCurrentResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + cpu: + type: number + description: Current CPU usage. + cpus: + type: number + description: Maximum usable CPUs. + disk: + type: int64 + description: Root disk image space-usage in bytes. + diskread: + type: int64 + description: >- + The amount of bytes the guest read from it's block devices + since the guest was started. (Note: This info is not + available for all storage types.) + diskwrite: + type: int64 + description: >- + The amount of bytes the guest wrote from it's block + devices since the guest was started. (Note: This info is + not available for all storage types.) + ha: + type: object + description: HA manager service status. + lock: + type: string + description: "The current config lock, if any." + maxdisk: + type: int64 + description: Root disk image size in bytes. + maxmem: + type: int64 + description: Maximum memory in bytes. + maxswap: + type: int64 + description: Maximum SWAP memory in bytes. + mem: + type: int64 + description: Currently used memory in bytes. + name: + type: string + description: Container name. + netin: + type: int64 + description: >- + The amount of traffic in bytes that was sent to the guest + over the network since it was started. + netout: + type: int64 + description: >- + The amount of traffic in bytes that was sent from the + guest over the network since it was started. + pressurecpusome: + type: number + description: CPU Some pressure stall average over the last 10 seconds. + pressureiofull: + type: number + description: IO Full pressure stall average over the last 10 seconds. + pressureiosome: + type: number + description: IO Some pressure stall average over the last 10 seconds. + pressurememoryfull: + type: number + description: >- + Memory Full pressure stall average over the last 10 + seconds. + pressurememorysome: + type: number + description: >- + Memory Some pressure stall average over the last 10 + seconds. + status: + type: string + description: LXC Container status. + tags: + type: string + description: "The current configured tags, if any." + template: + type: int64 + description: Determines if the guest is a template. + uptime: + type: int64 + description: Uptime in seconds. + vmid: + type: int64 + description: The (unique) ID of the VM. + CreateNodesSingleLxcSingleStatusStartResponse: + description: CreateNodesSingleLxcSingleStatusStartResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleLxcSingleStatusStopResponse: + description: CreateNodesSingleLxcSingleStatusStopResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleLxcSingleStatusShutdownResponse: + description: CreateNodesSingleLxcSingleStatusShutdownResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleLxcSingleStatusSuspendResponse: + description: CreateNodesSingleLxcSingleStatusSuspendResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleLxcSingleStatusResumeResponse: + description: CreateNodesSingleLxcSingleStatusResumeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleLxcSingleStatusRebootResponse: + description: CreateNodesSingleLxcSingleStatusRebootResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleSnapshotResponse: + description: GetNodesSingleLxcSingleSnapshotResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + description: + type: string + description: Snapshot description. + name: + type: string + description: >- + Snapshot identifier. Value 'current' identifies the + current VM. + parent: + type: string + description: Parent snapshot identifier. + snaptime: + type: int64 + description: Snapshot creation time + CreateNodesSingleLxcSingleSnapshotResponse: + description: CreateNodesSingleLxcSingleSnapshotResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + DeleteNodesSingleLxcSingleSnapshotSingleResponse: + description: DeleteNodesSingleLxcSingleSnapshotSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + GetNodesSingleLxcSingleSnapshotSingleResponse: + description: GetNodesSingleLxcSingleSnapshotSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateNodesSingleLxcSingleSnapshotSingleRollbackResponse: + description: CreateNodesSingleLxcSingleSnapshotSingleRollbackResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + GetNodesSingleLxcSingleSnapshotSingleConfigResponse: + description: GetNodesSingleLxcSingleSnapshotSingleConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateNodesSingleLxcSingleSnapshotSingleConfigResponse: + description: UpdateNodesSingleLxcSingleSnapshotSingleConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallResponse: + description: GetNodesSingleLxcSingleFirewallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleLxcSingleFirewallRulesResponse: + description: GetNodesSingleLxcSingleFirewallRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security + group name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + CreateNodesSingleLxcSingleFirewallRulesResponse: + description: CreateNodesSingleLxcSingleFirewallRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleLxcSingleFirewallRulesSingleResponse: + description: DeleteNodesSingleLxcSingleFirewallRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallRulesSingleResponse: + description: GetNodesSingleLxcSingleFirewallRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security group + name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + UpdateNodesSingleLxcSingleFirewallRulesSingleResponse: + description: UpdateNodesSingleLxcSingleFirewallRulesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallAliasesResponse: + description: GetNodesSingleLxcSingleFirewallAliasesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cidr: + type: string + description: "" + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + name: + type: string + description: "" + CreateNodesSingleLxcSingleFirewallAliasesResponse: + description: CreateNodesSingleLxcSingleFirewallAliasesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleLxcSingleFirewallAliasesSingleResponse: + description: DeleteNodesSingleLxcSingleFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallAliasesSingleResponse: + description: GetNodesSingleLxcSingleFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateNodesSingleLxcSingleFirewallAliasesSingleResponse: + description: UpdateNodesSingleLxcSingleFirewallAliasesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallIpsetResponse: + description: GetNodesSingleLxcSingleFirewallIpsetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + name: + type: string + description: IP set name. + CreateNodesSingleLxcSingleFirewallIpsetResponse: + description: CreateNodesSingleLxcSingleFirewallIpsetResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleLxcSingleFirewallIpsetSingleResponse: + description: DeleteNodesSingleLxcSingleFirewallIpsetSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallIpsetSingleResponse: + description: GetNodesSingleLxcSingleFirewallIpsetSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + cidr: + type: string + description: "" + comment: + type: string + description: "" + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + nomatch: + type: int64 + description: "" + CreateNodesSingleLxcSingleFirewallIpsetSingleResponse: + description: CreateNodesSingleLxcSingleFirewallIpsetSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleResponse: + description: DeleteNodesSingleLxcSingleFirewallIpsetSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallIpsetSingleSingleResponse: + description: GetNodesSingleLxcSingleFirewallIpsetSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleResponse: + description: UpdateNodesSingleLxcSingleFirewallIpsetSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallOptionsResponse: + description: GetNodesSingleLxcSingleFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + dhcp: + type: int64 + description: Enable DHCP. + enable: + type: int64 + description: Enable/disable firewall rules. + ipfilter: + type: int64 + description: >- + Enable default IP filters. This is equivalent to adding an + empty ipfilter-net ipset for every interface. Such + ipsets implicitly contain sane default restrictions such + as restricting IPv6 link local addresses to the one + derived from the interface's MAC address. For containers + the configured IP addresses will be implicitly added. + log_level_in: + type: string + description: Log level for incoming traffic. + log_level_out: + type: string + description: Log level for outgoing traffic. + macfilter: + type: int64 + description: Enable/disable MAC address filter. + ndp: + type: int64 + description: Enable NDP (Neighbor Discovery Protocol). + policy_in: + type: string + description: Input policy. + policy_out: + type: string + description: Output policy. + radv: + type: int64 + description: Allow sending Router Advertisement. + UpdateNodesSingleLxcSingleFirewallOptionsResponse: + description: UpdateNodesSingleLxcSingleFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleFirewallLogResponse: + description: GetNodesSingleLxcSingleFirewallLogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + "n": + type: int64 + description: Line number + t: + type: string + description: Line text + GetNodesSingleLxcSingleFirewallRefsResponse: + description: GetNodesSingleLxcSingleFirewallRefsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + name: + type: string + description: "" + ref: + type: string + description: "" + scope: + type: string + description: "" + type: + type: string + description: "" + GetNodesSingleLxcSingleRrdResponse: + description: GetNodesSingleLxcSingleRrdResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + filename: + type: string + description: "" + GetNodesSingleLxcSingleRrddataResponse: + description: GetNodesSingleLxcSingleRrddataResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateNodesSingleLxcSingleVncproxyResponse: + description: CreateNodesSingleLxcSingleVncproxyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleLxcSingleTermproxyResponse: + description: CreateNodesSingleLxcSingleTermproxyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleVncwebsocketResponse: + description: GetNodesSingleLxcSingleVncwebsocketResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + port: + type: string + description: "" + CreateNodesSingleLxcSingleSpiceproxyResponse: + description: CreateNodesSingleLxcSingleSpiceproxyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: >- + Returned values can be directly passed to the 'remote-viewer' + application. + CreateNodesSingleLxcSingleRemotemigrateResponse: + description: CreateNodesSingleLxcSingleRemotemigrateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + GetNodesSingleLxcSingleMigrateResponse: + description: GetNodesSingleLxcSingleMigrateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + allowed-nodes: + type: array + description: List of nodes allowed for migration. + items: + type: string + description: An allowed node + dependent-ha-resources: + type: array + description: >- + HA resources, which will be migrated to the same target + node as the VM, because these are in positive affinity + with the VM. + items: + type: string + description: >- + The ':' resource IDs of a HA resource with a + positive affinity rule to this CT. + not-allowed-nodes: + type: object + description: List of not allowed nodes with additional information. + properties: + blocking-ha-resources: + type: array + description: >- + HA resources, which are blocking the container from + being migrated to the node. + items: + type: object + description: A blocking HA resource + properties: + cause: + type: string + description: >- + The reason why the HA resource is blocking the + migration. + sid: + type: string + description: The blocking HA resource id + running: + type: int64 + description: Determines if the container is running. + CreateNodesSingleLxcSingleMigrateResponse: + description: CreateNodesSingleLxcSingleMigrateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + GetNodesSingleLxcSingleFeatureResponse: + description: GetNodesSingleLxcSingleFeatureResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + hasFeature: + type: int64 + description: "" + CreateNodesSingleLxcSingleTemplateResponse: + description: CreateNodesSingleLxcSingleTemplateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleLxcSingleCloneResponse: + description: CreateNodesSingleLxcSingleCloneResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateNodesSingleLxcSingleResizeResponse: + description: UpdateNodesSingleLxcSingleResizeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: the task ID. + CreateNodesSingleLxcSingleMovevolumeResponse: + description: CreateNodesSingleLxcSingleMovevolumeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSinglePendingResponse: + description: GetNodesSingleLxcSinglePendingResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + delete: + type: int64 + description: Indicates a pending delete request if present and not 0. + key: + type: string + description: Configuration option name. + pending: + type: string + description: Pending value. + value: + type: string + description: Current value. + GetNodesSingleLxcSingleInterfacesResponse: + description: GetNodesSingleLxcSingleInterfacesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + hardware-address: + type: string + description: The MAC address of the interface + hwaddr: + type: string + description: The MAC address of the interface + inet: + type: string + description: The IPv4 address of the interface + inet6: + type: string + description: The IPv6 address of the interface + ip-addresses: + type: array + description: The addresses of the interface + items: + type: object + description: "" + properties: + ip-address: + type: string + description: IP-Address + ip-address-type: + type: string + description: IP-Family + prefix: + type: int64 + description: IP-Prefix + name: + type: string + description: The name of the interface + CreateNodesSingleLxcSingleMtunnelResponse: + description: CreateNodesSingleLxcSingleMtunnelResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleLxcSingleMtunnelwebsocketResponse: + description: GetNodesSingleLxcSingleMtunnelwebsocketResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + port: + type: string + description: "" + socket: + type: string + description: "" + GetNodesSingleCephResponse: + description: GetNodesSingleCephResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleCephCfgResponse: + description: GetNodesSingleCephCfgResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleCephCfgRawResponse: + description: GetNodesSingleCephCfgRawResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephCfgDbResponse: + description: GetNodesSingleCephCfgDbResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + can_update_at_runtime: + type: int64 + description: "" + level: + type: string + description: "" + mask: + type: string + description: "" + name: + type: string + description: "" + section: + type: string + description: "" + value: + type: string + description: "" + GetNodesSingleCephCfgValueResponse: + description: GetNodesSingleCephCfgValueResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "Contains {section}->{key} children with the values" + GetNodesSingleCephOsdResponse: + description: GetNodesSingleCephOsdResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + CreateNodesSingleCephOsdResponse: + description: CreateNodesSingleCephOsdResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleCephOsdSingleResponse: + description: DeleteNodesSingleCephOsdSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephOsdSingleResponse: + description: GetNodesSingleCephOsdSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleCephOsdSingleMetadataResponse: + description: GetNodesSingleCephOsdSingleMetadataResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + devices: + type: array + description: Array containing data about devices + items: + type: object + description: "" + properties: + dev_node: + type: string + description: Device node + device: + type: string + description: Kind of OSD device + devices: + type: string + description: Physical disks used + size: + type: int64 + description: Size in bytes + support_discard: + type: int64 + description: Discard support of the physical device + type: + type: string + description: "Type of device. For example, hdd or ssd" + osd: + type: object + description: General information about the OSD + properties: + back_addr: + type: string + description: Address and port used to talk to other OSDs. + front_addr: + type: string + description: Address and port used to talk to clients and monitors. + hb_back_addr: + type: string + description: Heartbeat address and port for other OSDs. + hb_front_addr: + type: string + description: Heartbeat address and port for clients and monitors. + hostname: + type: string + description: Name of the host containing the OSD. + id: + type: int64 + description: ID of the OSD. + mem_usage: + type: int64 + description: Memory usage of the OSD service. + osd_data: + type: string + description: Path to the OSD's data directory. + osd_objectstore: + type: string + description: The type of object store used. + pid: + type: int64 + description: OSD process ID. + version: + type: string + description: Ceph version of the OSD service. + GetNodesSingleCephOsdSingleLvinfoResponse: + description: GetNodesSingleCephOsdSingleLvinfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + creation_time: + type: string + description: Creation time as reported by `lvs`. + lv_name: + type: string + description: Name of the logical volume (LV). + lv_path: + type: string + description: Path to the logical volume (LV). + lv_size: + type: int64 + description: Size of the logical volume (LV). + lv_uuid: + type: string + description: UUID of the logical volume (LV). + vg_name: + type: string + description: Name of the volume group (VG). + CreateNodesSingleCephOsdSingleInResponse: + description: CreateNodesSingleCephOsdSingleInResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCephOsdSingleOutResponse: + description: CreateNodesSingleCephOsdSingleOutResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCephOsdSingleScrubResponse: + description: CreateNodesSingleCephOsdSingleScrubResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephMdsResponse: + description: GetNodesSingleCephMdsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + addr: + type: string + description: "" + host: + type: string + description: "" + name: + type: string + description: The name (ID) for the MDS + rank: + type: int64 + description: "" + standby_replay: + type: int64 + description: >- + If true, the standby MDS is polling the active MDS for + faster recovery (hot standby). + state: + type: string + description: State of the MDS + DeleteNodesSingleCephMdsSingleResponse: + description: DeleteNodesSingleCephMdsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCephMdsSingleResponse: + description: CreateNodesSingleCephMdsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephMgrResponse: + description: GetNodesSingleCephMgrResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + addr: + type: string + description: "" + host: + type: string + description: "" + name: + type: string + description: The name (ID) for the MGR + state: + type: string + description: State of the MGR + DeleteNodesSingleCephMgrSingleResponse: + description: DeleteNodesSingleCephMgrSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCephMgrSingleResponse: + description: CreateNodesSingleCephMgrSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephMonResponse: + description: GetNodesSingleCephMonResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + addr: + type: string + description: "" + ceph_version: + type: string + description: "" + ceph_version_short: + type: string + description: "" + direxists: + type: string + description: "" + host: + type: int64 + description: "" + name: + type: string + description: "" + quorum: + type: int64 + description: "" + rank: + type: int64 + description: "" + service: + type: int64 + description: "" + state: + type: string + description: "" + DeleteNodesSingleCephMonSingleResponse: + description: DeleteNodesSingleCephMonSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCephMonSingleResponse: + description: CreateNodesSingleCephMonSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephFsResponse: + description: GetNodesSingleCephFsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + data_pool: + type: string + description: The name of the data pool. + metadata_pool: + type: string + description: The name of the metadata pool. + name: + type: string + description: The ceph filesystem name. + CreateNodesSingleCephFsSingleResponse: + description: CreateNodesSingleCephFsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephPoolResponse: + description: GetNodesSingleCephPoolResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + application_metadata: + type: object + description: "" + autoscale_status: + type: object + description: "" + bytes_used: + type: int64 + description: "" + crush_rule: + type: int64 + description: "" + crush_rule_name: + type: string + description: "" + min_size: + type: int64 + description: "" + percent_used: + type: number + description: "" + pg_autoscale_mode: + type: string + description: "" + pg_num: + type: int64 + description: "" + pg_num_final: + type: int64 + description: "" + pg_num_min: + type: int64 + description: "" + pool: + type: int64 + description: "" + pool_name: + type: string + description: "" + size: + type: int64 + description: "" + target_size: + type: int64 + description: "" + target_size_ratio: + type: number + description: "" + type: + type: string + description: "" + CreateNodesSingleCephPoolResponse: + description: CreateNodesSingleCephPoolResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleCephPoolSingleResponse: + description: DeleteNodesSingleCephPoolSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephPoolSingleResponse: + description: GetNodesSingleCephPoolSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + UpdateNodesSingleCephPoolSingleResponse: + description: UpdateNodesSingleCephPoolSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephPoolSingleStatusResponse: + description: GetNodesSingleCephPoolSingleStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + application: + type: string + description: The application of the pool. + application_list: + type: array + description: "" + autoscale_status: + type: object + description: "" + crush_rule: + type: string + description: >- + The rule to use for mapping object placement in the + cluster. + fast_read: + type: int64 + description: "" + hashpspool: + type: int64 + description: "" + id: + type: int64 + description: "" + min_size: + type: int64 + description: Minimum number of replicas per object + name: + type: string + description: The name of the pool. It must be unique. + nodeep-scrub: + type: int64 + description: "" + nodelete: + type: int64 + description: "" + nopgchange: + type: int64 + description: "" + noscrub: + type: int64 + description: "" + nosizechange: + type: int64 + description: "" + pg_autoscale_mode: + type: string + description: The automatic PG scaling mode of the pool. + pg_num: + type: int64 + description: Number of placement groups. + pg_num_min: + type: int64 + description: Minimal number of placement groups. + pgp_num: + type: int64 + description: "" + size: + type: int64 + description: Number of replicas per object + statistics: + type: object + description: "" + target_size: + type: string + description: >- + The estimated target size of the pool for the PG + autoscaler. + target_size_ratio: + type: number + description: >- + The estimated target ratio of the pool for the PG + autoscaler. + use_gmt_hitset: + type: int64 + description: "" + write_fadvise_dontneed: + type: int64 + description: "" + CreateNodesSingleCephInitResponse: + description: CreateNodesSingleCephInitResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCephStopResponse: + description: CreateNodesSingleCephStopResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCephStartResponse: + description: CreateNodesSingleCephStartResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCephRestartResponse: + description: CreateNodesSingleCephRestartResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephStatusResponse: + description: GetNodesSingleCephStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + GetNodesSingleCephCrushResponse: + description: GetNodesSingleCephCrushResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCephLogResponse: + description: GetNodesSingleCephLogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + "n": + type: int64 + description: Line number + t: + type: string + description: Line text + GetNodesSingleCephRulesResponse: + description: GetNodesSingleCephRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + name: + type: string + description: Name of the CRUSH rule. + GetNodesSingleCephCmdsafetyResponse: + description: GetNodesSingleCephCmdsafetyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + safe: + type: int64 + description: If it is safe to run the command. + status: + type: string + description: Status message given by Ceph. + CreateNodesSingleVzdumpResponse: + description: CreateNodesSingleVzdumpResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleVzdumpDefaultsResponse: + description: GetNodesSingleVzdumpDefaultsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + all: + type: int64 + description: Backup all known guest systems on this host. + bwlimit: + type: int64 + description: Limit I/O bandwidth (in KiB/s). + compress: + type: string + description: Compress dump file. + dumpdir: + type: string + description: Store resulting files to specified directory. + exclude: + type: string + description: Exclude specified guest systems (assumes --all) + exclude-path: + type: array + description: >- + Exclude certain files/directories (shell globs). Paths + starting with '/' are anchored to the container's root, + other paths match relative to each subdirectory. + items: + type: string + description: "" + fleecing: + type: string + description: Options for backup fleecing (VM only). + ionice: + type: int64 + description: >- + Set IO priority when using the BFQ scheduler. For snapshot + and suspend mode backups of VMs, this only affects the + compressor. A value of 8 means the idle priority is used, + otherwise the best-effort priority is used with the + specified value. + lockwait: + type: int64 + description: Maximal time to wait for the global lock (minutes). + mailnotification: + type: string + description: >- + Deprecated: use notification targets/matchers instead. + Specify when to send a notification mail + mailto: + type: string + description: >- + Deprecated: Use notification targets/matchers instead. + Comma-separated list of email addresses or users that + should receive email notifications. + maxfiles: + type: int64 + description: >- + Deprecated: use 'prune-backups' instead. Maximal number of + backup files per guest system. + mode: + type: string + description: Backup mode. + node: + type: string + description: Only run if executed on this node. + notes-template: + type: string + description: >- + Template string for generating notes for the backup(s). It + can contain variables which will be replaced by their + values. Currently supported are {{cluster}}, + {{guestname}}, {{node}}, and {{vmid}}, but more might be + added in the future. Needs to be a single line, newline + and backslash need to be escaped as '\n' and '\\' + respectively. + notification-mode: + type: string + description: >- + Determine which notification system to use. If set to + 'legacy-sendmail', vzdump will consider the + mailto/mailnotification parameters and send emails to the + specified address(es) via the 'sendmail' command. If set + to 'notification-system', a notification will be sent via + PVE's notification system, and the mailto and + mailnotification will be ignored. If set to 'auto' + (default setting), an email will be sent if mailto is set, + and the notification system will be used if not. + pbs-change-detection-mode: + type: string + description: >- + PBS mode used to detect file changes and switch encoding + format for container backups. + performance: + type: string + description: Other performance-related settings. + pigz: + type: int64 + description: >- + Use pigz instead of gzip when N>0. N=1 uses half of cores, + N>1 uses N as thread count. + pool: + type: string + description: >- + Backup all known guest systems included in the specified + pool. + protected: + type: int64 + description: "If true, mark backup(s) as protected." + prune-backups: + type: string + description: >- + Use these retention options instead of those from the + storage configuration. + quiet: + type: int64 + description: Be quiet. + remove: + type: int64 + description: Prune older backups according to 'prune-backups'. + script: + type: string + description: Use specified hook script. + stdexcludes: + type: int64 + description: Exclude temporary files and logs. + stop: + type: int64 + description: Stop running backup jobs on this host. + stopwait: + type: int64 + description: >- + Maximal time to wait until a guest system is stopped + (minutes). + storage: + type: string + description: Store resulting file to this storage. + tmpdir: + type: string + description: Store temporary files to specified directory. + vmid: + type: string + description: The ID of the guest system you want to backup. + zstd: + type: int64 + description: >- + Zstd threads. N=0 uses half of the available cores, if N + is set to a value bigger than 0, N is used as thread + count. + GetNodesSingleVzdumpExtractconfigResponse: + description: GetNodesSingleVzdumpExtractconfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleServicesResponse: + description: GetNodesSingleServicesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + active-state: + type: string + description: >- + Current state of the service process (systemd + ActiveState). + desc: + type: string + description: Description of the service. + name: + type: string + description: 'Short identifier for the service (e.g., "pveproxy").' + service: + type: string + description: "Systemd unit name (e.g., pveproxy)." + state: + type: string + description: Execution status of the service (systemd SubState). + unit-state: + type: string + description: Whether the service is enabled (systemd UnitFileState). + GetNodesSingleServicesSingleResponse: + description: GetNodesSingleServicesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetNodesSingleServicesSingleStateResponse: + description: GetNodesSingleServicesSingleStateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + active-state: + type: string + description: >- + Current state of the service process (systemd + ActiveState). + desc: + type: string + description: Description of the service. + name: + type: string + description: 'Short identifier for the service (e.g., "pveproxy").' + service: + type: string + description: "Systemd unit name (e.g., pveproxy)." + state: + type: string + description: Execution status of the service (systemd SubState). + unit-state: + type: string + description: Whether the service is enabled (systemd UnitFileState). + CreateNodesSingleServicesSingleStartResponse: + description: CreateNodesSingleServicesSingleStartResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleServicesSingleStopResponse: + description: CreateNodesSingleServicesSingleStopResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleServicesSingleRestartResponse: + description: CreateNodesSingleServicesSingleRestartResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleServicesSingleReloadResponse: + description: CreateNodesSingleServicesSingleReloadResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleSubscriptionResponse: + description: DeleteNodesSingleSubscriptionResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleSubscriptionResponse: + description: GetNodesSingleSubscriptionResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + checktime: + type: int64 + description: Timestamp of the last check done. + key: + type: string + description: "The subscription key, if set and permitted to access." + level: + type: string + description: A short code for the subscription level. + message: + type: string + description: A more human readable status message. + nextduedate: + type: string + description: Next due date of the set subscription. + productname: + type: string + description: Human readable productname of the set subscription. + regdate: + type: string + description: Register date of the set subscription. + serverid: + type: string + description: "The server ID, if permitted to access." + signature: + type: string + description: Signature for offline keys + sockets: + type: int64 + description: The number of sockets for this host. + status: + type: string + description: The current subscription status. + url: + type: string + description: URL to the web shop. + CreateNodesSingleSubscriptionResponse: + description: CreateNodesSingleSubscriptionResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateNodesSingleSubscriptionResponse: + description: UpdateNodesSingleSubscriptionResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleNetworkResponse: + description: DeleteNodesSingleNetworkResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleNetworkResponse: + description: GetNodesSingleNetworkResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + active: + type: int64 + description: Set to true if the interface is active. + address: + type: string + description: IP address. + address6: + type: string + description: IP address. + autostart: + type: int64 + description: Automatically start interface on boot. + bond-primary: + type: string + description: Specify the primary interface for active-backup bond. + bond_mode: + type: string + description: Bonding mode. + bond_xmit_hash_policy: + type: string + description: >- + Selects the transmit hash policy to use for slave + selection in balance-xor and 802.3ad modes. + bridge-access: + type: int64 + description: The bridge port access VLAN. + bridge-arp-nd-suppress: + type: int64 + description: Bridge port ARP/ND suppress flag. + bridge-learning: + type: int64 + description: Bridge port learning flag. + bridge-multicast-flood: + type: int64 + description: Bridge port multicast flood flag. + bridge-unicast-flood: + type: int64 + description: Bridge port unicast flood flag. + bridge_ports: + type: string + description: Specify the interfaces you want to add to your bridge. + bridge_vids: + type: string + description: >- + Specify the allowed VLANs. For example: '2 4 100-200'. + Only used if the bridge is VLAN aware. + bridge_vlan_aware: + type: int64 + description: Enable bridge vlan support. + cidr: + type: string + description: IPv4 CIDR. + cidr6: + type: string + description: IPv6 CIDR. + comments: + type: string + description: Comments + comments6: + type: string + description: Comments + exists: + type: int64 + description: Set to true if the interface physically exists. + families: + type: array + description: The network families. + items: + type: string + description: A network family. + gateway: + type: string + description: Default gateway address. + gateway6: + type: string + description: Default ipv6 gateway address. + iface: + type: string + description: Network interface name. + link-type: + type: string + description: The link type. + method: + type: string + description: The network configuration method for IPv4. + method6: + type: string + description: The network configuration method for IPv6. + mtu: + type: int64 + description: MTU. + netmask: + type: string + description: Network mask. + netmask6: + type: int64 + description: Network mask. + options: + type: array + description: A list of additional interface options for IPv4. + items: + type: string + description: An interface property. + options6: + type: array + description: A list of additional interface options for IPv6. + items: + type: string + description: An interface property. + ovs_bonds: + type: string + description: Specify the interfaces used by the bonding device. + ovs_bridge: + type: string + description: >- + The OVS bridge associated with a OVS port. This is + required when you create an OVS port. + ovs_options: + type: string + description: OVS interface options. + ovs_ports: + type: string + description: Specify the interfaces you want to add to your bridge. + ovs_tag: + type: int64 + description: >- + Specify a VLan tag (used by OVSPort, OVSIntPort, + OVSBond) + priority: + type: int64 + description: The order of the interface. + slaves: + type: string + description: Specify the interfaces used by the bonding device. + type: + type: string + description: Network interface type + uplink-id: + type: string + description: The uplink ID. + vlan-id: + type: int64 + description: >- + vlan-id for a custom named vlan interface (ifupdown2 + only). + vlan-protocol: + type: string + description: The VLAN protocol. + vlan-raw-device: + type: string + description: Specify the raw interface for the vlan interface. + vxlan-id: + type: int64 + description: The VXLAN ID. + vxlan-local-tunnelip: + type: string + description: The VXLAN local tunnel IP. + vxlan-physdev: + type: string + description: The physical device for the VXLAN tunnel. + vxlan-svcnodeip: + type: string + description: The VXLAN SVC node IP. + CreateNodesSingleNetworkResponse: + description: CreateNodesSingleNetworkResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateNodesSingleNetworkResponse: + description: UpdateNodesSingleNetworkResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleNetworkSingleResponse: + description: DeleteNodesSingleNetworkSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleNetworkSingleResponse: + description: GetNodesSingleNetworkSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + method: + type: string + description: "" + type: + type: string + description: "" + UpdateNodesSingleNetworkSingleResponse: + description: UpdateNodesSingleNetworkSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodeTasksResponse: + description: GetNodeTasksResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + endtime: + type: int64 + description: "" + id: + type: string + description: "" + node: + type: string + description: "" + pid: + type: int64 + description: "" + pstart: + type: int64 + description: "" + starttime: + type: int64 + description: "" + status: + type: string + description: "" + type: + type: string + description: "" + upid: + type: string + description: "" + user: + type: string + description: "" + StopNodeTaskResponse: + description: StopNodeTaskResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodeTaskResponse: + description: GetNodeTaskResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodeTaskLogResponse: + description: GetNodeTaskLogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + "n": + type: int64 + description: Line number + t: + type: string + description: Line text + GetNodeTaskStatusResponse: + description: GetNodeTaskStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + exitstatus: + type: string + description: "" + id: + type: string + description: "" + node: + type: string + description: "" + pid: + type: int64 + description: "" + pstart: + type: int64 + description: "" + starttime: + type: int64 + description: "" + status: + type: string + description: "" + type: + type: string + description: "" + upid: + type: string + description: "" + user: + type: string + description: "" + GetNodesSingleScanResponse: + description: GetNodesSingleScanResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + method: + type: string + description: "" + GetNodesSingleScanNfsResponse: + description: GetNodesSingleScanNfsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + options: + type: string + description: NFS export options. + path: + type: string + description: The exported path. + GetNodesSingleScanCifsResponse: + description: GetNodesSingleScanCifsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + description: + type: string + description: Descriptive text from server. + share: + type: string + description: The cifs share name. + GetNodesSingleScanPbsResponse: + description: GetNodesSingleScanPbsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: Comment from server. + store: + type: string + description: The datastore name. + GetNodesSingleScanIscsiResponse: + description: GetNodesSingleScanIscsiResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + portal: + type: string + description: The iSCSI portal name. + target: + type: string + description: The iSCSI target name. + GetNodesSingleScanLvmResponse: + description: GetNodesSingleScanLvmResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + vg: + type: string + description: The LVM logical volume group name. + GetNodesSingleScanLvmthinResponse: + description: GetNodesSingleScanLvmthinResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + lv: + type: string + description: The LVM Thin Pool name (LVM logical volume). + GetNodesSingleScanZfsResponse: + description: GetNodesSingleScanZfsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + pool: + type: string + description: ZFS pool name. + GetNodesSingleHardwareResponse: + description: GetNodesSingleHardwareResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + type: + type: string + description: "" + GetNodesSingleHardwarePciResponse: + description: GetNodesSingleHardwarePciResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + class: + type: string + description: The PCI Class of the device. + device: + type: string + description: The Device ID. + device_name: + type: string + description: "" + id: + type: string + description: The PCI ID. + iommugroup: + type: int64 + description: >- + The IOMMU group in which the device is in. If no IOMMU + group is detected, it is set to -1. + mdev: + type: int64 + description: >- + If set, marks that the device is capable of creating + mediated devices. + subsystem_device: + type: string + description: The Subsystem Device ID. + subsystem_device_name: + type: string + description: "" + subsystem_vendor: + type: string + description: The Subsystem Vendor ID. + subsystem_vendor_name: + type: string + description: "" + vendor: + type: string + description: The Vendor ID. + vendor_name: + type: string + description: "" + GetNodesSingleHardwarePciSingleResponse: + description: GetNodesSingleHardwarePciSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + method: + type: string + description: "" + GetNodesSingleHardwarePciSingleMdevResponse: + description: GetNodesSingleHardwarePciSingleMdevResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + available: + type: int64 + description: The number of still available instances of this type. + description: + type: string + description: Additional description of the type. + name: + type: string + description: A human readable name for the type. + type: + type: string + description: The name of the mdev type. + GetNodesSingleHardwareUsbResponse: + description: GetNodesSingleHardwareUsbResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + busnum: + type: int64 + description: "" + class: + type: int64 + description: "" + devnum: + type: int64 + description: "" + level: + type: int64 + description: "" + manufacturer: + type: string + description: "" + port: + type: int64 + description: "" + prodid: + type: string + description: "" + product: + type: string + description: "" + serial: + type: string + description: "" + speed: + type: string + description: "" + usbpath: + type: string + description: "" + vendid: + type: string + description: "" + GetNodesSingleCapabilitiesResponse: + description: GetNodesSingleCapabilitiesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleCapabilitiesQemuResponse: + description: GetNodesSingleCapabilitiesQemuResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleCapabilitiesQemuCpuResponse: + description: GetNodesSingleCapabilitiesQemuCpuResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + custom: + type: int64 + description: True if this is a custom CPU model. + name: + type: string + description: >- + Name of the CPU model. Identifies it for subsequent API + calls. Prefixed with 'custom-' for custom models. + vendor: + type: string + description: >- + CPU vendor visible to the guest when this model is + selected. Vendor of 'reported-model' in case of custom + models. + GetNodesSingleCapabilitiesQemuCpuflagsResponse: + description: GetNodesSingleCapabilitiesQemuCpuflagsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + description: + type: string + description: Description of the CPU flag. + name: + type: string + description: Name of the CPU flag. + GetNodesSingleCapabilitiesQemuMachinesResponse: + description: GetNodesSingleCapabilitiesQemuMachinesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + changes: + type: string + description: >- + Notable changes of a version, currently only set for + +pveX versions. + id: + type: string + description: Full name of machine type and version. + type: + type: string + description: The machine type. + version: + type: string + description: The machine version. + GetNodesSingleCapabilitiesQemuMigrationResponse: + description: GetNodesSingleCapabilitiesQemuMigrationResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + has-dbus-vmstate: + type: int64 + description: >- + Whether the host supports live-migrating additional VM + state via the dbus-vmstate helper. + GetNodesSingleStorageResponse: + description: GetNodesSingleStorageResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + active: + type: int64 + description: Set when storage is accessible. + avail: + type: int64 + description: Available storage space in bytes. + content: + type: string + description: Allowed storage content types. + enabled: + type: int64 + description: Set when storage is enabled (not disabled). + formats: + type: object + description: >- + Lists the supported and default format. Use 'formats' + instead. Only included if 'format' parameter is set. + properties: + default: + type: string + description: The default format of the storage. + supported: + type: array + description: The list of supported formats + items: + type: string + description: "" + select_existing: + type: int64 + description: >- + Instead of creating new volumes, one must select one + that is already existing. Only included if 'format' + parameter is set. + shared: + type: int64 + description: Shared flag from storage configuration. + storage: + type: string + description: The storage identifier. + total: + type: int64 + description: Total storage space in bytes. + type: + type: string + description: Storage type. + used: + type: int64 + description: Used storage space in bytes. + used_fraction: + type: number + description: Used fraction (used/total). + GetNodesSingleStorageSingleResponse: + description: GetNodesSingleStorageSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + DeleteNodesSingleStorageSinglePrunebackupsResponse: + description: DeleteNodesSingleStorageSinglePrunebackupsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleStorageSinglePrunebackupsResponse: + description: GetNodesSingleStorageSinglePrunebackupsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + ctime: + type: int64 + description: >- + Creation time of the backup (seconds since the UNIX + epoch). + mark: + type: string + description: >- + Whether the backup would be kept or removed. Backups + that are protected or don't use the standard naming + scheme are not removed. + type: + type: string + description: "One of 'qemu', 'lxc', 'openvz' or 'unknown'." + vmid: + type: int64 + description: The VM the backup belongs to. + volid: + type: string + description: Backup volume ID. + GetNodesSingleStorageSingleContentResponse: + description: GetNodesSingleStorageSingleContentResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + ctime: + type: int64 + description: Creation time (seconds since the UNIX Epoch). + encrypted: + type: string + description: >- + If whole backup is encrypted, value is the fingerprint + or '1' if encrypted. Only useful for the Proxmox Backup + Server storage type. + format: + type: string + description: >- + Format identifier ('raw', 'qcow2', 'subvol', 'iso', + 'tgz' ...) + notes: + type: string + description: >- + Optional notes. If they contain multiple lines, only the + first one is returned here. + parent: + type: string + description: Volume identifier of parent (for linked cloned). + protected: + type: int64 + description: Protection status. Currently only supported for backups. + size: + type: int64 + description: Volume size in bytes. + used: + type: int64 + description: >- + Used space. Please note that most storage plugins do not + report anything useful here. + verification: + type: object + description: >- + Last backup verification result, only useful for PBS + storages. + properties: + state: + type: string + description: Last backup verification state. + upid: + type: string + description: Last backup verification UPID. + vmid: + type: int64 + description: Associated Owner VMID. + volid: + type: string + description: Volume identifier. + CreateNodesSingleStorageSingleContentResponse: + description: CreateNodesSingleStorageSingleContentResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: Volume identifier + DeleteNodesSingleStorageSingleContentSingleResponse: + description: DeleteNodesSingleStorageSingleContentSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleStorageSingleContentSingleResponse: + description: GetNodesSingleStorageSingleContentSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + format: + type: string + description: >- + Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' + ...) + notes: + type: string + description: Optional notes. + path: + type: string + description: The Path + protected: + type: int64 + description: Protection status. Currently only supported for backups. + size: + type: int64 + description: Volume size in bytes. + used: + type: int64 + description: >- + Used space. Please note that most storage plugins do not + report anything useful here. + CreateNodesSingleStorageSingleContentSingleResponse: + description: CreateNodesSingleStorageSingleContentSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateNodesSingleStorageSingleContentSingleResponse: + description: UpdateNodesSingleStorageSingleContentSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleStorageSingleFilerestoreListResponse: + description: GetNodesSingleStorageSingleFilerestoreListResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + filepath: + type: string + description: base64 path of the current entry + leaf: + type: int64 + description: If this entry is a leaf in the directory graph. + mtime: + type: int64 + description: Entry last-modified time (unix timestamp). + size: + type: int64 + description: Entry file size. + text: + type: string + description: Entry display text. + type: + type: string + description: Entry type. + GetNodesSingleStorageSingleFilerestoreDownloadResponse: + description: GetNodesSingleStorageSingleFilerestoreDownloadResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: any + description: "" + GetNodesSingleStorageSingleStatusResponse: + description: GetNodesSingleStorageSingleStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + active: + type: int64 + description: Set when storage is accessible. + avail: + type: int64 + description: Available storage space in bytes. + content: + type: string + description: Allowed storage content types. + enabled: + type: int64 + description: Set when storage is enabled (not disabled). + shared: + type: int64 + description: Shared flag from storage configuration. + total: + type: int64 + description: Total storage space in bytes. + type: + type: string + description: Storage type. + used: + type: int64 + description: Used storage space in bytes. + GetNodesSingleStorageSingleRrdResponse: + description: GetNodesSingleStorageSingleRrdResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + filename: + type: string + description: "" + GetNodesSingleStorageSingleRrddataResponse: + description: GetNodesSingleStorageSingleRrddataResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateNodesSingleStorageSingleUploadResponse: + description: CreateNodesSingleStorageSingleUploadResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleStorageSingleDownloadurlResponse: + description: CreateNodesSingleStorageSingleDownloadurlResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleStorageSingleOciregistrypullResponse: + description: CreateNodesSingleStorageSingleOciregistrypullResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleStorageSingleImportmetadataResponse: + description: GetNodesSingleStorageSingleImportmetadataResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Information about how to import a guest. + properties: + create-args: + type: object + description: >- + Parameters which can be used in a call to create a VM or + container. + disks: + type: object + description: >- + Recognised disk volumes as `$bus$id` => `$storeid:$path` + map. + net: + type: object + description: >- + Recognised network interfaces as `net$id` => { ...params } + object. + source: + type: string + description: The type of the import-source of this guest volume. + type: + type: string + description: The type of guest this is going to produce. + warnings: + type: array + description: >- + List of known issues that can affect the import of a + guest. Note that lack of warning does not imply that there + cannot be any problems. + items: + type: object + description: "" + properties: + key: + type: string + description: Related subject (config) key of warning. + type: + type: string + description: What this warning is about. + value: + type: string + description: Related subject (config) value of warning. + GetNodesSingleDisksResponse: + description: GetNodesSingleDisksResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleDisksLvmResponse: + description: GetNodesSingleDisksLvmResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + children: + type: array + description: "" + items: + type: object + description: "" + properties: + children: + type: array + description: The underlying physical volumes + items: + type: object + description: "" + properties: + free: + type: int64 + description: The free bytes in the physical volume + leaf: + type: int64 + description: "" + name: + type: string + description: The name of the physical volume + size: + type: int64 + description: The size of the physical volume in bytes + free: + type: int64 + description: The free bytes in the volume group + leaf: + type: int64 + description: "" + name: + type: string + description: The name of the volume group + size: + type: int64 + description: The size of the volume group in bytes + leaf: + type: int64 + description: "" + CreateNodesSingleDisksLvmResponse: + description: CreateNodesSingleDisksLvmResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleDisksLvmSingleResponse: + description: DeleteNodesSingleDisksLvmSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleDisksLvmthinResponse: + description: GetNodesSingleDisksLvmthinResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + lv: + type: string + description: The name of the thinpool. + lv_size: + type: int64 + description: The size of the thinpool in bytes. + metadata_size: + type: int64 + description: The size of the metadata lv in bytes. + metadata_used: + type: int64 + description: The used bytes of the metadata lv. + used: + type: int64 + description: The used bytes of the thinpool. + vg: + type: string + description: The associated volume group. + CreateNodesSingleDisksLvmthinResponse: + description: CreateNodesSingleDisksLvmthinResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleDisksLvmthinSingleResponse: + description: DeleteNodesSingleDisksLvmthinSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleDisksDirectoryResponse: + description: GetNodesSingleDisksDirectoryResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + device: + type: string + description: The mounted device. + options: + type: string + description: The mount options. + path: + type: string + description: The mount path. + type: + type: string + description: The filesystem type. + unitfile: + type: string + description: The path of the mount unit. + CreateNodesSingleDisksDirectoryResponse: + description: CreateNodesSingleDisksDirectoryResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleDisksDirectorySingleResponse: + description: DeleteNodesSingleDisksDirectorySingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleDisksZfsResponse: + description: GetNodesSingleDisksZfsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + alloc: + type: int64 + description: "" + dedup: + type: number + description: "" + frag: + type: int64 + description: "" + free: + type: int64 + description: "" + health: + type: string + description: "" + name: + type: string + description: "" + size: + type: int64 + description: "" + CreateNodesSingleDisksZfsResponse: + description: CreateNodesSingleDisksZfsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodesSingleDisksZfsSingleResponse: + description: DeleteNodesSingleDisksZfsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleDisksZfsSingleResponse: + description: GetNodesSingleDisksZfsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + action: + type: string + description: Information about the recommended action to fix the state. + children: + type: array + description: >- + The pool configuration information, including the vdevs + for each section (e.g. spares, cache), may be nested. + items: + type: object + description: "" + properties: + cksum: + type: number + description: "" + msg: + type: string + description: An optional message about the vdev. + name: + type: string + description: The name of the vdev or section. + read: + type: number + description: "" + state: + type: string + description: The state of the vdev. + write: + type: number + description: "" + errors: + type: string + description: Information about the errors on the zpool. + name: + type: string + description: The name of the zpool. + scan: + type: string + description: Information about the last/current scrub. + state: + type: string + description: The state of the zpool. + status: + type: string + description: Information about the state of the zpool. + GetNodesSingleDisksListResponse: + description: GetNodesSingleDisksListResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + devpath: + type: string + description: The device path + gpt: + type: int64 + description: "" + health: + type: string + description: "" + model: + type: string + description: "" + mounted: + type: int64 + description: "" + osdid: + type: int64 + description: "" + osdid-list: + type: array + description: "" + items: + type: int64 + description: "" + parent: + type: string + description: >- + For partitions only. The device path of the disk the + partition resides on. + serial: + type: string + description: "" + size: + type: int64 + description: "" + used: + type: string + description: "" + vendor: + type: string + description: "" + wwn: + type: string + description: "" + GetNodesSingleDisksSmartResponse: + description: GetNodesSingleDisksSmartResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + attributes: + type: array + description: "" + health: + type: string + description: "" + text: + type: string + description: "" + type: + type: string + description: "" + CreateNodesSingleDisksInitgptResponse: + description: CreateNodesSingleDisksInitgptResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateNodesSingleDisksWipediskResponse: + description: UpdateNodesSingleDisksWipediskResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleAptResponse: + description: GetNodesSingleAptResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: "" + GetNodesSingleAptUpdateResponse: + description: GetNodesSingleAptUpdateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + Arch: + type: string + description: Package Architecture. + Description: + type: string + description: Package description. + NotifyStatus: + type: string + description: >- + Version for which PVE has already sent an update + notification for. + OldVersion: + type: string + description: Old version currently installed. + Origin: + type: string + description: "Package origin, e.g., 'Proxmox' or 'Debian'." + Package: + type: string + description: Package name. + Priority: + type: string + description: Package priority. + Section: + type: string + description: Package section. + Title: + type: string + description: Package title. + Version: + type: string + description: New version to be updated to. + CreateNodesSingleAptUpdateResponse: + description: CreateNodesSingleAptUpdateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleAptChangelogResponse: + description: GetNodesSingleAptChangelogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleAptRepositoriesResponse: + description: GetNodesSingleAptRepositoriesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Result from parsing the APT repository files in /etc/apt/. + properties: + digest: + type: string + description: Common digest of all files. + errors: + type: array + description: List of problematic repository files. + items: + type: object + description: "" + properties: + error: + type: string + description: The error message + path: + type: string + description: Path to the problematic file. + files: + type: array + description: List of parsed repository files. + items: + type: object + description: "" + properties: + digest: + type: array + description: Digest of the file as bytes. + items: + type: int64 + description: "" + file-type: + type: string + description: Format of the file. + path: + type: string + description: Path to the problematic file. + repositories: + type: array + description: The parsed repositories. + items: + type: object + description: "" + properties: + Comment: + type: string + description: Associated comment + Components: + type: array + description: List of repository components + items: + type: string + description: "" + Enabled: + type: int64 + description: Whether the repository is enabled or not + FileType: + type: string + description: Format of the defining file. + Options: + type: array + description: Additional options + items: + type: object + description: "" + properties: + Key: + type: string + description: "" + Values: + type: array + description: "" + items: + type: string + description: "" + Suites: + type: array + description: List of package distribuitions + items: + type: string + description: "" + Types: + type: array + description: List of package types. + items: + type: string + description: "" + URIs: + type: array + description: List of repository URIs. + items: + type: string + description: "" + infos: + type: array + description: Additional information/warnings for APT repositories. + items: + type: object + description: "" + properties: + index: + type: string + description: Index of the associated repository within the file. + kind: + type: string + description: Kind of the information (e.g. warning). + message: + type: string + description: Information message. + path: + type: string + description: Path to the associated file. + property: + type: string + description: Property from which the info originates. + standard-repos: + type: array + description: >- + List of standard repositories and their configuration + status + items: + type: object + description: "" + properties: + handle: + type: string + description: Handle to identify the repository. + name: + type: string + description: Full name of the repository. + status: + type: int64 + description: >- + Indicating enabled/disabled status, if the + repository is configured. + CreateNodesSingleAptRepositoriesResponse: + description: CreateNodesSingleAptRepositoriesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateNodesSingleAptRepositoriesResponse: + description: UpdateNodesSingleAptRepositoriesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleAptVersionsResponse: + description: GetNodesSingleAptVersionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + Arch: + type: string + description: Package Architecture. + CurrentState: + type: string + description: Current state of the package installed on the system. + Description: + type: string + description: Package description. + ManagerVersion: + type: string + description: Version of the currently running pve-manager API server. + NotifyStatus: + type: string + description: >- + Version for which PVE has already sent an update + notification for. + OldVersion: + type: string + description: Old version currently installed. + Origin: + type: string + description: "Package origin, e.g., 'Proxmox' or 'Debian'." + Package: + type: string + description: Package name. + Priority: + type: string + description: Package priority. + RunningKernel: + type: string + description: "Kernel release, only for package 'proxmox-ve'." + Section: + type: string + description: Package section. + Title: + type: string + description: Package title. + Version: + type: string + description: New version to be updated to. + GetNodeFirewallResponse: + description: GetNodeFirewallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodeFirewallRulesResponse: + description: GetNodeFirewallRulesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security + group name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + CreateNodeFirewallRuleResponse: + description: CreateNodeFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteNodeFirewallRuleResponse: + description: DeleteNodeFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodeFirewallRuleResponse: + description: GetNodeFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + action: + type: string + description: >- + Rule action ('ACCEPT', 'DROP', 'REJECT') or security group + name + comment: + type: string + description: Descriptive comment + dest: + type: string + description: Restrict packet destination address + dport: + type: string + description: Restrict TCP/UDP destination port + enable: + type: int64 + description: Flag to enable/disable a rule + icmp-type: + type: string + description: >- + Specify icmp-type. Only valid if proto equals 'icmp' or + 'icmpv6'/'ipv6-icmp' + iface: + type: string + description: >- + Network interface name. You have to use network + configuration key names for VMs and containers + ipversion: + type: int64 + description: >- + IP version (4 or 6) - automatically determined from + source/dest addresses + log: + type: string + description: Log level for firewall rule + macro: + type: string + description: Use predefined standard macro + pos: + type: int64 + description: Rule position in the ruleset + proto: + type: string + description: >- + IP protocol. You can use protocol names ('tcp'/'udp') or + simple numbers, as defined in '/etc/protocols' + source: + type: string + description: Restrict packet source address + sport: + type: string + description: Restrict TCP/UDP source port + type: + type: string + description: Rule type + UpdateNodeFirewallRuleResponse: + description: UpdateNodeFirewallRuleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodeFirewallOptionsResponse: + description: GetNodeFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + enable: + type: int64 + description: Enable host firewall rules. + log_level_forward: + type: string + description: Log level for forwarded traffic. + log_level_in: + type: string + description: Log level for incoming traffic. + log_level_out: + type: string + description: Log level for outgoing traffic. + log_nf_conntrack: + type: int64 + description: Enable logging of conntrack information. + ndp: + type: int64 + description: Enable NDP (Neighbor Discovery Protocol). + nf_conntrack_allow_invalid: + type: int64 + description: Allow invalid packets on connection tracking. + nf_conntrack_helpers: + type: string + description: >- + Enable conntrack helpers for specific protocols. Supported + protocols: amanda, ftp, irc, netbios-ns, pptp, sane, sip, + snmp, tftp + nf_conntrack_max: + type: int64 + description: Maximum number of tracked connections. + nf_conntrack_tcp_timeout_established: + type: int64 + description: Conntrack established timeout. + nf_conntrack_tcp_timeout_syn_recv: + type: int64 + description: Conntrack syn recv timeout. + nftables: + type: int64 + description: Enable nftables based firewall (tech preview) + nosmurfs: + type: int64 + description: Enable SMURFS filter. + protection_synflood: + type: int64 + description: Enable synflood protection + protection_synflood_burst: + type: int64 + description: Synflood protection rate burst by ip src. + protection_synflood_rate: + type: int64 + description: Synflood protection rate syn/sec by ip src. + smurf_log_level: + type: string + description: Log level for SMURFS filter. + tcp_flags_log_level: + type: string + description: Log level for illegal tcp flags filter. + tcpflags: + type: int64 + description: Filter illegal combinations of TCP flags. + UpdateNodeFirewallOptionsResponse: + description: UpdateNodeFirewallOptionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleFirewallLogResponse: + description: GetNodesSingleFirewallLogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + "n": + type: int64 + description: Line number + t: + type: string + description: Line text + GetNodesSingleReplicationResponse: + description: GetNodesSingleReplicationResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: "" + GetNodesSingleReplicationSingleResponse: + description: GetNodesSingleReplicationSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleReplicationSingleStatusResponse: + description: GetNodesSingleReplicationSingleStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + GetNodesSingleReplicationSingleLogResponse: + description: GetNodesSingleReplicationSingleLogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + "n": + type: int64 + description: Line number + t: + type: string + description: Line text + CreateNodesSingleReplicationSingleSchedulenowResponse: + description: CreateNodesSingleReplicationSingleSchedulenowResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCertificatesResponse: + description: GetNodesSingleCertificatesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleCertificatesAcmeResponse: + description: GetNodesSingleCertificatesAcmeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + DeleteNodesSingleCertificatesAcmeCertificateResponse: + description: DeleteNodesSingleCertificatesAcmeCertificateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCertificatesAcmeCertificateResponse: + description: CreateNodesSingleCertificatesAcmeCertificateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateNodesSingleCertificatesAcmeCertificateResponse: + description: UpdateNodesSingleCertificatesAcmeCertificateResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleCertificatesInfoResponse: + description: GetNodesSingleCertificatesInfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + filename: + type: string + description: "" + fingerprint: + type: string + description: Certificate SHA 256 fingerprint. + issuer: + type: string + description: Certificate issuer name. + notafter: + type: int64 + description: Certificate's notAfter timestamp (UNIX epoch). + notbefore: + type: int64 + description: Certificate's notBefore timestamp (UNIX epoch). + pem: + type: string + description: Certificate in PEM format + public-key-bits: + type: int64 + description: Certificate's public key size + public-key-type: + type: string + description: Certificate's public key algorithm + san: + type: array + description: List of Certificate's SubjectAlternativeName entries. + items: + type: string + description: "" + subject: + type: string + description: Certificate subject name. + DeleteNodesSingleCertificatesCustomResponse: + description: DeleteNodesSingleCertificatesCustomResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleCertificatesCustomResponse: + description: CreateNodesSingleCertificatesCustomResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + filename: + type: string + description: "" + fingerprint: + type: string + description: Certificate SHA 256 fingerprint. + issuer: + type: string + description: Certificate issuer name. + notafter: + type: int64 + description: Certificate's notAfter timestamp (UNIX epoch). + notbefore: + type: int64 + description: Certificate's notBefore timestamp (UNIX epoch). + pem: + type: string + description: Certificate in PEM format + public-key-bits: + type: int64 + description: Certificate's public key size + public-key-type: + type: string + description: Certificate's public key algorithm + san: + type: array + description: List of Certificate's SubjectAlternativeName entries. + items: + type: string + description: "" + subject: + type: string + description: Certificate subject name. + GetNodesSingleConfigResponse: + description: GetNodesSingleConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + acme: + type: string + description: Node specific ACME settings. + acmedomain0: + type: string + description: ACME domain and validation plugin + acmedomain1: + type: string + description: ACME domain and validation plugin + acmedomain2: + type: string + description: ACME domain and validation plugin + acmedomain3: + type: string + description: ACME domain and validation plugin + acmedomain4: + type: string + description: ACME domain and validation plugin + acmedomain5: + type: string + description: ACME domain and validation plugin + acmedomain6: + type: string + description: ACME domain and validation plugin + acmedomain7: + type: string + description: ACME domain and validation plugin + acmedomain8: + type: string + description: ACME domain and validation plugin + acmedomain9: + type: string + description: ACME domain and validation plugin + acmedomain10: + type: string + description: ACME domain and validation plugin + acmedomain11: + type: string + description: ACME domain and validation plugin + acmedomain12: + type: string + description: ACME domain and validation plugin + acmedomain13: + type: string + description: ACME domain and validation plugin + acmedomain14: + type: string + description: ACME domain and validation plugin + acmedomain15: + type: string + description: ACME domain and validation plugin + acmedomain16: + type: string + description: ACME domain and validation plugin + acmedomain17: + type: string + description: ACME domain and validation plugin + acmedomain18: + type: string + description: ACME domain and validation plugin + acmedomain19: + type: string + description: ACME domain and validation plugin + acmedomain20: + type: string + description: ACME domain and validation plugin + acmedomain21: + type: string + description: ACME domain and validation plugin + acmedomain22: + type: string + description: ACME domain and validation plugin + acmedomain23: + type: string + description: ACME domain and validation plugin + acmedomain24: + type: string + description: ACME domain and validation plugin + acmedomain25: + type: string + description: ACME domain and validation plugin + acmedomain26: + type: string + description: ACME domain and validation plugin + acmedomain27: + type: string + description: ACME domain and validation plugin + acmedomain28: + type: string + description: ACME domain and validation plugin + acmedomain29: + type: string + description: ACME domain and validation plugin + ballooning-target: + type: int64 + description: >- + RAM usage target for ballooning (in percent of total + memory) + description: + type: string + description: >- + Description for the Node. Shown in the web-interface node + notes panel. This is saved as comment inside the + configuration file. + digest: + type: string + description: >- + Prevent changes if current configuration file has + different SHA1 digest. This can be used to prevent + concurrent modifications. + startall-onboot-delay: + type: int64 + description: >- + Initial delay in seconds, before starting all the Virtual + Guests with on-boot enabled. + wakeonlan: + type: string + description: Node specific wake on LAN settings. + UpdateNodesSingleConfigResponse: + description: UpdateNodesSingleConfigResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodeSDNResponse: + description: GetNodeSDNResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleSdnFabricsSingleResponse: + description: GetNodesSingleSdnFabricsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetNodesSingleSdnFabricsSingleRoutesResponse: + description: GetNodesSingleSdnFabricsSingleRoutesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + route: + type: string + description: The CIDR block for this routing table entry. + via: + type: array + description: A list of nexthops for that route. + items: + type: string + description: The IP address of the nexthop. + GetNodesSingleSdnFabricsSingleNeighborsResponse: + description: GetNodesSingleSdnFabricsSingleNeighborsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + neighbor: + type: string + description: The IP or hostname of the neighbor. + status: + type: string + description: "The status of the neighbor, as returned by FRR." + uptime: + type: string + description: >- + The uptime of this neighbor, as returned by FRR (e.g. + 8h24m12s). + GetNodesSingleSdnFabricsSingleInterfacesResponse: + description: GetNodesSingleSdnFabricsSingleInterfacesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + name: + type: string + description: The name of the network interface. + state: + type: string + description: The current state of the interface. + type: + type: string + description: >- + The type of this interface in the fabric (e.g. + Point-to-Point, Broadcast, ..). + GetNodeSDNZonesResponse: + description: GetNodeSDNZonesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + status: + type: string + description: Status of zone + zone: + type: string + description: The SDN zone object identifier. + GetNodeSDNZoneResponse: + description: GetNodeSDNZoneResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetNodeSDNZoneContentResponse: + description: GetNodeSDNZoneContentResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + status: + type: string + description: Status. + statusmsg: + type: string + description: Status details + vnet: + type: string + description: Vnet identifier. + GetNodesSingleSdnZonesSingleBridgesResponse: + description: GetNodesSingleSdnZonesSingleBridgesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: List of bridges contained in the SDN zone. + properties: + name: + type: string + description: Name of the bridge. + ports: + type: array + description: All ports that are members of the bridge + items: + type: object + description: Information about bridge ports. + properties: + index: + type: string + description: >- + The index of the guests network device that this + interface belongs to. + name: + type: string + description: The name of the bridge port. + primary_vlan: + type: number + description: >- + The primary VLAN configured for the port of this + bridge (= PVID). Only for VLAN-aware bridges. + vlans: + type: array + description: >- + A list of VLANs and VLAN ranges that are allowed + for this bridge port in addition to the primary + VLAN. Only for VLAN-aware bridges. + items: + type: string + description: A single VLAN (123) or a VLAN range (234-435). + vmid: + type: number + description: >- + The ID of the guest that this interface belongs + to. + vlan_filtering: + type: string + description: >- + Whether VLAN filtering is enabled for this bridge (= + VLAN-aware). + GetNodesSingleSdnZonesSingleIpvrfResponse: + description: GetNodesSingleSdnZonesSingleIpvrfResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: >- + All entries in the VRF table of zone {zone} of the node.This + does not include /32 routes for guests on this host,since they + are handled via the respective vnet bridge directly. + items: + type: object + description: "" + properties: + ip: + type: string + description: The CIDR of the route table entry. + metric: + type: int64 + description: This route's metric. + nexthops: + type: array + description: A list of nexthops for the route table entry. + items: + type: string + description: the interface name or ip address of the next hop + protocol: + type: string + description: >- + The protocol where this route was learned from (e.g. + BGP). + GetNodesSingleSdnVnetsSingleResponse: + description: GetNodesSingleSdnVnetsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetNodesSingleSdnVnetsSingleMacvrfResponse: + description: GetNodesSingleSdnVnetsSingleMacvrfResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: >- + All routes from the MAC VRF that this node self-originates or + has learned via BGP. + items: + type: object + description: "" + properties: + ip: + type: string + description: The IP address of the MAC VRF entry. + mac: + type: string + description: The MAC address of the MAC VRF entry. + nexthop: + type: string + description: The IP address of the nexthop. + GetNodesSingleVersionResponse: + description: GetNodesSingleVersionResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + release: + type: string + description: The current installed Proxmox VE Release + repoid: + type: string + description: >- + The short git commit hash ID from which this version was + build + version: + type: string + description: The current installed pve-manager package version + GetNodesSingleStatusResponse: + description: GetNodesSingleStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + boot-info: + type: object + description: Meta-information about the boot mode. + properties: + mode: + type: string + description: Through which firmware the system got booted. + secureboot: + type: int64 + description: >- + System is booted in secure mode, only applicable for + the "efi" mode. + cpu: + type: number + description: The current cpu usage. + cpuinfo: + type: object + description: "" + properties: + cores: + type: int64 + description: The number of physical cores of the CPU. + cpus: + type: int64 + description: The number of logical threads of the CPU. + model: + type: string + description: The CPU model + sockets: + type: int64 + description: The number of logical threads of the CPU. + current-kernel: + type: object + description: >- + Meta-information about the currently booted kernel of this + node. + properties: + machine: + type: string + description: Hardware (architecture) type + release: + type: string + description: 'OS kernel release (e.g., "6.8.0")' + sysname: + type: string + description: 'OS kernel name (e.g., "Linux")' + version: + type: string + description: OS kernel version with build info + loadavg: + type: array + description: "An array of load avg for 1, 5 and 15 minutes respectively." + items: + type: string + description: The value of the load. + memory: + type: object + description: "" + properties: + available: + type: int64 + description: The available memory in bytes. + free: + type: int64 + description: The free memory in bytes. + total: + type: int64 + description: The total memory in bytes. + used: + type: int64 + description: The used memory in bytes. + pveversion: + type: string + description: The PVE version string. + rootfs: + type: object + description: "" + properties: + avail: + type: int64 + description: The available bytes in the root filesystem. + free: + type: int64 + description: The free bytes on the root filesystem. + total: + type: int64 + description: The total size of the root filesystem in bytes. + used: + type: int64 + description: The used bytes in the root filesystem. + CreateNodesSingleStatusResponse: + description: CreateNodesSingleStatusResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleNetstatResponse: + description: GetNodesSingleNetstatResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateNodesSingleExecuteResponse: + description: CreateNodesSingleExecuteResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateNodesSingleWakeonlanResponse: + description: CreateNodesSingleWakeonlanResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: MAC address used to assemble the WoL magic packet. + GetNodeRRDResponse: + description: GetNodeRRDResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + filename: + type: string + description: "" + GetNodeRRDDataResponse: + description: GetNodeRRDDataResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + GetNodesSingleSyslogResponse: + description: GetNodesSingleSyslogResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + "n": + type: int64 + description: Line number + t: + type: string + description: Line text + GetNodesSingleJournalResponse: + description: GetNodesSingleJournalResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: string + description: "" + CreateNodesSingleVncshellResponse: + description: CreateNodesSingleVncshellResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleTermproxyResponse: + description: CreateNodesSingleTermproxyResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleVncwebsocketResponse: + description: GetNodesSingleVncwebsocketResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + port: + type: string + description: "" + CreateNodesSingleSpiceshellResponse: + description: CreateNodesSingleSpiceshellResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: >- + Returned values can be directly passed to the 'remote-viewer' + application. + GetNodesSingleDnsResponse: + description: GetNodesSingleDnsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + dns1: + type: string + description: First name server IP address. + dns2: + type: string + description: Second name server IP address. + dns3: + type: string + description: Third name server IP address. + search: + type: string + description: Search domain for host-name lookup. + UpdateNodesSingleDnsResponse: + description: UpdateNodesSingleDnsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleTimeResponse: + description: GetNodesSingleTimeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + localtime: + type: int64 + description: "Seconds since 1970-01-01 00:00:00 (local time)" + time: + type: int64 + description: "Seconds since 1970-01-01 00:00:00 UTC." + timezone: + type: string + description: Time zone + UpdateNodesSingleTimeResponse: + description: UpdateNodesSingleTimeResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleAplinfoResponse: + description: GetNodesSingleAplinfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: {} + CreateNodesSingleAplinfoResponse: + description: CreateNodesSingleAplinfoResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleQueryocirepotagsResponse: + description: GetNodesSingleQueryocirepotagsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: string + description: "" + GetNodesSingleQueryurlmetadataResponse: + description: GetNodesSingleQueryurlmetadataResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + filename: + type: string + description: "" + mimetype: + type: string + description: "" + size: + type: int64 + description: "" + GetNodesSingleReportResponse: + description: GetNodesSingleReportResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleStartallResponse: + description: CreateNodesSingleStartallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleStopallResponse: + description: CreateNodesSingleStopallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleSuspendallResponse: + description: CreateNodesSingleSuspendallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateNodesSingleMigrateallResponse: + description: CreateNodesSingleMigrateallResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetNodesSingleHostsResponse: + description: GetNodesSingleHostsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + data: + type: string + description: The content of /etc/hosts. + digest: + type: string + description: >- + Prevent changes if current configuration file has a + different digest. This can be used to prevent concurrent + modifications. + CreateNodesSingleHostsResponse: + description: CreateNodesSingleHostsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetStorageResponse: + description: GetStorageResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + storage: + type: string + description: "" + CreateStorageResponse: + description: CreateStorageResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + config: + type: object + description: >- + Partial, possibly server generated, configuration + properties. + properties: + encryption-key: + type: string + description: "The, possibly auto-generated, encryption-key." + storage: + type: string + description: The ID of the created storage. + type: + type: string + description: The type of the created storage. + DeleteStorageSingleResponse: + description: DeleteStorageSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetStorageSingleResponse: + description: GetStorageSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + UpdateStorageSingleResponse: + description: UpdateStorageSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + config: + type: object + description: >- + Partial, possibly server generated, configuration + properties. + properties: + encryption-key: + type: string + description: "The, possibly auto-generated, encryption-key." + storage: + type: string + description: The ID of the created storage. + type: + type: string + description: The type of the created storage. + GetAccessResponse: + description: GetAccessResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + GetAccessUsersResponse: + description: GetAccessUsersResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + email: + type: string + description: "" + enable: + type: int64 + description: >- + Enable the account (default). You can set this to '0' to + disable the account + expire: + type: int64 + description: >- + Account expiration date (seconds since epoch). '0' means + no expiration date. + firstname: + type: string + description: "" + groups: + type: string + description: "" + keys: + type: string + description: Keys for two factor auth (yubico). + lastname: + type: string + description: "" + realm-type: + type: string + description: The type of the users realm + tfa-locked-until: + type: int64 + description: >- + Contains a timestamp until when a user is locked out of + 2nd factors. + tokens: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + expire: + type: int64 + description: >- + API token expiration date (seconds since epoch). + '0' means no expiration date. + privsep: + type: int64 + description: >- + Restrict API token privileges with separate ACLs + (default), or give full privileges of + corresponding user. + tokenid: + type: string + description: User-specific token identifier. + totp-locked: + type: int64 + description: >- + True if the user is currently locked out of TOTP + factors. + userid: + type: string + description: "Full User ID, in the `name@realm` format." + CreateAccessUsersResponse: + description: CreateAccessUsersResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteAccessUsersSingleResponse: + description: DeleteAccessUsersSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessUsersSingleResponse: + description: GetAccessUsersSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + comment: + type: string + description: "" + email: + type: string + description: "" + enable: + type: int64 + description: >- + Enable the account (default). You can set this to '0' to + disable the account + expire: + type: int64 + description: >- + Account expiration date (seconds since epoch). '0' means + no expiration date. + firstname: + type: string + description: "" + groups: + type: array + description: "" + items: + type: string + description: "" + keys: + type: string + description: Keys for two factor auth (yubico). + lastname: + type: string + description: "" + tokens: + type: object + description: "" + UpdateAccessUsersSingleResponse: + description: UpdateAccessUsersSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessUsersSingleTfaResponse: + description: GetAccessUsersSingleTfaResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + realm: + type: string + description: "The type of TFA the users realm has set, if any." + types: + type: array + description: >- + Array of the user configured TFA types, if any. Only + available if 'multiple' was not passed. + items: + type: string + description: A TFA type. + user: + type: string + description: >- + The type of TFA the user has set, if any. Only set if + 'multiple' was not passed. + UpdateAccessUsersSingleUnlocktfaResponse: + description: UpdateAccessUsersSingleUnlocktfaResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: int64 + description: "" + GetAccessUsersSingleTokenResponse: + description: GetAccessUsersSingleTokenResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + expire: + type: int64 + description: >- + API token expiration date (seconds since epoch). '0' + means no expiration date. + privsep: + type: int64 + description: >- + Restrict API token privileges with separate ACLs + (default), or give full privileges of corresponding + user. + tokenid: + type: string + description: User-specific token identifier. + DeleteAccessUsersSingleTokenSingleResponse: + description: DeleteAccessUsersSingleTokenSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessUsersSingleTokenSingleResponse: + description: GetAccessUsersSingleTokenSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + comment: + type: string + description: "" + expire: + type: int64 + description: >- + API token expiration date (seconds since epoch). '0' means + no expiration date. + privsep: + type: int64 + description: >- + Restrict API token privileges with separate ACLs + (default), or give full privileges of corresponding user. + CreateAccessUsersSingleTokenSingleResponse: + description: CreateAccessUsersSingleTokenSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + full-tokenid: + type: string + description: The full token id. + info: + type: object + description: "" + properties: + comment: + type: string + description: "" + expire: + type: int64 + description: >- + API token expiration date (seconds since epoch). '0' + means no expiration date. + privsep: + type: int64 + description: >- + Restrict API token privileges with separate ACLs + (default), or give full privileges of corresponding + user. + value: + type: string + description: API token value used for authentication. + UpdateAccessUsersSingleTokenSingleResponse: + description: UpdateAccessUsersSingleTokenSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Updated token information. + properties: + comment: + type: string + description: "" + expire: + type: int64 + description: >- + API token expiration date (seconds since epoch). '0' means + no expiration date. + privsep: + type: int64 + description: >- + Restrict API token privileges with separate ACLs + (default), or give full privileges of corresponding user. + GetAccessGroupsResponse: + description: GetAccessGroupsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + groupid: + type: string + description: "" + users: + type: string + description: list of users which form this group + CreateAccessGroupsResponse: + description: CreateAccessGroupsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteAccessGroupsSingleResponse: + description: DeleteAccessGroupsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessGroupsSingleResponse: + description: GetAccessGroupsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + comment: + type: string + description: "" + members: + type: array + description: "" + items: + type: string + description: "Full User ID, in the `name@realm` format." + UpdateAccessGroupsSingleResponse: + description: UpdateAccessGroupsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessRolesResponse: + description: GetAccessRolesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + privs: + type: string + description: "" + roleid: + type: string + description: "" + special: + type: int64 + description: "" + CreateAccessRolesResponse: + description: CreateAccessRolesResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteAccessRolesSingleResponse: + description: DeleteAccessRolesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessRolesSingleResponse: + description: GetAccessRolesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + Datastore.Allocate: + type: int64 + description: "" + Datastore.AllocateSpace: + type: int64 + description: "" + Datastore.AllocateTemplate: + type: int64 + description: "" + Datastore.Audit: + type: int64 + description: "" + Group.Allocate: + type: int64 + description: "" + Mapping.Audit: + type: int64 + description: "" + Mapping.Modify: + type: int64 + description: "" + Mapping.Use: + type: int64 + description: "" + Permissions.Modify: + type: int64 + description: "" + Pool.Allocate: + type: int64 + description: "" + Pool.Audit: + type: int64 + description: "" + Realm.Allocate: + type: int64 + description: "" + Realm.AllocateUser: + type: int64 + description: "" + SDN.Allocate: + type: int64 + description: "" + SDN.Audit: + type: int64 + description: "" + SDN.Use: + type: int64 + description: "" + Sys.AccessNetwork: + type: int64 + description: "" + Sys.Audit: + type: int64 + description: "" + Sys.Console: + type: int64 + description: "" + Sys.Incoming: + type: int64 + description: "" + Sys.Modify: + type: int64 + description: "" + Sys.PowerMgmt: + type: int64 + description: "" + Sys.Syslog: + type: int64 + description: "" + User.Modify: + type: int64 + description: "" + VM.Allocate: + type: int64 + description: "" + VM.Audit: + type: int64 + description: "" + VM.Backup: + type: int64 + description: "" + VM.Clone: + type: int64 + description: "" + VM.Config.CDROM: + type: int64 + description: "" + VM.Config.CPU: + type: int64 + description: "" + VM.Config.Cloudinit: + type: int64 + description: "" + VM.Config.Disk: + type: int64 + description: "" + VM.Config.HWType: + type: int64 + description: "" + VM.Config.Memory: + type: int64 + description: "" + VM.Config.Network: + type: int64 + description: "" + VM.Config.Options: + type: int64 + description: "" + VM.Console: + type: int64 + description: "" + VM.GuestAgent.Audit: + type: int64 + description: "" + VM.GuestAgent.FileRead: + type: int64 + description: "" + VM.GuestAgent.FileSystemMgmt: + type: int64 + description: "" + VM.GuestAgent.FileWrite: + type: int64 + description: "" + VM.GuestAgent.Unrestricted: + type: int64 + description: "" + VM.Migrate: + type: int64 + description: "" + VM.PowerMgmt: + type: int64 + description: "" + VM.Replicate: + type: int64 + description: "" + VM.Snapshot: + type: int64 + description: "" + VM.Snapshot.Rollback: + type: int64 + description: "" + UpdateAccessRolesSingleResponse: + description: UpdateAccessRolesSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessAclResponse: + description: GetAccessAclResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + path: + type: string + description: Access control path + propagate: + type: int64 + description: Allow to propagate (inherit) permissions. + roleid: + type: string + description: "" + type: + type: string + description: "" + ugid: + type: string + description: "" + UpdateAccessAclResponse: + description: UpdateAccessAclResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessDomainsResponse: + description: GetAccessDomainsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: >- + A comment. The GUI use this text when you select a + domain (Realm) on the login window. + realm: + type: string + description: "" + tfa: + type: string + description: Two-factor authentication provider. + type: + type: string + description: "" + CreateAccessDomainsResponse: + description: CreateAccessDomainsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeleteAccessDomainsSingleResponse: + description: DeleteAccessDomainsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessDomainsSingleResponse: + description: GetAccessDomainsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateAccessDomainsSingleResponse: + description: UpdateAccessDomainsSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateAccessDomainsSingleSyncResponse: + description: CreateAccessDomainsSingleSyncResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: Worker Task-UPID + GetAccessOpenidResponse: + description: GetAccessOpenidResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + subdir: + type: string + description: "" + CreateAccessOpenidAuthurlResponse: + description: CreateAccessOpenidAuthurlResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: Redirection URL. + CreateAccessOpenidLoginResponse: + description: CreateAccessOpenidLoginResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessTfaResponse: + description: GetAccessTfaResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: The list tuples of user and TFA entries. + items: + type: object + description: "" + properties: + entries: + type: array + description: "" + items: + type: object + description: TFA Entry. + properties: + created: + type: int64 + description: Creation time of this entry as unix epoch. + description: + type: string + description: User chosen description for this entry. + enable: + type: int64 + description: Whether this TFA entry is currently enabled. + id: + type: string + description: The id used to reference this entry. + type: + type: string + description: TFA Entry Type. + tfa-locked-until: + type: int64 + description: >- + Contains a timestamp until when a user is locked out of + 2nd factors. + totp-locked: + type: int64 + description: >- + True if the user is currently locked out of TOTP + factors. + userid: + type: string + description: User this entry belongs to. + GetAccessTfaSingleResponse: + description: GetAccessTfaSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: A list of the user's TFA entries. + items: + type: object + description: TFA Entry. + properties: + created: + type: int64 + description: Creation time of this entry as unix epoch. + description: + type: string + description: User chosen description for this entry. + enable: + type: int64 + description: Whether this TFA entry is currently enabled. + id: + type: string + description: The id used to reference this entry. + type: + type: string + description: TFA Entry Type. + CreateAccessTfaSingleResponse: + description: CreateAccessTfaSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + challenge: + type: string + description: >- + When adding u2f entries, this contains a challenge the + user must respond to in order to finish the registration. + id: + type: string + description: The id of a newly added TFA entry. + recovery: + type: array + description: >- + When adding recovery codes, this contains the list of + codes to be displayed to the user + items: + type: string + description: A recovery entry. + DeleteAccessTfaSingleSingleResponse: + description: DeleteAccessTfaSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessTfaSingleSingleResponse: + description: GetAccessTfaSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: TFA Entry. + properties: + created: + type: int64 + description: Creation time of this entry as unix epoch. + description: + type: string + description: User chosen description for this entry. + enable: + type: int64 + description: Whether this TFA entry is currently enabled. + id: + type: string + description: The id used to reference this entry. + type: + type: string + description: TFA Entry Type. + UpdateAccessTfaSingleSingleResponse: + description: UpdateAccessTfaSingleSingleResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessTicketResponse: + description: GetAccessTicketResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + CreateAccessTicketResponse: + description: CreateAccessTicketResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + CSRFPreventionToken: + type: string + description: "" + clustername: + type: string + description: "" + ticket: + type: string + description: "" + username: + type: string + description: "" + CreateAccessVncticketResponse: + description: CreateAccessVncticketResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdateAccessPasswordResponse: + description: UpdateAccessPasswordResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetAccessPermissionsResponse: + description: GetAccessPermissionsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: Map of "path" => (Map of "privilege" => "propagate boolean"). + DeletePoolsResponse: + description: DeletePoolsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetPoolsResponse: + description: GetPoolsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: array + description: "" + items: + type: object + description: "" + properties: + comment: + type: string + description: "" + members: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: "" + node: + type: string + description: "" + storage: + type: string + description: "" + type: + type: string + description: "" + vmid: + type: int64 + description: "" + poolid: + type: string + description: "" + CreatePoolResponse: + description: CreatePoolResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + UpdatePoolsResponse: + description: UpdatePoolsResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + DeletePoolResponse: + description: DeletePoolResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetPoolResponse: + description: GetPoolResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + comment: + type: string + description: "" + members: + type: array + description: "" + items: + type: object + description: "" + properties: + id: + type: string + description: "" + node: + type: string + description: "" + storage: + type: string + description: "" + type: + type: string + description: "" + vmid: + type: int64 + description: "" + UpdatePoolResponse: + description: UpdatePoolResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: string + description: "" + GetVersionResponse: + description: GetVersionResponse + content: + application/json: + schema: + type: object + properties: + errors: + type: array + items: + type: string + data: + type: object + description: "" + properties: + console: + type: string + description: The default console viewer to use. + release: + type: string + description: The current Proxmox VE point release in `x.y` format. + repoid: + type: string + description: The short git revision from which this version was build. + version: + type: string + description: The full pve-manager package version of this node.